socklen: do not depend on sys_socket
[gnulib.git] / ChangeLog
1 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2             Bruno Haible  <bruno@clisp.org>
3
4         socklen: do not depend on sys_socket
5         While trying to modify Emacs to use gnulib's socklen module,
6         I discovered a circular dependency: socklen depends on sys_socket
7         and vice versa.  Emacs can use socklen, but it does not need
8         sys_socket because it has its own substitute for sys/socket.h.
9         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10         gl_TYPE_SOCKLEN_T.
11         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12         gl_PREREQ_SYS_H_SOCKET.
13         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14         gl_PREREQ_SYS_H_SOCKET.
15         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17         * modules/socklen (Depends-on): Do not depend on sys_socket.
18         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19
20 2011-03-20  Jim Meyering  <meyering@redhat.com>
21
22         maint.mk: sort file names *after* new transformation
23         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24         prefix would have led to an unwarranted failure in GNU parted.
25         Sort after that transformation.
26
27 2011-03-19  Jim Meyering  <meyering@redhat.com>
28
29         maint.mk: fix po-file syntax-check rule
30         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
31         Patch by Bruno Haible.
32
33 2011-03-19  Bruno Haible  <bruno@clisp.org>
34
35         socklen: Update comment.
36         * m4/socklen.m4: Update comment about platforms.
37
38 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39             Bruno Haible  <bruno@clisp.org>
40
41         inet_ntop, inet_pton: Simplify.
42         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
43         documented to provide socklen_t and we already depend on sys_socket.
44         * modules/inet_pton (Depends-on): Likewise.
45         * lib/arpa_inet.in.h: Adjust comment.
46
47 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48             Bruno Haible  <bruno@clisp.org>
49
50         netdb: Simplify.
51         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
52         documented to provide socklen_t and we already depend on sys_socket.
53         * lib/netdb.in.h: Adjust comment.
54
55 2011-03-19  Bruno Haible  <bruno@clisp.org>
56
57         sys_socket, netdb: Document problem with socklen_t.
58         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
59         platforms.
60         * doc/posix-headers/netdb.texi: Likewise.
61
62 2011-03-18  Eric Blake  <eblake@redhat.com>
63
64         maint.mk: let po check work in VPATH build
65         * top/maint.mk (po_file): Allow cfg.mk override.
66         (sc_po_check): Allow VPATH use.
67         Reported by Jiri Denemark.
68
69 2011-03-16  Jim Meyering  <meyering@redhat.com>
70
71         maint.mk: allow fine-grained syntax-check exclusion via Make variables
72         Before, you would have had to create one .x-sc_ file per rule in order
73         to exempt offending files.  Now, you may instead use a Make variable --
74         usually defined in cfg.mk -- whose name identifies the affected rule.
75         * top/maint.mk (_sc_excl): Define.
76         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
77         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
78
79 2011-03-13  Bruno Haible  <bruno@clisp.org>
80
81         ignore-value tests: Avoid warnings.
82         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
83         empty for gcc < 3.4.
84
85 2011-03-13  Bruno Haible  <bruno@clisp.org>
86
87         passfd: Fix link error on Solaris.
88         * modules/passfd (Description): Correct.
89         (Depends-on): Add socketlib.
90         (Link): New section.
91         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
92
93 2011-03-13  Bruno Haible  <bruno@clisp.org>
94
95         passfd: Fix link error on AIX 5.2.
96         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
97
98 2011-03-13  Bruno Haible  <bruno@clisp.org>
99
100         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
101         * lib/sys_socket.in.h: Include <stddef.h>.
102         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
103         CMSG_FIRSTHDR. Remove unused variable.
104
105 2011-03-13  Bruno Haible  <bruno@clisp.org>
106
107         passfd: Fix compilation error on OpenBSD.
108         * lib/passfd.c: Include <sys/uio.h>.
109
110 2011-03-13  Bruno Haible  <bruno@clisp.org>
111
112         passfd test: Fix warnings.
113         * tests/test-passfd.c: Include <sys/wait.h>.
114         (main): Fix typo.
115
116 2011-03-13  Bruno Haible  <bruno@clisp.org>
117
118         passfd module, part 4, tweaks.
119         * tests/test-passfd.c: Reorder includes.
120         (main): Fix perror and printf calls.
121
122 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
123
124         passfd module, part 4.
125         * modules/passfd-tests: New file.
126         * tests/test-passfd.c: New file.
127
128 2011-03-13  Jim Meyering  <meyering@redhat.com>
129
130         Makefile: rely on GNU make; derive syntax-check rule names
131         Rather than requiring that each sc_ rule be listed as a dependent
132         of "check", use features of GNU make to derive the list.
133         * Makefile (syntax-check-rules): Define.
134         (check): Depend on the new variable, not the hard-coded list.
135
136 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
137             Bruno Haible  <bruno@clisp.org>
138
139         passfd module, part 3.
140         * lib/passfd.h (recvfd): Add a flags argument.
141         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
142         (recvfd): Add a flags argument.
143         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
144         exists.
145         * modules/passfd (Depends-on): Add cloexec.
146         Suggested by Eric Blake.
147
148 2011-03-13  Bruno Haible  <bruno@clisp.org>
149
150         passfd module, part 2, tweaks.
151         * modules/passfd (Files): Reorder.
152         (Depends-on): Remove errno.
153         (Include): Remove <sys/socket.h>, <sys/un.h>.
154         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
155         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
156         specification header. Include <sys/socket.h> always. Don't include
157         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
158         (sendfd): Clarify that it sets errno when it fails.
159         (recvfd): Fix specification.
160
161 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
162
163         passfd module, part 2.
164         * modules/passfd: New file.
165         * lib/passfd.h: New file.
166         * lib/passfd.c: New file.
167
168 2011-03-12  Bruno Haible  <bruno@clisp.org>
169
170         wcswidth, mbswidth: Avoid integer overflow.
171         * lib/wcswidth.c: Include <limits.h>.
172         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
173         * lib/mbswidth.c: Include <limits.h>.
174         (mbsnwidth): Avoid 'int' overflow.
175         Reported by Jim Meyering.
176
177 2011-03-12  Bruno Haible  <bruno@clisp.org>
178
179         futimens, utimensat: Avoid endless recursion on Solaris 10.
180         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
181         Solaris.
182         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
183         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
184
185 2011-03-11  Jim Meyering  <meyering@redhat.com>
186
187         maint.mk: relax a regexp to accommodate other formatting styles
188         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
189         between "ngettext" and the following "(".
190
191 2011-03-11  Pádraig Brady <P@draigBrady.com>
192
193         maint.mk: suppress a false positive warning
194         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
195         diagnostics are marked with ngettext.
196
197 2011-03-10  Eric Blake  <eblake@redhat.com>
198
199         wchar: add explicit dependencies, for Tru64
200         * modules/mbmemcasecoll (Depends-on): Add wchar.
201         * modules/mbtowc (Depends-on): Likewise.
202         * modules/vasnprintf (Depends-on): Likewise.
203         * modules/unistdio/u-printf-args (Depends-on): Likewise.
204         * modules/wctomb (Depends-on): Likewise.
205         Reported by Peter O'Gorman.
206
207 2011-03-08  Bruno Haible  <bruno@clisp.org>
208
209         passfd module, part 1, tweaks.
210         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
211         Improve indentation. Improve AC_MSG_CHECKING messages.
212         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
213         gl_SOCKET_FAMILIES.
214
215 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
216
217         passfd module, part 1.
218         * m4/afunix.m4: New file.
219         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
220         sockets.
221
222 2011-03-08  Bruno Haible  <bruno@clisp.org>
223
224         regex-quote: New API.
225         * lib/regex-quote.h: Include <stdbool.h>.
226         (struct regex_quote_spec): New type.
227         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
228         New declarations.
229         (regex_quote_length, regex_quote_copy, regex_quote): Take a
230         'const struct regex_quote_spec *' argument.
231         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
232         (pcre_special): New constant.
233         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
234         New functions.
235         (regex_quote_length, regex_quote_copy, regex_quote): Take a
236         'const struct regex_quote_spec *' argument.
237         * modules/regex-quote (Depends-on): Add stdbool.
238         * tests/test-regex-quote.c (check): Update for new API. Add test for
239         anchored results.
240         * NEWS: Mention the API change.
241         Reported by Reuben Thomas and Eric Blake.
242
243 2011-03-06  Bruno Haible  <bruno@clisp.org>
244
245         regex-quote: Fix creation of POSIX extended regular expressions.
246         * lib/regex-quote.c (ere_special): Add grouping and alternation
247         operators.
248
249 2011-03-05  Bruno Haible  <bruno@clisp.org>
250
251         doc: Improve doc regarding autopoint vs. gnulib.
252         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
253         disable autopoint while running autoreconf.
254         Suggested by Ralf Wildenhues.
255
256 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
257
258         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
259         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
260
261 2011-03-03  Bruce Korb  <bkorb@gnu.org>
262
263         parse-duration: remove xalloc.h dependency
264         * lib/parse-duration.c (parse_period): handle NULL return from
265         strdup instead of calling xstrdup().
266         * modules/parse-duration: remove "xalloc" dependency
267
268 2011-03-03  Matthew Booth  <mbooth@redhat.com>
269
270         bootstrap: honor m4_base when running aclocal
271         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
272
273 2011-03-02  Jim Meyering  <meyering@redhat.com>
274
275         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
276         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
277         on request from Matt Booth.
278
279 2011-03-01  Eric Blake  <eblake@redhat.com>
280
281         test-link: work on Hurd
282         * tests/test-link.h (test_link): Hurd rejects linking directories
283         with EISDIR instead of the POSIX-mandated EPERM.
284
285 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
286
287         stdio: simplify by moving files to printf-posix, sigpipe
288         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
289         since this symbol is needed only if printf is replaced.
290         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
291         Require gl_ASM_SYMBOL_PREFIX.
292         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
293         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
294         (Depends-on): Add 'raise'.
295         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
296         * modules/stdio (Files): Remove lib/stdio-write.c,
297         m4/asm-underscore.m4.
298         (Depends-on): Remove 'raise'.
299
300         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
301         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
302         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
303         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
304
305 2011-02-28  Bruno Haible  <bruno@clisp.org>
306
307         localcharset: Assume ANSI C behaviour of free().
308         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
309         calling free().
310         Suggested by Simon Josefsson <simon@josefsson.org>.
311
312 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
313             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
314             Bruno Haible  <bruno@clisp.org>  (tiny change)
315
316         On Cygwin, use /proc file system instead of win32 API.
317         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
318         Win32 file names.
319         (DllMain): Simplify by removing Cygwin specific code.
320         (find_shared_library_fullname): Use Linux specific implementation also
321         for Cygwin.
322         (get_shared_library_fullname): Update accordingly.
323         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
324         Win32 file names.
325         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
326         Cygwin specific code.
327
328 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
329             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
330
331         Fix OpenMP flag detection for various Fortran compilers.
332         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
333         OpenMP-conditional compilation construct, to force compile
334         failure with missing OpenMP flag.
335         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
336
337 2011-02-25  Eric Blake  <eblake@redhat.com>
338
339         strstr: expand test coverage
340         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
341         compilation.
342         * tests/test-memmem.c (main): Duplicate tests.
343         * tests/test-strcasestr.c (main): Likewise.
344         * tests/test-c-strcasestr.c (main): Likewise.
345
346 2011-02-25  Jim Meyering  <meyering@redhat.com>
347
348         maint.mk: detect missing-NL-at-EOF, too
349         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
350         it also detects when a file lacks a newline at EOF.
351         (require_exactly_one_NL_at_EOF_): Renamed from
352         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
353         since people may well have .x-sc_... file names tied to the
354         existing name.  Suggested by Eric Blake.
355
356 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
357
358         dirname: move m4/dos.m4 functionality into lib/dosname.h
359
360         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
361         extracts symbols from it, puts them into config.h; but it's much
362         easier to use the symbols directly.  filename.h already does this,
363         but it disagrees with dos.m4 in some respects.  This patch
364         introduces a different include file dosname.h that packages up
365         dos.m4, and then later we can work on merging filename.h and
366         dosname.h.  Applications that need only the easy-to-configure
367         symbols should consider including dosname.h rather than dirname.h.
368         * NEWS: Mention incompatible changes.
369         * m4/dos.m4: Remove.
370         * lib/dosname.h, modules/dosname: New files.
371         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
372         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
373         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
374         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
375         Include dosname.h, not dirname.h.
376         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
377         Include dosname.h, for definitions of symbols like ISSLASH
378         that used to be in config.h.
379         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
380         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
381         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
382         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
383         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
384         * modules/rmdir (Files): Likewise.
385         * modules/stat (Files): Likewise.
386         * modules/unlink (Files): Likewise.
387         * modules/dirname-lgpl (Depends-on): Add dosname.
388         * modules/lstat (Depends-on): Likewise.
389         * modules/openat (Depends-on): Likewise.
390         * modules/rmdir (Depends-on): Likewise.
391         * modules/savewd (Depends-on): Likewise.
392         * modules/stat (Depends-on): Likewise.
393         * modules/unlink (Depends-on): Likewise.
394         * modules/openat (Depends-on): Remove dirname-lgpl.
395         * modules/savewd (Depends-on): Likewise.
396         * tests/test-dirname.c: Do not use removed symbols like
397         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
398         the remaining symbols, e.g., ISSLASH ('\\').
399
400 2011-02-25  Eric Blake  <eblake@redhat.com>
401
402         strstr: revert patches that introduced bug and pessimization
403         * lib/str-two-way.h: Add another reference.
404         (two_way_short_needle, two_way_long_needle): Revert changes from
405         2011-02-24; they pessimize search speed.
406         (critical_factorization): Partially revert changes from
407         2010-06-22; they violate the requirement that the left half of the
408         needle be smaller than the period of the needle.
409
410 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
411
412         filenamecat: remove unnecessary dependency on dirname-lgpl
413         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
414         is no direct dependency, just an indirect one via filenamecat-lgpl.
415
416         remove: remove unnecessary use of m4/dos.m4
417         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
418         * modules/remove (FILES): Remove m4/dos.m4.
419
420         * lib/openat-proc.c: Don't include dirname.h; not needed.
421
422         backupfile: remove unnecessary use of m4/dos.m4
423         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
424         of its symbols are used by the backupfile code.  backupfile.c does
425         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
426         for the rare case of programs that want all their backup file
427         names to live within 8+3 limits, and dos.m4 doesn't address that.
428         * modules/backupfile (Files): Remove m4/dos.m4.
429
430 2011-02-24  Jim Meyering  <meyering@redhat.com>
431
432         strstr: fix a bug whereby strstr would mistakenly return NULL
433         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
434         in period calculation.
435         (two_way_long_needle): Likewise.
436         The original problem was reported by Mike Stump in
437         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
438         Ralf Wildenhues provided the short needle and haystack.
439         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
440         Add a more involved test to trigger the bug in two_way_long_needle.
441
442 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
443
444         gnulib-tool: remove use of bold display in help screen
445         * gnulib-tool (func_usage): Do not use bold display anymore in the
446         help screen.  That was just meant to be a temporary emphasis for a
447         backward-incompatible change.
448
449 2011-02-23  Bruno Haible  <bruno@clisp.org>
450
451         Fix misindentation of preprocessor directives.
452         * lib/argp-namefrob.h: Reindent preprocessor directives.
453         * lib/getopt_int.h (struct _getopt_data): Likewise.
454         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
455         * lib/vasnprintf.c (decode_long_double): Likewise.
456         * tests/test-argmatch.c: Insert blank lines, for clarity.
457         * tests/test-exclude.c: Likewise.
458
459 2011-02-22  Bruno Haible  <bruno@clisp.org>
460
461         ioctl: Fix for MacOS X in 64-bit mode.
462         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
463         value.
464         Suggested by Eric Blake.
465         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
466
467 2011-02-22  Jim Meyering  <meyering@redhat.com>
468
469         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
470         * Makefile (sc_cpp_indent_check): Don't limit the check to files
471         in lib/.
472
473 2011-02-22  Eric Blake  <eblake@redhat.com>
474
475         maint: avoid any CDPATH issue
476         * Makefile (sc_cpp_indent_check): Anchor cd argument.
477
478         maint: adjust cpp indentation for my modules, as well
479         * Makefile (sc_cpp_indent_check): Add my name.
480         * lib/fbufmode.c: Filter through cppi.
481         * lib/fpurge.c: Likewise.
482         * lib/freadable.c: Likewise.
483         * lib/freading.c: Likewise.
484         * lib/fwritable.c: Likewise.
485         * lib/fwriting.c: Likewise.
486         * lib/sigaction.c: Likewise.
487
488 2011-02-22  Jim Meyering  <meyering@redhat.com>
489
490         maint: adjust cpp indentation to reflect nesting depth
491         I.e., in a block of code that begins with an unnested "#if",
492         put one space between the "#" in column 1 and following token.
493         For example,
494         -#include <sys/vfs.h>
495         +# include <sys/vfs.h>
496         Do this only in .c files that are part of a module I maintain.
497         * lib/linkat.c: Filter through cppi.
498         * lib/nanosleep.c: Likewise.
499         * lib/openat.c: Likewise.
500         * lib/openat-die.c: Likewise.
501         * lib/dup3.c: Likewise.
502         * lib/fchownat.c: Likewise.
503         * lib/flock.c: Likewise.
504         * lib/fsync.c: Likewise.
505         * lib/fts.c: Likewise.
506         * lib/getpass.c: Likewise.
507         * lib/gettimeofday.c: Likewise.
508         * lib/userspec.c: Likewise.
509         * Makefile (sc_cpp_indent_check): New rule, to check this.
510
511 2011-02-22  Bruno Haible  <bruno@clisp.org>
512
513         New module 'wctomb'.
514         * lib/stdlib.in.h (wctomb): New declaration.
515         * lib/wctomb.c: New file.
516         * lib/wctomb-impl.h: New file.
517         * m4/wctomb.m4: New file.
518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
519         REPLACE_WCTOMB.
520         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
521         REPLACE_WCTOMB.
522         * modules/wctomb: New file.
523         * tests/test-stdlib-c++.cc: Test signature of wctomb.
524         * doc/posix-functions/wctomb.texi: Mention the new module.
525         * modules/wctob (Depends-on): Add wctomb.
526
527 2011-02-22  Bruno Haible  <bruno@clisp.org>
528
529         New module 'mbtowc'.
530         * lib/stdlib.in.h (mbtowc): New declaration.
531         * lib/mbtowc.c: New file.
532         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
533         * m4/mbtowc.m4: New file.
534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
535         REPLACE_MBTOWC.
536         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
537         REPLACE_MBTOWC.
538         * modules/mbtowc: New file.
539         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
540         * doc/posix-functions/mbtowc.texi: Mention the new module.
541         * modules/btowc (Depends-on): Add mbtowc.
542
543 2011-02-22  Bruno Haible  <bruno@clisp.org>
544
545         wcrtomb: Add more tests for native Windows platforms.
546         * tests/test-wcrtomb-w32-1.sh: New file.
547         * tests/test-wcrtomb-w32-2.sh: New file.
548         * tests/test-wcrtomb-w32-3.sh: New file.
549         * tests/test-wcrtomb-w32-4.sh: New file.
550         * tests/test-wcrtomb-w32-5.sh: New file.
551         * tests/test-wcrtomb-w32.c: New file.
552         * modules/wcrtomb-tests (Files): Add them.
553         (Makefile.am): Arrange to run these tests.
554         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
555         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
556
557 2011-02-20  Bruno Haible  <bruno@clisp.org>
558
559         wcrtomb: Enhance test.
560         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
561
562 2011-02-20  Bruno Haible  <bruno@clisp.org>
563
564         mbrtowc: Tiny optimization.
565         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
566
567 2011-02-20  Jim Meyering  <meyering@redhat.com>
568
569         test-exclude.c: remove unmatched #endif
570         * tests/test-exclude.c: Remove stray #endif, left over from
571         the change of a week ago.
572
573 2011-02-19  Jim Meyering  <meyering@redhat.com>
574
575         git-version-gen: skip "-dirty" check when appropriate
576         * build-aux/git-version-gen: Don't run any git commands when the
577         version string comes from .tarball-version.  Prior to this, we
578         would run git update-index --refresh even from a just-unpacked
579         tarball directory, and that could affect a .git/ directory in a
580         parent of the build directory.  Reported by Mike Frysinger.
581
582 2011-02-19  Bruno Haible  <bruno@clisp.org>
583
584         unictype/property-byname: Reduce the size of the 'data' segment.
585         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
586
587 2011-02-19  Bruno Haible  <bruno@clisp.org>
588
589         unictype/scripts: Reduce the size of the 'data' segment.
590         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
591         '%pic'.
592         * lib/unictype/scripts_byname.gperf: Regenerated.
593
594 2011-02-19  Bruno Haible  <bruno@clisp.org>
595
596         stdint: Update documentation.
597         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
598
599 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
600
601         stdint: omit redundant check for wchar.h
602         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
603         always tests whether wchar.h exists, so remove the now-redundant test.
604
605 2011-02-18  Bruno Haible  <bruno@clisp.org>
606
607         stdint: Cut dependency to module 'wchar'.
608         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
609         include the necessary prerequisites.
610         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
611         * modules/stdint (Depends-on): Remove wchar.
612         (Makefile.am): Substitute HAVE_WCHAR_H.
613         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
614
615 2011-02-18  Eric Blake  <eblake@redhat.com>
616
617         longlong: skip, rather than fail, on cross-compilation
618         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
619         when cross-compiling; regression from 2011-02-16.
620
621 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
622
623         * NEWS: Mention 2011-02-08 change to stdlib.
624
625 2011-02-17  Bruno Haible  <bruno@clisp.org>
626
627         getloadavg: Add comments about platforms.
628         * m4/getloadavg.m4: Add comment.
629         * lib/getloadavg.c: Likewise.
630
631 2011-02-17  Bruno Haible  <bruno@clisp.org>
632
633         getloadavg: Fix link error on Solaris 2.6.
634         * modules/getloadavg (Link): New section.
635         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
636         linking test-getloadavg.
637         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
638         getloadavg.
639
640 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
641
642         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
643         It was 'int', but this doesn't match the IRIX 6.5 manual.
644         Suggested by Bruno Haible in
645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
646
647 2011-02-17  Bruno Haible  <bruno@clisp.org>
648
649         havelib: Fix comments.
650         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
651         change.
652
653 2011-02-17  Bruno Haible  <bruno@clisp.org>
654
655         havelib: Update config.rpath.
656         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
657
658 2011-02-17  Bruno Haible  <bruno@clisp.org>
659
660         getloadavg test: Add some plausibility checks.
661         * tests/test-getloadavg.c (check_avg): Print a warning when the value
662         is improbable.
663
664 2011-02-16  Eric Blake  <eblake@redhat.com>
665
666         maintainer-makefile: make syntax-check a no-op from tarballs
667         * top/maint.mk (no-vc-detected): New rule.
668         (local-checks-available): Use it to avoid hanging if someone tries
669         'make syntax-check' from a tarball.  Also append to any non-syntax
670         checks already defined in cfg.mk.
671
672 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
673
674         longlong: tune, particularly for common case of c99
675
676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
677         or running anything if c99, or if unsigned long long int does not
678         work.  In either case, we know the answer without further tests.
679         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
680         it at most once, and use its results for both long long int and
681         unsigned long long int.  This is more likely to be efficient in
682         the common case where the program wants to check for both long
683         long int and unsigned long long int.
684         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
685         since the answer is already known.
686
687 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
688
689         getloadavg: set errno
690         * lib/getloadavg.c: Set errno when returning -1.  If no other
691         error number looks appropriate, set it to ENOSYS if the getloadavg
692         looks like it can't possibly ever work, ENOTSUP otherwise.
693         Suggested by Bruno Haible in
694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
695
696         getloadavg: trim unused parts and speed up 'configure'
697         * NEWS: Document this.
698         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
699         always compiled if getloadavg is absent.
700         Move test code to ...
701         * tests/test-getloadavg.c: New file, containing previous
702         contents of test from lib/getloadavg.c.  It also contains
703         suggestions by Bruno Haible in
704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
705         * modules/getloadavg-tests: New file.
706         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
707         Do tests in the same order as they're needed for getloadavg.c.
708         Omit setgid-related tests that generate symbols KMEM_GROUP,
709         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
710         Do only the tests that are needed to see whether the system has
711         getloadavg, moving the other tests into ...
712         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
713         NLIST_NAME_UNION; nobody should be using it.  Do not define
714         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
715         relevant, as the user of this module shouldn't care how getloadavg
716         is implemented.
717
718         getloadavg: omit unused var
719         * lib/getloadavg.c (getloadavg): Omit unused local variable.
720
721 2011-02-15  Jim Meyering  <meyering@redhat.com>
722
723         doc: update users.txt
724         * users.txt: Update iwhd's URL.
725
726 2011-02-13  Bruno Haible  <bruno@clisp.org>
727
728         Consistent macro naming for macros that use GCC __attribute__.
729         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
730         _ATTRIBUTE_NONNULL_.
731         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
732         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
733         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
734         ATTRIBUTE_DEPRECATED.
735         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
736         ATTRIBUTE_NORETURN.
737         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
738         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
739         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
740         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
741         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
742         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
743         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
744         ATTRIBUTE_SENTINEL.
745         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
746         ATTRIBUTE_RETURN_CHECK.
747         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
748         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
749         ATTRIBUTE_NORETURN.
750         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
751         Reported by Paul Eggert.
752
753 2011-02-13  Bruno Haible  <bruno@clisp.org>
754
755         Don't interfere with a program's definition of __attribute__.
756         * lib/argp.h (__attribute__): Remove definition.
757         (_GL_ATTRIBUTE_FORMAT): New macro.
758         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
759         * lib/argp-fmtstream.h (__attribute__): Remove definition.
760         (_GL_ATTRIBUTE_FORMAT): New macro.
761         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
762         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
763         GCC 3 or newer.
764         * lib/error.h (__attribute__): Remove definition.
765         (_GL_ATTRIBUTE_FORMAT): New macro.
766         (error, error_at_line): Use it.
767         * lib/hash.h (__attribute__): Remove definition.
768         (ATTRIBUTE_WUR): Update definition. Define always.
769         * lib/openat.h (__attribute__): Remove definition.
770         (ATTRIBUTE_NORETURN): Update definition. Define always.
771         * lib/sigpipe-die.h (__attribute__): Remove definition.
772         (ATTRIBUTE_NORETURN): Update definition. Define always.
773         * lib/vasnprintf.h (__attribute__): Remove definition.
774         (_GL_ATTRIBUTE_FORMAT): New macro.
775         (asnprintf, vasnprintf): Use it.
776         * lib/xalloc.h (__attribute__): Remove definition.
777         (ATTRIBUTE_NORETURN): Update definition. Define always.
778         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
779         * lib/xmemdup0.h (__attribute__): Remove definition.
780         (ATTRIBUTE_NORETURN): Update definition. Define always.
781         * lib/xprintf.h (__attribute__): Remove definition.
782         (_GL_ATTRIBUTE_FORMAT): New macro.
783         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
784         * lib/xstrtol.h (__attribute__): Remove definition.
785         (ATTRIBUTE_NORETURN): Update definition. Define always.
786         * lib/xvasprintf.h (__attribute__): Remove definition.
787         (_GL_ATTRIBUTE_FORMAT): New macro.
788         (xasprintf, xvasprintf): Use it.
789         * tests/test-argmatch.c (__attribute__): Remove definition.
790         (ATTRIBUTE_NORETURN): Update definition. Define always.
791         * tests/test-exclude.c (__attribute__): Remove definition.
792         (ATTRIBUTE_NORETURN): Update definition. Define always.
793         Reported by Paul Eggert.
794
795 2011-02-13  Bruno Haible  <bruno@clisp.org>
796
797         mbrtowc: Add more tests for native Windows platforms.
798         * tests/test-mbrtowc-w32-1.sh: New file.
799         * tests/test-mbrtowc-w32-2.sh: New file.
800         * tests/test-mbrtowc-w32-3.sh: New file.
801         * tests/test-mbrtowc-w32-4.sh: New file.
802         * tests/test-mbrtowc-w32-5.sh: New file.
803         * tests/test-mbrtowc-w32.c: New file.
804         * modules/mbrtowc-tests (Files): Add them.
805         (Makefile.am): Arrange to run these tests.
806         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
807         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
808
809 2011-02-13  Bruno Haible  <bruno@clisp.org>
810
811         mbrtowc: Work around native Windows bug.
812         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
813         guess when no suitable locale for testing was found.
814         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
815
816 2011-02-13  Bruno Haible  <bruno@clisp.org>
817
818         mbsinit: Work around mingw bug.
819         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
820         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
821         Windows.
822         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
823
824 2011-02-13  Bruno Haible  <bruno@clisp.org>
825
826         mbsinit: Don't crash for a NULL argument.
827         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
828         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
829
830 2011-02-13  Bruno Haible  <bruno@clisp.org>
831
832         Don't interfere with a program's definition of __attribute__.
833         * lib/stdio.in.h (__attribute__): Remove definition.
834         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
835         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
836         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
837         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
838         * lib/string.in.h (__attribute__): Remove definition.
839         Reported by Paul Eggert.
840
841 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
842
843         stdlib: don't get in the way of non-GCC __attribute__
844         See thread starting at
845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
846         Revert previous stdlib change, installing the following instead:
847         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
848         to get in the way of a non-GCC compiler that supports __attribute__.
849         (_GL_ATTRIBUTE_RETURN): New macro.
850         (_Exit): Use it instead of __attribute__.
851
852 2011-02-12  Bruno Haible  <bruno@clisp.org>
853
854         quotearg test: Avoid test failure on mingw.
855         * tests/test-quotearg.sh: Convert the locale identifier from native
856         Windows syntax to Unix syntax.
857
858 2011-02-12  Bruno Haible  <bruno@clisp.org>
859
860         setlocale: Prefer gnulib's override over libintl's override.
861         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
862         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
863         GNULIB_defined_setlocale is set.
864
865 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
866
867         stdlib: support non-GCC __attribute__
868
869         Fix a serious and tricky problem encountered when attempting to
870         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
871         5.5, but it crashed due to memory corruption on Solaris 10 with
872         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
873         bits that are otherwise zero.  This tagging is optional inside
874         Emacs but is preferred and is used when __attribute__ ((__aligned
875         (8))) works, as it does with both recent-enough GCC and with Sun C
876         5.11.  However, Sun C 5.11 is not GCC and does not #define
877         __GNUC__ and __GNUC_MINOR__.
878
879         When I added the getloadavg module to Emacs, it brought in
880         stdlib.in.h, which contained this fragment:
881
882            #ifndef __attribute__
883            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
884            #  define __attribute__(Spec)   /* empty */
885            # endif
886            #endif
887
888         When files that include <stdlib.h> were compiled with Sun C 5.11,
889         the above code disabled __attribute__ ((__aligned (8))), which
890         caused variables to not be properly aligned, which eventually led
891         to the pointer corruption mentioned above.  (This was a bit hard
892         to diagnose, unfortunately.)
893
894         Several "#define __attribute__(X) /* empty */" code snippets need
895         to be eradicated from Gnulib to work with non-GCC compilers that
896         support __attribute__.  The Autoconf way to do this is to test for
897         each kind of attribute that we want support for, and selectively
898         enable that in source code.
899
900         Fix this problem just for stdlib.h, by adding a test for the
901         __noreturn__ attribute, and change stdlib.in.h to use that test
902         when needed.  This technique can be easily generalized to the
903         other *.in.h files and attributes, and a similar technique can be
904         used for *.h and *.c files.  This patch is enough to solve the
905         problem for Emacs + getloadavg, and I thought I'd publish it for
906         feedback before undertaking further, similar fixes in other
907         modules.
908
909         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
910         because it's not needed for stdlib.h.  It merely substitutes the
911         value directly into stdlib.h.  We may well need to #define it, or
912         similar symbols, for other modules, but it's nice to also have an
913         option to not #define it for applications like Emacs that do not
914         need it.
915
916         * lib/stdlib.in.h (__attribute__): Do not #define.
917         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
918         be defined only if the _Exit module is also used.
919         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
921         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
922         platforms.
923         * modules/_Exit (Files): Add m4/attribute.m4.
924         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
925         * m4/attribute.m4: New file.
926
927 2011-02-12  Bruno Haible  <bruno@clisp.org>
928
929         wcsrtombs: Work around bug on native Windows.
930         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
931         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
932         instead of len.
933         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
934
935 2011-02-12  Bruno Haible  <bruno@clisp.org>
936
937         mbsrtowcs: Work around bug on native Windows.
938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
939         against mingw bug.
940         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
941
942 2011-02-12  Bruno Haible  <bruno@clisp.org>
943
944         Avoid setlocale bugs in tests.
945         * modules/btowc (Dependencies): Add setlocale.
946         * modules/c-strcase (Dependencies): Likewise.
947         * modules/mbmemcasecmp (Dependencies): Likewise.
948         * modules/mbmemcasecoll (Dependencies): Likewise.
949         * modules/mbrtowc (Dependencies): Likewise.
950         * modules/mbscasecmp (Dependencies): Likewise.
951         * modules/mbscasestr (Dependencies): Likewise.
952         * modules/mbschr (Dependencies): Likewise.
953         * modules/mbscspn (Dependencies): Likewise.
954         * modules/mbsinit (Dependencies): Likewise.
955         * modules/mbsncasecmp (Dependencies): Likewise.
956         * modules/mbsnrtowcs (Dependencies): Likewise.
957         * modules/mbspbrk (Dependencies): Likewise.
958         * modules/mbspcasecmp (Dependencies): Likewise.
959         * modules/mbsrchr (Dependencies): Likewise.
960         * modules/mbsrtowcs (Dependencies): Likewise.
961         * modules/mbsspn (Dependencies): Likewise.
962         * modules/mbsstr (Dependencies): Likewise.
963         * modules/nl_langinfo (Dependencies): Likewise.
964         * modules/quotearg (Dependencies): Likewise.
965         * modules/unicase/locale-language (Dependencies): Likewise.
966         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
967         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
968         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
969         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
970         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
971         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
972         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
973         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
974         * modules/vasnprintf-posix (Dependencies): Likewise.
975         * modules/wcrtomb (Dependencies): Likewise.
976         * modules/wcsnrtombs (Dependencies): Likewise.
977         * modules/wcsrtombs (Dependencies): Likewise.
978
979 2011-02-12  Bruno Haible  <bruno@clisp.org>
980
981         setlocale: Workaround native Windows bug.
982         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
983         succeeds but sets LC_CTYPE to "C", report a failure.
984         * tests/test-setlocale2.sh: New file.
985         * tests/test-setlocale2.c: New file.
986         * modules/setlocale-tests (Files): Add the new files.
987         (Makefile.am): Enable test-setlocale2.sh test.
988         * doc/posix-functions/setlocale.texi: Mention workaround.
989
990 2011-02-11  Bruno Haible  <bruno@clisp.org>
991
992         Tests for module 'setlocale'.
993         * modules/setlocale-tests: New file.
994         * tests/test-setlocale1.sh: New file.
995         * tests/test-setlocale1.c: New file.
996
997         New module 'setlocale'.
998         * lib/locale.in.h (setlocale): New declaration.
999         * lib/setlocale.c: New file, based on
1000         gettext/gettext-runtime/intl/setlocale.c.
1001         * m4/setlocale.m4: New file.
1002         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
1003         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
1004         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
1005         REPLACE_SETLOCALE.
1006         * modules/setlocale: New file.
1007         * tests/test-locale-c++.cc: Test the declaration of setlocale.
1008         * doc/posix-functions/setlocale.texi: Mention the new module.
1009
1010 2011-02-11  Bruno Haible  <bruno@clisp.org>
1011
1012         Prepare for locale dependent tests on mingw.
1013         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
1014         because it has the wrong locale encoding.
1015         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
1016         French_France.1252 instead of "fr".
1017         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
1018         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
1019         because it has the wrong locale encoding.
1020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
1021         native Windows, try Turkish_Turkey.65001.
1022         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
1023         Chinese_China.54936.
1024
1025         Prepare for locale dependent tests on mingw.
1026         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
1027         differently.
1028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1029         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1030         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1031         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1032
1033 2011-02-11  Eric Blake  <eblake@redhat.com>
1034
1035         strptime: avoid compiler warnings
1036         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
1037         compiler warnings about dead code.
1038         Reported by Daniel P. Berrange.
1039
1040 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
1041
1042         doc: update users.txt
1043         * users.txt: Add rcs.
1044
1045 2011-02-10  John W. Eaton  <jwe@gnu.org>
1046
1047         doc: update users.txt
1048         * users.txt: Add octave.
1049
1050 2011-02-10  Jim Meyering  <meyering@redhat.com>
1051
1052         doc: update users.txt
1053         * users.txt: Add iwhd.
1054
1055 2011-02-09  Bruno Haible  <bruno@clisp.org>
1056
1057         gnulib-tool: Make copyright notice adjustment more robust.
1058         * gnulib-tool (func_import): In sed_transform_main_lib_file,
1059         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
1060         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
1061         License".
1062         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
1063
1064 2011-02-06  Bruno Haible  <bruno@clisp.org>
1065
1066         New module 'towctrans'.
1067         * modules/towctrans: New file.
1068         * lib/wctype.in.h (towctrans): New declaration.
1069         * lib/towctrans.c: New file.
1070         * lib/towctrans-impl.h: New file.
1071         * m4/towctrans.m4: New file.
1072         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
1073         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
1074         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
1075         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
1076         * doc/posix-functions/towctrans.texi: Mention the new module.
1077
1078 2011-02-06  Bruno Haible  <bruno@clisp.org>
1079
1080         New module 'wctrans'.
1081         * modules/wctrans: New file.
1082         * lib/wctype.in.h (wctrans): New declaration.
1083         * lib/wctrans.c: New file.
1084         * lib/wctrans-impl.h: New file.
1085         * m4/wctrans.m4: New file.
1086         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
1087         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
1088         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
1089         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
1090         * doc/posix-functions/wctrans.texi: Mention the new module.
1091
1092 2011-02-06  Bruno Haible  <bruno@clisp.org>
1093
1094         New module 'iswctype'.
1095         * modules/iswctype: New file.
1096         * lib/wctype.in.h (iswctype): New declaration.
1097         * lib/iswctype.c: New file.
1098         * lib/iswctype-impl.h: New file.
1099         * m4/iswctype.m4: New file.
1100         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
1101         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
1102         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
1103         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
1104         * doc/posix-functions/iswctype.texi: Mention the new module and the
1105         HP-UX 11.00 problem.
1106
1107 2011-02-06  Bruno Haible  <bruno@clisp.org>
1108
1109         New module 'wctype'.
1110         * modules/wctype: Change to represent the wctype() substitute.
1111         * lib/wctype.in.h (wctype): New declaration.
1112         * lib/wctype.c: New file.
1113         * lib/wctype-impl.h: New file.
1114         * m4/wctype.m4: New file.
1115         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
1116         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
1117         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
1118         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
1119         * doc/posix-functions/wctype.texi: Mention the new module and the
1120         HP-UX 11.00 problem.
1121
1122 2011-02-06  Bruno Haible  <bruno@clisp.org>
1123
1124         wctype-h: Ensure wctype_t and wctrans_t are defined.
1125         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
1126         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1127         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
1128         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
1129         HAVE_WCTRANS_T.
1130         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
1131
1132 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1133
1134         flock: fix license typo
1135
1136         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
1137         omitted.
1138
1139 2011-02-08  Bruno Haible  <bruno@clisp.org>
1140
1141         Split large sed scripts, for HP-UX sed.
1142         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
1143         to avoid HP-UX limit of 99 commands, in the near future.
1144         * modules/stdlib (Makefile.am): Likewise.
1145         * modules/unistd (Makefile.am): Likewise.
1146         * modules/wchar (Makefile.am): Likewise.
1147         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1148         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
1149         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
1150
1151 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1152             Bruno Haible  <bruno@clisp.org>
1153
1154         stdlib: improve random_r modularization
1155         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
1156         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
1157         you also need the random_r module to get this material right.
1158         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
1159         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
1160         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
1161
1162 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         stdlib: don't depend on stdint
1165         * lib/stdlib.in.h: Don't include <stdint.h> merely because
1166         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
1167         be independent of whether stdint.h is needed.
1168         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
1169         here, instead of ...
1170         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
1171         struct random_data should be using the random_r module, not just
1172         the stdlib module (which wouldn't make sense: what package needs
1173         just struct random_data without also needing random_r?).
1174         * modules/stdlib (Depends-on): Remove stdint.
1175
1176         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
1177         See the thread rooted at
1178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
1179         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
1180         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
1181         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
1182         __VMS)); previously it was always included (via fcntl--.h).
1183         (getloadavg): Do not use c_strtod.  Instead, approximate it by
1184         hand; this is good enough for load averages.  Also, do not use
1185         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
1186         flags directly if available and don't bother otherwise.  (Packages
1187         that need the extra reliability should use the modules that define
1188         these flags on older platforms that lack them.)
1189         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
1190         fcntl-safer.
1191
1192 2011-02-08  Jim Meyering  <meyering@redhat.com>
1193
1194         di-set.h, ino-map.h: add multiple-inclusion guard
1195         Technically, the guard is required only for ino-map.h, due to its
1196         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
1197         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
1198         * lib/ino-map.h: Likewise.
1199
1200 2011-02-06  Bruno Haible  <bruno@clisp.org>
1201
1202         iswblank: Ensure declaration on glibc systems.
1203         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
1204         * modules/iswblank (Dependencies): Add 'extensions'.
1205         * doc/posix-functions/iswblank.texi: Document the glibc problem.
1206
1207 2011-02-06  Bruno Haible  <bruno@clisp.org>
1208
1209         New module 'iswblank'.
1210         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
1211         * modules/iswblank: New file.
1212         * modules/wctype-h (Files): Remove lib/iswblank.c.
1213         (Makefile.am): Substitute GNULIB_ISWBLANK.
1214         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
1215         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
1216         (gl_WCTYPE_H_DEFAULTS): New macro.
1217         (gl_WCTYPE_H): Require it. Remove iswblank related code.
1218         * modules/iswblank-tests: New file.
1219         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
1220         * tests/test-wctype-h.c (main): Remove iswblank tests.
1221         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
1222         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
1223         of 'wctype-h'.
1224         * NEWS: Mention the change.
1225         * modules/mbchar (Depends-on): Add iswblank.
1226
1227 2011-02-08  Bruno Haible  <bruno@clisp.org>
1228
1229         di-set tests: Refactor.
1230         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
1231         unnecessary includes.
1232         (ASSERT): Remove macro.
1233         (main): Make C90 compliant by avoiding variable declaration after
1234         statement.
1235         * modules/di-set-tests (Files): Add tests/macros.h.
1236
1237 2011-02-08  Bruno Haible  <bruno@clisp.org>
1238
1239         ino-map tests: Refactor.
1240         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
1241         unnecessary includes.
1242         (ASSERT): Remove macro.
1243         (main): Make C90 compliant by avoiding variable declaration after
1244         statement.
1245         * modules/ino-map-tests (Files): Add tests/macros.h.
1246
1247 2011-02-08  Jim Meyering  <meyering@redhat.com>
1248
1249         di-set: add "const" to a cast
1250         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
1251         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
1252
1253 2011-02-06  Bruno Haible  <bruno@clisp.org>
1254
1255         Rename module 'wctype' to 'wctype-h'.
1256         * modules/wctype-h: Renamed from modules/wctype.
1257         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
1258         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
1259         (Files, Depends-on, Makefile.am): Update.
1260         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
1261         (Files, Makefile.am): Update.
1262         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
1263         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
1264         * doc/posix-headers/wctype.texi: Update.
1265         * doc/posix-functions/iswalnum.texi: Update.
1266         * doc/posix-functions/iswalpha.texi: Update.
1267         * doc/posix-functions/iswblank.texi: Update.
1268         * doc/posix-functions/iswcntrl.texi: Update.
1269         * doc/posix-functions/iswdigit.texi: Update.
1270         * doc/posix-functions/iswgraph.texi: Update.
1271         * doc/posix-functions/iswlower.texi: Update.
1272         * doc/posix-functions/iswprint.texi: Update.
1273         * doc/posix-functions/iswpunct.texi: Update.
1274         * doc/posix-functions/iswspace.texi: Update.
1275         * doc/posix-functions/iswupper.texi: Update.
1276         * doc/posix-functions/iswxdigit.texi: Update.
1277         * doc/posix-functions/towlower.texi: Update.
1278         * doc/posix-functions/towupper.texi: Update.
1279         * NEWS: Mention the change.
1280         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
1281         * modules/mbchar (Dependencies): Likewise.
1282         * modules/mbswidth (Dependencies): Likewise.
1283         * modules/quotearg (Dependencies): Likewise.
1284         * modules/regex (Dependencies): Likewise.
1285         * modules/wcscasecmp (Dependencies): Likewise.
1286         * modules/wcsncasecmp (Dependencies): Likewise.
1287         * modules/wcwidth (Dependencies): Likewise.
1288
1289 2011-02-06  Bruno Haible  <bruno@clisp.org>
1290
1291         New module 'wcswidth'.
1292         * modules/wcswidth: New file.
1293         * lib/wchar.in.h (wcswidth): New declaration.
1294         * lib/wcswidth.c: New file.
1295         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
1296         * m4/wcswidth.m4: New file.
1297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
1298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
1299         REPLACE_WCSWIDTH.
1300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
1301         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
1302         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
1303         * doc/posix-functions/wcswidth.texi: Mention the new module.
1304
1305 2011-02-06  Bruno Haible  <bruno@clisp.org>
1306
1307         New module 'wcstok'.
1308         * modules/wcstok: New file.
1309         * lib/wchar.in.h (wcstok): New declaration.
1310         * lib/wcstok.c: New file.
1311         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
1312         * m4/wcstok.m4: New file.
1313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
1314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
1315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
1316         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
1317         * doc/posix-functions/wcstok.texi: Mention the new module.
1318
1319 2011-02-06  Bruno Haible  <bruno@clisp.org>
1320
1321         New module 'wcsstr'.
1322         * modules/wcsstr: New file.
1323         * lib/wchar.in.h (wcsstr): New declaration.
1324         * lib/wcsstr.c: New file.
1325         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
1326         * m4/wcsstr.m4: New file.
1327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
1328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
1329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
1330         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
1331         * doc/posix-functions/wcsstr.texi: Mention the new module.
1332
1333 2011-02-06  Bruno Haible  <bruno@clisp.org>
1334
1335         New module 'wcspbrk'.
1336         * modules/wcspbrk: New file.
1337         * lib/wchar.in.h (wcspbrk): New declaration.
1338         * lib/wcspbrk.c: New file.
1339         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
1340         * m4/wcspbrk.m4: New file.
1341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
1342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
1343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
1344         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
1345         * doc/posix-functions/wcspbrk.texi: Mention the new module.
1346
1347 2011-02-06  Bruno Haible  <bruno@clisp.org>
1348
1349         New module 'wcsspn'.
1350         * modules/wcsspn: New file.
1351         * lib/wchar.in.h (wcsspn): New declaration.
1352         * lib/wcsspn.c: New file.
1353         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
1354         * m4/wcsspn.m4: New file.
1355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
1356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
1357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
1358         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
1359         * doc/posix-functions/wcsspn.texi: Mention the new module.
1360
1361 2011-02-06  Bruno Haible  <bruno@clisp.org>
1362
1363         New module 'wcscspn'.
1364         * modules/wcscspn: New file.
1365         * lib/wchar.in.h (wcscspn): New declaration.
1366         * lib/wcscspn.c: New file.
1367         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
1368         * m4/wcscspn.m4: New file.
1369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
1370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
1371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
1372         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
1373         * doc/posix-functions/wcscspn.texi: Mention the new module.
1374
1375 2011-02-06  Bruno Haible  <bruno@clisp.org>
1376
1377         New module 'wcsrchr'.
1378         * modules/wcsrchr: New file.
1379         * lib/wchar.in.h (wcsrchr): New declaration.
1380         * lib/wcsrchr.c: New file.
1381         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
1382         * m4/wcsrchr.m4: New file.
1383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
1384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
1385         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
1386         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
1387         * doc/posix-functions/wcsrchr.texi: Mention the new module.
1388
1389 2011-02-06  Bruno Haible  <bruno@clisp.org>
1390
1391         New module 'wcschr'.
1392         * modules/wcschr: New file.
1393         * lib/wchar.in.h (wcschr): New declaration.
1394         * lib/wcschr.c: New file.
1395         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
1396         * m4/wcschr.m4: New file.
1397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
1398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
1399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
1400         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
1401         * doc/posix-functions/wcschr.texi: Mention the new module.
1402
1403 2011-02-06  Bruno Haible  <bruno@clisp.org>
1404
1405         New module 'wcsdup'.
1406         * modules/wcsdup: New file.
1407         * lib/wchar.in.h (wcsdup): New declaration.
1408         * lib/wcsdup.c: New file.
1409         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
1410         * m4/wcsdup.m4: New file.
1411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
1412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
1413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
1414         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
1415         * doc/posix-functions/wcsdup.texi: Mention the new module.
1416
1417 2011-02-06  Bruno Haible  <bruno@clisp.org>
1418
1419         New module 'wcsxfrm'.
1420         * modules/wcsxfrm: New file.
1421         * lib/wchar.in.h (wcsxfrm): New declaration.
1422         * lib/wcsxfrm.c: New file.
1423         * lib/wcsxfrm-impl.h: New file.
1424         * m4/wcsxfrm.m4: New file.
1425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
1426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
1427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
1428         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
1429         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
1430
1431 2011-02-06  Bruno Haible  <bruno@clisp.org>
1432
1433         New module 'wcscoll'.
1434         * modules/wcscoll: New file.
1435         * lib/wchar.in.h (wcscoll): New declaration.
1436         * lib/wcscoll.c: New file.
1437         * lib/wcscoll-impl.h: New file.
1438         * m4/wcscoll.m4: New file.
1439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
1440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
1441         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
1442         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
1443         * doc/posix-functions/wcscoll.texi: Mention the new module.
1444
1445 2011-02-06  Bruno Haible  <bruno@clisp.org>
1446
1447         New module 'wcsncasecmp'.
1448         * modules/wcsncasecmp: New file.
1449         * lib/wchar.in.h (wcsncasecmp): New declaration.
1450         * lib/wcsncasecmp.c: New file.
1451         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
1452         * m4/wcsncasecmp.m4: New file.
1453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
1454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
1455         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
1456         HAVE_WCSNCASECMP.
1457         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
1458         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
1459
1460 2011-02-06  Bruno Haible  <bruno@clisp.org>
1461
1462         New module 'wcscasecmp'.
1463         * modules/wcscasecmp: New file.
1464         * lib/wchar.in.h (wcscasecmp): New declaration.
1465         * lib/wcscasecmp.c: New file.
1466         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
1467         * m4/wcscasecmp.m4: New file.
1468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
1469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
1470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
1471         HAVE_WCSCASECMP.
1472         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
1473         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
1474
1475 2011-02-05  Bruno Haible  <bruno@clisp.org>
1476
1477         New module 'wcsncmp'.
1478         * modules/wcsncmp: New file.
1479         * lib/wchar.in.h (wcsncmp): New declaration.
1480         * lib/wcsncmp.c: New file.
1481         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
1482         * m4/wcsncmp.m4: New file.
1483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
1484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
1485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
1486         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
1487         * doc/posix-functions/wcsncmp.texi: Mention the new module.
1488
1489 2011-02-05  Bruno Haible  <bruno@clisp.org>
1490
1491         New module 'wcscmp'.
1492         * modules/wcscmp: New file.
1493         * lib/wchar.in.h (wcscmp): New declaration.
1494         * lib/wcscmp.c: New file.
1495         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
1496         * m4/wcscmp.m4: New file.
1497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
1498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
1499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
1500         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
1501         * doc/posix-functions/wcscmp.texi: Mention the new module.
1502
1503 2011-02-05  Bruno Haible  <bruno@clisp.org>
1504
1505         New module 'wcsncat'.
1506         * modules/wcsncat: New file.
1507         * lib/wchar.in.h (wcsncat): New declaration.
1508         * lib/wcsncat.c: New file.
1509         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
1510         * m4/wcsncat.m4: New file.
1511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
1512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
1513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
1514         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
1515         * doc/posix-functions/wcsncat.texi: Mention the new module.
1516
1517 2011-02-05  Bruno Haible  <bruno@clisp.org>
1518
1519         New module 'wcscat'.
1520         * modules/wcscat: New file.
1521         * lib/wchar.in.h (wcscat): New declaration.
1522         * lib/wcscat.c: New file.
1523         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
1524         * m4/wcscat.m4: New file.
1525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
1526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
1527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
1528         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
1529         * doc/posix-functions/wcscat.texi: Mention the new module.
1530
1531 2011-02-05  Bruno Haible  <bruno@clisp.org>
1532
1533         New module 'wcpncpy'.
1534         * modules/wcpncpy: New file.
1535         * lib/wchar.in.h (wcpncpy): New declaration.
1536         * lib/wcpncpy.c: New file.
1537         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
1538         * m4/wcpncpy.m4: New file.
1539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
1540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
1541         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
1542         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
1543         * doc/posix-functions/wcpncpy.texi: Mention the new module.
1544
1545 2011-02-05  Bruno Haible  <bruno@clisp.org>
1546
1547         New module 'wcsncpy'.
1548         * modules/wcsncpy: New file.
1549         * lib/wchar.in.h (wcsncpy): New declaration.
1550         * lib/wcsncpy.c: New file.
1551         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
1552         * m4/wcsncpy.m4: New file.
1553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
1554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
1555         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
1556         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
1557         * doc/posix-functions/wcsncpy.texi: Mention the new module.
1558
1559 2011-02-05  Bruno Haible  <bruno@clisp.org>
1560
1561         New module 'wcpcpy'.
1562         * modules/wcpcpy: New file.
1563         * lib/wchar.in.h (wcpcpy): New declaration.
1564         * lib/wcpcpy.c: New file.
1565         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
1566         * m4/wcpcpy.m4: New file.
1567         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
1568         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
1569         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
1570         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
1571         * doc/posix-functions/wcpcpy.texi: Mention the new module.
1572
1573 2011-02-05  Bruno Haible  <bruno@clisp.org>
1574
1575         New module 'wcscpy'.
1576         * modules/wcscpy: New file.
1577         * lib/wchar.in.h (wcscpy): New declaration.
1578         * lib/wcscpy.c: New file.
1579         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
1580         * m4/wcscpy.m4: New file.
1581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
1582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
1583         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
1584         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
1585         * doc/posix-functions/wcscpy.texi: Mention the new module.
1586
1587 2011-02-05  Bruno Haible  <bruno@clisp.org>
1588
1589         New module 'wcsnlen'.
1590         * modules/wcsnlen: New file.
1591         * lib/wchar.in.h (wcsnlen): New declaration.
1592         * lib/wcsnlen.c: New file.
1593         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
1594         * m4/wcsnlen.m4: New file.
1595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
1596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
1597         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
1598         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
1599         * doc/posix-functions/wcsnlen.texi: Mention the new module.
1600
1601 2011-02-05  Bruno Haible  <bruno@clisp.org>
1602
1603         New module 'wcslen'.
1604         * modules/wcslen: New file.
1605         * lib/wchar.in.h (wcslen): New declaration.
1606         * lib/wcslen.c: New file.
1607         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
1608         * m4/wcslen.m4: New file.
1609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
1610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
1611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
1612         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
1613         * doc/posix-functions/wcslen.texi: Mention the new module.
1614
1615 2011-02-05  Bruno Haible  <bruno@clisp.org>
1616
1617         New module 'wmemset'.
1618         * modules/wmemset: New file.
1619         * lib/wchar.in.h (wmemset): New declaration.
1620         * lib/wmemset.c: New file.
1621         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
1622         * m4/wmemset.m4: New file.
1623         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
1624         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
1625         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
1626         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
1627         * doc/posix-functions/wmemset.texi: Mention the new module.
1628
1629 2011-02-05  Bruno Haible  <bruno@clisp.org>
1630
1631         New module 'wmemmove'.
1632         * modules/wmemmove: New file.
1633         * lib/wchar.in.h (wmemmove): New declaration.
1634         * lib/wmemmove.c: New file.
1635         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
1636         * m4/wmemmove.m4: New file.
1637         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
1638         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
1639         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
1640         HAVE_WMEMMOVE.
1641         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
1642         * doc/posix-functions/wmemmove.texi: Mention the new module.
1643
1644 2011-02-05  Bruno Haible  <bruno@clisp.org>
1645
1646         New module 'wmemcpy'.
1647         * modules/wmemcpy: New file.
1648         * lib/wchar.in.h (wmemcpy): New declaration.
1649         * lib/wmemcpy.c: New file.
1650         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
1651         * m4/wmemcpy.m4: New file.
1652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
1653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
1654         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
1655         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
1656         * doc/posix-functions/wmemcpy.texi: Mention the new module.
1657
1658 2011-02-05  Bruno Haible  <bruno@clisp.org>
1659
1660         New module 'wmemcmp'.
1661         * modules/wmemcmp: New file.
1662         * lib/wchar.in.h (wmemcmp): New declaration.
1663         * lib/wmemcmp.c: New file.
1664         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
1665         * m4/wmemcmp.m4: New file.
1666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
1667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
1668         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
1669         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
1670         * doc/posix-functions/wmemcmp.texi: Mention the new module.
1671
1672 2011-02-07  Jim Meyering  <meyering@redhat.com>
1673
1674         di-set, ino-map: new modules, from coreutils
1675         * lib/di-set.c: New file.
1676         * lib/di-set.h: Likewise.
1677         * lib/ino-map.c: Likewise.
1678         * lib/ino-map.h: Likewise.
1679         * modules/di-set: Likewise.
1680         * modules/di-set-tests: Likewise.
1681         * modules/ino-map: Likewise.
1682         * modules/ino-map-tests: Likewise.
1683         * tests/test-di-set.c: Likewise.
1684         * tests/test-ino-map.c: Likewise.
1685
1686 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1687
1688         getloadavg: merge minor changes from Emacs
1689
1690         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
1691         (getloadavg): Use memset, not bzero.
1692
1693         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
1694         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1695         clash (bug#86).
1696
1697 2010-11-14  Bruno Haible  <bruno@clisp.org>
1698
1699         Allow multiple gnulib generated replacements to coexist.
1700         * lib/getopt.in.h (struct option): Avoid identical redefinition.
1701         * lib/inttypes.in.h (imaxdiv_t): Likewise.
1702         * lib/langinfo.in.h (nl_item): Likewise.
1703         * lib/math.in.h (_NaN, NAN): Likewise.
1704         * lib/netdb.in.h (struct addrinfo): Likewise.
1705         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
1706         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
1707         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
1708         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
1709         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
1710         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
1711         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
1712         pthread_mutexattr_init, pthread_mutexattr_settype,
1713         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
1714         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
1715         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
1716         pthread_spin_trylock, pthread_spin_unlock): Likewise.
1717         * lib/sched.in.h (struct sched_param): Likewise.
1718         * lib/se-selinux.in.h (security_class_t, security_context_t,
1719         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
1720         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
1721         lsetfilecon, fsetfilecon, security_check_context,
1722         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
1723         Likewise.
1724         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
1725         Likewise.
1726         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
1727         _gl_function_taking_int_returning_void_t, union sigval,
1728         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
1729         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
1730         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1731         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
1732         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
1733         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
1734         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
1735         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
1736         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
1737         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
1738         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
1739         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
1740         socklen_t, rpl_fd_isset): Likewise.
1741         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
1742         * lib/sys_time.in.h (struct timeval): Likewise.
1743         * lib/sys_times.in.h (struct tms): Likewise.
1744         * lib/sys_utsname.in.h (struct utsname):
1745         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
1746         * lib/unistd.in.h (getpagesize): Likewise.
1747         * lib/wchar.in.h (mbstate_t): Likewise.
1748         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1749         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
1750         towlower, towupper): Likewise.
1751         Reported by Sam Steingold <sds@gnu.org>.
1752
1753 2011-02-05  Eric Blake  <eblake@redhat.com>
1754
1755         unsetenv: work around Haiku issues
1756         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
1757         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
1758
1759 2010-12-30  Bruce Korb  <bkorb@gnu.org>
1760
1761         libposix: avoid calling error() within libposix
1762         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
1763         is defined.
1764
1765 2011-02-05  Eric Blake  <eblake@redhat.com>
1766
1767         strerror_r-posix: port to cygwin
1768         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
1769         implementation.
1770         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
1771         * tests/test-strerror_r.c (main): Fix test.
1772         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1773         issue.
1774
1775 2011-02-05  Bruno Haible  <bruno@clisp.org>
1776
1777         New module 'wmemchr'.
1778         * modules/wmemchr: New file.
1779         * lib/wchar.in.h (wmemchr): New declaration.
1780         * lib/wmemchr.c: New file.
1781         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
1782         * m4/wmemchr.m4: New file.
1783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
1784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
1785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
1786         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
1787         * doc/posix-functions/wmemchr.texi: Mention the new module.
1788
1789 2011-02-04  Eric Blake  <eblake@redhat.com>
1790
1791         fdopendir: detect FreeBSD bug
1792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
1793         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
1794
1795 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1796
1797         stdbool: do not define HAVE_STDBOOL_H
1798         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
1799         AC_HEADER_STDBOOL.  All uses changed.  Do not define
1800         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
1801         imported from the latest Autoconf git.  It was motivated by Emacs,
1802         which uses gnulib but does not need HAVE_STDBOOL_H.
1803
1804 2011-02-04  Bruno Haible  <bruno@clisp.org>
1805
1806         wcsnrtombs: Prepare for new module wwcsnrtombs.
1807         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
1808         * lib/wcsnrtombs.c: Include it.
1809         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
1810
1811         wcsrtombs: Prepare for new module wwcsrtombs.
1812         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
1813         * lib/wcsrtombs.c: Include it.
1814         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
1815
1816         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
1817         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
1818         * lib/mbsnrtowcs.c: Include it.
1819         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
1820
1821         mbsrtowcs: Prepare for new module mbsrtowwcs.
1822         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
1823         * lib/mbsrtowcs.c: Include it.
1824         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
1825
1826 2011-02-04  Bruno Haible  <bruno@clisp.org>
1827
1828         vasnprintf: Reduce use of malloc for small format strings.
1829         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
1830         (arguments): Add room for the first 7 arguments.
1831         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
1832         (char_directives, u8_directives, u16_directives, u32_directives): Add
1833         room for the first 7 directives.
1834         * lib/printf-parse.c: Include <string.h>.
1835         (PRINTF_PARSE): Change memory handling code so that it uses the first
1836         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
1837         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
1838         Reported by Pádraig Brady <P@draigbrady.com>.
1839
1840 2011-01-31  Eric Blake  <eblake@redhat.com>
1841
1842         dup2: work around Haiku bug
1843         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
1844         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
1845         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1846         * tests/test-dup2.c (main): Enhance test.
1847
1848 2011-01-31  Simon Josefsson  <simon@josefsson.org>
1849
1850         doc: off_t is not available in eglibc 2.11.2 stdio.h.
1851         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
1852         declared by eglibc 2.11.2.
1853         * lib/stdio.in.h: Likewise.
1854
1855 2011-01-31  Eric Blake  <eblake@redhat.com>
1856
1857         ignore-value: add missing test dependency
1858         * tests/test-ignore-value.c: Revert previous change; stdio.h
1859         provides off_t.
1860         * modules/ignore-value-tests (Depends-on): Add missing dependency.
1861
1862 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1863
1864         mktime: clarify long_int width checking
1865         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
1866         the top level, to make it clearer that the assumption about
1867         long_int width is being checked.  See
1868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
1869
1870 2011-01-30  Simon Josefsson  <simon@josefsson.org>
1871
1872         ignore-value: Fix self-test.
1873         * tests/test-ignore-value.c: Include sys/types.h for off_t.
1874
1875 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         TYPE_MAXIMUM: avoid theoretically undefined behavior
1878         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
1879         negative number, which the C Standard says has undefined behavior.
1880         In practice this is not a problem, but might as well do it by the book.
1881         Reported by Rich Felker and Eric Blake; see
1882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
1883         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
1884         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1886         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
1887         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1888         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
1889
1890         mktime: #undef mktime before #defining it
1891         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
1892
1893         mktime: systematically normalize tm_isdst comparisons
1894         * lib/mktime.c (isdst_differ): New function.
1895         (__mktime_internal): Use it systematically for all isdst comparisons.
1896         This completes the fix for libc BZ #6723, and removes the need for
1897         normalizing tm_isdst.  See
1898         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
1899         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
1900
1901         mktime: fix some integer overflow issues and sidestep the rest
1902
1903         This was prompted by a bug report by Benjamin Lindner for MinGW
1904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
1905         His bug is due to signed integer overflow (0 - INT_MIN), and I
1906         I scanned through mktime.c looking for other integer overflow
1907         problems, fixing all the bugs I found.
1908
1909         Although the C Standard says the resulting code is still not safe
1910         in the presence of integer overflow, in practice it should be good
1911         enough for all real-world two's-complement implementations, except
1912         for debugging environments that deliberately trap on integer
1913         overflow (e.g., gcc -ftrapv).
1914
1915         * lib/mktime.c (WRAPV): New macro.
1916         (SHR): Also check that long_int and time_t shift right in the
1917         usual way, before using the fast-but-unportable method.
1918         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
1919         used.  The code already assumed two's complement, so there's
1920         no need to test for alternatives.  All uses removed.
1921         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
1922         the C standard.  Problem reported by Rich Felker in
1923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
1924         (twos_complement_arithmetic): Also check long_int and time_t.
1925         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
1926         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
1927         (__mktime_internal): Avoid integer overflow with unary subtraction
1928         in two instances where -1 - X is an adequate replacement for -X,
1929         since the calculations are approximate.
1930
1931 2011-01-29  Eric Blake  <eblake@redhat.com>
1932
1933         mktime: avoid infinite loop
1934         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
1935         type; behavior is still undefined but portable to all known targets.
1936         Reported by Rich Felker.
1937
1938 2011-01-29  Simon Josefsson  <simon@josefsson.org>
1939
1940         rename, unlink, same-inode: Relicense.
1941         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
1942         * modules/unlink (License): Likewise.
1943         * modules/same-inode (License): Likewise.
1944
1945 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1946
1947         mktime: avoid problems on NetBSD 5 / i386
1948         * lib/mktime.c (long_int): New type.  This works around a problem
1949         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
1950         but time_t is 64 bits, and where I expect the existing code is
1951         wrong in some cases.
1952         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
1953         (ydhms_diff): Bring back the compile-time check for wide-enough
1954         year and yday.
1955
1956         mktime: fix misspelling in comment
1957         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
1958         This merges all recent glibc changes of importance.
1959
1960 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1961
1962         move-if-change: cope with concurrent mv of identical file.
1963         * build-aux/move-if-change (CMPPROG): Accept environment
1964         variable as an override for `cmp'.
1965         (usage): Document CMPPROG.
1966         Adjust comparison to drop stdout.  Cope with failure of mv if
1967         the target file exists and is identical to the source, for
1968         parallel builds.
1969         Report from H.J. Lu against binutils in PR binutils/12283.
1970
1971 2011-01-28  Bruce Korb  <bkorb@gnu.org>
1972
1973         * users.txt: Mention sharutils.
1974
1975 2011-01-28  Simon Josefsson  <simon@josefsson.org>
1976
1977         * users.txt: Mention OATH Toolkit.
1978
1979 2011-01-27  Bruno Haible  <bruno@clisp.org>
1980
1981         Prepare for supporting FreeBSD 10.
1982         * build-aux/config.libpath: Remove handling of freebsd1*.
1983
1984 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
1985
1986         Prepare for supporting FreeBSD 10.
1987         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
1988         match FreeBSD 10.0.
1989
1990 2011-01-27  Bruno Haible  <bruno@clisp.org>
1991
1992         vma-iter, get-rusage-as: Add OpenBSD support.
1993         * modules/vma-iter (configure.ac): Test for mquery.
1994         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
1995         * lib/vma-iter.c: Include <sys/mman.h>.
1996         (vma_iterate): Add an implementation based on mquery().
1997         * lib/resource-ext.h (get_rusage_as): Update comments.
1998         * lib/get-rusage-as.c: Likewise.
1999         * lib/get-rusage-data.c: Likewise.
2000
2001 2011-01-26  Karl Berry  <karl@gnu.org>
2002
2003         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
2004         variables to make it easier to override the makeinfo program used.
2005
2006 2011-01-26  Eric Blake  <eblake@redhat.com>
2007
2008         fcntl: work around Haiku F_DUPFD bugs
2009         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
2010         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
2011         cloexec bit on duplication.
2012         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
2013
2014 2011-01-26  Bruno Haible  <bruno@clisp.org>
2015
2016         Enable memory leak tests on AIX.
2017         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
2018         * tests/test-fprintf-posix3.c (main): Likewise.
2019
2020 2011-01-26  Bruno Haible  <bruno@clisp.org>
2021
2022         Tests for module 'get-rusage-data'.
2023         * modules/get-rusage-data-tests: New file.
2024         * tests/test-get-rusage-data.c: New file.
2025
2026         New module 'get-rusage-data'.
2027         * lib/resource-ext.h (get_rusage_data): New declaration.
2028         * lib/get-rusage-data.c: New file.
2029         * modules/get-rusage-data: New file.
2030
2031 2011-01-25  Bruno Haible  <bruno@clisp.org>
2032
2033         get-rusage-as: Allow for easier testing.
2034         * lib/resource-ext.h (get_rusage_as): Add comment.
2035         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
2036         (main): New function for interactive testing.
2037
2038 2011-01-25  Bruno Haible  <bruno@clisp.org>
2039
2040         vma-iter: Treat Haiku like BeOS.
2041         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
2042         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
2043
2044 2011-01-25  Eric Blake  <eblake@redhat.com>
2045
2046         c-stack: fix regression on cygwin when libsigsegv is present
2047         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
2048
2049 2011-01-24  Bruno Haible  <bruno@clisp.org>
2050
2051         vma-iter: Avoid empty intervals.
2052         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
2053         on an empty interval.
2054
2055 2011-01-24  Jim Meyering  <meyering@redhat.com>
2056
2057         u64: remove unnecessary #include
2058         * lib/u64.h: Don't include <stddef.h>.  It was not used.
2059
2060 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         Allow the user to avoid the GNULIB_TEST_* macros.
2063         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
2064
2065 2011-01-23  Bruno Haible  <bruno@clisp.org>
2066
2067         New module 'vma-iter'.
2068         * lib/vma-iter.h: New file.
2069         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
2070         * modules/vma-iter: New file.
2071         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
2072         for get_rusage_as_via_iterator.
2073         (vma_iterate_callback): New function.
2074         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
2075         * modules/get-rusage-as (Depends-on): Add vma-iter.
2076
2077 2011-01-23  Bruno Haible  <bruno@clisp.org>
2078
2079         uninorm: Tweak includes.
2080         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
2081         Reported by Jim Meyering.
2082
2083 2011-01-23  Bruno Haible  <bruno@clisp.org>
2084
2085         get-rusage-as: Improve on NetBSD.
2086         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
2087         /proc, like on FreeBSD.
2088
2089 2011-01-23  Jim Meyering  <meyering@redhat.com>
2090
2091         xreadlink.h: remove unnecessary #include
2092         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
2093
2094         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
2095         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
2096
2097 2011-01-23  Bruno Haible  <bruno@clisp.org>
2098
2099         get-rusage-as: Fix bug.
2100         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
2101         original limit when aborting the first loop.
2102
2103 2011-01-23  Bruno Haible  <bruno@clisp.org>
2104
2105         wctype: Ensure valid C syntax.
2106         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
2107         unconditionally, instead of gl_NEXT_HEADERS conditionally.
2108
2109 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2110
2111         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
2112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
2113         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
2114         as they are needed only for configure's test case.
2115         This removes two unnecessary symbols from config.h.
2116
2117         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
2118         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
2119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
2120         AC_CHECK_HEADERS_ONCE on a header that we also invoke
2121         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
2122         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
2123         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
2124         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2125         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2126         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2127         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2129         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2130         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2131         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2133         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2134         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
2135
2136 2011-01-21  Eric Blake  <eblake@redhat.com>
2137
2138         maintainer-makefile: work with older git for submodule check
2139         * top/maint.mk (public-submodule-commit): Rewrite to avoid
2140         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
2141         Reported by Matthias Bolte.
2142
2143         bootstrap: minor portability fixes
2144         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
2145         (usage): Omit leading capital and trailing . on help phrases, per
2146         GNU Coding Standards.
2147         (check_versions, top level): Prefix messages with script name.
2148
2149 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
2150
2151         bootstrap: support --no-git option
2152         * build-aux/bootstrap: Add --no-git option, to be used when
2153         --gnulib-srcdir points to the exact desired checkout.
2154
2155 2011-01-21  Eric Blake  <eblake@redhat.com>
2156
2157         strerror_r-posix: work with glibc 2.13
2158         * lib/strerror_r.c (strerror_r): Fix return type.
2159
2160 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2161             Bruno Haible  <bruno@clisp.org>
2162
2163         uN_strstr: New unit tests.
2164         * modules/unistr/u8-strstr-tests: New file.
2165         * modules/unistr/u16-strstr-tests: New file.
2166         * modules/unistr/u32-strstr-tests: New file.
2167         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
2168         * tests/unistr/test-u8-strstr.c: New file.
2169         * tests/unistr/test-u16-strstr.c: New file.
2170         * tests/unistr/test-u32-strstr.c: New file.
2171
2172 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2173             Bruno Haible  <bruno@clisp.org>
2174
2175         Make uN_strstr functions O(n) worst-case.
2176         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
2177         16-bit and 32-bit unit cases, use the unibyte algorithm from
2178         lib/mbsstr.c.
2179         * lib/unistr/u8-strstr.c: Include <string.h>.
2180         (UNIT_IS_UINT8_T): New macro.
2181         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
2182         (U_STRLEN, U_STRNLEN): New macros.
2183         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
2184         (U_STRLEN, U_STRNLEN): New macros.
2185         * modules/unistr/u8-strstr (Depends-on): Add strstr.
2186         (configure.ac): Update required libunistring version.
2187         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
2188         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
2189         malloca.
2190         (configure.ac): Update required libunistring version.
2191         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
2192         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
2193         malloca.
2194         (configure.ac): Update required libunistring version.
2195
2196 2011-01-21  Pádraig Brady  <P@draigBrady.com>
2197             Bruno Haible  <bruno@clisp.org>
2198
2199         Prepare for faster uN_strstr functions.
2200         * lib/str-kmp.h: Support definable UNITs.
2201         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
2202         needle_len argument.
2203         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
2204         * lib/mbscasestr.c (mbscasestr): Likewise.
2205
2206 2011-01-21  Pádraig Brady <P@draigBrady.com>
2207
2208         malloca-tests: make faster by unsetting MALLOC_PERTURB_
2209         * tests/test-malloca.c (main): Unset the environment variable
2210         to greatly speed up the test.
2211         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
2212         * modules/malloca-tests: Depend on unsetenv.
2213
2214 2011-01-21  Pádraig Brady <P@draigBrady.com>
2215
2216         ignore-value: remove stdint dependency
2217         * lib/ignore-value.h: Remove <stdint.h>
2218         * modules/ignore-value: Remove stdint dependency.
2219
2220 2011-01-21  Jim Meyering  <meyering@redhat.com>
2221
2222         maint.mk: adjust variable name to be consistent with other gl_ vars
2223         * top/maint.mk (gl_public_submodule_commit): Rename the variable
2224         to be lower case.
2225
2226 2011-01-20  Jim Meyering  <meyering@redhat.com>
2227
2228         maint.mk: make "check" depend on public-submodule-commit by default
2229         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
2230
2231 2011-01-20  Bruno Haible  <bruno@clisp.org>
2232
2233         mbfile, mbiter: Complete change from 2008-12-21.
2234         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
2235         * m4/mbiter.m4 (gl_MBITER): Likewise.
2236
2237 2011-01-20  Jim Meyering  <meyering@redhat.com>
2238
2239         init.sh: insert space between each function name and "()"
2240         * tests/init.sh: Make it a little easier to see that a function's
2241         name is "warn_", and not "warn" when looking at the first part of
2242         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
2243
2244 2011-01-20  Jim Meyering  <meyering@redhat.com>
2245
2246         mountlist: clean up code formatting
2247         * lib/mountlist.c (read_file_system_list): Split a long line,
2248         correct bracing style, use NULL in place of "(struct statfs *)0",
2249         don't parenthesize return value, add spaces around "=" and after
2250         ";-in-for-stmt".
2251
2252 2011-01-14  Markus Duft <mduft@gentoo.org>
2253
2254         mountlist: add support for Interix
2255         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
2256         Apply statvfs to all entries of /dev/fs.
2257         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
2258         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
2259
2260 2011-01-20  Jim Meyering  <meyering@redhat.com>
2261
2262         maint.mk: improve the public-submodule-commit rule
2263         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
2264         to suppress printing of its commands... unless V=1.
2265         Add git submodule's --quiet option to suppress printing of e.g.,
2266         "Entering gnulib" output.
2267         "cd" into $(srcdir) before running git submodule.
2268
2269 2011-01-20  Bruno Haible  <bruno@clisp.org>
2270
2271         include_next: Fix bug introduced on 2011-01-18.
2272         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
2273         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
2274         ac_cv_header_... variable if the second argument is not 'check'.
2275         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
2276         gl_NEXT_HEADERS_INTERNAL.
2277
2278 2011-01-20  Bruno Haible  <bruno@clisp.org>
2279
2280         Allow the user to avoid the GNULIB_TEST_* macros.
2281         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
2282         Suggested by Paul Eggert.
2283
2284 2011-01-14  Jim Meyering  <meyering@redhat.com>
2285
2286         bootstrap: avoid failure when there is no .gitmodules file
2287         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
2288         has been assigned to, even when its value is the empty string.
2289         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
2290         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
2291         Reported by John W. Eaton <jwe@gnu.org>.
2292
2293 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
2294
2295         assume <ctype.h>, ..., <time.h> exist
2296         For years gnulib has been assuming the existence of the headers
2297         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
2298         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
2299         them, since they don't appear to be needed.
2300         * README (Portability guidelines): Document this.
2301         * lib/flock.c: Assume <fcntl.h> exists.
2302         * lib/regex_internal.h: Assume <locale.h> exists.
2303         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
2304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
2305         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
2306         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
2307         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
2308         * m4/regex.m4 (gl_REGEX): Likewise.
2309         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
2310         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
2311         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
2312         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
2313         * tests/test-argp.c: Likewise.
2314         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
2315
2316         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
2317         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
2318         AA_APPLE_UNIVERSAL_BUILD.  See
2319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
2320         * NEWS: Document this.
2321
2322 2011-01-19  Eric Blake  <eblake@redhat.com>
2323
2324         c-stack: assume stack overflow if SA_SIGINFO unsupported
2325         * lib/c-stack.c (SIGACTION_WORKS): Rename...
2326         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
2327         sigaction will work.
2328         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
2329         behavior match Linux.
2330         * tests/test-c-stack.c (main): Prefer NULL for pointers.
2331
2332         stdbool-tests: accomodate Haiku
2333         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
2334
2335         binary-io: fix O_TEXT on Haiku
2336         * modules/binary-io (Depends-on): Add fcntl-h.
2337         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
2338         than blindly undefining O_TEXT.
2339         Reported by Scott McCreary.
2340
2341 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         include_next: do not check for standard headers like stddef.h
2344
2345         I found this problem when modifying Emacs to use gnulib.
2346         I noticed that it added HAVE_STDDEF_H to config.h, even though
2347         gnulib always assumes <stddef.h> exists as per README and this
2348         symbol is unnecessary.
2349         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
2350         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
2351         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
2352         faster for headers like stddef.h that are known to exist.
2353         (gl_CHECK_NEXT_HEADERS): Use it.
2354         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
2355         rather than gl_CHECK_NEXT_HEADERS.
2356         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
2357         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
2358
2359 2011-01-18  Eric Blake  <eblake@redhat.com>
2360
2361         ansi-c++-opt: skip C++ dependency style if C++ is unused
2362         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
2363         tests when we know C++ compilation is not desired.
2364         Reported by Scott McCreary.
2365
2366 2011-01-18  Bruno Haible  <bruno@clisp.org>
2367
2368         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
2369         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
2370         (main): Perform test also when getrlimit and setrlimit don't exist or
2371         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
2372         limiting the address space size using setrlimit, compare the address
2373         space size before and after the the test.
2374         * tests/test-dprintf-posix2.c: Likewise.
2375         * tests/test-fprintf-posix3.sh: Update skip messages.
2376         * tests/test-dprintf-posix2.sh: Likewise.
2377         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
2378         * modules/dprintf-posix-tests (Depends-on): Likewise.
2379         Reported by Bruce Korb <bkorb@gnu.org> and
2380         Gary V. Vaughan <gary@gnu.org>.
2381
2382 2011-01-18  Bruno Haible  <bruno@clisp.org>
2383
2384         get-rusage-as: Improvement for Cygwin.
2385         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
2386         areas that are merely reserved.
2387
2388 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         strftime: remove dependencies on multibyte modules
2391
2392         strftime depended on mbrlen, mbsinit, and wchar, but these modules
2393         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
2394         only if __osf__ is defined, and I suspect OSF doesn't need these
2395         other modules.  If my guess is wrong, we'll need to come up with a
2396         variant of strftime that doesn't need the multibyte modules.
2397
2398         I discovered this problem when attempting modify Emacs to use the
2399         strftime module.  With the previous gnulib, this caused Emacs to
2400         need 31 new files, ranging from lib/config.charset to
2401         m4/wint_t.m4.  This was overkill and I expect would be offputting
2402         to the Emacs maintainers.  After this change, only 6 new files are
2403         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
2404         stdbool.m4, and tm_gmtoff.m4.
2405
2406         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
2407         Suggested by Bruno Haible in
2408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
2409         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
2410         and do not check for wchar.h.
2411         * modules/strftime (Files): Remove m4/mbstate_t.m4.
2412         (Depends-on): Remove mbrlen, mbsinit, wchar.
2413
2414 2011-01-18  Bruno Haible  <bruno@clisp.org>
2415
2416         Tests for module 'get-rusage-as'.
2417         * modules/get-rusage-as-tests: New file.
2418         * tests/test-get-rusage-as.c: New file.
2419
2420         New module 'get-rusage-as'.
2421         * modules/get-rusage-as: New file.
2422         * lib/resource-ext.h: New file.
2423         * lib/get-rusage-as.c: New file.
2424
2425 2011-01-17  Eric Blake  <eblake@redhat.com>
2426
2427         sigaction: relax license from LGPLv3+ to LGPLv2+
2428         * modules/sigaction (License): Relax to LGPLv2+.
2429
2430 2011-01-14  Bruno Haible  <bruno@clisp.org>
2431
2432         filemode: Make function declarations usable in C++ mode.
2433         * lib/filemode.h: Enclose function declarations in extern "C" block.
2434         Reported by John W. Eaton <jwe@gnu.org>.
2435
2436 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
2437
2438         save-cwd: no longer include "xgetcwd.h"
2439         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
2440         This avoids a compilation failure in projects that use save-cwd
2441         without also using the xgetcwd module.
2442
2443 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2444
2445         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
2446         This is so that a program like Emacs, which needs only dtoastr,
2447         does not have to bother with distributing and compiling ftoastr
2448         and ldtoastr.
2449         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
2450         * modules/dtoastr, modules/ldtoastr: New files.
2451         * modules/ftoastr: Now works just for 'float'.
2452         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
2453         (Makefile.am): Remove ftoastr.h (not needed and no effect),
2454         dtoastr.c, ldtoastr.c.
2455
2456 2011-01-11  Jim Meyering  <meyering@redhat.com>
2457
2458         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
2459         There is no need to work around the lack of the fchdir function,
2460         since gnulib can now provide a replacement when required.
2461         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
2462         * modules/save-cwd (Depends-on): Add fchdir.
2463
2464 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
2465
2466         openat, save-cwd: avoid xmalloc
2467
2468         This removes a direct (but undocumented) dependency of openat on
2469         xalloc, along with an indirect dependency via save-cwd.  It also
2470         removes a dependency of save-cwd on xgetcwd, and thereby
2471         indirectly on xalloc.  This change causes the openat substitute
2472         to fall back on save_cwd when memory is tight, and for save_cwd to
2473         fail instead of dying when memory is tight, but that's good enough.
2474         Problem and initial idea for fix reported by Bastien Roucaries in
2475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
2476
2477         * lib/openat-proc.c: Include stdlib.h (for malloc), not
2478         xalloc.h (for xmalloc).
2479         (openat_proc_name): Use malloc, not xmalloc.
2480         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
2481         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
2482
2483         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
2484         This avoids heap allocation for file names whose lengths are in
2485         the range 512..1023, with the upper bound increasing to at most
2486         4031 depending on the platform's PATH_MAX.  (We do not want
2487         pathmax.h here as it might supply a non-constant PATH_MAX.)
2488         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
2489         Perhaps they should be moved to malloca.h?
2490         (OPENAT_BUFFER_SIZE): Use them.
2491
2492 2011-01-10  Bruno Haible  <bruno@clisp.org>
2493
2494         doc: Update users.txt.
2495         * users.txt: Add recutils.
2496
2497 2011-01-09  Karl Berry  <karl@gnu.org>
2498
2499         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
2500
2501         * doc/configmake.texi: New file.
2502         * doc/gnulib.texi: Include it.
2503         * modules/configmake: Move documentation from here.
2504
2505 2011-01-09  Bruno Haible  <bruno@clisp.org>
2506
2507         Update to Unicode 6.0.0.
2508         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
2509         (get_lbp): Update for Unicode 6.0.0.
2510         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
2511         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
2512         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
2513         U+11001, U+11038..U+11046. Remove U+06DE.
2514         (uc_width): Fix bounds of planes.
2515         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2516         lib/uniwidth/width.c.
2517         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
2518         trailing whitespace removed.
2519         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
2520         without comments, but with the original copyright notice.
2521         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
2522         * lib/unicase/ignorable.h: Likewise.
2523         * lib/unicase/tocasefold.h: Likewise.
2524         * lib/unicase/tolower.h: Likewise.
2525         * lib/unicase/totitle.h: Likewise.
2526         * lib/unicase/toupper.h: Likewise.
2527         * lib/unictype/bidi_of.h: Likewise.
2528         * lib/unictype/blocks.h: Likewise.
2529         * lib/unictype/categ_C.h: Likewise.
2530         * lib/unictype/categ_Cn.h: Likewise.
2531         * lib/unictype/categ_L.h: Likewise.
2532         * lib/unictype/categ_Ll.h: Likewise.
2533         * lib/unictype/categ_Lm.h: Likewise.
2534         * lib/unictype/categ_Lo.h: Likewise.
2535         * lib/unictype/categ_Lu.h: Likewise.
2536         * lib/unictype/categ_M.h: Likewise.
2537         * lib/unictype/categ_Mc.h: Likewise.
2538         * lib/unictype/categ_Me.h: Likewise.
2539         * lib/unictype/categ_Mn.h: Likewise.
2540         * lib/unictype/categ_N.h: Likewise.
2541         * lib/unictype/categ_Nd.h: Likewise.
2542         * lib/unictype/categ_No.h: Likewise.
2543         * lib/unictype/categ_P.h: Likewise.
2544         * lib/unictype/categ_Po.h: Likewise.
2545         * lib/unictype/categ_S.h: Likewise.
2546         * lib/unictype/categ_Sc.h: Likewise.
2547         * lib/unictype/categ_Sk.h: Likewise.
2548         * lib/unictype/categ_Sm.h: Likewise.
2549         * lib/unictype/categ_So.h: Likewise.
2550         * lib/unictype/categ_of.h: Likewise.
2551         * lib/unictype/combining.h: Likewise.
2552         * lib/unictype/ctype_alnum.h: Likewise.
2553         * lib/unictype/ctype_alpha.h: Likewise.
2554         * lib/unictype/ctype_graph.h: Likewise.
2555         * lib/unictype/ctype_lower.h: Likewise.
2556         * lib/unictype/ctype_print.h: Likewise.
2557         * lib/unictype/ctype_punct.h: Likewise.
2558         * lib/unictype/ctype_upper.h: Likewise.
2559         * lib/unictype/decdigit.h: Likewise.
2560         * lib/unictype/digit.h: Likewise.
2561         * lib/unictype/numeric.h: Likewise.
2562         * lib/unictype/pr_alphabetic.h: Likewise.
2563         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2564         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2565         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2566         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2567         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2568         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2569         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2570         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2571         * lib/unictype/pr_case_ignorable.h: Likewise.
2572         * lib/unictype/pr_cased.h: Likewise.
2573         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
2574         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
2575         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
2576         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
2577         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
2578         * lib/unictype/pr_combining.h: Likewise.
2579         * lib/unictype/pr_composite.h: Likewise.
2580         * lib/unictype/pr_currency_symbol.h: Likewise.
2581         * lib/unictype/pr_decimal_digit.h: Likewise.
2582         * lib/unictype/pr_deprecated.h: Likewise.
2583         * lib/unictype/pr_format_control.h: Likewise.
2584         * lib/unictype/pr_grapheme_base.h: Likewise.
2585         * lib/unictype/pr_grapheme_extend.h: Likewise.
2586         * lib/unictype/pr_grapheme_link.h: Likewise.
2587         * lib/unictype/pr_id_continue.h: Likewise.
2588         * lib/unictype/pr_id_start.h: Likewise.
2589         * lib/unictype/pr_ideographic.h: Likewise.
2590         * lib/unictype/pr_lowercase.h: Likewise.
2591         * lib/unictype/pr_math.h: Likewise.
2592         * lib/unictype/pr_numeric.h: Likewise.
2593         * lib/unictype/pr_other_alphabetic.h: Likewise.
2594         * lib/unictype/pr_other_id_continue.h: Likewise.
2595         * lib/unictype/pr_other_math.h: Likewise.
2596         * lib/unictype/pr_punctuation.h: Likewise.
2597         * lib/unictype/pr_sentence_terminal.h: Likewise.
2598         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2599         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2600         * lib/unictype/pr_unified_ideograph.h: Likewise.
2601         * lib/unictype/pr_uppercase.h: Likewise.
2602         * lib/unictype/pr_xid_continue.h: Likewise.
2603         * lib/unictype/pr_xid_start.h: Likewise.
2604         * lib/unictype/scripts.h: Likewise.
2605         * lib/unictype/scripts_byname.gperf: Likewise.
2606         * lib/unictype/sy_java_ident.h: Likewise.
2607         * lib/unigbrk/gbrkprop.h: Likewise.
2608         * lib/unilbrk/lbrkprop1.h: Likewise.
2609         * lib/unilbrk/lbrkprop2.h: Likewise.
2610         * lib/uninorm/decomposition-table2.h: Likewise.
2611         * lib/uniwbrk/wbrkprop.h: Likewise.
2612         * tests/unicase/test-cased.c: Likewise.
2613         * tests/unicase/test-ignorable.c: Likewise.
2614         * tests/unicase/test-uc_tolower.c: Likewise.
2615         * tests/unicase/test-uc_totitle.c: Likewise.
2616         * tests/unicase/test-uc_toupper.c: Likewise.
2617         * tests/unictype/test-categ_C.c: Likewise.
2618         * tests/unictype/test-categ_Cn.c: Likewise.
2619         * tests/unictype/test-categ_L.c: Likewise.
2620         * tests/unictype/test-categ_Ll.c: Likewise.
2621         * tests/unictype/test-categ_Lm.c: Likewise.
2622         * tests/unictype/test-categ_Lo.c: Likewise.
2623         * tests/unictype/test-categ_Lu.c: Likewise.
2624         * tests/unictype/test-categ_M.c: Likewise.
2625         * tests/unictype/test-categ_Mc.c: Likewise.
2626         * tests/unictype/test-categ_Me.c: Likewise.
2627         * tests/unictype/test-categ_Mn.c: Likewise.
2628         * tests/unictype/test-categ_N.c: Likewise.
2629         * tests/unictype/test-categ_Nd.c: Likewise.
2630         * tests/unictype/test-categ_No.c: Likewise.
2631         * tests/unictype/test-categ_P.c: Likewise.
2632         * tests/unictype/test-categ_Po.c: Likewise.
2633         * tests/unictype/test-categ_S.c: Likewise.
2634         * tests/unictype/test-categ_Sc.c: Likewise.
2635         * tests/unictype/test-categ_Sk.c: Likewise.
2636         * tests/unictype/test-categ_Sm.c: Likewise.
2637         * tests/unictype/test-categ_So.c: Likewise.
2638         * tests/unictype/test-ctype_alnum.c: Likewise.
2639         * tests/unictype/test-ctype_alpha.c: Likewise.
2640         * tests/unictype/test-ctype_graph.c: Likewise.
2641         * tests/unictype/test-ctype_lower.c: Likewise.
2642         * tests/unictype/test-ctype_print.c: Likewise.
2643         * tests/unictype/test-ctype_punct.c: Likewise.
2644         * tests/unictype/test-ctype_upper.c: Likewise.
2645         * tests/unictype/test-decdigit.h: Likewise.
2646         * tests/unictype/test-digit.h: Likewise.
2647         * tests/unictype/test-numeric.h: Likewise.
2648         * tests/unictype/test-pr_alphabetic.c: Likewise.
2649         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2650         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2651         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2652         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2653         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2654         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2655         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2656         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2657         * tests/unictype/test-pr_case_ignorable.c: Likewise.
2658         * tests/unictype/test-pr_cased.c: Likewise.
2659         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
2660         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
2661         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
2662         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
2663         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
2664         * tests/unictype/test-pr_combining.c: Likewise.
2665         * tests/unictype/test-pr_composite.c: Likewise.
2666         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2667         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2668         * tests/unictype/test-pr_deprecated.c: Likewise.
2669         * tests/unictype/test-pr_format_control.c: Likewise.
2670         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2671         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2672         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2673         * tests/unictype/test-pr_id_continue.c: Likewise.
2674         * tests/unictype/test-pr_id_start.c: Likewise.
2675         * tests/unictype/test-pr_ideographic.c: Likewise.
2676         * tests/unictype/test-pr_lowercase.c: Likewise.
2677         * tests/unictype/test-pr_math.c: Likewise.
2678         * tests/unictype/test-pr_numeric.c: Likewise.
2679         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2680         * tests/unictype/test-pr_other_id_continue.c: Likewise.
2681         * tests/unictype/test-pr_other_math.c: Likewise.
2682         * tests/unictype/test-pr_punctuation.c: Likewise.
2683         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2684         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2685         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2686         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2687         * tests/unictype/test-pr_uppercase.c: Likewise.
2688         * tests/unictype/test-pr_xid_continue.c: Likewise.
2689         * tests/unictype/test-pr_xid_start.c: Likewise.
2690         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2691         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2692         changes.
2693         * lib/unictype/categ_Cc.h: Likewise.
2694         * lib/unictype/categ_Cf.h: Likewise.
2695         * lib/unictype/categ_Co.h: Likewise.
2696         * lib/unictype/categ_Cs.h: Likewise.
2697         * lib/unictype/categ_Lt.h: Likewise.
2698         * lib/unictype/categ_Nl.h: Likewise.
2699         * lib/unictype/categ_Pc.h: Likewise.
2700         * lib/unictype/categ_Pd.h: Likewise.
2701         * lib/unictype/categ_Pe.h: Likewise.
2702         * lib/unictype/categ_Pf.h: Likewise.
2703         * lib/unictype/categ_Pi.h: Likewise.
2704         * lib/unictype/categ_Ps.h: Likewise.
2705         * lib/unictype/categ_Z.h: Likewise.
2706         * lib/unictype/categ_Zl.h: Likewise.
2707         * lib/unictype/categ_Zp.h: Likewise.
2708         * lib/unictype/categ_Zs.h: Likewise.
2709         * lib/unictype/ctype_blank.h: Likewise.
2710         * lib/unictype/ctype_cntrl.h: Likewise.
2711         * lib/unictype/ctype_digit.h: Likewise.
2712         * lib/unictype/ctype_space.h: Likewise.
2713         * lib/unictype/ctype_xdigit.h: Likewise.
2714         * lib/unictype/mirror.h: Likewise.
2715         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2716         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2717         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2718         * lib/unictype/pr_bidi_control.h: Likewise.
2719         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2720         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2721         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2722         * lib/unictype/pr_bidi_pdf.h: Likewise.
2723         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2724         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2725         * lib/unictype/pr_dash.h: Likewise.
2726         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2727         * lib/unictype/pr_diacritic.h: Likewise.
2728         * lib/unictype/pr_extender.h: Likewise.
2729         * lib/unictype/pr_hex_digit.h: Likewise.
2730         * lib/unictype/pr_hyphen.h: Likewise.
2731         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2732         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2733         * lib/unictype/pr_ignorable_control.h: Likewise.
2734         * lib/unictype/pr_iso_control.h: Likewise.
2735         * lib/unictype/pr_join_control.h: Likewise.
2736         * lib/unictype/pr_left_of_pair.h: Likewise.
2737         * lib/unictype/pr_line_separator.h: Likewise.
2738         * lib/unictype/pr_logical_order_exception.h: Likewise.
2739         * lib/unictype/pr_non_break.h: Likewise.
2740         * lib/unictype/pr_not_a_character.h: Likewise.
2741         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2742         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2743         * lib/unictype/pr_other_id_start.h: Likewise.
2744         * lib/unictype/pr_other_lowercase.h: Likewise.
2745         * lib/unictype/pr_other_uppercase.h: Likewise.
2746         * lib/unictype/pr_paired_punctuation.h: Likewise.
2747         * lib/unictype/pr_paragraph_separator.h: Likewise.
2748         * lib/unictype/pr_pattern_syntax.h: Likewise.
2749         * lib/unictype/pr_pattern_white_space.h: Likewise.
2750         * lib/unictype/pr_private_use.h: Likewise.
2751         * lib/unictype/pr_quotation_mark.h: Likewise.
2752         * lib/unictype/pr_radical.h: Likewise.
2753         * lib/unictype/pr_soft_dotted.h: Likewise.
2754         * lib/unictype/pr_space.h: Likewise.
2755         * lib/unictype/pr_titlecase.h: Likewise.
2756         * lib/unictype/pr_variation_selector.h: Likewise.
2757         * lib/unictype/pr_white_space.h: Likewise.
2758         * lib/unictype/pr_zero_width.h: Likewise.
2759         * lib/unictype/sy_c_ident.h: Likewise.
2760         * lib/unictype/sy_c_whitespace.h: Likewise.
2761         * lib/unictype/sy_java_whitespace.h: Likewise.
2762         * lib/uninorm/composition-table.gperf: Likewise.
2763         * lib/uninorm/decomposition-table1.h: Likewise.
2764         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
2765         LB8.
2766         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2767         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2768         * modules/unictype/*: Bump version number of expected libunistring
2769         version.
2770
2771 2011-01-09  Bruno Haible  <bruno@clisp.org>
2772
2773         Update to Unicode 5.2.0.
2774         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
2775         trailing whitespace removed.
2776
2777 2011-01-09  Bruno Haible  <bruno@clisp.org>
2778
2779         New Unicode character properties, from Unicode 5.2.0.
2780         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
2781         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
2782         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
2783         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
2784         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
2785         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
2786         uc_is_property_cased, uc_is_property_case_ignorable,
2787         uc_is_property_changes_when_lowercased,
2788         uc_is_property_changes_when_uppercased,
2789         uc_is_property_changes_when_titlecased,
2790         uc_is_property_changes_when_casefolded,
2791         uc_is_property_changes_when_casemapped): New declarations.
2792         * lib/unictype/pr_byname.gperf: Add the new properties.
2793         * modules/unictype/property-byname (Depends-on): Depend on the new
2794         properties modules.
2795         * modules/unictype/property-all (Depends-on): Likewise.
2796         * MODULES.html.sh (Unicode string functions): Add
2797         unictype/property-case-ignorable, unictype/property-cased,
2798         unictype/property-changes-when-casefolded,
2799         unictype/property-changes-when-casemapped,
2800         unictype/property-changes-when-lowercased,
2801         unictype/property-changes-when-titlecased,
2802         unictype/property-changes-when-uppercased.
2803
2804         New module 'unictype/property-changes-when-casemapped'.
2805         * modules/unictype/property-changes-when-casemapped: New file.
2806         * lib/unictype/pr_changes_when_casemapped.c: New file.
2807         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
2808         generated by gen-uni-tables.
2809         * modules/unictype/property-changes-when-casemapped-tests: New file.
2810         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
2811         automatically generated by gen-uni-tables.
2812
2813         New module 'unictype/property-changes-when-casefolded'.
2814         * modules/unictype/property-changes-when-casefolded: New file.
2815         * lib/unictype/pr_changes_when_casefolded.c: New file.
2816         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
2817         generated by gen-uni-tables.
2818         * modules/unictype/property-changes-when-casefolded-tests: New file.
2819         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
2820         automatically generated by gen-uni-tables.
2821
2822         New module 'unictype/property-changes-when-titlecased'.
2823         * modules/unictype/property-changes-when-titlecased: New file.
2824         * lib/unictype/pr_changes_when_titlecased.c: New file.
2825         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
2826         generated by gen-uni-tables.
2827         * modules/unictype/property-changes-when-titlecased-tests: New file.
2828         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
2829         automatically generated by gen-uni-tables.
2830
2831         New module 'unictype/property-changes-when-uppercased'.
2832         * modules/unictype/property-changes-when-uppercased: New file.
2833         * lib/unictype/pr_changes_when_uppercased.c: New file.
2834         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
2835         generated by gen-uni-tables.
2836         * modules/unictype/property-changes-when-uppercased-tests: New file.
2837         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
2838         automatically generated by gen-uni-tables.
2839
2840         New module 'unictype/property-changes-when-lowercased'.
2841         * modules/unictype/property-changes-when-lowercased: New file.
2842         * lib/unictype/pr_changes_when_lowercased.c: New file.
2843         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
2844         generated by gen-uni-tables.
2845         * modules/unictype/property-changes-when-lowercased-tests: New file.
2846         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
2847         automatically generated by gen-uni-tables.
2848
2849         New module 'unictype/property-case-ignorable'.
2850         * modules/unictype/property-case-ignorable: New file.
2851         * lib/unictype/pr_case_ignorable.c: New file.
2852         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
2853         by gen-uni-tables.
2854         * modules/unictype/property-case-ignorable-tests: New file.
2855         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
2856         generated by gen-uni-tables.
2857
2858         New module 'unictype/property-cased'.
2859         * modules/unictype/property-cased: New file.
2860         * lib/unictype/pr_cased.c: New file.
2861         * lib/unictype/pr_cased.h: New file, automatically generated by
2862         gen-uni-tables.
2863         * modules/unictype/property-cased-tests: New file.
2864         * tests/unictype/test-pr_cased.c: New file, automatically generated by
2865         gen-uni-tables.
2866
2867 2011-01-09  Bruno Haible  <bruno@clisp.org>
2868
2869         Update to Unicode 5.2.0.
2870         * lib/gen-uni-tables.c (output_predicate, output_category,
2871         output_combclass, output_bidi_category, output_decimal_digit_test,
2872         output_decimal_digit, output_digit_test, output_digit,
2873         output_numeric_test, output_numeric, output_mirror, output_scripts,
2874         output_scripts_byname, output_blocks, output_ident_category): Fix
2875         comment header.
2876         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
2877         get_wbp.
2878         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
2879         items.
2880         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
2881         Changes_When_Lowercased, Changes_When_Uppercased,
2882         Changes_When_Titlecased, Changes_When_Casefolded,
2883         Changes_When_Casemapped.
2884         (is_property_alphabetic, is_property_default_ignorable_code_point):
2885         Update for Unicode 5.2.0.
2886         (is_property_cased, is_property_case_ignorable,
2887         is_property_changes_when_lowercased,
2888         is_property_changes_when_uppercased,
2889         is_property_changes_when_titlecased,
2890         is_property_changes_when_casefolded,
2891         is_property_changes_when_casemapped): New functions.
2892         (output_properties): Output also the properties cased, case_ignorable,
2893         changes_when_lowercased, changes_when_uppercased,
2894         changes_when_titlecased, changes_when_casefolded,
2895         changes_when_casemapped.
2896         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
2897         Unicode TR#11 revision 17 -> 19.
2898         (LBP_CP): New enumeration value.
2899         (LBP_*): Adjust values accordingly.
2900         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2901         TR#14 revision 22 -> 24.
2902         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
2903         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
2904         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
2905         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
2906         is_WBP_MIDLETTER.
2907         (output_composition_tables): Allow for 24 bits instead of 16 bits in
2908         the code1 and code2 of each composition rule.
2909         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
2910         * lib/unicase/ignorable.h: Likewise.
2911         * lib/unicase/tocasefold.h: Likewise.
2912         * lib/unicase/tolower.h: Likewise.
2913         * lib/unicase/totitle.h: Likewise.
2914         * lib/unicase/toupper.h: Likewise.
2915         * lib/unictype/bidi_of.h: Likewise.
2916         * lib/unictype/blocks.h: Likewise.
2917         * lib/unictype/categ_C.h: Likewise.
2918         * lib/unictype/categ_Cf.h: Likewise.
2919         * lib/unictype/categ_Cn.h: Likewise.
2920         * lib/unictype/categ_L.h: Likewise.
2921         * lib/unictype/categ_Ll.h: Likewise.
2922         * lib/unictype/categ_Lm.h: Likewise.
2923         * lib/unictype/categ_Lo.h: Likewise.
2924         * lib/unictype/categ_Lu.h: Likewise.
2925         * lib/unictype/categ_M.h: Likewise.
2926         * lib/unictype/categ_Mc.h: Likewise.
2927         * lib/unictype/categ_Mn.h: Likewise.
2928         * lib/unictype/categ_N.h: Likewise.
2929         * lib/unictype/categ_Nd.h: Likewise.
2930         * lib/unictype/categ_Nl.h: Likewise.
2931         * lib/unictype/categ_No.h: Likewise.
2932         * lib/unictype/categ_P.h: Likewise.
2933         * lib/unictype/categ_Pd.h: Likewise.
2934         * lib/unictype/categ_Po.h: Likewise.
2935         * lib/unictype/categ_S.h: Likewise.
2936         * lib/unictype/categ_Sc.h: Likewise.
2937         * lib/unictype/categ_So.h: Likewise.
2938         * lib/unictype/categ_of.h: Likewise.
2939         * lib/unictype/combining.h: Likewise.
2940         * lib/unictype/ctype_alnum.h: Likewise.
2941         * lib/unictype/ctype_alpha.h: Likewise.
2942         * lib/unictype/ctype_graph.h: Likewise.
2943         * lib/unictype/ctype_lower.h: Likewise.
2944         * lib/unictype/ctype_print.h: Likewise.
2945         * lib/unictype/ctype_punct.h: Likewise.
2946         * lib/unictype/ctype_upper.h: Likewise.
2947         * lib/unictype/decdigit.h: Likewise.
2948         * lib/unictype/digit.h: Likewise.
2949         * lib/unictype/numeric.h: Likewise.
2950         * lib/unictype/pr_alphabetic.h: Likewise.
2951         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2952         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2953         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2954         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2955         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2956         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2957         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2958         * lib/unictype/pr_combining.h: Likewise.
2959         * lib/unictype/pr_composite.h: Likewise.
2960         * lib/unictype/pr_currency_symbol.h: Likewise.
2961         * lib/unictype/pr_dash.h: Likewise.
2962         * lib/unictype/pr_decimal_digit.h: Likewise.
2963         * lib/unictype/pr_deprecated.h: Likewise.
2964         * lib/unictype/pr_diacritic.h: Likewise.
2965         * lib/unictype/pr_extender.h: Likewise.
2966         * lib/unictype/pr_grapheme_base.h: Likewise.
2967         * lib/unictype/pr_grapheme_extend.h: Likewise.
2968         * lib/unictype/pr_grapheme_link.h: Likewise.
2969         * lib/unictype/pr_id_continue.h: Likewise.
2970         * lib/unictype/pr_id_start.h: Likewise.
2971         * lib/unictype/pr_ideographic.h: Likewise.
2972         * lib/unictype/pr_ignorable_control.h: Likewise.
2973         * lib/unictype/pr_logical_order_exception.h: Likewise.
2974         * lib/unictype/pr_lowercase.h: Likewise.
2975         * lib/unictype/pr_numeric.h: Likewise.
2976         * lib/unictype/pr_other_alphabetic.h: Likewise.
2977         * lib/unictype/pr_punctuation.h: Likewise.
2978         * lib/unictype/pr_sentence_terminal.h: Likewise.
2979         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2980         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2981         * lib/unictype/pr_unified_ideograph.h: Likewise.
2982         * lib/unictype/pr_uppercase.h: Likewise.
2983         * lib/unictype/pr_xid_continue.h: Likewise.
2984         * lib/unictype/pr_xid_start.h: Likewise.
2985         * lib/unictype/pr_zero_width.h: Likewise.
2986         * lib/unictype/scripts.h: Likewise.
2987         * lib/unictype/scripts_byname.gperf: Likewise.
2988         * lib/unictype/sy_java_ident.h: Likewise.
2989         * lib/unigbrk/gbrkprop.h: Likewise.
2990         * lib/unilbrk/lbrkprop1.h: Likewise.
2991         * lib/unilbrk/lbrkprop2.h: Likewise.
2992         * lib/unilbrk/lbrktables.h: Likewise.
2993         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
2994         LBP_CP. Implement rule LB30.
2995         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
2996         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
2997         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
2998         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
2999         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
3000         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
3001         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
3002         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
3003         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
3004         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
3005         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
3006         bits instead of 16 bits in the code1 and code2 of each composition
3007         rule.
3008         (uc_composition): Update for Unicode 5.2.0.
3009         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
3010         * lib/uninorm/decomposition-table2.h: Likewise.
3011         * lib/uniwbrk/wbrkprop.h: Likewise.
3012         * tests/unicase/test-cased.c: Likewise.
3013         * tests/unicase/test-ignorable.c: Likewise.
3014         * tests/unicase/test-uc_tolower.c: Likewise.
3015         * tests/unicase/test-uc_totitle.c: Likewise.
3016         * tests/unicase/test-uc_toupper.c: Likewise.
3017         * tests/unictype/test-categ_C.c: Likewise.
3018         * tests/unictype/test-categ_Cf.c: Likewise.
3019         * tests/unictype/test-categ_Cn.c: Likewise.
3020         * tests/unictype/test-categ_L.c: Likewise.
3021         * tests/unictype/test-categ_Ll.c: Likewise.
3022         * tests/unictype/test-categ_Lm.c: Likewise.
3023         * tests/unictype/test-categ_Lo.c: Likewise.
3024         * tests/unictype/test-categ_Lu.c: Likewise.
3025         * tests/unictype/test-categ_M.c: Likewise.
3026         * tests/unictype/test-categ_Mc.c: Likewise.
3027         * tests/unictype/test-categ_Mn.c: Likewise.
3028         * tests/unictype/test-categ_N.c: Likewise.
3029         * tests/unictype/test-categ_Nd.c: Likewise.
3030         * tests/unictype/test-categ_Nl.c: Likewise.
3031         * tests/unictype/test-categ_No.c: Likewise.
3032         * tests/unictype/test-categ_P.c: Likewise.
3033         * tests/unictype/test-categ_Pd.c: Likewise.
3034         * tests/unictype/test-categ_Po.c: Likewise.
3035         * tests/unictype/test-categ_S.c: Likewise.
3036         * tests/unictype/test-categ_Sc.c: Likewise.
3037         * tests/unictype/test-categ_So.c: Likewise.
3038         * tests/unictype/test-ctype_alnum.c: Likewise.
3039         * tests/unictype/test-ctype_alpha.c: Likewise.
3040         * tests/unictype/test-ctype_graph.c: Likewise.
3041         * tests/unictype/test-ctype_lower.c: Likewise.
3042         * tests/unictype/test-ctype_print.c: Likewise.
3043         * tests/unictype/test-ctype_punct.c: Likewise.
3044         * tests/unictype/test-ctype_upper.c: Likewise.
3045         * tests/unictype/test-decdigit.h: Likewise.
3046         * tests/unictype/test-digit.h: Likewise.
3047         * tests/unictype/test-numeric.h: Likewise.
3048         * tests/unictype/test-pr_alphabetic.c: Likewise.
3049         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3050         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3051         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3052         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3053         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3054         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3055         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3056         * tests/unictype/test-pr_combining.c: Likewise.
3057         * tests/unictype/test-pr_composite.c: Likewise.
3058         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3059         * tests/unictype/test-pr_dash.c: Likewise.
3060         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3061         * tests/unictype/test-pr_deprecated.c: Likewise.
3062         * tests/unictype/test-pr_diacritic.c: Likewise.
3063         * tests/unictype/test-pr_extender.c: Likewise.
3064         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3065         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3066         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3067         * tests/unictype/test-pr_id_continue.c: Likewise.
3068         * tests/unictype/test-pr_id_start.c: Likewise.
3069         * tests/unictype/test-pr_ideographic.c: Likewise.
3070         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3071         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3072         * tests/unictype/test-pr_lowercase.c: Likewise.
3073         * tests/unictype/test-pr_numeric.c: Likewise.
3074         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3075         * tests/unictype/test-pr_punctuation.c: Likewise.
3076         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3077         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3078         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3079         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3080         * tests/unictype/test-pr_uppercase.c: Likewise.
3081         * tests/unictype/test-pr_xid_continue.c: Likewise.
3082         * tests/unictype/test-pr_xid_start.c: Likewise.
3083         * tests/unictype/test-pr_zero_width.c: Likewise.
3084         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
3085         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
3086         changed behaviour: line breaking is now disallowed between a letter
3087         or '=' and '('.
3088         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
3089         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
3090         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
3091         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
3092         * tests/uniwidth/test-uc_width2.sh: Same updates as in
3093         lib/uniwidth/width.c.
3094         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
3095         without comments, but with the original copyright notice.
3096         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
3097         changes.
3098         * lib/unictype/categ_Cc.h: Likewise.
3099         * lib/unictype/categ_Co.h: Likewise.
3100         * lib/unictype/categ_Cs.h: Likewise.
3101         * lib/unictype/categ_Lt.h: Likewise.
3102         * lib/unictype/categ_Me.h: Likewise.
3103         * lib/unictype/categ_Pc.h: Likewise.
3104         * lib/unictype/categ_Pe.h: Likewise.
3105         * lib/unictype/categ_Pf.h: Likewise.
3106         * lib/unictype/categ_Pi.h: Likewise.
3107         * lib/unictype/categ_Ps.h: Likewise.
3108         * lib/unictype/categ_Sk.h: Likewise.
3109         * lib/unictype/categ_Sm.h: Likewise.
3110         * lib/unictype/categ_Z.h: Likewise.
3111         * lib/unictype/categ_Zl.h: Likewise.
3112         * lib/unictype/categ_Zp.h: Likewise.
3113         * lib/unictype/categ_Zs.h: Likewise.
3114         * lib/unictype/ctype_blank.h: Likewise.
3115         * lib/unictype/ctype_cntrl.h: Likewise.
3116         * lib/unictype/ctype_digit.h: Likewise.
3117         * lib/unictype/ctype_space.h: Likewise.
3118         * lib/unictype/ctype_xdigit.h: Likewise.
3119         * lib/unictype/mirror.h: Likewise.
3120         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3121         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3122         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3123         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3124         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3125         * lib/unictype/pr_bidi_control.h: Likewise.
3126         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3127         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3128         * lib/unictype/pr_bidi_pdf.h: Likewise.
3129         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3130         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3131         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3132         * lib/unictype/pr_format_control.h: Likewise.
3133         * lib/unictype/pr_hex_digit.h: Likewise.
3134         * lib/unictype/pr_hyphen.h: Likewise.
3135         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3136         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3137         * lib/unictype/pr_iso_control.h: Likewise.
3138         * lib/unictype/pr_join_control.h: Likewise.
3139         * lib/unictype/pr_left_of_pair.h: Likewise.
3140         * lib/unictype/pr_line_separator.h: Likewise.
3141         * lib/unictype/pr_math.h: Likewise.
3142         * lib/unictype/pr_non_break.h: Likewise.
3143         * lib/unictype/pr_not_a_character.h: Likewise.
3144         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3145         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3146         * lib/unictype/pr_other_id_continue.h: Likewise.
3147         * lib/unictype/pr_other_id_start.h: Likewise.
3148         * lib/unictype/pr_other_lowercase.h: Likewise.
3149         * lib/unictype/pr_other_math.h: Likewise.
3150         * lib/unictype/pr_other_uppercase.h: Likewise.
3151         * lib/unictype/pr_paired_punctuation.h: Likewise.
3152         * lib/unictype/pr_paragraph_separator.h: Likewise.
3153         * lib/unictype/pr_pattern_syntax.h: Likewise.
3154         * lib/unictype/pr_pattern_white_space.h: Likewise.
3155         * lib/unictype/pr_private_use.h: Likewise.
3156         * lib/unictype/pr_quotation_mark.h: Likewise.
3157         * lib/unictype/pr_radical.h: Likewise.
3158         * lib/unictype/pr_soft_dotted.h: Likewise.
3159         * lib/unictype/pr_space.h: Likewise.
3160         * lib/unictype/pr_titlecase.h: Likewise.
3161         * lib/unictype/pr_variation_selector.h: Likewise.
3162         * lib/unictype/pr_white_space.h: Likewise.
3163         * lib/unictype/sy_c_ident.h: Likewise.
3164         * lib/unictype/sy_c_whitespace.h: Likewise.
3165         * lib/unictype/sy_java_whitespace.h: Likewise.
3166         * modules/uni*/*: Bump version number of expected libunistring version.
3167         Reported by Simon Josefsson.
3168
3169 2011-01-09  Karl Heuer  <kwzh@gnu.org>
3170
3171         useless-if-before-free: fix typo in --help and make the internal,
3172         automatic version date update process work once again.
3173         --help output contained a NUL character instead of the
3174         backslash-zero that was intended.  Also, the "must lie within
3175         the first 8 lines" line is on line 9, and hence not getting
3176         automatically updated.
3177         * build-aux/useless-if-before-free: Fix the former by adding a
3178         backslash, and the latter by condensing the three lines of what-it-does
3179         to a single line, leaving one line of slack for the future.
3180
3181 2011-01-09  Bruno Haible  <bruno@clisp.org>
3182
3183         uniwidth/width: Fix width of U+1D173..U+1D17A.
3184         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
3185         symbolic_width, output_width_property_test): New functions.
3186         (main): Invoke output_nonspacing_property, output_width_property_test.
3187         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
3188         U+1D173..U+1D17A.
3189         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
3190         1.
3191         * modules/uniwidth/*: Bump version number of expected libunistring
3192         version.
3193         * modules/unilbrk/*: Likewise.
3194
3195 2011-01-08  Bruno Haible  <bruno@clisp.org>
3196
3197         uninorm tests: Preserve copyright of Unicode data file.
3198         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
3199         Mention modifications.
3200
3201 2011-01-08  Bruno Haible  <bruno@clisp.org>
3202
3203         gen-uni-tables: Prepare for Unicode 5.2.0.
3204         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
3205         (debug_output_lbp, output_lbp): Update.
3206
3207 2011-01-08  Bruno Haible  <bruno@clisp.org>
3208
3209         unilbrk: Clarify gen-uni-tables.c code.
3210         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
3211         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
3212         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
3213
3214 2011-01-07  Bruno Haible  <bruno@clisp.org>
3215
3216         strtod: Restore errno when successfully parsing Infinity or NaN.
3217         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
3218         restore the original errno.
3219
3220 2011-01-07  Bruno Haible  <bruno@clisp.org>
3221
3222         remove test: Avoid failure on HP-UX 11.
3223         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
3224
3225 2011-01-07  Bruno Haible  <bruno@clisp.org>
3226
3227         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
3228         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
3229         error code.
3230
3231 2011-01-07  Pádraig Brady <P@draigBrady.com>
3232
3233         ignore-value: fixup comments, and add Eric Blake
3234         as an author since he rewrote the macros.
3235         * lib/ignore-value.h (ignore_value):  State that
3236         we now support aggregates.  Also specify exactly
3237         when the GCC warn_unused_result feature was added.
3238
3239 2011-01-06  Eric Blake  <eblake@redhat.com>
3240
3241         ignore-value: support aggregate types
3242         * lib/ignore-value.h (ignore_value): Provide separate gcc
3243         definition.
3244         * modules/ignore-value-tests: New test module.
3245         * tests/test-ignore-value.c: New test.
3246
3247         maint.mk: improve sc_prohibit_strcmp regex
3248         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
3249         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
3250         definition of STRNEQ.
3251
3252         signal: work around Haiku issue with SIGBUS
3253         * lib/siglist.h: Add comment.
3254         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
3255         strsignal's favoring of SIGSEGV.
3256         * tests/test-signal.c (main): Avoid test failure.
3257         * doc/posix-headers/signal.texi (signal.h): Document the issue.
3258         Reported by Scott McCreary.
3259
3260         maint.mk: add pre-release check to ensure submodule commits are public
3261         * top/maint.mk (public-submodule-commit): New rule.
3262         (submodule-checks): New variable.
3263         (alpha beta stable): Depend on the variable.
3264
3265 2011-01-05  Pádraig Brady <P@draigBrady.com>
3266         and Jim Meyering  <meyering@redhat.com>
3267
3268         ignore-value: make ignore_value more generic; deprecate ignore_ptr
3269         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
3270         (ATTRIBUTE_DEPRECATED): Define.
3271         (_ignore_case): New function.
3272         (ignore_value): New macro, to replace the old function.
3273         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
3274         * modules/ignore-value (Depends-on): Add stdint.
3275
3276 2011-01-04  Eric Blake  <eblake@redhat.com>
3277
3278         doc: regenerate INSTALL
3279         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
3280         @firstparagraphindent support, now that autoconf dropped it.
3281         (INSTALL_PRELUDE): Reinstate old macro.
3282         * doc/install.texi: Resync from autoconf.
3283         * doc/INSTALL: Reflect recent autoconf update.
3284         * doc/INSTALL.ISO: Likewise.
3285         * doc/INSTALL.UTF-8: Likewise.
3286         Reported by Karl Berry.
3287
3288 2011-01-04  Bruce Korb  <address@hidden>
3289
3290         git-version-gen: avoid a sub-shell
3291         * build-aux/git-version-gen: Redirect stderr in `...` via
3292         "exec 2>...", rather than via an added sub-shell.
3293
3294 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
3295
3296         git-version-gen: use (...) rather than sh -c '...'
3297         * build-aux/git-version-gen: Rather than hard-coding a shell's name
3298         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
3299
3300 2011-01-03  Jim Meyering  <meyering@redhat.com>
3301
3302         git-version-gen: convert leading TABs to spaces
3303         * build-aux/git-version-gen: Expand leading TABs.
3304
3305         git-version-gen: handle failed "git rev-list"
3306         * build-aux/git-version-gen: Rather than leaking a "fatal" error
3307         from git and proceeding as if it had succeeded but printed no SHA1
3308         checksums, suppress the diagnostic and handle the failure.
3309         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
3310
3311         git-version-gen: include command name in one more diagnostic
3312         * build-aux/git-version-gen: When the required .tarball-version file
3313         was missing or unreadable, you might see the diagnostic from "cat",
3314         but no trace of the name of the invoking script.  Now, you still see
3315         the diagnostic from cat, but also get one from "git-version-gen: ".
3316         Inspired by a patch from Bruce Korb.
3317
3318         update-copyright: adjust test to match changed code
3319         * tests/test-update-copyright.sh: Change test's expected output
3320         to match new actual output.
3321
3322 2011-01-02  Bruno Haible  <bruno@clisp.org>
3323
3324         getlogin_r: Avoid test failure on HP-UX 11.
3325         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
3326         ERANGE when the second argument is zero.
3327         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
3328         portability problem.
3329
3330 2011-01-02  Bruce Korb  <bkorb@gnu.org>
3331
3332         * build-aux/update-copyright: doc Simon's changes
3333
3334 2011-01-02  Simon Josefsson  <simon@josefsson.org>
3335
3336         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
3337         environment variable.
3338
3339 2011-01-02  Bruno Haible  <bruno@clisp.org>
3340
3341         unigbrk: Avoid gcc warnings.
3342         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
3343         unused variable.
3344         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
3345         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
3346         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
3347         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
3348         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
3349         Change type of first argument to 'const char *'.
3350         (main): Remove unused variable.
3351         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
3352         type of first argument to 'const char *'.
3353         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
3354         Likewise.
3355         (main): Change type of variable 's'.
3356         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
3357         to 'int'.
3358
3359 2011-01-02  Bruno Haible  <bruno@clisp.org>
3360
3361         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
3362         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
3363         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
3364         bug.
3365         * lib/pwrite.c: Undo 2010-12-31 patch.
3366         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
3367
3368 2011-01-02  Bruno Haible  <bruno@clisp.org>
3369
3370         pread: Fix test whether it works.
3371         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
3372
3373 2011-01-02  Bruno Haible  <bruno@clisp.org>
3374
3375         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
3376         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
3377         ends in "6". Don't require a specific month name. Try also the locale
3378         names found on HP-UX 11 and Solaris 7.
3379
3380 2011-01-02  Bruno Haible  <bruno@clisp.org>
3381
3382         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
3383         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
3384         C linkage.
3385         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
3386
3387 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3388
3389         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
3390         for consistency, since the "cluster" term is not used elsewhere.
3391         * lib/unigbrk.in.h: Update name.
3392         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
3393         * lib/unigbrk/u16-grapheme-next.c: Update name.
3394         * lib/unigbrk/u16-grapheme-prev.c: Update name.
3395         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
3396         * lib/unigbrk/u32-grapheme-next.c: Update name.
3397         * lib/unigbrk/u32-grapheme-prev.c: Update name.
3398         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
3399         * lib/unigbrk/u8-grapheme-next.c: Update name.
3400         * lib/unigbrk/u8-grapheme-prev.c: Update name.
3401         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
3402         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
3403         Suggested by Bruno Haible.
3404
3405 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3406
3407         Remove module 'u8-grapheme-len' as too redundant with
3408         'u8-grapheme-next'.
3409         * modules/unigbrk/u8-grapheme-len: Delete file.
3410         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
3411         * lib/unigbrk.in.h: Remove prototype for deleted function.
3412         * lib/unigbrk/u8-grapheme-len.c: Delete file.
3413         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
3414
3415         Remove module 'u16-grapheme-len' as too redundant with
3416         'u16-grapheme-next'.
3417         * modules/unigbrk/u16-grapheme-len: Delete file.
3418         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
3419         * lib/unigbrk.in.h: Remove prototype for deleted function.
3420         * lib/unigbrk/u16-grapheme-len.c: Delete file.
3421         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
3422
3423         Remove module 'u32-grapheme-len' as too redundant with
3424         'u32-grapheme-next'.
3425         * modules/unigbrk/u32-grapheme-len: Delete file.
3426         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
3427         * lib/unigbrk.in.h: Remove prototype for deleted function.
3428         * lib/unigbrk/u32-grapheme-len.c: Delete file.
3429         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
3430
3431         Suggested by Bruno Haible.
3432
3433 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
3434
3435         * unigbrk.in.h: Fix typo: "ben" => "been".
3436         Reported by Bruno Haible.
3437
3438 2011-01-01  Jim Meyering  <meyering@redhat.com>
3439
3440         maint: update almost all copyright ranges to include 2011
3441         Run the new "make update-copyright" rule.
3442
3443 2011-01-01  Jim Meyering  <meyering@redhat.com>
3444
3445         maint: update-copyright: exempt doc/INSTALL*
3446         * Makefile (update-copyright): Also exclude doc/INSTALL*,
3447         since they are generated.  Suggested by Bruno Haible.
3448
3449 2011-01-01  Jim Meyering  <meyering@redhat.com>
3450
3451         maint: refine the update-copyright rule
3452         * Makefile (update-copyright): Also exclude any file that includes
3453         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
3454         code that merely generates the comment.
3455
3456 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3457
3458         New module 'u8-grapheme-len'.
3459         * modules/unigbrk/u8-grapheme-len: New file.
3460         * modules/unigbrk/u8-grapheme-len-tests: New file.
3461         * lib/unigbrk.in.h: Add prototype for new function.
3462         * lib/unigbrk/u8-grapheme-len.c: New file.
3463         * tests/unigbrk/test-u8-grapheme-len.c: New file.
3464
3465         New module 'u16-grapheme-len'.
3466         * modules/unigbrk/u16-grapheme-len: New file.
3467         * modules/unigbrk/u16-grapheme-len-tests: New file.
3468         * lib/unigbrk.in.h: Add prototype for new function.
3469         * lib/unigbrk/u16-grapheme-len.c: New file.
3470         * tests/unigbrk/test-u16-grapheme-len.c: New file.
3471
3472         New module 'u32-grapheme-len'.
3473         * modules/unigbrk/u32-grapheme-len: New file.
3474         * modules/unigbrk/u32-grapheme-len-tests: New file.
3475         * lib/unigbrk.in.h: Add prototype for new function.
3476         * lib/unigbrk/u32-grapheme-len.c: New file.
3477         * tests/unigbrk/test-u32-grapheme-len.c: New file.
3478
3479         New module 'u8-grapheme-next'.
3480         * modules/unigbrk/u8-grapheme-next: New file.
3481         * modules/unigbrk/u8-grapheme-next-tests: New file.
3482         * lib/unigbrk.in.h: Add prototype for new function.
3483         * lib/unigbrk/u8-grapheme-next.c: New file.
3484         * tests/unigbrk/test-u8-grapheme-next.c: New file.
3485
3486         New module 'u16-grapheme-next'.
3487         * modules/unigbrk/u16-grapheme-next: New file.
3488         * modules/unigbrk/u16-grapheme-next-tests: New file.
3489         * lib/unigbrk.in.h: Add prototype for new function.
3490         * lib/unigbrk/u16-grapheme-next.c: New file.
3491         * tests/unigbrk/test-u16-grapheme-next.c: New file.
3492
3493         New module 'u32-grapheme-next'.
3494         * modules/unigbrk/u32-grapheme-next: New file.
3495         * modules/unigbrk/u32-grapheme-next-tests: New file.
3496         * lib/unigbrk.in.h: Add prototype for new function.
3497         * lib/unigbrk/u32-grapheme-next.c: New file.
3498         * tests/unigbrk/test-u32-grapheme-next.c: New file.
3499
3500         New module 'u8-grapheme-prev'.
3501         * modules/unigbrk/u8-grapheme-prev: New file.
3502         * modules/unigbrk/u8-grapheme-prev-tests: New file.
3503         * lib/unigbrk.in.h: Add prototype for new function.
3504         * lib/unigbrk/u8-grapheme-prev.c: New file.
3505         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
3506
3507         New module 'u16-grapheme-prev'.
3508         * modules/unigbrk/u16-grapheme-prev: New file.
3509         * modules/unigbrk/u16-grapheme-prev-tests: New file.
3510         * lib/unigbrk.in.h: Add prototype for new function.
3511         * lib/unigbrk/u16-grapheme-prev.c: New file.
3512         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
3513
3514         New module 'u32-grapheme-prev'.
3515         * modules/unigbrk/u32-grapheme-prev: New file.
3516         * modules/unigbrk/u32-grapheme-prev-tests: New file.
3517         * lib/unigbrk.in.h: Add prototype for new function.
3518         * lib/unigbrk/u32-grapheme-prev.c: New file.
3519         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
3520
3521         New module 'u8-grapheme-breaks'.
3522         * modules/unigbrk/u8-grapheme-breaks: New file.
3523         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
3524         * lib/unigbrk.in.h: Add prototype for new function.
3525         * lib/unigbrk/u8-grapheme-breaks.c: New file.
3526         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
3527
3528         New module 'u16-grapheme-breaks'.
3529         * modules/unigbrk/u16-grapheme-breaks: New file.
3530         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
3531         * lib/unigbrk.in.h: Add prototype for new function.
3532         * lib/unigbrk/u16-grapheme-breaks.c: New file.
3533         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
3534
3535         New module 'u32-grapheme-breaks'.
3536         * modules/unigbrk/u32-grapheme-breaks: New file.
3537         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
3538         * lib/unigbrk.in.h: Add prototype for new function.
3539         * lib/unigbrk/u32-grapheme-breaks.c: New file.
3540         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
3541
3542         New module 'ulc-grapheme-breaks'.
3543         * modules/unigbrk/ulc-grapheme-breaks: New file.
3544         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
3545         * m4/locale-ar.m4: New file.
3546         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
3547         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
3548         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
3549
3550 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
3551
3552         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
3553         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
3554         modified how this file was generated before I initially submitted
3555         the module, but failed to regenerate it.  This meant that several
3556         of the level2 entries were wrong.
3557         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
3558         Remove the division-by-2 that is folded into the table now that
3559         gbrkprop.h has been regenerated properly.  Now -1 entries are
3560         handled correctly.
3561
3562         New module 'unigbrk/uc-gbrk-prop-tests'.
3563         * modules/unigbrk/uc-gbrk-prop-tests: New file.
3564         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
3565         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
3566         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
3567
3568 2011-01-01  Bruno Haible  <bruno@clisp.org>
3569
3570         Avoid use of hexadecimal escapes.
3571         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
3572         instead of hexadecimal escapes.
3573
3574 2011-01-01  Jim Meyering  <meyering@redhat.com>
3575
3576         maint: new rule to update copyright year ranges
3577         * Makefile (update-copyright): New rule.
3578
3579         maint: indent with TABs in Makefile
3580         * Makefile: Expand leading sequences of spaces to TABs
3581
3582         version-etc: update the copyright year it reports
3583         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
3584
3585 2010-12-31  Bruno Haible  <bruno@clisp.org>
3586
3587         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
3588         * lib/isfinite.c (zerof, zerod, zerol): New variables.
3589         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
3590         zero.
3591
3592 2010-12-31  Bruno Haible  <bruno@clisp.org>
3593
3594         pwrite: Work around HP-UX 11.11 bug.
3595         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
3596         works and set REPLACE_PWRITE if not.
3597         * lib/pwrite.c (pwrite): Add an implementation that uses the system
3598         function.
3599         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
3600
3601 2010-12-31  Bruno Haible  <bruno@clisp.org>
3602
3603         pread: Work around HP-UX 11 bugs.
3604         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
3605         and set REPLACE_PREAD if not.
3606         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
3607
3608 2010-12-31  Eric Blake  <eblake@redhat.com>
3609
3610         nl_langinfo: fix YESEXPR on Irix 6.5
3611         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
3612         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
3613         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
3614         it.
3615
3616 2010-12-31  Bruno Haible  <bruno@clisp.org>
3617
3618         iconv: Document HP-UX 11 bug.
3619         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
3620
3621 2010-12-31  Bruno Haible  <bruno@clisp.org>
3622
3623         ldexpl: Fix link error on HP-UX 11.
3624         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
3625         LDEXPL_LIBM, using $ISNANL_LIBM.
3626
3627 2010-12-31  Eric Blake  <eblake@redhat.com>
3628
3629         ftello: avoid compilation failure with SunStudio c89
3630         * lib/ftello.c (ftello): Use lseek, not llseek.
3631
3632         tests: avoid failing coreutils tests on cygwin
3633         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
3634         (create_exe_shims_): Return 0 when skipping.
3635
3636 2010-12-31  Bruno Haible  <bruno@clisp.org>
3637
3638         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
3639         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
3640
3641 2010-12-31  Bruno Haible  <bruno@clisp.org>
3642
3643         waitpid: Fix link error in C++ mode.
3644         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
3645
3646 2010-12-31  Bruno Haible  <bruno@clisp.org>
3647
3648         isnan: Use GCC built-ins when possible.
3649         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
3650         __builtin_isnan.
3651         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
3652         (isnan): Define using GCC built-ins for GCC >= 4.0.
3653
3654 2010-12-31  Bruno Haible  <bruno@clisp.org>
3655
3656         isnand: Fix mistake.
3657         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
3658         __builtin_isnand.
3659
3660 2010-12-31  Bruno Haible  <bruno@clisp.org>
3661
3662         open: Avoid C++ error on HP-UX 11.
3663         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
3664
3665 2010-12-31  Bruno Haible  <bruno@clisp.org>
3666
3667         time_r: Add missing declarations on HP-UX 11.
3668         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
3669         instead of HAVE_LOCALTIME_R.
3670         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
3671         HAVE_LOCALTIME_R always.
3672         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
3673         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
3674         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
3675         HAVE_LOCALTIME_R.
3676         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
3677         * doc/posix-functions/localtime_r.texi: Likewise.
3678
3679 2010-12-29  Eric Blake  <eblake@redhat.com>
3680
3681         mountlist: tweak previous commit
3682         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
3683         Reported by Paul Eggert.
3684
3685         mountlist: fix local drive detection on cygwin
3686         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
3687         that works for cygwin.
3688
3689 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3690
3691         ftoastr, snprintf: ftoastr + snprintf module
3692         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
3693         since the snprintf module now should be good enough here.
3694         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
3695         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
3696         and gl_MODULE_INDICATOR([snprintf]), but the former enables
3697         GNULIB_SNPRINTF only for the test directory, and the latter
3698         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
3699         seems to suffice by itself.
3700
3701 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         alloca: one step towards thread-safety
3704         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
3705         need for a static variable.  All callers changed.  This does not
3706         make the alloca replacement thread-safe, but it's one step.
3707
3708         tests: minor indenting change
3709         * tests/init.sh: Sync from coreutils housekeeping patch
3710         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
3711         to keep lines within 80 columns.
3712
3713 2010-12-28  Jim Meyering  <meyering@redhat.com>
3714
3715         regex: don't infloop on persistent failing calloc
3716         * lib/regexec.c (build_trtable): Return failure indication upon
3717         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
3718         In glibc, this was fixed for version 2.13:
3719         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
3720
3721 2010-12-28  Bruno Haible  <bruno@clisp.org>
3722             Paul Eggert <eggert@cs.ucla.edu>
3723
3724         linkat: Make implementation robust against system behaviour variations.
3725         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
3726         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
3727         way, and to -2 if it needs a generic runtime test.
3728         * lib/linkat.c (solaris_optimized_link_immediate,
3729         solaris_optimized_link_follow): New functions.
3730         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
3731         (check_same_link): Use it.
3732
3733 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
3734
3735         New module 'unigbrk/base'.
3736         * modules/unigbrk/base: New file.
3737         * lib/unigbrk.in.h: New file.
3738
3739         New module 'unigbrk/uc-gbrk-prop'.
3740         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
3741         * modules/unigbrk/uc-gbrk-prop: New file.
3742         * lib/unigbrk/gbrkprop.h: New file.
3743         * lib/unigbrk/uc-gbrk-prop.c: New file.
3744
3745         New module 'unigbrk/uc-is-grapheme-break'.
3746         * modules/unigbrk/uc-is-grapheme-break: New file.
3747         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
3748         * lib/unigbrk/uc-is-grapheme-break.c: New file.
3749         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
3750         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
3751         * tests/unigbrk/GraphemeBreakTest.txt: New file.
3752
3753         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
3754
3755 2010-12-27  Bruno Haible  <bruno@clisp.org>
3756
3757         linkat test: Avoid failure on Solaris 11 2010-11.
3758         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
3759
3760 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         utimens: work around glibc rounding bug on more platforms
3763         * lib/utimens.c (fdutimens): Work around rounding bug even if
3764         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
3765         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
3766
3767 2010-12-27  Bruno Haible  <bruno@clisp.org>
3768
3769         select tests: Improve comments.
3770         * tests/test-select.c (do_select): Add comments.
3771
3772 2010-12-27  Bruno Haible  <bruno@clisp.org>
3773
3774         select tests: Safer way of handling timeout.
3775         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
3776         at every invocation.
3777
3778 2010-12-27  Bruno Haible  <bruno@clisp.org>
3779
3780         select tests: Use 'bool' where appropriate.
3781         * tests/test-select.c (connect_to_socket): Change argument type to
3782         'bool'.
3783
3784 2010-12-27  Bruno Haible  <bruno@clisp.org>
3785
3786         select tests: Use existing modules.
3787         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
3788         (configure.ac): Don't test for unistd.h.
3789         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
3790         declared in <unistd.h>.
3791
3792 2010-12-27  Bruno Haible  <bruno@clisp.org>
3793
3794         mbrtowc: Work around a Solaris 7 bug.
3795         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
3796         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
3797         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
3798         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
3799         MBRTOWC_NULL_ARG1_BUG.
3800         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
3801         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
3802         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
3803         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
3804
3805 2010-12-27  Jim Meyering  <meyering@redhat.com>
3806
3807         read-file.c: tweak syntax
3808         * lib/read-file.c (fread_file): Remove space after "*" in function
3809         definitions.
3810
3811 2010-12-27  Bruno Haible  <bruno@clisp.org>
3812
3813         times test: Avoid gcc warnings on OSF/1.
3814         * tests/test-times.c (main): Cast printf arguments from clock_t to
3815         'long int'.
3816
3817 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
3818
3819         utimens: work around glibc rounding bug on older Linux kernels
3820         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
3821         on Linux with a glibc whose utimes might not work, then work
3822         around a longstanding glibc bug involving rounding rather than
3823         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
3824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3825
3826 2010-12-26  Bruno Haible  <bruno@clisp.org>
3827
3828         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
3829         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
3830         _GL_CXXALIAS_SYS.
3831         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3832
3833 2010-12-26  Bruno Haible  <bruno@clisp.org>
3834
3835         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
3836         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
3837         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3838         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
3839         looking for the declaration.
3840         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
3841         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
3842         problem.
3843         * doc/posix-functions/inet_pton.texi: Likewise.
3844
3845 2010-12-26  Bruno Haible  <bruno@clisp.org>
3846
3847         arpa_inet: Use the common idioms with C++ support.
3848         * lib/arpa_inet.in.h: Include c++defs.h.
3849         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
3850         support.
3851         * modules/arpa_inet (Depends-on): Add c++defs.
3852         (Makefile.am): Substitute the contents of c++defs.h.
3853         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
3854         * modules/arpa_inet-c++-tests: New file.
3855         * tests/test-arpa_inet-c++.cc: New file.
3856
3857 2010-12-25  Bruno Haible  <bruno@clisp.org>
3858
3859         Fix more C++ link errors on Solaris 8.
3860         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
3861         $(LIB_EACCESS).
3862         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
3863         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
3864         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
3865         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
3866         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
3867
3868 2010-12-25  Bruno Haible  <bruno@clisp.org>
3869
3870         printf-posix: Fix link error when a non-GCC compiler is used.
3871         * lib/stdio.in.h (printf): When not using GCC, override printf
3872         correctly.
3873         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3874
3875 2010-12-25  Bruno Haible  <bruno@clisp.org>
3876
3877         strerror_r-posix: Update doc.
3878         * doc/posix-functions/strerror_r.texi: Update doc about the return
3879         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
3880
3881 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3882
3883         utimens: simplify the logic of the previous change
3884         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
3885         This should not affect whether the test succeeds or fails.
3886
3887         utimens: configure better on hosts with NFS clock skew
3888         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
3889         uses the clock of the local host.  It might use the clock of the
3890         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
3891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
3892
3893 2010-12-25  Bruno Haible  <bruno@clisp.org>
3894
3895         ptsname test: Avoid failure on Solaris.
3896         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
3897         open a pseudo-terminal; don't use BSD-style ptys.
3898         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
3899
3900 2010-12-25  Bruno Haible  <bruno@clisp.org>
3901
3902         ptsname: Avoid ERANGE failure on some systems.
3903         * lib/ptsname.c (buffer): Increase size.
3904
3905 2010-12-25  Bruno Haible  <bruno@clisp.org>
3906
3907         rename, renameat: Avoid test failures at NFS mounted locations.
3908         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
3909         so that subsequent mkdir calls succeed.
3910
3911 2010-12-25  Bruno Haible  <bruno@clisp.org>
3912
3913         iswblank: Fix C++ link error on Solaris 8.
3914         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
3915         _GL_FUNCDECL_SYS.
3916
3917 2010-12-25  Bruno Haible  <bruno@clisp.org>
3918
3919         unistd: Fix C++ link error on Solaris 8.
3920         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
3921
3922 2010-12-25  Bruno Haible  <bruno@clisp.org>
3923
3924         readlink doc: Mention an old glibc bug.
3925         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
3926
3927 2010-12-25  Bruno Haible  <bruno@clisp.org>
3928
3929         fcntl-h: Fix for use of C++ on glibc systems.
3930         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3931         also on glibc systems in C++ mode.
3932         Reported by Gary V. Vaughan <gary@gnu.org>.
3933
3934 2010-12-25  Bruno Haible  <bruno@clisp.org>
3935
3936         roundl-ieee: Make it work on OSF/1 5.1 with cc.
3937         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
3938
3939 2010-12-25  Bruno Haible  <bruno@clisp.org>
3940
3941         truncl-ieee: Make it work on OSF/1 5.1 with cc.
3942         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
3943         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
3944         test whether truncl works according to ISO C 99 with IEC 60559.
3945         * m4/truncl-ieee.m4: New file.
3946         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
3947         m4/signbit.m4.
3948         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
3949
3950 2010-12-25  Bruno Haible  <bruno@clisp.org>
3951
3952         ceill-ieee: Make it work on OSF/1 5.1 with cc.
3953         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
3954         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
3955         test whether ceill works according to ISO C 99 with IEC 60559.
3956         * m4/ceill-ieee.m4: New file.
3957         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
3958         m4/signbit.m4.
3959         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
3960
3961 2010-12-25  Bruno Haible  <bruno@clisp.org>
3962
3963         Ensure all prerequisites of <wchar.h> are included.
3964         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
3965         before <wchar.h>.
3966         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3967         gl_MBRLEN_NUL_RETVAL): Likewise.
3968         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3969         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
3970         AC_FUNC_MBRTOWC): Likewise.
3971         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3972         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3973         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3974         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3975         Likewise.
3976         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3977         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
3978         (gl_WCHAR_H): Improve comments.
3979         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3980
3981 2010-12-25  Bruno Haible  <bruno@clisp.org>
3982
3983         strtok_r: Fix C syntax error in autoconf macro.
3984         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
3985         characters in test program.
3986
3987 2010-12-24  Bruno Haible  <bruno@clisp.org>
3988
3989         ceil, trunc, round: Fix gcc warnings.
3990         * lib/ceil.c (MIN): Undefine before redefining.
3991         * lib/trunc.c (MIN): Likewise.
3992         * lib/round.c (MIN): Likewise.
3993         Include <math.h> first.
3994
3995 2010-12-24  Bruno Haible  <bruno@clisp.org>
3996
3997         select tests: Avoid failures on OSF/1 5.1.
3998         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
3999         failure of closing the last socket; it may fail with ECONNRESET.
4000
4001 2010-12-24  Eric Blake  <eblake@redhat.com>
4002
4003         stdint: avoid HP-UX 10.20 preprocessor bug
4004         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
4005         than #if.
4006         * tests/test-floor2.c (main): Likewise.
4007         Reported by Peter O'Gorman.
4008
4009         pipe: make obsoletion transition easier
4010         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
4011         * modules/pipe (Files): Include revived file.
4012         (Include): Drop reference, to mirror getdate's behavior.
4013
4014 2010-12-24  Bruno Haible  <bruno@clisp.org>
4015
4016         sys_socket: Hide mismatch of declarations on NonStop Kernel.
4017         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
4018         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4019         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4020
4021 2010-12-24  Bruno Haible  <bruno@clisp.org>
4022
4023         gethostname: Ensure declaration on NonStop Kernel.
4024         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
4025         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4026
4027 2010-12-24  Bruno Haible  <bruno@clisp.org>
4028
4029         sys_select: Ensure all necessary types on NonStop Kernel.
4030         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
4031         include <sys/time.h>.
4032         * doc/posix-headers/sys_select.texi: Mention that it's missing on
4033         NonStop Kernel.
4034         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4035
4036 2010-12-24  Bruno Haible  <bruno@clisp.org>
4037
4038         sys_select: Remove unneeded include.
4039         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
4040         have <sys/select.h>.
4041
4042 2010-12-24  Bruno Haible  <bruno@clisp.org>
4043
4044         gethostname: Provide a fallback for HOST_NAME_MAX.
4045         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
4046         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
4047         instead.
4048         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4049
4050 2010-12-24  Bruno Haible  <bruno@clisp.org>
4051
4052         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
4053         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
4054         (SA_RESTART): Likewise.
4055         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4056
4057 2010-12-24  Bruno Haible  <bruno@clisp.org>
4058
4059         signal: Define NSIG.
4060         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
4061         * tests/test-signal.c (nsig): New variable.
4062         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4063
4064 2010-12-24  Bruno Haible  <bruno@clisp.org>
4065
4066         rename, renameat: Avoid test failures on OSF/1 5.1.
4067         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
4068         alternative error codes.
4069         * tests/test-renameat.c (main): Likewise.
4070
4071 2010-12-24  Bruno Haible  <bruno@clisp.org>
4072
4073         *printf: Detect large precisions bug on Solaris 10/SPARC.
4074         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
4075         by Paul Eggert.
4076         * tests/test-snprintf-posix.h (test_function): Add this test code here
4077         too.
4078         * tests/test-sprintf-posix.h (test_function): Likewise.
4079         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4080         * tests/test-vasprintf-posix.c (test_function): Likewise.
4081         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
4082         around by gnulib.
4083         * doc/posix-functions/printf.texi: Likewise.
4084         * doc/posix-functions/snprintf.texi: Likewise.
4085         * doc/posix-functions/sprintf.texi: Likewise.
4086         * doc/posix-functions/vfprintf.texi: Likewise.
4087         * doc/posix-functions/vprintf.texi: Likewise.
4088         * doc/posix-functions/vsnprintf.texi: Likewise.
4089         * doc/posix-functions/vsprintf.texi: Likewise.
4090         * doc/posix-functions/dprintf.texi: Undo last commit.
4091         * doc/posix-functions/vdprintf.texi: Likewise.
4092
4093 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
4094
4095         tests: port test-fdutimensat.c to Solaris 8
4096         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
4097         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
4098         On Solaris 8, it fails with errno == ENOSYS, because there is no
4099         futimens (so it can't use the fd), and there is no lutimens (so it
4100         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
4101
4102         vsnprintf: make more consistent with snprintf; doc fixes
4103
4104         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
4105         the byte count return problem was promoted from the snprintf-posix
4106         to the snprintf module.
4107         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4108         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
4109         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
4110         * tests/test-snprintf.c (main): Check the byte count returned.
4111         * tests/test-vsnprintf.c (main): Likewise.
4112
4113 2010-12-23  Eric Blake  <eblake@redhat.com>
4114
4115         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
4116         * modules/sigpipe (License): Relax license.
4117
4118 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         doc: document Solaris printf bug with large float precisions
4121         * doc/posix-functions/dprintf.texi (dprintf):
4122         * doc/posix-functions/fprintf.texi (fprintf):
4123         * doc/posix-functions/printf.texi (printf):
4124         * doc/posix-functions/snprintf.texi (snprintf):
4125         * doc/posix-functions/sprintf.texi (sprintf):
4126         * doc/posix-functions/vdprintf.texi (vdprintf):
4127         * doc/posix-functions/vfprintf.texi (vfprintf):
4128         * doc/posix-functions/vprintf.texi (vprintf):
4129         * doc/posix-functions/vsnprintf.texi (vsnprintf):
4130         * doc/posix-functions/vsprintf.texi (vsprintf):
4131         Mention that these functions mishandle large floating point
4132         precisions on Solaris 10.  The same bug is also present in Solaris
4133         8, and I assume earlier.  This causes "cd gnulib-tests; make
4134         check" to fail on Solaris 8 (and I assume, later) when building
4135         the latest coreutils, in test-vasprintf-posix's call to
4136         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
4137         the wide flavors (e.g., wprintf) so this patch just updates the
4138         documentation for the narrow ones.
4139
4140         test-posixtm.c: add two tests
4141         * tests/test-posixtm.c: Add two tests, to highlight the
4142         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
4143         around this bug; this is merely to document it.
4144
4145 2010-12-22  Bruno Haible  <bruno@clisp.org>
4146
4147         getlogin_r: Work around portability problem on OSF/1.
4148         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
4149         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
4150         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
4151         test for a truncated result.
4152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
4153         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
4154         * modules/getlogin_r (Depends-on): Add memchr.
4155         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
4156
4157 2010-12-22  Bruno Haible  <bruno@clisp.org>
4158
4159         ptsname: Avoid test failure on OSF/1 5.1.
4160         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
4161         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
4162         (same_slave): New function.
4163         (main): Use it to compare ptsname's result with the expected file name.
4164
4165 2010-12-22  Bruno Haible  <bruno@clisp.org>
4166
4167         Port extended stdio modules to HP NonStop Kernel.
4168         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
4169         macros.
4170         * lib/fbufmode.c: Update comments.
4171         * lib/fflush.c: Likewise.
4172         * lib/fpurge.c: Likewise.
4173         * lib/freadable.c: Likewise.
4174         * lib/freadahead.c: Likewise.
4175         * lib/freading.c: Likewise.
4176         * lib/freadptr.c: Likewise.
4177         * lib/freadseek.c: Likewise.
4178         * lib/fseeko.c: Likewise.
4179         * lib/fseterr.c: Likewise.
4180         * lib/fwritable.c: Likewise.
4181         * lib/fwriting.c: Likewise.
4182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
4183
4184 2010-12-22  Bruno Haible  <bruno@clisp.org>
4185
4186         ttyname_r: Work around bug on OSF/1 5.1.
4187         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
4188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
4189         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
4190         present.
4191         * lib/ttyname_r.c (ttyname_r): Update comments.
4192
4193 2010-12-22  Bruno Haible  <bruno@clisp.org>
4194
4195         round: Implement result sign according to IEEE 754.
4196         * lib/round.c (MIN, MINUS_ZERO): New macros.
4197         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
4198         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
4199         * tests/test-round-ieee.c (main): Likewise.
4200         * tests/test-roundl-ieee.c (main): Likewise.
4201
4202         trunc: Implement result sign according to IEEE 754.
4203         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
4204         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
4205         * tests/test-trunc2.c: Include minus-zero.h.
4206         (MINUS_ZERO): New macro.
4207         (trunc_reference): Keep in sync with lib/trunc.c.
4208         * tests/test-truncf2.c: Include minus-zero.h.
4209         (MINUS_ZERO): New macro.
4210         (truncf_reference): Keep in sync with lib/trunc.c.
4211         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
4212         * tests/test-trunc-ieee.c (main): Likewise.
4213         * tests/test-truncl-ieee.c (main): Likewise.
4214
4215         ceil: Implement result sign according to IEEE 754.
4216         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
4217         (FUNC): Return -0.0 for -1 < x < 0.
4218         * tests/test-ceil2.c: Include minus-zero.h.
4219         (MINUS_ZERO): New macro.
4220         (ceil_reference): Keep in sync with lib/ceil.c.
4221         * tests/test-ceilf2.c: Include minus-zero.h.
4222         (MINUS_ZERO): New macro.
4223         (ceilf_reference): Keep in sync with lib/ceil.c.
4224         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
4225         * tests/test-ceil-ieee.c (main): Likewise.
4226         * tests/test-ceill-ieee.c (main): Likewise.
4227
4228         floor: Implement result sign according to IEEE 754.
4229         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
4230         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
4231         * tests/test-floorf2.c (floorf_reference): Likewise.
4232         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
4233         * tests/test-floor-ieee.c (main): Likewise.
4234         * tests/test-floorl-ieee.c (main): Likewise.
4235
4236 2010-12-22  Bruno Haible  <bruno@clisp.org>
4237
4238         getaddrinfo: Update doc.
4239         * doc/posix-functions/gai_strerror.texi: Return type is also different
4240         on AIX and HP-UX.
4241
4242 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
4243
4244         getaddrinfo, inet_ntop: Update doc for Solaris.
4245         * doc/posix-functions/gai_strerror.texi: Return type is also an
4246         issue on Solaris 9 and earlier.
4247         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
4248         on Solaris 10 and earlier.
4249
4250 2010-12-21  Bruno Haible  <bruno@clisp.org>
4251
4252         New module 'roundl-ieee'.
4253         * modules/roundl-ieee: New file.
4254         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
4255         test whether roundl works according to ISO C 99 with IEC 60559.
4256         * m4/roundl-ieee.m4: New file.
4257         * modules/roundl-ieee-tests: New file.
4258         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
4259         * tests/test-roundl.c (main): Remove signbit tests.
4260         * modules/roundl-tests (Depends-on): Remove signbit.
4261         * doc/posix-functions/roundl.texi: Mention the new module.
4262
4263 2010-12-21  Bruno Haible  <bruno@clisp.org>
4264
4265         New module 'truncl-ieee'.
4266         * modules/truncl-ieee: New file.
4267         * modules/truncl-ieee-tests: New file.
4268         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
4269         * tests/test-truncl.c (main): Remove signbit tests.
4270         * modules/truncl-tests (Depends-on): Remove signbit.
4271         * doc/posix-functions/truncl.texi: Mention the new module.
4272
4273 2010-12-21  Bruno Haible  <bruno@clisp.org>
4274
4275         New module 'ceill-ieee'.
4276         * modules/ceill-ieee: New file.
4277         * modules/ceill-ieee-tests: New file.
4278         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
4279         * tests/test-ceill.c (main): Remove signbit tests.
4280         * modules/ceill-tests (Depends-on): Remove signbit.
4281         * doc/posix-functions/ceill.texi: Mention the new module.
4282
4283 2010-12-21  Bruno Haible  <bruno@clisp.org>
4284
4285         New module 'floorl-ieee'.
4286         * modules/floorl-ieee: New file.
4287         * modules/floorl-ieee-tests: New file.
4288         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
4289         * tests/test-floorl.c (main): Remove signbit tests.
4290         * modules/floorl-tests (Depends-on): Remove signbit.
4291         * doc/posix-functions/floorl.texi: Mention the new module.
4292
4293 2010-12-21  Bruno Haible  <bruno@clisp.org>
4294
4295         New module 'round-ieee'.
4296         * modules/round-ieee: New file.
4297         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
4298         whether round works according to ISO C 99 with IEC 60559.
4299         * m4/round-ieee.m4: New file.
4300         * modules/round-ieee-tests: New file.
4301         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
4302         * tests/test-round1.c (main): Remove signbit tests.
4303         * modules/round-tests (Depends-on): Remove 'signbit'.
4304         * doc/posix-functions/round.texi: Mention the new module.
4305
4306 2010-12-21  Bruno Haible  <bruno@clisp.org>
4307
4308         New module 'trunc-ieee'.
4309         * modules/trunc-ieee: New file.
4310         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
4311         whether trunc works according to ISO C 99 with IEC 60559.
4312         * m4/trunc-ieee.m4: New file.
4313         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
4314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
4315         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
4316         * modules/trunc-ieee-tests: New file.
4317         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
4318         * tests/test-trunc1.c (main): Remove signbit tests.
4319         * modules/trunc-tests (Depends-on): Remove 'signbit'.
4320         * doc/posix-functions/trunc.texi: Mention the new module.
4321
4322 2010-12-21  Bruno Haible  <bruno@clisp.org>
4323
4324         New module 'ceil-ieee'.
4325         * modules/ceil-ieee: New file.
4326         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
4327         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
4328         ISO C 99 with IEC 60559.
4329         * m4/ceil-ieee.m4: New file.
4330         * modules/ceil (Files): Add lib/ceil.c.
4331         (Depends-on): Add 'float'.
4332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4333         * lib/math.in.h (ceil): New declaration.
4334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
4335         REPLACE_CEIL.
4336         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
4337         * modules/ceil-ieee-tests: New file.
4338         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
4339         * tests/test-math-c++.cc: Check the signature of 'ceil'.
4340         * doc/posix-functions/ceil.texi: Mention the new module.
4341
4342 2010-12-21  Bruno Haible  <bruno@clisp.org>
4343
4344         New module 'floor-ieee'.
4345         * modules/floor-ieee: New file.
4346         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
4347         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
4348         ISO C 99 with IEC 60559.
4349         * m4/floor-ieee.m4: New file.
4350         * modules/floor (Files): Add lib/floor.c.
4351         (Depends-on): Add 'float'.
4352         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4353         * lib/math.in.h (floor): New declaration.
4354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
4355         REPLACE_FLOOR.
4356         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
4357         * modules/floor-ieee-tests: New file.
4358         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
4359         * tests/test-math-c++.cc: Check the signature of 'floor'.
4360         * doc/posix-functions/floor.texi: Mention the new module.
4361
4362 2010-12-21  Bruno Haible  <bruno@clisp.org>
4363
4364         New module 'roundf-ieee'.
4365         * modules/roundf-ieee: New file.
4366         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
4367         test whether roundf works according to ISO C 99 with IEC 60559.
4368         * m4/roundf-ieee.m4: New file.
4369         * modules/roundf-ieee-tests: New file.
4370         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
4371         * tests/test-roundf1.c (main): Remove signbit tests.
4372         * modules/roundf-tests (Depends-on): Remove 'signbit'.
4373         * doc/posix-functions/roundf.texi: Mention the new module.
4374
4375 2010-12-21  Bruno Haible  <bruno@clisp.org>
4376
4377         New module 'truncf-ieee'.
4378         * modules/truncf-ieee: New file.
4379         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
4380         test whether truncf works according to ISO C 99 with IEC 60559.
4381         * m4/truncf-ieee.m4: New file.
4382         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
4383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
4384         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
4385         * modules/truncf-ieee-tests: New file.
4386         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
4387         * tests/test-truncf1.c (main): Remove signbit tests.
4388         * modules/truncf-tests (Depends-on): Remove 'signbit'.
4389         * doc/posix-functions/truncf.texi: Mention the new module.
4390
4391 2010-12-21  Bruno Haible  <bruno@clisp.org>
4392
4393         New module 'ceilf-ieee'.
4394         * modules/ceilf-ieee: New file.
4395         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
4396         test whether ceilf works according to ISO C 99 with IEC 60559.
4397         * m4/ceilf-ieee.m4: New file.
4398         * modules/ceilf-ieee-tests: New file.
4399         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
4400         * tests/test-ceilf1.c (main): Remove signbit tests.
4401         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
4402         * doc/posix-functions/ceilf.texi: Mention the new module.
4403
4404 2010-12-21  Bruno Haible  <bruno@clisp.org>
4405
4406         New module 'floorf-ieee'.
4407         * modules/floorf-ieee: New file.
4408         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
4409         test whether floorf works according to ISO C 99 with IEC 60559.
4410         * m4/floorf-ieee.m4: New file.
4411         * modules/floorf-ieee-tests: New file.
4412         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
4413         * tests/test-floorf1.c (main): Remove signbit tests.
4414         * modules/floorf-tests (Depends-on): Remove 'signbit'.
4415         * doc/posix-functions/floorf.texi: Mention the new module.
4416
4417 2010-12-21  Bruno Haible  <bruno@clisp.org>
4418
4419         Support for minus zero in autoconf macros.
4420         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
4421         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
4422         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
4423         * tests/minus-zero.h: Update comments.
4424
4425 2010-12-21  Bruno Haible  <bruno@clisp.org>
4426
4427         Tests for module 'ceil'.
4428         * modules/ceil-tests: New file.
4429         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
4430         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
4431
4432 2010-12-21  Bruno Haible  <bruno@clisp.org>
4433
4434         Tests for module 'floor'.
4435         * modules/floor-tests: New file.
4436         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
4437         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
4438
4439 2010-12-21  Bruno Haible  <bruno@clisp.org>
4440
4441         math: Fix indentation.
4442         * lib/math.in.h (floorf): Fix indentation.
4443
4444 2010-12-21  Bruno Haible  <bruno@clisp.org>
4445
4446         Fix cross-compilation guesses on Solaris.
4447         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
4448         not match "solaris2.10".
4449         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4450         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
4451         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4452
4453 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
4454
4455         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
4456         This fixes a problem observed with the latest coreutils snapshot
4457         that caused a test to fail on Solaris 8.  src/csplit.c's call
4458         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
4459         earlier, instead of returning the number of bytes that would have
4460         been generated; this causes csplit to incorrectly report memory
4461         exhaustion.
4462         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
4463         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
4464         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
4465         comments to match.
4466         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
4467         Fix typo in matching older versions of Solaris: "solaris2.10"
4468         is matched by the shell pattern "solaris2.[0-9]*".  This matters
4469         only for guessing while cross-compiling.
4470         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
4471
4472 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
4473
4474         ftoastr: fix comment again
4475         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
4477         Also, simplify example a bit by using flags = 0.
4478
4479 2010-12-20  Bruno Haible  <bruno@clisp.org>
4480
4481         round*, trunc*: Update documentation regarding glibc.
4482         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
4483         * doc/posix-functions/round.texi: Likewise.
4484         * doc/posix-functions/roundl.texi: Likewise.
4485         * doc/posix-functions/truncf.texi: Likewise.
4486         * doc/posix-functions/trunc.texi: Likewise.
4487         * doc/posix-functions/truncl.texi: Likewise.
4488
4489 2010-12-20  Bruno Haible  <bruno@clisp.org>
4490
4491         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
4492         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
4493         * doc/posix-functions/round.texi: Likewise.
4494         * doc/posix-functions/roundl.texi: Likewise.
4495
4496 2010-12-20  Bruno Haible  <bruno@clisp.org>
4497
4498         ttyname_r: Add missing declaration on HP-UX 11.
4499         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
4500         HAVE_TTYNAME_R.
4501         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
4502         declared. Set HAVE_TTYNAME_R always.
4503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4504         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
4505         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
4506         HAVE_TTYNAME_R.
4507         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
4508
4509 2010-12-20  Bruno Haible  <bruno@clisp.org>
4510
4511         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
4512         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
4513         * doc/posix-functions/getlogin_r.texi: Likewise.
4514         * tests/test-getlogin.c: Include <errno.h>.
4515         (main): Avoid test failure on HP-UX 11.11.
4516         * tests/test-getlogin_r.c (main): Likewise.
4517
4518 2010-12-20  Bruno Haible  <bruno@clisp.org>
4519
4520         getlogin_r: Add missing declaration on HP-UX 11.
4521         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
4522         declared also when it exists as a function.
4523         * doc/posix-functions/getlogin_r.texi: Document this workaround.
4524
4525 2010-12-20  Bruno Haible  <bruno@clisp.org>
4526
4527         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
4528         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
4529         through wcrtomb.
4530
4531 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4532
4533         ftoastr: fix comment
4534         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
4535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
4536
4537 2010-12-19  Bruno Haible  <bruno@clisp.org>
4538
4539         isnan: Ensure it is a macro.
4540         * lib/math.in.h (isnan): Define as a macro if not already a macro.
4541         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
4542         Solaris.
4543
4544 2010-12-19  Bruno Haible  <bruno@clisp.org>
4545
4546         ldexpl test: Fix link error on OSF/1 5.1.
4547         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
4548
4549 2010-12-19  Bruno Haible  <bruno@clisp.org>
4550
4551         wctype: Make it work in C++ mode on OSF/1 5.1.
4552         * lib/wctype.in.h (iswblank): Declare but not define here.
4553         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
4554         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
4555         * modules/wctype (Files): Add lib/iswblank.c.
4556
4557 2010-12-19  Bruno Haible  <bruno@clisp.org>
4558
4559         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
4560         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
4561         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
4562
4563 2010-12-19  Bruno Haible  <bruno@clisp.org>
4564
4565         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
4566         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
4567         _POSIX_PII_SOCKET.
4568         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
4569         * doc/posix-functions/recvfrom.texi: Likewise.
4570         * doc/posix-functions/send.texi: Likewise.
4571         * doc/posix-functions/sendto.texi: Likewise.
4572
4573 2010-12-19  Bruno Haible  <bruno@clisp.org>
4574
4575         tcgetsid: Add missing declaration on OSF/1 5.1.
4576         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
4577         HAVE_TCGETSID.
4578         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
4579         Don't set HAVE_TCGETSID.
4580         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
4581         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
4582         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
4583         HAVE_TCGETSID.
4584         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
4585
4586 2010-12-19  Bruno Haible  <bruno@clisp.org>
4587
4588         stdio: Fix problem with popen() declaration on OSF/1 5.1.
4589         * lib/stdio.in.h: During the include_next statement, let recursive
4590         includes of this file include only the system header file.
4591
4592 2010-12-19  Bruno Haible  <bruno@clisp.org>
4593
4594         iconv_open: Fix regression from 2010-12-04.
4595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
4596         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
4597
4598 2010-12-19  Bruno Haible  <bruno@clisp.org>
4599
4600         stdbool test: Avoid a gcc warning.
4601         * tests/test-stdbool.c (main): Fail if e1 is false.
4602         Reported by Jim Meyering.
4603
4604 2010-12-19  Jim Meyering  <meyering@redhat.com>
4605
4606         setenv: restore to working order
4607         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
4608         mistakenly removed.
4609         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
4610         HAVE_SETENV.
4611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
4612         HAVE_SETENV.
4613
4614 2010-12-19  Bruno Haible  <bruno@clisp.org>
4615
4616         Document some different function declarations on OSF/1 5.1.
4617         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
4618         * doc/posix-functions/inet_ntop.texi: Likewise.
4619         * doc/posix-functions/gethostname.texi: Likewise.
4620         * lib/unistd.in.h (gethostname): Update comment.
4621
4622 2010-12-19  Bruno Haible  <bruno@clisp.org>
4623
4624         doc: Mention vasprintf-posix module.
4625         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
4626         the 'vasprintf-posix' module.
4627         * doc/glibc-functions/vasprintf.texi: Likewise.
4628
4629 2010-12-19  Bruno Haible  <bruno@clisp.org>
4630
4631         unsetenv: Add missing declaration on OSF/1 5.1.
4632         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
4633         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
4634         Don't set HAVE_UNSETENV. In the test program, set _BSD.
4635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
4636         not HAVE_UNSETENV.
4637         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
4638         HAVE_UNSETENV.
4639         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
4640
4641 2010-12-19  Bruno Haible  <bruno@clisp.org>
4642
4643         setenv: Add missing declaration on OSF/1 5.1.
4644         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
4645         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
4646         declared. Don't set HAVE_SETENV.
4647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
4648         not HAVE_SETENV.
4649         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
4650         HAVE_SETENV.
4651         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
4652
4653 2010-12-19  Bruno Haible  <bruno@clisp.org>
4654
4655         nl_langinfo tests: Avoid gcc warning.
4656         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
4657
4658 2010-12-19  Bruno Haible  <bruno@clisp.org>
4659
4660         mknod: Avoid error in C++ mode on OSF/1 with GCC.
4661         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
4662         _GL_CXXALIAS_SYS.
4663
4664 2010-12-19  Bruno Haible  <bruno@clisp.org>
4665
4666         stdbool: Relax test.
4667         * tests/test-stdbool.c (e): Don't require that casts from a variable's
4668         address to 'bool' work in static initializer, for compilers other than
4669         GCC.
4670
4671 2010-12-19  Bruno Haible  <bruno@clisp.org>
4672
4673         ftello: Add missing declaration on OSF/1 5.1.
4674         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
4675         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
4676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
4677         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
4678         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
4679
4680 2010-12-19  Bruno Haible  <bruno@clisp.org>
4681
4682         fseeko: Add missing declaration on OSF/1 5.1.
4683         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
4684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
4685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
4686         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
4687         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
4688
4689 2010-12-19  Bruno Haible  <bruno@clisp.org>
4690
4691         fchdir: Add missing declaration on OSF/1 5.1.
4692         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
4693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
4694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
4695         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
4696         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
4697
4698 2010-12-19  Bruno Haible  <bruno@clisp.org>
4699
4700         relocatable-prog-wrapper: Separate from relocatable-prog.
4701         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
4702         uninstall-relocwrapper rule here.
4703         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
4704         Reported by Ian Beckwith <ianb@erislabs.net>.
4705
4706 2010-12-19  Bruno Haible  <bruno@clisp.org>
4707
4708         unistr/u8-mbsnlen: Add missing dependency.
4709         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
4710         Reported by Ian Beckwith <ianb@erislabs.net>.
4711
4712 2010-12-19  Bruno Haible  <bruno@clisp.org>
4713
4714         iconv: Make it possible again to use this module without 'iconv-h'.
4715         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
4716         if it is not defined.
4717         Reported by Ian Beckwith <ianb@erislabs.net>.
4718
4719 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4720
4721         acl: port to Solaris 8 when copying from tmpfs to ufs
4722         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
4723         error number.  Problem observed on Solaris 8 with latest
4724         coreutils, with "mv A B", where A is on a tmpfs file system and B
4725         is on a ufs file system.  This caused coreutils' mv/part-symlink
4726         test to fail.
4727
4728         tests: set fail=0 at start
4729         * tests/init.sh (setup_): Move fail=0 initialization here ...
4730         (mktempd_): ... from here, so that tests can rely on fail being
4731         set to 0 initially.  This fixes a problem in coreutils; see:
4732         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
4733
4734 2010-12-18  Bruno Haible  <bruno@clisp.org>
4735
4736         memmem-simple: Stylistic changes.
4737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
4738         Fix preprocessor directive indentation.
4739
4740 2010-12-15  Pádraig Brady <P@draigBrady.com>
4741
4742         memmem, memmem-simple: reorganize and expand empty needle check
4743         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
4744         functional checks to memmem-simple so that one has a fully functional
4745         memmem by using just this module.
4746         Restrict the performance only check to the memmem module.
4747         Also expand the empty needle check to ensure the correct
4748         pointer is returned, not just a non NULL pointer.
4749         * doc/glibc-functions/memmem.texi: Rearrange the portability
4750         documentation to correlate with the rearranged checks.
4751         Clarify exactly how the memmem and memmem-simple modules
4752         relate to each other.
4753
4754 2010-12-15  Pádraig Brady <P@draigBrady.com>
4755             Bruno Haible  <bruno@clisp.org>
4756
4757         Improve cross-compilation guesses for uClibc.
4758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
4759         that uClibc does not have the glibc bug.
4760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4761         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
4762
4763 2010-12-14  Eric Blake  <eblake@redhat.com>
4764
4765         configmake: provide fallbacks for oldest supported autotools
4766         * m4/configmake.m4: New file.
4767         * modules/configmake (Files): Ship it.
4768         (configure.ac): Use it to guarantee fallbacks.
4769
4770 2010-12-13  Pádraig Brady <P@draigBrady.com>
4771
4772         read-file: Improve handling of large files
4773         * lib/read-file.c (fread_file): Minimize realloc()s
4774         for regular files, and better manage sizes around SIZE_MAX.
4775
4776 2010-12-13  Eric Blake  <eblake@redhat.com>
4777
4778         cloexec, fcntl: relax license
4779         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
4780         consent from all contributors.
4781         * modules/fcntl (License): Likewise.
4782
4783 2010-12-10  Bruno Haible  <bruno@clisp.org>
4784
4785         Tests for module 'pipe-posix'.
4786         * modules/pipe-posix-tests: New file.
4787         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
4788
4789 2010-12-10  Bruno Haible  <bruno@clisp.org>
4790
4791         pipe-posix: Make it work in C++ mode.
4792         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
4793         (pipe): Use common idiom, not a macro definition.
4794         * lib/pipe.c: New file.
4795         * m4/pipe.m4: New file.
4796         * modules/pipe-posix (Description): Enhance.
4797         (Files): Add lib/pipe.c, m4/pipe.m4.
4798         (configure.ac): Invoke gl_FUNC_PIPE.
4799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
4800         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
4801         * tests/test-unistd-c++.cc: Check the signature of pipe.
4802
4803 2010-12-10  Bruno Haible  <bruno@clisp.org>
4804
4805         Rename module 'pipe' to 'spawn-pipe'.
4806         * modules/spawn-pipe: New file, renamed from modules/pipe.
4807         (Files, configure.ac, Makefile.am): Update.
4808         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
4809         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
4810         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
4811         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
4812         "spawn-pipe.h" instead of "pipe.h".
4813         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
4814         to gl_SPAWN_PIPE.
4815         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
4816         (Files, Makefile.am): Update.
4817         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
4818         Update.
4819         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
4820         Include "spawn-pipe.h" instead of "pipe.h".
4821         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
4822         * lib/javacomp.c: Likewise.
4823         * lib/javaversion.c: Likewise.
4824         * lib/pipe-filter-gi.c: Likewise.
4825         * lib/pipe-filter-ii.c: Likewise.
4826         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
4827         * modules/javacomp (Depends-on): Likewise.
4828         * modules/javaversion (Depends-on): Likewise.
4829         * modules/pipe-filter-gi (Depends-on): Likewise.
4830         * modules/pipe-filter-ii (Depends-on): Likewise.
4831         * MODULES.html.sh (Executing programs): Update.
4832         * NEWS: Mention the change.
4833
4834 2010-12-10  Eric Blake  <eblake@redhat.com>
4835
4836         pipe-posix: new module
4837         * modules/pipe-posix: New file.
4838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
4839         (gl_UNISTD_H): Check for declaration.
4840         * modules/unistd (Makefile.am): Substitute it.
4841         * lib/unistd.in.h (pipe): Provide it for mingw.
4842         * doc/posix-functions/pipe.texi (pipe): Update documentation.
4843         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
4844
4845 2010-12-07  Bruno Haible  <bruno@clisp.org>
4846
4847         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
4848         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
4849         u8_strcmp_gnu.
4850         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
4851
4852 2010-12-06  Bruno Haible  <bruno@clisp.org>
4853
4854         Update internal documentation.
4855         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
4856
4857 2010-12-04  Bruno Haible  <bruno@clisp.org>
4858
4859         Put more information about failed tests into the test return codes.
4860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
4861         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
4862         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4864         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4865         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4866         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4867         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4868         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
4869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4871         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4872         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4873         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4874         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
4875         returns a bit mask.
4876         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4877         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4878         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4879         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4880         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4884         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4887         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4888         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4890         * m4/link.m4 (gl_FUNC_LINK): Likewise.
4891         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4892         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
4893         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
4894         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4895         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
4896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4897         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4899         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4900         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4901         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4902         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4903         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4904         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4905         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
4906         gl_PRINTF_PRECISION): Likewise.
4907         * m4/regex.m4 (gl_REGEX): Likewise.
4908         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4910         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
4911         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4915         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
4916         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4917         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4918         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4919         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4920         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4921         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4922         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4923         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4924         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4927         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
4928         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
4929         enumerated value.
4930         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
4931
4932 2010-12-04  Bruno Haible  <bruno@clisp.org>
4933
4934         Update for Solaris 11 2010-11.
4935         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
4936         Express, released in November 2010.
4937
4938 2010-12-04  Bruno Haible  <bruno@clisp.org>
4939
4940         nproc: Relax license.
4941         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
4942         and Paul Eggert.
4943         Requested by Ludovic Courtès <ludo@gnu.org>.
4944
4945 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4946
4947         utimecmp: fine-grained src to nearby coarse-grained dest
4948
4949         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
4950         and the source is on a file system with higher-resolution time
4951         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
4952         not work, and the time stamps are close together, the algorithm to
4953         determine the exact resolution from the read-back mtime was buggy:
4954         it had a "!=" where it should have had an "==".  This bug has been
4955         in the code ever since it was introduced to gnulib.
4956         Problem reported by Dan Jacobson in
4957         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
4958
4959 2010-11-30  Bruno Haible  <bruno@clisp.org>
4960
4961         strerror_r-posix: Fix autoconf test.
4962         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
4963
4964 2010-11-28  Bruno Haible  <bruno@clisp.org>
4965             Paul Eggert  <eggert@cs.ucla.edu>
4966
4967         Tests for module 'getdomainname'.
4968         * modules/getdomainname-tests: New file.
4969         * tests/test-getdomainname.c: New file, based on
4970         tests/test-gethostname.c.
4971
4972 2010-11-28  Bruno Haible  <bruno@clisp.org>
4973             Paul Eggert  <eggert@cs.ucla.edu>
4974
4975         getdomainname: Use the system function when possible.
4976         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
4977         (getdomainname): Replace if needed. Provide the declaration if it is
4978         missing. Don't use _GL_CXXALIAS_SYS_CAST.
4979         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
4980         (getdomainname): When the system has getdomainname, call the system
4981         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
4982         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4983         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
4984         found in libnsl. Look for the declaration also in <netdb.h>. Replace
4985         the function if its second argument is of type 'int' or if it is found
4986         in libnsl.
4987         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
4988         <sys/systeminfo.h> and sysinfo().
4989         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
4990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4991         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
4992         HAVE_GETDOMAINNAME.
4993         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
4994         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
4995         * doc/glibc-functions/getdomainname.texi: Document the problems with
4996         the getdomainname declaration.
4997
4998 2010-11-28  Bruno Haible  <bruno@clisp.org>
4999
5000         sys_socket: Ensure ss_family field on AIX.
5001         * lib/sys_socket.in.h (ss_family): New macro definition.
5002         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
5003         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
5004         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5005         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5006         * modules/sys_socket (Makefile.am): Substitute
5007         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
5008         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
5009
5010 2010-11-27  Bruno Haible  <bruno@clisp.org>
5011
5012         readline: Improve configure output.
5013         * m4/readline.m4 (gl_FUNC_READLINE): Make the
5014         "checking for readline..." result understandable.
5015
5016 2010-11-27  Bruno Haible  <bruno@clisp.org>
5017
5018         *printf-posix: Detect a bug on Solaris 10/x86.
5019         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
5020         for floating-point output.
5021         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
5022         directive.
5023         * tests/test-snprintf-posix.h (test_function): Likewise.
5024         * tests/test-sprintf-posix.h (test_function): Likewise.
5025         * tests/test-vasprintf-posix.c (test_function): Likewise.
5026         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
5027         * doc/posix-functions/printf.texi: Likewise.
5028         * doc/posix-functions/snprintf.texi: Likewise.
5029         * doc/posix-functions/sprintf.texi: Likewise.
5030         * doc/posix-functions/vfprintf.texi: Likewise.
5031         * doc/posix-functions/vprintf.texi: Likewise.
5032         * doc/posix-functions/vsnprintf.texi: Likewise.
5033         * doc/posix-functions/vsprintf.texi: Likewise.
5034         * doc/glibc-functions/obstack_printf.texi: Likewise.
5035         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5036
5037 2010-11-27  Bruno Haible  <bruno@clisp.org>
5038
5039         Fix link error when module libunistring-optional is in use.
5040         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
5041         * modules/striconveha-tests (Makefile.am): Likewise.
5042
5043 2010-11-27  Bruno Haible  <bruno@clisp.org>
5044
5045         regex: Mention link dependencies.
5046         * modules/regex (Link): New section.
5047         * modules/rpmatch (Link): Likewise.
5048         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
5049
5050 2010-11-27  Bruno Haible  <bruno@clisp.org>
5051
5052         ftoastr: Fix compilation error on Solaris.
5053         * lib/ftoastr.c: Include <config.h>.
5054
5055 2010-11-27  Bruno Haible  <bruno@clisp.org>
5056
5057         getloadavg: Update documentation.
5058         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
5059
5060 2010-11-27  Bruno Haible  <bruno@clisp.org>
5061
5062         sys_socket: Fix test whether the functions are declared.
5063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
5064         not <sys/select.h>.
5065
5066 2010-11-27  Bruno Haible  <bruno@clisp.org>
5067
5068         getpass: Make sure to get system declaration on some platforms.
5069         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
5070         gl_USE_SYSTEM_EXTENSIONS.
5071         * modules/getpass (Depends-on): Add extensions.
5072
5073 2010-11-26  Bruno Haible  <bruno@clisp.org>
5074
5075         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
5076         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
5077         'iconv' module is present.
5078         (ICONV_CONST): New macro.
5079         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
5080         ICONV_CONST.
5081         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
5082         set ICONV_CONST.
5083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
5084         here.
5085         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
5086         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
5087         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
5088         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
5089         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
5090         present.
5091
5092 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5093
5094         ftoastr: comment fix
5095         * lib/ftoastr.c: "little" -> "little or no" in comment
5096
5097 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         stdint: port to GCC 4.3 + OSX + Octave
5100         On this platform, stdint.h is buggy and defines int64_t to long
5101         long int.  The replacement defined it to long int, causing
5102         problems with C++ style name mangling.  Instead, trust the system
5103         definition if INT64_MAX is defined, and likewise for the unsigned
5104         variant.   Problem reported by Jarno Rajahalme in
5105         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
5106         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
5107         and don't mess with int64_t and INT64_MAX in this case.
5108         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
5109
5110 2010-11-24  Bruno Haible  <bruno@clisp.org>
5111
5112         doc: Corrections regarding MacOS X 10.4 and 10.5.
5113         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
5114         MacOS X.
5115         Reported by Simon Josefsson.
5116
5117 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
5118
5119         Uninstall ".bin" files installed by relocwrapper.
5120         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
5121         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
5122         unless it is already there.
5123
5124 2010-11-21  Bruno Haible  <bruno@clisp.org>
5125
5126         Update for NetBSD 5.0.
5127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5128         NetBSD; the test fails on NetBSD 5.0.
5129         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5130         about NetBSD.
5131
5132 2010-11-21  Bruno Haible  <bruno@clisp.org>
5133
5134         Update for HP-UX 11.23 and HP-UX 11.31.
5135         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
5136         HP-UX.
5137
5138 2010-11-21  Bruno Haible  <bruno@clisp.org>
5139
5140         Update for MacOS X 10.5.
5141         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
5142         MacOS X; the test fails on MacOS X 10.5.8.
5143         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
5144         about MacOS X.
5145
5146 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
5147
5148         bootstrap: add bootstrap_sync option.
5149         See discussion at
5150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
5152         * build-aux/bootstrap: Accept --bootstrap-sync to update
5153         bootstrap if it is not identical to the local gnulib's
5154         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
5155         enable this by default.  Accept --no-bootstrap-sync to disable
5156         it.
5157
5158 2010-11-20  Bruno Haible  <bruno@clisp.org>
5159
5160         Ensure that <features.h> is included before __GLIBC__ is tested.
5161         * lib/printf-parse.h: Include <features.h>.
5162         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
5163         Reported by Mike Frysinger <vapier@gentoo.org>.
5164
5165         Ensure that <features.h> is included before __GLIBC__ is tested.
5166         * lib/wchar.in.h: Include <features.h>.
5167         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
5168         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
5169         Reported by Mike Frysinger <vapier@gentoo.org>.
5170
5171         Ensure that <features.h> is included before __GLIBC__ is tested.
5172         * lib/arpa_inet.in.h: Include <features.h>.
5173         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
5174         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
5175         Reported by Mike Frysinger <vapier@gentoo.org>.
5176
5177         Ensure that <features.h> is included before __GLIBC__ is tested.
5178         * build-aux/link-warning.h: Include <features.h>.
5179         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
5180         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
5181         Reported by Mike Frysinger <vapier@gentoo.org>.
5182
5183         Ensure that <features.h> is included before __GLIBC__ is tested.
5184         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
5185         Reported by Mike Frysinger <vapier@gentoo.org>.
5186
5187 2010-11-20  Bruno Haible  <bruno@clisp.org>
5188
5189         memmem: Fix autoconf test.
5190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5191
5192 2010-11-20  Bruno Haible  <bruno@clisp.org>
5193
5194         Port to uClibc.
5195         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
5196         * lib/fcntl.in.h: Likewise.
5197         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
5198         * lib/mbrtowc.c (mbrtowc): Likewise.
5199         * lib/relocatable.c (find_shared_library_fullname): Likewise.
5200         * lib/strerror_r.c: Likewise.
5201         * lib/unistr/u8-strnlen.c: Likewise.
5202         * lib/vasnprintf.c (decimal_point_char): Likewise.
5203         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5204         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5206         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
5207         * tests/test-sigaction.c (handler, main): Likewise.
5208         * lib/freading.h: Treat uClibc like a non-glibc platform.
5209         * lib/freading.c: Likewise.
5210         * lib/gettext.h: Likewise.
5211         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
5212         Likewise.
5213         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
5214         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5215         * lib/propername.c (proper_name_utf8): Likewise.
5216         * lib/spawn.in.h: Likewise.
5217         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
5218         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
5219         mem_cd_iconveh_internal): Likewise.
5220         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
5221         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5222         strstr, strcasestr): Likewise.
5223         * lib/unicodeio.c (unicode_to_mb): Likewise.
5224         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
5225         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
5226         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
5227         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
5228         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
5229         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
5230         * lib/unistr/u8-stpncpy.c: Likewise.
5231         * lib/vasnprintf.c (VASNPRINTF): Likewise.
5232         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
5233         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
5234         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5235         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
5236         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
5237         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
5238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
5239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5240         Likewise.
5241         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5242         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
5243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5247         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5248         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5249         * tests/test-getopt.h (OPTIND_MIN): Likewise.
5250         * tests/test-striconveha.c (main): Likewise.
5251         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5252         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
5253         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
5254         * doc/posix-functions/getline.texi: Likewise.
5255         Reported by Mike Frysinger <vapier@gentoo.org>.
5256
5257 2010-11-20  Bruno Haible  <bruno@clisp.org>
5258
5259         nproc: Fix condition.
5260         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
5261         HAVE_PTHREAD_AFFINITY_NP.
5262
5263 2010-11-20  Bruno Haible  <bruno@clisp.org>
5264
5265         Fix a comment.
5266         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
5267
5268 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5269
5270         ftoastr: don't assume snprintf
5271         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
5272         Implement a subset of snprintf here, by using sprintf safely.
5273         * modules/ftoastr (Depends-on): Remove snprintf.
5274
5275 2010-11-19  Jim Meyering  <meyering@redhat.com>
5276
5277         test-rename.h: fix compilation failure
5278         * tests/test-rename.h (test_rename): Add omitted "}".
5279
5280 2010-11-17  Jim Meyering  <meyering@redhat.com>
5281
5282         maint.mk: add a URL discussing the no-@acronym policy
5283         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
5284
5285 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5286
5287         ftoastr: depend on snprintf, improve comments
5288         * lib/ftoastr.c: Also mention Loitsch's draft.
5289         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
5290         needed in the current implementation, but it might simplify
5291         speeding up the code later.
5292         * modules/ftoastr: Depend on snprintf; this improves portability.
5293         Suggested by Bruno Haible in the same email.
5294
5295         ftoastr: port to hosts lacking strtof and strtold
5296         Problem reported by Bruno Haible in
5297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
5298         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
5299         environment and strtold (and presumably strtof) are not available.
5300         * modules/ftoastr (Files): Add m4/c-strtod.m4.
5301         (configure.ac): Require gl_C99_STRTOLD.
5302
5303 2010-11-18  Bruno Haible  <bruno@clisp.org>
5304
5305         c-strtold: Avoid link error on AIX 7.
5306         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
5307         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
5308         (gl_C_STRTOLD): Test whether strtold_l exists.
5309         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5310
5311 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5312
5313         intprops: new macro INT_BITS_STRLEN_BOUND
5314         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
5315         ftoastr.h.  This exposes an internal of intprops.h that was formerly
5316         not exposed.  Also, it uses a slightly tighter bound than before;
5317         though this makes no practical difference, we might as well be as
5318         tight as we easily can.
5319
5320         ftoastr: new module, for lossless conversion of floats to short strings
5321         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
5322         * modules/ftoastr: New files.
5323
5324 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5325
5326         bootstrap: port to Solaris sed
5327         * build-aux/bootstrap (get_version): Port to Solaris sed.
5328         See Ralf Wildenhues's note in
5329         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
5330
5331 2010-11-14  Jim Meyering  <meyering@redhat.com>
5332
5333         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
5334         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
5335         and move definition closer to sole use.
5336
5337 2010-11-13  Jim Meyering  <meyering@redhat.com>
5338
5339         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
5340         Now we require at least autoconf-2.59, which means the work-around
5341         is no longer needed.
5342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
5343         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5344         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5345         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
5346         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5347
5348 2010-11-13  Bruno Haible  <bruno@clisp.org>
5349
5350         rename, renameat: Avoid test failures at NFS mounted locations.
5351         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
5352         functions.
5353         (test_rename): Use assert_nonexistent.
5354         * tests/test-rename.c: Include <dirent.h>.
5355         * tests/test-renameat.c: Likewise.
5356         Reported by Gary V. Vaughan <gary@gnu.org>.
5357
5358         rename, renameat: Document Linux bug with NFS
5359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
5360         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
5361         * doc/posix-functions/renameat.texi: Likewise.
5362         Suggested by Eric Blake.
5363
5364 2010-11-13  Bruno Haible  <bruno@clisp.org>
5365
5366         rename test: Add comments.
5367         * tests/test-rename.h (test_rename): Add structure and comments.
5368
5369 2010-11-13  Eric Blake  <eblake@redhat.com>
5370
5371         maintainer-makefile: cover a few more files
5372         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
5373         scripts generated within C files, for libvirt.
5374
5375 2010-11-13  Bruno Haible  <bruno@clisp.org>
5376
5377         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
5378         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
5379         character, return the number of bytes that belong together, not always
5380         1.
5381         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
5382         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5383         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5384         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
5385         number of bytes of an invalid character.
5386         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
5387         (main): Invoke it.
5388         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
5389         results.
5390         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
5391         malformed byte sequences.
5392         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
5393         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
5394         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
5395         Reported by Ben Pfaff and Paolo Bonzini.
5396
5397 2010-11-13  Bruno Haible  <bruno@clisp.org>
5398
5399         openat: Work around glibc bug with fchownat() and empty file names.
5400         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
5401         (gl_FUNC_FCHOWNAT): Invoke it.
5402         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
5403         * doc/posix-functions/fchownat.texi: Document the glibc bug.
5404         Reported by Gary V. Vaughan <gary@gnu.org>.
5405
5406 2010-11-13  Bruno Haible  <bruno@clisp.org>
5407
5408         openat: Ensure autoconf macro ordering.
5409         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
5410         gl_USE_SYSTEM_EXTENSIONS.
5411         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
5412
5413 2010-11-13  Bruno Haible  <bruno@clisp.org>
5414
5415         Update comments.
5416         * lib/unistr/u8-check.c: Update file name in comments.
5417         * lib/unistr/u8-mblen.c: Likewise.
5418         * lib/unistr/u8-prev.c: Likewise.
5419         * lib/unistr/u8-strmblen.c: Likewise.
5420         * lib/unistr/u8-strmbtouc.c: Likewise.
5421
5422 2010-11-13  Jim Meyering  <meyering@redhat.com>
5423
5424         tests: avoid test failure on Solaris 10 due to lack of PATH export
5425         * tests/test-update-copyright.sh: Don't forget to export PATH.
5426
5427         init.sh: ensure that IFS is defined, just in case...
5428         * tests/init.sh (setup_): Ensure that IFS is defined,
5429         so that saving and restoring it works as expected.  This
5430         appears to be useful at least for an old version of dash
5431         from a long time ago (RH 6).  See here for details:
5432         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
5433
5434         maint.mk: tighten "test a == b" check
5435         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
5436         test to files that contain something like #!/bin/sh.
5437         Without this, coreutils would get two false positives in
5438         the comments of C source files.
5439
5440 2010-11-12  Eric Blake  <eblake@redhat.com>
5441
5442         bootstrap: fix typo in previous attempt
5443         * build-aux/bootstrap (buildreq): Correct the grouping.
5444         Reported by Paul Eggert.
5445
5446         maintainer-makefile: prohibit test x == x
5447         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
5448         Based on a report by Matthias Bolte.
5449
5450         bootstrap: allow FreeBSD gzip
5451         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
5452         which has no '.' and goes to stderr.
5453         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
5454         Reported by Matthias Bolte.
5455
5456         maintainer-makefile: check for i18n setup
5457         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
5458         will likely work.
5459
5460 2010-11-12  Bruno Haible  <bruno@clisp.org>
5461
5462         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
5463         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
5464         * lib/nanosleep.c (nanosleep): Likewise.
5465
5466 2010-11-11  Bruno Haible  <bruno@clisp.org>
5467
5468         fcntl-h: Fix for use of C++ on glibc systems.
5469         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5470         also on glibc systems in C++ mode.
5471         Reported by Gary V. Vaughan <gary@gnu.org>.
5472
5473 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5474
5475         mknod: avoid false failure with dash
5476         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
5477
5478 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         unlink: Fix "is it should" typo in diagnostic.
5481         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
5482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
5483
5484 2010-11-11  Bruno Haible  <bruno@clisp.org>
5485
5486         Tests for module 'strerror_r-posix'.
5487         * modules/strerror_r-posix-tests: New file.
5488         * tests/test-strerror_r.c: New file.
5489         * tests/test-string-c++.cc: Check the signature of strerror_r.
5490
5491         New module 'strerror_r-posix'.
5492         * lib/string.in.h (strerror_r): New declaration.
5493         * lib/strerror_r.c: New file.
5494         * m4/strerror_r.m4: New file.
5495         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
5496         of strerror_r.
5497         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
5498         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5499         * modules/strerror_r-posix: New file.
5500         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
5501         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
5502         * doc/posix-functions/strerror_r.texi: Mention the new module and the
5503         portability problems.
5504
5505 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
5506
5507         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
5508         line is also considered for output. Quoted function name in shell
5509         command, so temporary files for functions like MyClass::operator()
5510         are removed correctly without errors.
5511
5512 2010-11-09  Bruno Haible  <bruno@clisp.org>
5513
5514         * doc/posix-functions/strerror.texi: List more failing platforms.
5515
5516         * doc/posix-functions/strerror.texi: Add a comment.
5517
5518 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
5519
5520         fdopendir: fix bug on MacOS X when low on file descriptors
5521
5522         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
5523         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
5524         All callers changed.
5525         (fdopendir): Invoke save_cwd at the top level, not after using
5526         multiple dup() calls to use up file descriptors.  Then retry
5527         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
5528         less than the maximum number of open file descriptors, because
5529         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
5530         on Mac OS X 10.6.4 for tar 1.24
5531         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
5532         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
5533         and for tar 1.25
5534         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
5535
5536 2010-11-07  Bruno Haible  <bruno@clisp.org>
5537
5538         vasnprintf: Support I flag on glibc systems.
5539         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
5540         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
5541         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
5542         snprintf function.
5543         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
5544         glibc systems.
5545         * tests/test-vasnprintf-posix3.c: New file.
5546         * modules/vasnprintf-posix-tests (Files): Add it.
5547         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
5548
5549 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5550
5551         [html] Fix copy/paste bug: Use unique name for compiler warnings.
5552         * MODULES.html.sh: For compiler warnings, use name
5553         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
5554
5555 2010-11-05  Eric Blake  <eblake@redhat.com>
5556
5557         ceil, floor: avoid spurious failure with icc
5558         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
5559         [denormals-as-zero] when optimizing without -mieee-fp option.
5560         * tests/test-floorf2.c (floorf_reference): Likewise.
5561         * tests/test-ceilf1.c (dummy): New function.
5562         (main): Use it to outsmart icc's optimization.
5563         * tests/test-floorf1.c (dummy, main): Likewise.
5564
5565         tests: require working signbit
5566         * modules/ceilf-tests (Depends-on): Add signbit.
5567         * modules/ceill-tests (Depends-on): Likewise.
5568         * modules/floorf-tests (Depends-on): Likewise.
5569         * modules/floorl-tests (Depends-on): Likewise.
5570         * modules/round-tests (Depends-on): Likewise.
5571         * modules/roundf-tests (Depends-on): Likewise.
5572         * modules/roundl-tests (Depends-on): Likewise.
5573         * modules/trunc-tests (Depends-on): Likewise.
5574         * modules/truncf-tests (Depends-on): Likewise.
5575         * modules/truncl-tests (Depends-on): Likewise.
5576
5577         strtod: work around icc bug
5578         * lib/strtod.c (minus_zero): Define to working value.
5579         (strtod): Use it to avoid icc bug.
5580
5581         copysign: enhance tests
5582         * modules/copysign-tests (Files): Add minus-zero.h.
5583         * tests/test-copysign.c (main): Also test zeros.
5584
5585 2010-11-04  Eric Blake  <eblake@redhat.com>
5586
5587         ceil, floor, round, trunc: enhance tests of -0
5588         * tests/test-ceilf1.c (main): Ensure correct sign of result.
5589         * tests/test-ceill.c (main): Likewise.
5590         * tests/test-floorf1.c (main): Likewise.
5591         * tests/test-floorl.c (main): Likewise.
5592         * tests/test-round1.c (main): Likewise.
5593         * tests/test-roundf1.c (main): Likewise.
5594         * tests/test-roundl.c (main): Likewise.
5595         * tests/test-trunc1.c (main): Likewise.
5596         * tests/test-truncf1.c (main): Likewise.
5597         * tests/test-truncl.c (main): Likewise.
5598
5599 2010-11-04  Eric Blake  <eblake@redhat.com>
5600
5601         frexp, tests: work around ICC bug with -zero
5602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
5603         works with more compilers.
5604         * tests/minus-zero.h: New file.
5605         * modules/ceilf-tests (Files): Include it.
5606         * modules/ceill-tests (Files): Likewise.
5607         * modules/floorf-tests (Files): Likewise.
5608         * modules/floorl-tests (Files): Likewise.
5609         * modules/frexp-nolibm-tests (Files): Likewise.
5610         * modules/frexp-tests (Files): Likewise.
5611         * modules/frexpl-nolibm-tests (Files): Likewise.
5612         * modules/frexpl-tests (Files): Likewise.
5613         * modules/isnan-tests (Files): Likewise.
5614         * modules/isnand-nolibm-tests (Files): Likewise.
5615         * modules/isnand-tests (Files): Likewise.
5616         * modules/isnanf-nolibm-tests (Files): Likewise.
5617         * modules/isnanf-tests (Files): Likewise.
5618         * modules/isnanl-nolibm-tests (Files): Likewise.
5619         * modules/isnanl-tests (Files): Likewise.
5620         * modules/round-tests (Files): Likewise.
5621         * modules/roundf-tests (Files): Likewise.
5622         * modules/roundl-tests (Files): Likewise.
5623         * modules/ldexpl-tests (Files): Likewise.
5624         * modules/signbit-tests (Files): Likewise.
5625         * modules/snprintf-posix-tests (Files): Likewise.
5626         * modules/sprintf-posix-tests (Files): Likewise.
5627         * modules/strtod-tests (Files): Likewise.
5628         * modules/trunc-tests (Files): Likewise.
5629         * modules/truncf-tests (Files): Likewise.
5630         * modules/truncl-tests (Files): Likewise.
5631         * modules/vsnprintf-posix-tests (Files): Likewise.
5632         * modules/vsprintf-posix-tests (Files): Likewise.
5633         * modules/vasnprintf-posix-tests (Files): Likewise.
5634         * modules/vasprintf-posix-tests (Files): Likewise.
5635         * tests/test-ceilf1.c (main): Use it.
5636         * tests/test-ceill.c (main): Likewise.
5637         * tests/test-floorf1.c (main): Likewise.
5638         * tests/test-floorl.c (main): Likewise.
5639         * tests/test-frexp.c (main): Likewise.
5640         * tests/test-frexpl.c (main): Likewise.
5641         * tests/test-isnan.c (main): Likewise.
5642         * tests/test-isnand.h (main): Likewise.
5643         * tests/test-isnanf.h (main): Likewise.
5644         * tests/test-isnanl.h (main): Likewise.
5645         * tests/test-ldexpl.c (main): Likewise.
5646         * tests/test-round.c (main): Likewise.
5647         * tests/test-roundf.c (main): Likewise.
5648         * tests/test-roundl.c (main): Likewise.
5649         * tests/test-signbit.c (test_signbitf, test_signbitd)
5650         (test_signbitl): Likewise.
5651         * tests/test-snprintf-posix.h (test_function): Likewise.
5652         * tests/test-sprintf-posix.h (test_function): Likewise.
5653         * tests/test-strtod.c (main): Likewise.
5654         * tests/test-trunc1.c (main): Likewise.
5655         * tests/test-truncf1.c (main): Likewise.
5656         * tests/test-truncl.c (main): Likewise.
5657
5658         isnanl: work around icc bug
5659         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
5660
5661 2010-11-03  Eric Blake  <eblake@redhat.com>
5662
5663         tests: fix compiler warnings
5664         * tests/test-getopt.h (test_getopt): Fix condition.
5665         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5666         * tests/test-pipe2.c (main): Likewise.
5667         * tests/test-quotearg-simple.c (main): Avoid icc warning.
5668
5669         utimens: fix broken m4 test
5670         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
5671
5672 2010-10-28  Bruno Haible  <bruno@clisp.org>
5673
5674         posix_spawn*, getdtablesize: Relax license.
5675         * modules/posix_spawn (License): Change to LGPLv2+.
5676         * modules/posix_spawnp (License): Likewise.
5677         * modules/posix_spawn-internal (License): Likewise.
5678         * modules/posix_spawnattr_init (License): Likewise.
5679         * modules/posix_spawnattr_getflags (License): Likewise.
5680         * modules/posix_spawnattr_setflags (License): Likewise.
5681         * modules/posix_spawnattr_getpgroup (License): Likewise.
5682         * modules/posix_spawnattr_setpgroup (License): Likewise.
5683         * modules/posix_spawnattr_getschedparam (License): Likewise.
5684         * modules/posix_spawnattr_setschedparam (License): Likewise.
5685         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
5686         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
5687         * modules/posix_spawnattr_getsigdefault (License): Likewise.
5688         * modules/posix_spawnattr_setsigdefault (License): Likewise.
5689         * modules/posix_spawnattr_getsigmask (License): Likewise.
5690         * modules/posix_spawnattr_setsigmask (License): Likewise.
5691         * modules/posix_spawnattr_destroy (License): Likewise.
5692         * modules/posix_spawn_file_actions_init (License): Likewise.
5693         * modules/posix_spawn_file_actions_addclose (License): Likewise.
5694         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
5695         * modules/posix_spawn_file_actions_addopen (License): Likewise.
5696         * modules/posix_spawn_file_actions_destroy (License): Likewise.
5697         * modules/getdtablesize (License): Likewise.
5698         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
5699
5700 2010-10-26  Bruno Haible  <bruno@clisp.org>
5701
5702         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
5703         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
5704         Cygwin and mingw.
5705         Suggested by Eric Blake.
5706
5707 2010-10-26  Bruno Haible  <bruno@clisp.org>
5708
5709         stdio: Work around compilation error due to renameat() on Solaris 10.
5710         * lib/stdio.in.h: Include <unistd.h> on Solaris.
5711         * lib/renameat.c: Don't include <unistd.h> here.
5712         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
5713         Reported by Paul Eggert and Eric Blake.
5714
5715 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5716
5717         renameat: port to Solaris 10, which declares renameat in unistd.h
5718
5719         * lib/renameat.c: Include unistd.h before stdio.h, because
5720         Solaris 10 declares renameat in unistd.h.  Problem encountered
5721         when building GNU tar 1.24 on Solaris 10.
5722
5723 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5724
5725         fdopendir: fix C89 compilation
5726         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
5727         compilers.
5728
5729 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5730
5731         inttostr: simplify by removing unnecessary redundancy
5732         * lib/anytostr.c: Don't include verify.h.
5733         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
5734         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
5735         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
5736         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
5737         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
5738         Likewise.
5739         * modules/inttostr (Depends-on): Remove 'verify'.
5740
5741 2010-10-23  Bruno Haible  <bruno@clisp.org>
5742
5743         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
5744         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
5745         Reported by Eric Blake.
5746
5747 2010-10-23  Bruno Haible  <bruno@clisp.org>
5748
5749         Tests: Fix LOCALE_JA on MirBSD 10.
5750         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
5751         to an UTF-8 locale.
5752         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
5753         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5754         Reported by Eric Blake.
5755
5756 2010-10-21  Bruno Haible  <bruno@clisp.org>
5757
5758         nl_langinfo test: Avoid test failure on NetBSD 5.
5759         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
5760         Reported by Eric Blake.
5761
5762 2010-10-21  Eric Blake  <eblake@redhat.com>
5763
5764         c-stack: work around libsigsegv 2.8 bug
5765         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
5766         overflow on at least PowerPC64.
5767
5768 2010-10-17  Bruno Haible  <bruno@clisp.org>
5769
5770         userspec: Drop redundant file.
5771         * modules/userspec (Files): Remove lib/inttostr.h.
5772
5773 2010-10-17  Bruno Haible  <bruno@clisp.org>
5774
5775         nl_langinfo tests: Silence some warnings.
5776         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
5777         Reported by Jim Meyering.
5778
5779 2010-10-17  Bruno Haible  <bruno@clisp.org>
5780
5781         Make use of GCC's attribute __alloc_size__.
5782         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
5783         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
5784         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
5785         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
5786         __alloc_size__.
5787         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5788         Suggested by Jim Meyering.
5789
5790 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
5791
5792         bootstrap: anchor .gitignore entries.
5793         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
5794         with...
5795         (insert_vc_ignore): ... this new function, which prepends `/' to
5796         all .gitignore entries before passing them to
5797         insert_sorted_if_absent.
5798
5799 2010-10-16  Bruno Haible  <bruno@clisp.org>
5800
5801         nextafter: Fix configure check.
5802         * modules/nextafter (configure.ac): Correct expected prototype.
5803
5804 2010-10-16  Bruno Haible  <bruno@clisp.org>
5805
5806         termios: Update documentation.
5807         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
5808
5809 2010-10-16  Bruno Haible  <bruno@clisp.org>
5810
5811         tests: Make them compile with TinyCC.
5812         * tests/test-strstr.c (main): Remove parentheses around array
5813         initializer.
5814
5815 2010-10-15  Eric Blake  <eblake@redhat.com>
5816
5817         ignore-value: make header idempotent
5818         * lib/ignore-value.h: Add double-inclusion guards.
5819         Reported by Stefan Berger.
5820
5821 2010-10-15  Jim Meyering  <meyering@redhat.com>
5822
5823         GNUmakefile: handle "stable" target, not "major"
5824         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
5825         lists in maint.mk and announce-gen.  Without this, "make stable"
5826         would fail to ensure that $(VERSION) is up to date.
5827
5828 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
5829
5830         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
5831         & co.
5832
5833 2010-10-14  Bruno Haible  <bruno@clisp.org>
5834
5835         vasnprintf: Don't set errno to 0.
5836         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
5837         block that sets it to 0.
5838         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5839
5840 2010-10-14  Bruno Haible  <bruno@clisp.org>
5841
5842         socketlib: Fix.
5843         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
5844         gl_PREREQ_SYS_H_WINSOCK2.
5845         Reported by Ian Beckwith <ianb@erislabs.net>.
5846
5847 2010-10-13  Jim Meyering  <meyering@redhat.com>
5848
5849         test-select-stdin.c: avoid warn_unused_result warnings
5850         * tests/test-select-stdin.c: Include "macros.h".
5851         ASSERT that read and fflush succeed.
5852
5853 2010-10-13  Jim Meyering  <meyering@redhat.com>
5854
5855         git-version-gen: do require git-VC'd files in cwd
5856         * build-aux/git-version-gen: Reject a git version string
5857         if there are no commits associated with the current directory.
5858         This avoids an unlikely false-positive (unrelated dir whose parent
5859         repository also contains a tag matching v*), as pointed out
5860         by Giuseppe Scrivano in
5861         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
5862
5863 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5864
5865         argv-iter: omit nonconforming declaration
5866         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
5867         enum arg_iter_err declaration, which doesn't conform to C99.
5868         Solaris 10 cc warns about this.
5869
5870 2010-10-13  Eric Blake  <eblake@redhat.com>
5871
5872         termios: fix compilation on mingw
5873         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
5874         (gl_TERMIOS_H): Adjust it on mingw.
5875         * modules/termios (Makefile.am): Substitute new key.
5876         * lib/termios.in.h (includes): Make include_next conditional.
5877         * doc/posix-headers/termios.texi (termios.h): Update
5878         documentation.
5879         Reported by Daniel P. Berrange.
5880
5881 2010-10-13  Jim Meyering  <meyering@redhat.com>
5882
5883         git-version-gen: don't require that .git/ be in the current dir
5884         * build-aux/git-version-gen: Adjust this script so that it works
5885         when run from any working directory beneath the top-level .git/-
5886         containing directory.  Inspired by a patch from Giuseppe Scrivano,
5887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
5888
5889         test-select: avoid warn_unused_result warnings
5890         * tests/test-select.c: Include "macros.h".
5891         ASSERT that each call to read, write, and pipe succeeds.
5892         While not technically required, also check each "close".
5893         * modules/select-tests (Files): Add tests/macros.h.
5894
5895         test-symlinkat: remove declaration of unused local
5896         * tests/test-symlinkat.c (main): Remove unused local, "buf".
5897
5898         test-inttostr: avoid shadowing warnings
5899         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
5900         and use malloc rather than the stack for the same reason as
5901         mentioned in the comment justifying the other allocation.
5902
5903 2010-10-11  Bruno Haible  <bruno@clisp.org>
5904
5905         stdlib: Allow multiple gnulib generated replacements to coexist.
5906         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
5907         Reported by Sam Steingold <sds@gnu.org>.
5908
5909 2010-10-11  Jim Meyering  <meyering@redhat.com>
5910
5911         fix a documentation typo
5912         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
5913
5914 2010-10-11  Eric Blake  <eblake@redhat.com>
5915
5916         futimens: work around Solaris 11 bug
5917         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
5918         * tests/test-futimens.h (test_futimens): Enhance, rather than
5919         weaken test.
5920         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5921
5922 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5923
5924         Indentation.
5925         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
5926         higher-level operators more to the left.
5927
5928 2010-10-11  Jim Meyering  <meyering@redhat.com>
5929
5930         test-futimens: avoid unwarranted test failure on Solaris 5.11
5931         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
5932         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
5933         because it tries to dereference the NULL name argument.
5934
5935 2010-10-11  Bruno Haible  <bruno@clisp.org>
5936
5937         Indentation.
5938         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
5939         indentation.
5940
5941 2010-10-11  Jim Meyering  <meyering@redhat.com>
5942
5943         spawn.in.h: make indentation consistent with parentheses
5944         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
5945         Make indentation consistent with parentheses.
5946
5947 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
5948
5949         Fix mismatched parens in previous commit
5950         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
5951         parens.
5952
5953 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5954
5955         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
5956
5957         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
5958         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
5959         * lib/malloca.c: Include "verify.h".
5960         (verify1): Remove, replacing with a verify call.
5961         * lib/relocwrapper.c (verify1): Likewise.
5962         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
5963         Likewise.
5964         * modules/malloca (Depends-on): Add 'verify'.
5965         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
5966         * modules/vasnprintf (Depends-on): Add 'verify'.
5967         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5968         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5969         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5970         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5971         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5972         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5973         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5974
5975         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
5976
5977         Formerly the style was sometimes 2*X - 1, because the C standard
5978         was wrongly thought to disallow ?: in integral constant expressions.
5979         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
5980         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
5981         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5982         * lib/stdint.in.h (_verify_intmax_size): Likewise.
5983         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
5984         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
5985         verify that time_t cannot be floating.
5986
5987 2010-10-08  Eric Blake  <eblake@redhat.com>
5988
5989         time: enforce recent POSIX ruling that time_t is integral
5990         * lib/time.in.h (__time_t_must_be_integral): Detect any
5991         problematic systems, allowing the rest of gnulib to assume POSIX.
5992
5993 2010-10-08  Jim Meyering  <meyering@redhat.com>
5994
5995         fdopendir: fix a bug on systems lacking openat and /proc support
5996         OpenBSD 4.7 is one such system.  The most noticeable effect was
5997         failure of any application making nontrivial use of fts: rm, du,
5998         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
5999           ./rm: traversal failed: `a': Bad file descriptor
6000         Debugging that, you see that even though FD 6 was closed just
6001         prior to the opendir call in fd_clone_opendir, its resulting
6002         dir->dd_fd was 8, rather than the expected value of 6:
6003
6004         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
6005         93                close (fd);
6006         (gdb) n
6007         94                dir = fd_clone_opendir (dupfd);
6008         (gdb) n
6009         95                saved_errno = errno;
6010         (gdb) p dir->dd_fd
6011         $11 = 8
6012
6013         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
6014         The problem is that on OpenBSD, fd_clone_opendir has to resort
6015         to using the old-style save/restore CWD mechanism, due to its
6016         lack of openat/proc support, and *that* would steal the FD (6)
6017         that opendir was supposed to use.
6018
6019         The fix is to squirrel away the desired FD so that save_cwd uses a
6020         different one, and then free the dest FD right before calling opendir.
6021         That guarantees opendir will use the required file descriptor.
6022
6023         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
6024
6025 2010-10-08  Bruno Haible  <bruno@clisp.org>
6026
6027         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
6028         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
6029
6030 2010-10-08  Bruno Haible  <bruno@clisp.org>
6031
6032         nanosleep: Make replacement POSIX compliant.
6033         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
6034         is out of range.
6035         Reported by Jim Meyering.
6036
6037 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6038
6039         bootstrap: add hook for altering gnulib.mk, for Bison
6040         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
6041         the Bison bootstrapping process can rewrite file names and variables
6042         in this file before later parts of 'bootstrap' use the file.
6043         Bison wants to include lib/gnulib.mk from the top-level makefile,
6044         so it needs the file names in this file to be relative to the top
6045         level, not relative to lib; plus it needs variable names to be
6046         rewritten.
6047         (slurp): Use the new function.
6048
6049         bootstrap: reformat for readability
6050         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
6051
6052 2010-10-08  Eric Blake  <eblake@redhat.com>
6053
6054         docs: update cygwin progress
6055         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
6056         1.7.7.
6057         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
6058         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
6059         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
6060         * doc/posix-functions/carg.texi (carg): Likewise.
6061         * doc/posix-functions/cargf.texi (cargf): Likewise.
6062         * doc/posix-functions/casin.texi (casin): Likewise.
6063         * doc/posix-functions/casinf.texi (casinf): Likewise.
6064         * doc/posix-functions/casinh.texi (casinh): Likewise.
6065         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
6066         * doc/posix-functions/catan.texi (catan): Likewise.
6067         * doc/posix-functions/catanf.texi (catanf): Likewise.
6068         * doc/posix-functions/catanh.texi (catanh): Likewise.
6069         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
6070         * doc/posix-functions/ccos.texi (ccos): Likewise.
6071         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
6072         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
6073         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
6074         * doc/posix-functions/cexp.texi (cexp): Likewise.
6075         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
6076         * doc/posix-functions/cimag.texi (cimag): Likewise.
6077         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
6078         * doc/posix-functions/clog.texi (clog): Likewise.
6079         * doc/posix-functions/clogf.texi (clogf): Likewise.
6080         * doc/posix-functions/conj.texi (conj): Likewise.
6081         * doc/posix-functions/conjf.texi (conjf): Likewise.
6082         * doc/posix-functions/cpow.texi (cpow): Likewise.
6083         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
6084         * doc/posix-functions/cproj.texi (cproj): Likewise.
6085         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
6086         * doc/posix-functions/creal.texi (creal): Likewise.
6087         * doc/posix-functions/crealf.texi (crealf): Likewise.
6088         * doc/posix-functions/csin.texi (csin): Likewise.
6089         * doc/posix-functions/csinf.texi (csinf): Likewise.
6090         * doc/posix-functions/csinh.texi (csinh): Likewise.
6091         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
6092         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
6093         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
6094         * doc/posix-functions/ctan.texi (ctan): Likewise.
6095         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
6096         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
6097         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
6098         * doc/posix-headers/complex.texi (complex.h): Likewise.
6099
6100 2010-10-07  Jim Meyering  <meyering@redhat.com>
6101
6102         parse-datetime: avoid compilation failure on OpenBSD 4.7
6103         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
6104         This works around a compilation failure on OpenBSD 4.7:
6105         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
6106
6107 2010-10-07  Eric Blake  <eblake@redhat.com>
6108
6109         docs: update cygwin progress
6110         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
6111         1.7.6.
6112         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6113         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
6114         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
6115         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
6116         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
6117         Likewise.
6118         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
6119         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
6120         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
6121         Likewise.
6122         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
6123         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
6124         Likewise.
6125         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
6126         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
6127         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
6128         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
6129         Likewise.
6130         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
6131         Likewise.
6132         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
6133
6134         docs: update parse-datetime history
6135         * doc/parse-datetime.texi (Authors of parse_datetime): Better
6136         documentation of this function's history and alternatives.
6137
6138         cygwin: use more robust version check
6139         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
6140         exclude an eventual cygwin 1.9.1.
6141         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6143         (gl_FUNC_STRCASESTR): Likewise.
6144         Reported by Bruno Haible.
6145
6146 2010-10-06  Bruno Haible  <bruno@clisp.org>
6147
6148         string, sys_select: Avoid #including large headers unless necessary.
6149         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
6150         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
6151         OSF/1, BeOS, Haiku.
6152         Reported by Jim Meyering.
6153
6154 2010-10-05  Eric Blake  <eblake@redhat.com>
6155
6156         memmem, strstr, strcasestr: fix bug with long periodic needle
6157         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
6158         periodic needle having false positive.
6159         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
6160         and cygwin 1.7.7.
6161         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
6162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
6163         (gl_FUNC_STRCASESTR): Likewise.
6164         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6165         * tests/test-memmem.c (main): Expose the bug.
6166         * tests/test-strcasestr.c (main): Likewise.
6167         * tests/test-strstr.c (main): Likewise.
6168         * tests/test-c-strcasestr.c (main): Likewise.
6169         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
6170         * doc/posix-functions/strstr.texi (strstr): Likewise.
6171         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6172         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
6173
6174 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6175
6176         parse-datetime: do some more renaming
6177         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
6178         parse_datetime, not get_date.  Mention the renaming.
6179         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
6180         in comments.
6181         * m4/bison.m4: Likewise.
6182
6183 2010-10-05  Eric Blake  <eblake@redhat.com>
6184
6185         parse-datetime: better name than get_date
6186         * NEWS: Reword the deprecation notice.
6187         * modules/get_date: Rename to modules/parse-datetime.
6188         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
6189         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
6190         * lib/get_date.y: Rename to lib/parse-datetime.y.
6191         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
6192         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
6193         * doc/getdate.texi: Provide fallback wrapper.
6194         * lib/getdate.h: Move guts, and wrap...
6195         * lib/parse-datetime.h: ...new file.
6196         * lib/parse-datetime.y (get_date): Rename...
6197         (parse_datetime): ...to this.
6198         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
6199         (gl_PARSE_DATETIME): ...to this.
6200         * doc/posix-functions/getdate.texi (get_date): Provide fallback
6201         documentation.
6202         * modules/getdate (Files): Provide fallback docs and header.
6203         (Notice, Depends-on): Update references.
6204         * tests/test-parse-datetime.c: Likewise.
6205         * DEPENDENCIES: Likewise.
6206         * MODULES.html.sh (Date and time <time.h>): Likewise.
6207         * doc/parse-datetime.texi (Date input formats)
6208         (Authors of parse_datetime): Likewise.
6209         * modules/parse-datetime (Files, configure.ac, Makefile.am)
6210         (Include): Likewise.
6211         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
6212         * gnulib-tool: Likewise.
6213         * m4/bison.m4 (gl_BISON): Likewise.
6214         Suggested by Bruno Haible.
6215
6216 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         more ports to Solaris tr, which needs [] around ranges
6219         * gnulib-tool: Solaris tr needs [] around ranges.
6220         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6221         * tests/test-pipe-filter-gi1.c (main): Likewise.
6222         * tests/test-pipe-filter-ii1.c (main): Likewise.
6223
6224 2010-10-05  Eric Blake  <eblake@redhat.com>
6225
6226         bootstrap: fix Solaris regression
6227         * build-aux/bootstrap (check_versions): Solaris tr still needs []
6228         around ranges.
6229         Reported by Pádraig Brady.
6230
6231         bootstrap: work with pkg-config
6232         * build-aux/bootstrap (check_versions): Also transliterate - in
6233         prerequisite name.
6234         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
6235         prerequisites that were already found, to avoid confusion.
6236         Reported by Justin Clift.
6237
6238         faccessat: remove unused wrappers
6239         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
6240         presence of these wrappers dragged in -lgen on Solaris.
6241         Reported by Clemens Brogi; fix suggested by Paul Eggert.
6242
6243 2010-10-05  Jim Meyering  <meyering@redhat.com>
6244
6245         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
6246         * Makefile (sc_pragma_columns): New syntax-check rule.
6247
6248 2010-10-04  Bruno Haible  <bruno@clisp.org>
6249
6250         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
6251         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
6252         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
6253         Reported by Bruce Korb and Eric Blake.
6254
6255 2010-10-04  Bruno Haible  <bruno@clisp.org>
6256
6257         threadlib: Make option --with-libpth-prefix work.
6258         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
6259         use $LIBPTH, not just -lpth.
6260
6261 2010-10-04  Bruno Haible  <bruno@clisp.org>
6262
6263         Avoid line length limitation from HP NonStop system header files.
6264         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
6265         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
6266         * lib/ctype.in.h: Likewise.
6267         * lib/dirent.in.h: Likewise.
6268         * lib/errno.in.h: Likewise.
6269         * lib/fcntl.in.h: Likewise.
6270         * lib/float.in.h: Likewise.
6271         * lib/getopt.in.h: Likewise.
6272         * lib/iconv.in.h: Likewise.
6273         * lib/inttypes.in.h: Likewise.
6274         * lib/langinfo.in.h: Likewise.
6275         * lib/locale.in.h: Likewise.
6276         * lib/math.in.h: Likewise.
6277         * lib/netdb.in.h: Likewise.
6278         * lib/netinet_in.in.h: Likewise.
6279         * lib/poll.in.h: Likewise.
6280         * lib/pthread.in.h: Likewise.
6281         * lib/pty.in.h: Likewise.
6282         * lib/sched.in.h: Likewise.
6283         * lib/se-selinux.in.h: Likewise.
6284         * lib/search.in.h: Likewise.
6285         * lib/signal.in.h: Likewise.
6286         * lib/spawn.in.h: Likewise.
6287         * lib/stdarg.in.h: Likewise.
6288         * lib/stddef.in.h: Likewise.
6289         * lib/stdint.in.h: Likewise.
6290         * lib/stdio.in.h: Likewise.
6291         * lib/stdlib.in.h: Likewise.
6292         * lib/string.in.h: Likewise.
6293         * lib/strings.in.h: Likewise.
6294         * lib/sys_file.in.h: Likewise.
6295         * lib/sys_ioctl.in.h: Likewise.
6296         * lib/sys_select.in.h: Likewise.
6297         * lib/sys_socket.in.h: Likewise.
6298         * lib/sys_stat.in.h: Likewise.
6299         * lib/sys_time.in.h: Likewise.
6300         * lib/sys_times.in.h: Likewise.
6301         * lib/sys_utsname.in.h: Likewise.
6302         * lib/sys_wait.in.h: Likewise.
6303         * lib/sysexits.in.h: Likewise.
6304         * lib/termios.in.h: Likewise.
6305         * lib/time.in.h: Likewise.
6306         * lib/unistd.in.h: Likewise.
6307         * lib/wchar.in.h: Likewise.
6308         * lib/wctype.in.h: Likewise.
6309         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
6310         * modules/ctype (Makefile.am): Likewise.
6311         * modules/dirent (Makefile.am): Likewise.
6312         * modules/errno (Makefile.am): Likewise.
6313         * modules/fcntl-h (Makefile.am): Likewise.
6314         * modules/float (Makefile.am): Likewise.
6315         * modules/getopt-posix (Makefile.am): Likewise.
6316         * modules/iconv-h (Makefile.am): Likewise.
6317         * modules/inttypes (Makefile.am): Likewise.
6318         * modules/langinfo (Makefile.am): Likewise.
6319         * modules/locale (Makefile.am): Likewise.
6320         * modules/math (Makefile.am): Likewise.
6321         * modules/netdb (Makefile.am): Likewise.
6322         * modules/netinet_in (Makefile.am): Likewise.
6323         * modules/poll-h (Makefile.am): Likewise.
6324         * modules/pthread (Makefile.am): Likewise.
6325         * modules/pty (Makefile.am): Likewise.
6326         * modules/sched (Makefile.am): Likewise.
6327         * modules/search (Makefile.am): Likewise.
6328         * modules/selinux-h (Makefile.am): Likewise.
6329         * modules/signal (Makefile.am): Likewise.
6330         * modules/spawn (Makefile.am): Likewise.
6331         * modules/stdarg (Makefile.am): Likewise.
6332         * modules/stddef (Makefile.am): Likewise.
6333         * modules/stdint (Makefile.am): Likewise.
6334         * modules/stdio (Makefile.am): Likewise.
6335         * modules/stdlib (Makefile.am): Likewise.
6336         * modules/string (Makefile.am): Likewise.
6337         * modules/strings (Makefile.am): Likewise.
6338         * modules/sys_file (Makefile.am): Likewise.
6339         * modules/sys_ioctl (Makefile.am): Likewise.
6340         * modules/sys_select (Makefile.am): Likewise.
6341         * modules/sys_socket (Makefile.am): Likewise.
6342         * modules/sys_stat (Makefile.am): Likewise.
6343         * modules/sys_time (Makefile.am): Likewise.
6344         * modules/sys_times (Makefile.am): Likewise.
6345         * modules/sys_utsname (Makefile.am): Likewise.
6346         * modules/sys_wait (Makefile.am): Likewise.
6347         * modules/sysexits (Makefile.am): Likewise.
6348         * modules/termios (Makefile.am): Likewise.
6349         * modules/time (Makefile.am): Likewise.
6350         * modules/unistd (Makefile.am): Likewise.
6351         * modules/wchar (Makefile.am): Likewise.
6352         * modules/wctype (Makefile.am): Likewise.
6353
6354 2010-10-04  Bruno Haible  <bruno@clisp.org>
6355
6356         read-file tests: Avoid a test failure on NonStop Kernel.
6357         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
6358         a regular file.
6359         Reported by Joachim Schmitz <schmitz@hp.com>.
6360
6361 2010-10-03  Bruno Haible  <bruno@clisp.org>
6362
6363         gnulib-tool: Fixes for --create-testdir with --libtool.
6364         * gnulib-tool (func_get_automake_snippet): Don't augment
6365         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
6366         an executable.
6367         (func_create_testdir): Handle module 'alloca' like func_import.
6368         Reported by Bruce Korb <bruce.korb@gmail.com>.
6369
6370 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
6371
6372         Avoid some lines longer than 80 characters.
6373         * lib/stdint.in.h: Break long comment lines.
6374         * lib/math.in.h: Likewise.
6375         (_GL_NUM_UINT_WORDS): New macro, for readability.
6376         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
6377         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
6378         * lib/stdlib.in.h: Likewise.
6379         * lib/spawn.in.h: Likewise.
6380         * lib/sys_socket.in.h: Update an URL.
6381         * lib/sys_stat.in.h: Break long line.
6382
6383 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
6384
6385         Improve pmccabe2html.
6386         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
6387         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
6388         when the sources change. Remove the line in the HTML about "Used
6389         ranges" (which implied that there might be other unused ranges),
6390         rename "Resume" to "Summary" (easier to understand for more users).
6391         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
6392         styles, and some unnecessary blank lines.
6393
6394 2010-10-03  Bruno Haible  <bruno@clisp.org>
6395             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6396
6397         acl: Add support for ACLs on NonStop Kernel.
6398         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
6399         Check whether the function aclsort() exists.
6400         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
6401         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
6402         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6403         (acl_nontrivial [HAVE_ACLSORT]: New function.
6404         (file_has_acl): Implement for NonStop Kernel.
6405         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6406         (qset_acl): Implement for NonStop Kernel.
6407         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
6408         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
6409         (main): Implement for NonStop Kernel.
6410         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
6411         Kernel. Handle this flavor.
6412         * tests/test-set-mode-acl.sh: Likewise.
6413         * tests/test-copy-acl.sh: Likewise.
6414         * tests/test-copy-file.sh: Likewise.
6415
6416 2010-10-03  Bruno Haible  <bruno@clisp.org>
6417
6418         Info about ACLs on NonStop Kernel.
6419         * doc/acl-resources.txt: Add info about NonStop Kernel.
6420         References by Joachim Schmitz <schmitz@hp.com>.
6421
6422 2010-10-02  Bruno Haible  <bruno@clisp.org>
6423
6424         Define missing EDQUOT on NonStop Kernel.
6425         * lib/errno.in.h (EDQUOT): Assign a value if missing.
6426         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
6427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
6428         missing.
6429         * doc/posix-headers/errno.texi: Mention the NSK bug.
6430         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
6431         Reported by Joachim Schmitz <schmitz@hp.com>.
6432
6433 2010-10-02  Bruno Haible  <bruno@clisp.org>
6434
6435         Update doc for POSIX:2008.
6436         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
6437         Update URL of POSIX specification.
6438
6439 2010-10-02  Bruno Haible  <bruno@clisp.org>
6440
6441         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
6442         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
6443         from gnulib, not from Automake.
6444
6445 2010-10-02  Bruno Haible  <bruno@clisp.org>
6446
6447         New module 'system-posix'.
6448         * modules/system-posix: New file.
6449         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
6450         module is present.
6451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6452         GNULIB_SYSTEM_POSIX.
6453         * modules/stdlib (Depends-on): Remove sys_wait.
6454         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
6455         * doc/posix-functions/system.texi: Mention the new module.
6456         * doc/posix-headers/stdlib.texi: Likewise.
6457         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
6458         define test_sys_wait_macros to a no-op.
6459         Reported by Sam Steingold <sds@gnu.org>.
6460
6461 2010-09-30  Bruno Haible  <bruno@clisp.org>
6462
6463         More renaming from 'getdate' to 'get_date'.
6464         * doc/get_date.texi: Renamed from doc/getdate.texi.
6465         * modules/get_date (Files): Update.
6466         * MODULES.html.sh (Date and time <time.h>): Update.
6467         * DEPENDENCIES: Update.
6468         * gnulib-tool: Update comment.
6469         * m4/bison.m4 (gl_BISON): Likewise.
6470         * m4/get_date.m4 (gl_GET_DATE): Likewise.
6471
6472 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
6473
6474         bootstrap: support ACLOCAL_FLAGS during aclocal
6475         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
6476         can add additional -I dir for third-party .m4 files.
6477
6478 2010-09-30  Eric Blake  <eblake@redhat.com>
6479
6480         bootstrap: use glibtoolize on MacOS
6481         * build-aux/bootstrap (check_versions): Convert libtool into
6482         libtoolize.
6483         (tool search): Move libtool check earlier, and look for
6484         glibtoolize for MacOS.
6485         (gnulib_tool_options): Auto-add --libtool when appropriate.
6486         Reported by Justin Clift.
6487
6488         poll: fix typo that broke test on MacOS
6489         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
6490         Reported by Justin Clift.
6491
6492         getdate: rename to get_date
6493         Note: getdate.h is not renamed, to minimize client impact.
6494         * modules/getdate: Mark obsolete.  Move old contents...
6495         * modules/get_date: ...to new module name.
6496         * modules/getdate-tests: Move...
6497         * modules/get_date-tests: ...here.
6498         * m4/getdate.m4: Move...
6499         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
6500         * lib/getdate.y: Move...
6501         * lib/get_date.y: ...here.
6502         * tests/test-getdate.c: Move...
6503         * tests/test-get_date.c: ...here.
6504         * doc/posix-functions/getdate.texi (getdate): Update name.
6505         * NEWS: Mention the change.
6506
6507 2010-09-29  Bruno Haible  <bruno@clisp.org>
6508
6509         Separate the module 'waitpid' from the module 'sys_wait'.
6510         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
6511         present.
6512         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
6513         gl_MODULE_INDICATOR_FOR_TESTS.
6514         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
6515         * modules/sys_wait (Depends-on): Remove waitpid.
6516         (Makefile.am): Substitute GNULIB_WAITPID.
6517         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
6518         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
6519         signature only if the 'waitpid' module is present.
6520         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
6521         * NEWS: Mention the change.
6522         * modules/grantpt (Depends-on): Add waitpid.
6523         * modules/wait-process (Depends-on): Likewise.
6524
6525 2010-09-29  Bruno Haible  <bruno@clisp.org>
6526
6527         More tests for module 'sys_wait'.
6528         * modules/sys_wait-c++-tests: New file.
6529         * tests/test-sys_wait-c++.cc: New file.
6530         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
6531         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6532
6533 2010-09-29  Bruno Haible  <bruno@clisp.org>
6534
6535         New module 'waitpid'.
6536         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
6537         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
6538         Don't include <process.h>.
6539         (waitpid): Declare only, using modern idiom.
6540         * m4/waitpid.m4: New file.
6541         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
6542         * modules/waitpid: New file.
6543         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
6544         (Makefile.am): Update.
6545         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6546
6547 2010-09-28  Bruno Haible  <bruno@clisp.org>
6548
6549         poll: Assume ANSI C.
6550         * lib/poll.c (poll): Use an ANSI C declaration.
6551
6552 2010-09-28  Bruno Haible  <bruno@clisp.org>
6553
6554         poll-h: Create poll.h on all platforms.
6555         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
6556         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
6557         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
6558         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
6559         (gl_REPLACE_POLL_H): Don't set POLL_H.
6560         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
6561         * modules/poll-h (Depends-on): Add include_next.
6562         (Makefile.am): Create poll.h unconditionally. Substitute also
6563         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
6564
6565 2010-09-28  Bruno Haible  <bruno@clisp.org>
6566
6567         Tests for module 'poll-h'.
6568         * modules/poll-h-c++-tests: New file.
6569         * tests/test-poll-h-c++.cc: New file.
6570
6571         Tests for module 'poll-h'.
6572         * modules/poll-h-tests: New file.
6573         * tests/test-poll-h.c: New file.
6574
6575 2010-09-28  Bruno Haible  <bruno@clisp.org>
6576
6577         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
6578         * modules/poll-h (Depends-on): Add 'extensions'.
6579
6580 2010-09-28  Bruno Haible  <bruno@clisp.org>
6581
6582         New module 'poll-h'.
6583         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
6584         (poll): Use modern idiom.
6585         * modules/poll-h: New file.
6586         * modules/poll (Files): Remove lib/poll.in.h.
6587         (Depends-on): Add poll-h.
6588         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
6589         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
6590         * m4/poll_h.m4: New file.
6591         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
6592         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
6593         and invoke gl_REPLACE_POLL_H.
6594         * lib/poll.c: Use common idiom.
6595         * tests/test-poll.c: Likewise.
6596         * doc/posix-headers/poll.texi: Mention the poll-h module.
6597         Suggested by Eric Blake.
6598
6599 2010-09-26  Bruno Haible  <bruno@clisp.org>
6600
6601         sys_wait: Implement WSTOPSIG.
6602         * lib/sys_wait.in.h (WSTOPSIG): New macro.
6603         Reported by Simon Josefsson.
6604
6605 2010-09-26  Simon Josefsson  <simon@josefsson.org>
6606
6607         stdlib, sys_wait: Avoid compilation error on mingw.
6608         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
6609
6610 2010-09-26  Bruno Haible  <bruno@clisp.org>
6611
6612         stdlib tests: Avoid code duplication.
6613         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
6614         * modules/sys_wait-tests (Files): Likewise.
6615         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
6616         * tests/test-stdlib.c: Include test-sys_wait.h.
6617         (main): Invoke test_sys_wait_macros.
6618         * tests/test-sys_wait.c: Include test-sys_wait.h.
6619         (main): Invoke test_sys_wait_macros.
6620
6621 2010-09-25  Simon Josefsson  <simon@josefsson.org>
6622
6623         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
6624         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
6625         sure Windows sockets are working before calling getaddrinfo.
6626         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
6627         * doc/gnulib.texi (Windows sockets): Fix typo.
6628
6629 2010-09-25  Bruno Haible  <bruno@clisp.org>
6630
6631         Tests for module 'regex-quote'.
6632         * modules/regex-quote-tests: New file.
6633         * tests/test-regex-quote.c: New file.
6634
6635         New module 'regex-quote'.
6636         * lib/regex-quote.h: New file.
6637         * lib/regex-quote.c: New file.
6638         * modules/regex-quote: New file.
6639         Suggested by Reuben Thomas <rrt@sc3d.org>.
6640
6641 2010-09-24  Bruno Haible  <bruno@clisp.org>
6642
6643         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
6644         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
6645
6646 2010-09-23  Bruno Haible  <bruno@clisp.org>
6647
6648         setenv: Relax license.
6649         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
6650         Blake.
6651         Requested by Eric Blake.
6652
6653 2010-09-22  Bruno Haible  <bruno@clisp.org>
6654
6655         termios: Relax license.
6656         * modules/termios (License): Change to LGPLv2+.
6657         Requested by Eric Blake.
6658
6659 2010-09-22  Bruno Haible  <bruno@clisp.org>
6660
6661         threadlib: Allow the package to change the default to 'no'.
6662         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
6663         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
6664         Reported by Paul Eggert.
6665
6666 2010-09-22  Pádraig Brady  <P@draigbrady.com>
6667             Bruno Haible  <bruno@clisp.org>
6668
6669         Fix endless loop in mbmemcasecoll.
6670         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
6671         byte.
6672         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
6673
6674 2010-09-22  Bruno Haible  <bruno@clisp.org>
6675
6676         Tests for module 'memcoll'.
6677         * modules/memcoll-tests: New file.
6678         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
6679
6680         memcoll, xmemcoll: Clarify size vs. length.
6681         * modules/memcoll.c (memcoll0): Clarify specification.
6682         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
6683         passed to collate_error.
6684
6685 2010-09-22  Bruno Haible  <bruno@clisp.org>
6686
6687         Tests for module 'memcasecmp'.
6688         * modules/memcasecmp-tests: New file.
6689         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
6690
6691 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6692
6693         * lib/pthread.in.h: Add split double-inclusion guard, and include
6694         system <pthread.h> if there is one.  Use @@-style as in other
6695         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
6696         pthread.h doesn't.
6697         (pthread_mutexattr_destroy, pthread_mutexattr_init):
6698         (pthread_mutexattr_settype, pthread_mutex_trylock):
6699         New static inline functions, if there's no system <pthread.h>.
6700         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
6701         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
6702         Approximate with mutexes if the system lacks spinlocks, as in
6703         MacOS.
6704         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
6705         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
6706         @@-style.  Check for spinlocks separately.
6707         (gl_PTHREAD_DEFAULTS): New macro.
6708         * modules/pthread: Redo to use a more typical style for in.h files.
6709
6710 2010-09-21  Eric Blake  <eblake@redhat.com>
6711
6712         net_if: enhance tests
6713         * tests/test-net_if.c (main): Move signature checks earlier.
6714         Print failures to stderr.
6715         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
6716         Document the bug that we do not yet fix.
6717
6718 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6719
6720         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
6721         about gnulib, not GSS.
6722
6723 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
6724
6725         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
6726         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
6727         for Emacs.
6728         * build-aux/pmccabe2html: Make Makefile.am example code more
6729         cut-and-paste friendly.
6730
6731 2010-09-21  Simon Josefsson  <simon@josefsson.org>
6732
6733         * tests/test-net_if.c: New file.
6734         * modules/net_if-tests: New file.
6735
6736 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
6737
6738         pthread: add pthread_spin_destroy
6739         * lib/pthread.in.h (pthread_spin_destroy): New function.
6740
6741 2010-09-19  Bruno Haible  <bruno@clisp.org>
6742
6743         gnulib-tool: Fix --help output.
6744         * gnulib-tool (func_usage): Fix help message.
6745         Reported by Reuben Thomas <rrt@sc3d.org>.
6746
6747 2010-09-18  Jim Meyering  <meyering@redhat.com>
6748
6749         maint.mk: avoid unexpanded \n in two diagnostics
6750         * top/maint.mk (sc_prohibit_always_true_header_tests):
6751         Don't use a literal \n in a halt=... assignment.  It would not be
6752         expanded, and the two \n bytes would appear in the diagnostic output
6753         rather than the desired newline.  Use halt=$$(printf ... instead.
6754         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6755
6756 2010-09-18  Bruno Haible  <bruno@clisp.org>
6757
6758         netinet_in: Doc tweak.
6759         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
6760         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6761
6762 2010-09-18  Jim Meyering  <meyering@redhat.com>
6763
6764         init.sh: correct an outdated comment
6765         * tests/init.sh (create_exe_shims_):  s/function/alias/
6766
6767         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
6768         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
6769         a file named "*.exe" is removed between the glob expansion and the
6770         processing of that oddly named file.
6771
6772 2010-09-17  Eric Blake  <eblake@redhat.com>
6773
6774         mirbsd: add some more support
6775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
6776         in BSD family.
6777         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
6778         devices as OpenBSD.
6779         * m4/host-os.m4 (mirbsd): Add MirBSD.
6780
6781         tests: fix unportable assumption on sys/wait.h
6782         * tests/test-sys_wait.c (main): Relax test.
6783         * tests/test-stdlib.c (main): Likewise.
6784
6785         init.sh: accomodate directory with no .exes
6786         * tests/init.sh: Accomodate directory containing only scripts.
6787
6788         tests: avoid compiler warning
6789         * tests/test-stdlib.c (main): Use the variable.
6790
6791         fdutimens, fdutimensat: update signature, again
6792         * lib/utimens.h (gl_futimens): Delete, and move signature...
6793         (fdutimens): ...here.
6794         (fdutimensat): Rearrange signature.
6795         (lutimensat): Rename variable for clarity.
6796         * lib/fdutimensat.c (fdutimensat): Update signature.
6797         * lib/utimens.c (fdutimens): Likewise.
6798         (gl_futimens): Delete.
6799         (utimens, lutimens): Update callers.
6800         * lib/futimens.c (futimens): Likewise.
6801         * tests/test-fdutimensat.c: Likewise.
6802         * tests/test-utimens.c: Likewise.
6803         * tests/test-futimens.h: Update comment.
6804         * NEWS: Mention this.
6805         Suggested by Paul Eggert.
6806
6807 2010-09-17  Bruno Haible  <bruno@clisp.org>
6808
6809         Take over the maintenance of some older macros from Autoconf.
6810         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
6811         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
6812         GNU Autoconf.
6813         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
6814         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
6815
6816 2010-09-17  Eric Blake  <eblake@redhat.com>
6817
6818         fdutimensat: drop atflag validation
6819         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
6820         with valid fd, to close a race scenario where futimens is
6821         unsupported and FILE was replaced by a symlink.
6822         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
6823         accordingly.
6824         Suggested by Paul Eggert.
6825
6826 2010-09-16  Bruno Haible  <bruno@clisp.org>
6827
6828         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
6829         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
6830
6831 2010-09-16  Bruno Haible  <bruno@clisp.org>
6832
6833         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
6834         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
6835         login_tty exists.
6836         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6837
6838 2010-09-16  Bruno Haible  <bruno@clisp.org>
6839
6840         login_tty: Make the replacement code work on BSD systems.
6841         * lib/login_tty.c: Include <sys/ioctl.h>.
6842         (login_tty): Use ioctl TIOCSCTTY when available.
6843         * modules/login_tty (Depends-on): Add sys_ioctl.
6844         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6845
6846 2010-09-16  Bruno Haible  <bruno@clisp.org>
6847
6848         login_tty: Stricter unit test.
6849         * modules/login_tty-tests (Depends-on): Add tcgetsid.
6850         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
6851         and tcgetsid() after login_tty.
6852         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6853
6854 2010-09-16  Bruno Haible  <bruno@clisp.org>
6855
6856         New module 'tcgetsid'.
6857         * lib/tcgetsid.c: New file.
6858         * m4/tcgetsid.m4: New file.
6859         * modules/tcgetsid: New file.
6860         * modules/termios (Depends-on): Add c++defs, warn-on-use.
6861         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
6862         GNULIB_TCGETSID, HAVE_TCGETSID.
6863         * lib/termios.in.h: Include <sys/types.h>.
6864         (tcgetsid): New declaration.
6865         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
6866         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
6867         * doc/posix-functions/tcgetsid.texi: Mention the new module.
6868         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
6869
6870 2010-09-16  Bruno Haible  <bruno@clisp.org>
6871
6872         Tests for module 'termios'.
6873         * modules/termios-c++-tests: New file.
6874         * modules/termios-tests: New file.
6875         * tests/test-termios-c++.cc: New file.
6876         * tests/test-termios.c: New file.
6877
6878         New module 'termios'.
6879         * modules/termios: New file.
6880         * lib/termios.in.h: New file.
6881         * m4/termios_h.m4: New file.
6882         * doc/posix-headers/termios.texi: Mention the new module.
6883
6884 2010-09-16  Eric Blake  <eblake@redhat.com>
6885
6886         fdutimensat: add an atflag parameter
6887         * lib/fdutimensat.c (fdutimensat): Add new parameter.
6888         * lib/utimens.h (fdutimensat): Update prototype.
6889         * tests/test-fdutimensat.c: Adjust test to match.
6890         * NEWS: Document the change.
6891         Suggested by Paul Eggert.
6892
6893 2010-09-16  Bruno Haible  <bruno@clisp.org>
6894
6895         Fix typos in comments.
6896         * lib/striconveh.h: Fix typo in comment.
6897         * lib/login_tty.c (login_tty): Likewise.
6898
6899 2010-09-15  Bruno Haible  <bruno@clisp.org>
6900
6901         stdlib: clarify MirBSD WEXITSTATUS bug
6902         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
6903         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6904
6905 2010-09-15  Eric Blake  <eblake@redhat.com>
6906
6907         stdlib: work around MirBSD WEXITSTATUS bug
6908         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
6909         * modules/stdlib (Depends-on): Add sys_wait.
6910         * tests/test-sys_wait.c (main): Enhance test.
6911         * tests/test-stdlib.c (main): Likewise.
6912         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
6913
6914         docs: mention MacOS issue with WEXITSTATUS(constant)
6915         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
6916         issue.
6917         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6918
6919         strnlen: add tests
6920         * modules/strnlen-tests: New file.
6921         * tests/test-strnlen.c: Likewise.
6922
6923 2010-09-14  Bruno Haible  <bruno@clisp.org>
6924
6925         unistr/base: Avoid link errors when module 'libunistring' is also used.
6926         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
6927         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
6928         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
6929         Declare also when HAVE_LIBUNISTRING is set.
6930         Reported by Pádraig Brady <P@draigbrady.com>.
6931
6932 2010-09-14  Eric Blake  <eblake@redhat.com>
6933
6934         test-rawmemchr: make more robust
6935         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
6936         (Depends-on, configure.ac): Add needed prerequisites to use it.
6937         * modules/memchr-tests (Files, Depends-on, configure.ac):
6938         Likewise, to avoid implicit reliance on memchr module prereqs.
6939         * tests/test-memchr.c (main): Ensure proper masking.
6940         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
6941         reads.
6942
6943         memchr: detect glibc Alpha bug
6944         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
6945         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
6946         Alpha.
6947         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
6948         * tests/test-memchr.c (main): Enhance test.
6949         Reported by Nelson H. F. Beebe.
6950
6951 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6952
6953         fts, getcwd, glob: audit for dirfd returning -1
6954         * lib/fts.c (opendir): Remove #define; no longer used.
6955         (opendirat): New arg PDIR_FD.  All callers changed.
6956         (fts_build, _opendir2): Use new opendirat to avoid the need for
6957         dirfd, or for checking whether dirfd returns a negative value.
6958         Don't use opendir; always use openat followed by fdopendir.
6959         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
6960         it.
6961         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
6962         returns -1 here.
6963         * modules/fts (Depends-on): Remove dirfd.
6964         * modules/getcwd (Depends-on): Likewise.
6965
6966 2010-09-13  Eric Blake  <eblake@redhat.com>
6967
6968         float: fix broken MirBSD header
6969         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
6970         * doc/posix-headers/float.texi (float.h): Document it.
6971
6972 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6973
6974         fts: use O_NOFOLLOW to avoid race condition when opening a directory
6975         * lib/fts.c (opendirat): New arg extra_flags.
6976         (__opendir2): Use it to avoid following symlinks when opening
6977         a directory, if symlinks are not supposed to be followed.  See
6978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
6979
6980         fdopendir: preserve argument fd before returning
6981         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
6982         (fdopendir_with_dup, fd_clone_opendir): New static functions.
6983         (fdopendir): Use them, arranging for FD to be open to the same
6984         directory that it was when it started.  (It might be temporarily
6985         closed while fdopendir is running, so this not thread- or
6986         signal-safe.)  Be careful to do the right thing even when file
6987         descriptors are scarce and dup fails with errno == EMFILE.  See
6988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
6989
6990 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
6991
6992         regex: Pass the system regex if its only problem is 32-bit regoff_t.
6993         * NEWS: Document change.
6994         * m4/regex.m4: Disable test for regoff_t size.
6995
6996 2010-09-13  Jim Meyering  <meyering@redhat.com>
6997
6998         fts: don't operate on an invalid file descriptor after failed dup
6999         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
7000         negative file descriptor.
7001
7002 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
7003
7004         savedir: add streamsavedir, deprecate fdsavedir
7005         * NEWS: Mention deprecation of fdsavedir.
7006         * lib/savedir.c (streamsavedir): New extern function, whose name
7007         ends in "savedir" to be consistent with the others.  This differs
7008         from savedirstream in that it doesn't close its argument.  The
7009         next version of GNU tar will use this instead of fdsavedir, to
7010         avoid some race conditions and conserve file descriptors.
7011         (savedirstream): Reimplement as a wrapper around streamsavedir.
7012         (fdsavedir): Add a comment deprecating this function.  As far as
7013         I know, only GNU tar used it, and GNU tar doesn't need it any more.
7014         * lib/savedir.h (streamsavedir): New decl.
7015         (fdsavedir): Add a comment deprecating this.
7016
7017 2010-09-10  Bruno Haible  <bruno@clisp.org>
7018
7019         langinfo: Fix last commit.
7020         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
7021         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
7022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7023
7024 2010-09-10  Bruno Haible  <bruno@clisp.org>
7025
7026         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
7027         * lib/progreloc.c (O_EXEC): Define fallback.
7028
7029 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7030
7031         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
7032         * NEWS: Document recent changes to fcntl-h.
7033         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
7034         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
7035         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
7036         Similarly for O_SEARCH; this last was already true, but not documented.
7037         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
7038         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
7039         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
7040         Likewise.
7041         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
7042         is zero, not whether it is defined.
7043         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
7044         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
7045         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
7046
7047 2010-09-10  Bruno Haible  <bruno@clisp.org>
7048
7049         langinfo, nl_langinfo: Fix for IRIX 5.3.
7050         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
7051         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
7052         HAVE_LANGINFO_YESEXPR.
7053         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
7054         HAVE_LANGINFO_YESEXPR.
7055         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
7056         HAVE_LANGINFO_T_FMT_AMPM is 0.
7057         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
7058         HAVE_LANGINFO_YESEXPR is 0.
7059         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
7060         NOEXPR.
7061         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
7062         * doc/posix-functions/nl_langinfo.texi: Likewise.
7063         Reported by Eric Blake.
7064
7065 2010-09-10  Bruno Haible  <bruno@clisp.org>
7066
7067         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
7068         * doc/glibc-functions/login_tty.texi: Mention the include file problem
7069         on FreeBSD 8.0 and OpenBSD 4.6.
7070         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
7071         * m4/pty_h.m4 (gl_PTY_H): Likewise.
7072         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
7073         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
7074         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
7075         ac_includes_default.
7076         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
7077
7078 2010-09-09  Eric Blake  <eblake@redhat.com>
7079
7080         strsignal: work around NetBSD bug
7081         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
7082         * lib/string.in.h (includes): Likewise.
7083         * doc/posix-functions/strsignal.texi (strsignal): Document the
7084         bug.
7085         Reported by Nelson H. F. Beebe.
7086
7087         gnulib-tool: work with NetBSD /bin/sh
7088         * gnulib-tool (func_cache_var, func_cache_lookup_module)
7089         (func_get_description, func_get_comment, func_get_status)
7090         (func_get_notice, func_get_applicability, func_get_filelist)
7091         (func_get_dependencies, func_get_autoconf_early_snippet)
7092         (func_get_autoconf_snippet, func_get_automake_snippet)
7093         (func_get_include_directive, func_get_link_directive)
7094         (func_get_license, func_get_maintainer, func_import): Avoid
7095         shell syntax errors from parsing syntax extensions.
7096
7097 2010-09-09  Bruno Haible  <bruno@clisp.org>
7098
7099         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7100         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
7101         a reliable way to determine whether the 'alias' command works.
7102
7103 2010-09-08  Jim Meyering  <meyering@redhat.com>
7104
7105         init.sh: penalize a set-x-impaired shell; don't disqualify it
7106         * tests/init.sh: Too many shells corrupt application stderr when
7107         you set -x, so we can't afford to disqualify them, since at least
7108         on Irix-6.5, that would disqualify all bourne shells.
7109         Instead, use a two-pass approach.
7110         On the first pass, try to find a shell that meets the stricter
7111         condition that set -x does not corrupt stderr.
7112         If no shell meets the stricter condition, retest each candidate
7113         shell, but without that extra condition.  Finally, when
7114         VERBOSE=yes is requested and set -x might cause trouble, simply
7115         issue a warning and refrain from enabling debug output.
7116
7117 2010-09-08  Eric Blake  <eblake@redhat.com>
7118
7119         unsetenv: fix OpenBSD bug
7120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
7121         * doc/posix-functions/unsetenv.texi (unsetenv): Update
7122         documentation.
7123         Reported by Jim Meyering.
7124
7125         strtod: work around IRIX 6.5 bug
7126         * lib/strtod.c (strtod): Reparse number on shorter string if
7127         exponent parse was invalid.
7128         * tests/test-strtod.c (main): Add check for "0x1p 2".
7129         Reported by Tom G. Christensen.
7130
7131         getopt: optimize previous patch
7132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
7133         empty variable.  Speed up awk script.
7134         Reported by Paolo Bonzini.
7135
7136 2010-09-08  Jim Meyering  <meyering@redhat.com>
7137
7138         test.sh: disqualify shells for which set -x corrupts stderr
7139         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
7140         and OpenBSD 4.7.  They make it so with "set -x", environment settings
7141         appear in stderr output.  For example, this command:
7142             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
7143         prints "P=1" on those two systems:
7144
7145 2010-09-08  Bruno Haible  <bruno@clisp.org>
7146
7147         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
7148         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
7149         commands, because some shells ignore redirections when there is an
7150         error in the command lookup.
7151         Reported by Eric Blake.
7152
7153 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
7154
7155         * lib/regex.h: Fix a mention of `regex_compile' (should be
7156         `re_compile_pattern').
7157         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
7158         (re_set_registers): Correct name of parameter in comment.
7159
7160         * doc/regex.texi: Add documentation for missing syntax flags.
7161         Remove commented-out documentation of defunct syntax option
7162         RE_NO_EMPTY_ALTS.
7163         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
7164         Add documentation of re_set_registers.
7165         Document trick to re-use a pattern buffer by setting fastmap manually.
7166         Update documentation of struct re_pattern_buffer per public members.
7167         Uncomment documentation of equivalence class operators and
7168         collating symbol operators, since they are now implemented,
7169         Explain leftmost-longest matching in relation to alternatives.
7170         Tidy documentation of substring matching.
7171         Remove POSIX documentation, which is done better in
7172         glibc, and refer the reader there. Keep BSD API documentation, as
7173         that is not readily available elsewhere.
7174
7175 2010-09-07  Eric Blake  <eblake@redhat.com>
7176
7177         getopt: handle POSIXLY_CORRECT set but not exported
7178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
7179         export state of POSIXLY_CORRECT, due to bash set -o posix.
7180         Reported by Dustin J. Mitchell.
7181
7182 2010-09-05  Bruno Haible  <bruno@clisp.org>
7183
7184         gnulib-tool: Highlight the changed options.
7185         * gnulib-tool (func_usage): Display the --import, --add-import,
7186         --remove-import explanations in bold font.
7187
7188 2010-09-06  Karl Berry  <karl@gnu.org>
7189
7190         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
7191
7192 2010-09-05  Bruno Haible  <bruno@clisp.org>
7193
7194         uniwidth/width: Update comment.
7195         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
7196         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
7197
7198 2010-09-05  Bruno Haible  <bruno@clisp.org>
7199
7200         isinf, isnan: Relax license.
7201         * modules/isinf (License): Change from GPL to LGPL, with consent from
7202         Ben Pfaff.
7203         * modules/isnan (License): Likewise.
7204         Requested by Ludovic Courtès.
7205
7206 2010-09-04  Bruno Haible  <bruno@clisp.org>
7207
7208         gnulib-tool: Help migration from --import to --add-import or --update.
7209         * gnulib-tool: Emit a verbose error message when --import is used
7210         without any module name.
7211
7212 2010-09-04  Bruno Haible  <bruno@clisp.org>
7213
7214         Update doc about gnulib-tool.
7215         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
7216         'gnulib-tool --update' in more detail.
7217         Reported by Eric Blake.
7218
7219 2010-09-04  Bruno Haible  <bruno@clisp.org>
7220
7221         gnulib-tool: Change --import. New options --add/remove-import.
7222         * gnulib-tool: New options --add-import, --remove-import.
7223         (func_usage): Document them.
7224         (have_associative): Define always.
7225         (func_import): In import mode, don't merge the specified settings with
7226         the cached settings. Implement remove-import mode.
7227         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
7228         Explain when to use them versus --import.
7229         (Simple update): Use --add-import instead of --import.
7230         * NEWS: Mention the change.
7231
7232 2010-09-04  Bruno Haible  <bruno@clisp.org>
7233
7234         * doc/gnulib-tool.texi (Initial import): Update paragraph about
7235         separate gnulib.mk.
7236
7237 2010-09-04  Bruno Haible  <bruno@clisp.org>
7238
7239         gnulib-tool: Don't talk about CVS any more.
7240         * gnulib-tool (func_usage, func_import): Write "version control"
7241         instead of CVS.
7242
7243 2010-09-04  Jim Meyering  <meyering@redhat.com>
7244
7245         maint.mk: avoid obscure sc_copyright_check failure in coreutils
7246         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
7247         false positives (whose names may be ill-chosen) when searching
7248         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
7249         would cause a false-positive.
7250
7251         avoid coreutils "make distcheck" failure
7252         Coreutils tests with an absolute build directory name that contains
7253         a space.  Not quoting this directory name caused a failure.
7254         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
7255         * tests/test-vc-list-files-cvs.sh: Likewise.
7256
7257 2010-09-04  Bruno Haible  <bruno@clisp.org>
7258
7259         gnulib-tool: Avoid error when run in a package without Makefile.am.
7260         * gnulib-tool: When collecting the m4dirs in a package that does not
7261         have a Makefile.am, eliminate those directories that contain no
7262         gnulib-cache.m4. Fix expression that counts these directories.
7263
7264 2010-09-04  Bruno Haible  <bruno@clisp.org>
7265
7266         update-copyright test: Improve output when perl is missing or too old.
7267         * tests/test-update-copyright.sh: Move test of Perl version down after
7268         the test whether Perl exists. Provide an explanation relating Perl's
7269         error message to Automake's SKIP: message.
7270
7271 2010-09-04  Bruno Haible  <bruno@clisp.org>
7272
7273         Don't augment PATH in TESTS_ENVIRONMENT.
7274         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
7275         set abs_aux_dir instead of augmenting PATH.
7276         * modules/vc-list-files-tests (Makefile.am): Likewise.
7277         * tests/test-update-copyright.sh: Augment PATH here.
7278         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
7279         path_prepend_.
7280         * tests/test-vc-list-files-git.sh: Likewise.
7281
7282 2010-09-04  Jim Meyering  <meyering@redhat.com>
7283
7284         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
7285         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
7286
7287 2010-09-04  Bruno Haible  <bruno@clisp.org>
7288
7289         strdup: Fix compilation error in C++ mode.
7290         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
7291         the macro.
7292
7293 2010-09-04  Bruno Haible  <bruno@clisp.org>
7294
7295         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
7296         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
7297         macro into a function.
7298         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7299
7300 2010-09-04  Bruno Haible  <bruno@clisp.org>
7301
7302         Set PATH_SEPARATOR the same way autoconf does.
7303         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
7304         the value of PATH_SEPARATOR the same way autoconf-generated configure
7305         scripts do.
7306         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
7307         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
7308
7309 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7310
7311         Set PATH_SEPARATOR the same way autoconf does.
7312         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
7313         the same way autoconf-generated configure scripts do.
7314         * posix-modules: Likewise.
7315
7316 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
7317
7318         hash: fix safe_hasher const typo
7319         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
7320         const; otherwise, there is a type error later.
7321
7322 2010-09-02  Jim Meyering  <meyering@redhat.com>
7323
7324         test-update-copyright.sh: require perl 5.8.0
7325         * tests/test-update-copyright.sh: Require 5.8.0,
7326         which Tom G. Christensen has confirmed is adequate,
7327         while 5.6.1 is not.
7328
7329 2010-09-02  Eric Blake  <eblake@redhat.com>
7330
7331         tests: init.sh improvements for re-exec'ing with zsh
7332         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
7333         -vx through shell re-exec.
7334         Reported by Tom G. Christensen.
7335
7336         wctype: fix typo in previous commit
7337         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
7338         Reported by Ludovic Courtès.
7339
7340 2010-09-02  Jim Meyering  <meyering@redhat.com>
7341
7342         test-update-copyright.sh: skip test if Perl is too old
7343         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
7344         Reported by Tom G. Christensen.
7345
7346 2010-09-02  Bruno Haible  <bruno@clisp.org>
7347
7348         wctype: Avoid compilation error on IRIX 6.5.30.
7349         * lib/wctype.in.h (iswblank): Declare with a replacement if
7350         REPLACE_ISWBLANK is set.
7351         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
7352         declared. Set REPLACE_ISWBLANK.
7353         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
7354         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
7355         * doc/posix-headers/wctype.texi: Likewise.
7356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7357
7358 2010-09-01  Bruno Haible  <bruno@clisp.org>
7359
7360         New module 'socketlib'.
7361         * modules/socketlib: New file.
7362         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
7363         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
7364         * modules/sockets (Depends-on): Add socketlib.
7365         Suggested by Sam Steingold <sds@gnu.org>.
7366
7367 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7368
7369         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
7370
7371         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
7372         when one needs search access to a directory but not read access.
7373         On systems where it is available, it works in some cases where
7374         O_RDONLY does not, namely on directories that are searchable but
7375         not readable, and which need only to be searchable.  If O_SEARCH
7376         is not available, fall back to the traditional method of using
7377         O_RDONLY.
7378
7379         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
7380         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
7381         when opening a directory that needs only to be searchable.
7382         * lib/chdir-safer.c (chdir_no_follow): Likewise.
7383         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
7384         * lib/openat-proc.c (openat_proc_name): Likewise.
7385         * lib/openat.c (openat_needs_fchdir): Likewise.
7386         * lib/save-cwd.c (save_cwd): Likewise.
7387         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
7388
7389 2010-08-28  Bruno Haible  <bruno@clisp.org>
7390
7391         New module 'host-cpu-c-abi'.
7392         * modules/host-cpu-c-abi: New file.
7393         * m4/host-cpu-c-abi.m4: New file, based on part of
7394         clisp/src/m4/general.m4.
7395         Requested by Sam Steingold <sds@gnu.org>.
7396
7397 2010-08-31  Eric Blake  <eblake@redhat.com>
7398         and Jim Meyering  <meyering@redhat.com>
7399
7400         hash: factor, and guard against misbehaving hasher function
7401         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
7402         of table->hasher's return value.  Also protect against a hash value
7403         so large that adding it to table->bucket results in a NULL pointer.
7404         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
7405         Use it in place of open-coded check-and-abort.
7406
7407 2010-08-30  Bruno Haible  <bruno@clisp.org>
7408
7409         hash: silence spurious clang warning
7410         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
7411         Reported by Eric Blake.
7412
7413 2010-08-30  Eric Blake  <eblake@redhat.com>
7414
7415         strstr, memmem, strcasestr: avoid leaked shell message
7416         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
7417         FreeBSD.
7418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7420
7421         tests: silence clang warning
7422         * tests/test-malloca.c (do_allocation): Avoid dead store.
7423
7424 2010-08-29  Bruno Haible  <bruno@clisp.org>
7425
7426         gettext: Fix recent mistake.
7427         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
7428
7429 2010-08-29  Bruno Haible  <bruno@clisp.org>
7430
7431         selinux-h: Offer a --without-selinux option.
7432         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
7433         --without-selinux was specified, skip all tests and define
7434         HAVE_SELINUX_SELINUX_H to 0.
7435         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
7436         set LIB_SELINUX to empty.
7437         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
7438         gl_LIBSELINUX. If --without-selinux was specified, replace
7439         selinux/context.h.
7440         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
7441
7442 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7443             Bruno Haible  <bruno@clisp.org>
7444
7445         Make the module 'realloc-gnu' work again on AIX and OSF/1.
7446         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
7447         of HAVE_REALLOC.
7448         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
7449         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
7450         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
7451         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7452
7453 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7454             Bruno Haible  <bruno@clisp.org>
7455
7456         Make the module 'calloc-gnu' work again on AIX and OSF/1.
7457         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
7458         HAVE_CALLOC.
7459         * lib/xmalloc.c: Update accordingly.
7460         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
7461         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
7462         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
7463
7464 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7465             Bruno Haible  <bruno@clisp.org>
7466
7467         Make the module 'malloc-gnu' work again on AIX and OSF/1.
7468         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
7469         HAVE_MALLOC.
7470         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
7471         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
7472         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
7473
7474 2010-08-29  Bruno Haible  <bruno@clisp.org>
7475
7476         Update modules list.
7477         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7478         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
7479         (String handling <string.h>): Add astrxfrm.
7480         (File system functions): Add readlinkat.
7481
7482 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7483
7484         Tests for module 'realloc-gnu'.
7485         * modules/realloc-gnu-tests: New file.
7486         * tests/test-realloc-gnu.c: New file.
7487
7488         Tests for module 'calloc-gnu'.
7489         * modules/calloc-gnu-tests: New file.
7490         * tests/test-calloc-gnu.c: New file.
7491
7492         Tests for module 'malloc-gnu'.
7493         * modules/malloc-gnu-tests: New file.
7494         * tests/test-malloc-gnu.c: New file.
7495
7496 2010-08-28  Bruno Haible  <bruno@clisp.org>
7497
7498         Rename module 'realloc' -> 'realloc-gnu'.
7499         * modules/realloc-gnu: New file, copied from modules/realloc.
7500         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
7501         obsolete.
7502         * modules/mgetgroups (Depends-on): Update.
7503         * doc/posix-functions/realloc.texi: Update.
7504         * NEWS: Mention the change.
7505
7506         Rename module 'calloc' -> 'calloc-gnu'.
7507         * modules/calloc-gnu: New file, copied from modules/calloc.
7508         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
7509         obsolete.
7510         * doc/posix-functions/calloc.texi: Update.
7511         * NEWS: Mention the change.
7512
7513         Rename module 'malloc' -> 'malloc-gnu'.
7514         * modules/malloc-gnu: New file, copied from modules/malloc.
7515         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
7516         obsolete.
7517         * modules/argp (Depends-on): Update.
7518         * modules/regex (Depends-on): Update.
7519         * doc/posix-functions/malloc.texi: Update.
7520         * NEWS: Mention the change.
7521
7522 2010-08-28  Eric Blake  <eblake@redhat.com>
7523
7524         pread, pwrite: add missing dependency
7525         * modules/pread (Depends-on): Add extensions.
7526         * modules/pwrite (Depends-on): Likewise.
7527
7528 2010-08-28  Bruno Haible  <bruno@clisp.org>
7529
7530         unistr/u*-strchr: Fix tests dependencies.
7531         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
7532         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
7533         Reported by Ian Beckwith <ianb@erislabs.net>.
7534
7535 2010-08-28  Bruno Haible  <bruno@clisp.org>
7536
7537         read-file: Don't occupy too much unused memory.
7538         * lib/read-file.c (fread_file): Shrink the buffer at the end.
7539
7540 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
7541             Eric Blake  <eblake@redhat.com>
7542             Bruno Haible  <bruno@clisp.org>
7543
7544         read-file: Avoid memory reallocations with regular files.
7545         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
7546         (fread_file): With regular files, use the remaining length as the
7547         initial buffer size.  Check against overflow.
7548         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
7549         sys_stat.
7550
7551 2010-08-28  Bruno Haible  <bruno@clisp.org>
7552
7553         ftello: Relax license.
7554         * modules/ftello (License): Relax to LGPLv2+.
7555         Reported by Eric Blake.
7556
7557 2010-08-28  Bruno Haible  <bruno@clisp.org>
7558
7559         Avoid relocwrapper link errors due to gnulib replacement functions.
7560         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
7561         function.
7562         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7563
7564 2010-08-28  Bruno Haible  <bruno@clisp.org>
7565
7566         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
7567         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
7568         defined.
7569         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
7570         Suggested by Eric Blake.
7571
7572 2010-08-28  Bruno Haible  <bruno@clisp.org>
7573
7574         sys_socket, netdb: Ensure socklen_t gets defined.
7575         * modules/sys_socket (Depends-on): Add socklen.
7576         * modules/netdb (Depends-on): Likewise.
7577         * modules/getaddrinfo (Depends-on): Remove socklen.
7578         * modules/getsockopt (Depends-on): Likewise.
7579         * modules/setsockopt (Depends-on): Likewise.
7580         * tests/test-sys_socket.c: Check that socklen_t is defined.
7581         * tests/test-netdb.c: Likewise.
7582         * m4/socklen.m4: Update comments.
7583         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7584
7585 2010-08-27  Eric Blake  <eblake@redhat.com>
7586
7587         login_tty: add missing dependency
7588         * modules/login_tty (Depends-on): Add pty.
7589
7590 2010-08-26  Eric Blake  <eblake@redhat.com>
7591
7592         lib-symbol-versions: fix m4 quoting
7593         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
7594         format for AC_LINK_IFELSE.
7595
7596         glob: fix compile test
7597         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
7598
7599         btowc: fix missing file
7600         * modules/btowc (Files): Also ship locale-fr.m4.
7601
7602         lseek: fix link test
7603         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
7604         AC_LINK_IFELSE.
7605
7606         include_next: silence autoconf 2.68 warning
7607         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
7608         AC_COMPILE_IFELSE as special.
7609         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
7610         autoconf < 2.68.
7611
7612         acl: fix compilation test
7613         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
7614         AC_COMPILE_IFELSE.
7615
7616 2010-08-26  Bruno Haible  <bruno@clisp.org>
7617
7618         Modernize AC_TRY_RUN invocations.
7619         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
7620         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7621         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
7622         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
7623         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
7624         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7627         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7628         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7629         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7630         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7631         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7632         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7633         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7634         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7635         gl_MBRLEN_NUL_RETVAL): Likewise.
7636         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7637         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
7638         Likewise.
7639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7640         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7641         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7642         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7643         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
7644         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
7645         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
7646         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7647         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
7648         Likewise.
7649         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
7650         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7652         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7654         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7655         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7656         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
7657         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7659
7660 2010-08-26  Bruno Haible  <bruno@clisp.org>
7661
7662         Modernize AC_TRY_LINK invocations.
7663         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
7664         AC_TRY_LINK.
7665         * m4/argp.m4 (gl_ARGP): Likewise.
7666         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7667         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7668         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7669         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7670         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7671         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
7672         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7673         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7674         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7675         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
7676         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7677         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
7678         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
7679         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7680         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
7681         * m4/hostent.m4 (gl_HOSTENT): Likewise.
7682         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7683         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
7684         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
7685         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
7686         Likewise.
7687         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
7688         Likewise.
7689         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
7690         Likewise.
7691         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
7692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
7693         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
7694         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7695         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7696         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7697         * m4/servent.m4 (gl_SERVENT): Likewise.
7698         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7699         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7700         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7701         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7702         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
7703         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7704         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7705         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7706         * modules/tsearch-tests (configure.ac): Likewise.
7707
7708 2010-08-26  Bruno Haible  <bruno@clisp.org>
7709
7710         Modernize AC_TRY_COMPILE invocations.
7711         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
7712         AC_TRY_COMPILE.
7713         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
7714         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
7715         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
7716         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
7717         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
7718         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
7719         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7720         * m4/lock.m4 (gl_LOCK): Likewise.
7721         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
7722         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7723         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
7724         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7725         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
7726         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
7727         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
7728         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
7729         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
7730         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
7731         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
7732         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7733         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
7734         extraneous semicolon.
7735
7736 2010-08-26  Jim Meyering  <meyering@redhat.com>
7737
7738         stat-time: relax license LGPL
7739         * modules/stat-time (License): Change from GPL to LGPL,
7740         with consent from all contributors, for use in libguile.
7741         Requested by Ludovic Courtès.
7742
7743 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
7744
7745         poll: return immediately on POLLHUP.
7746         * lib/poll.c (poll): Always set timeout before wait_timeout is
7747         computed.
7748
7749 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7750
7751         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
7752         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
7753         rmdir ("dir/.//"), unlinkat.
7754
7755 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7756
7757         stdbool: avoid spurious failure with modern xlc
7758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7759
7760 2010-08-24  Bruno Haible  <bruno@clisp.org>
7761
7762         getloadavg: simplify code
7763         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
7764         gl_have_func. Update comments.
7765
7766 2010-08-24  Eric Blake  <eblake@redhat.com>
7767
7768         getloadavg: don't define SVR4 on cygwin
7769         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
7770         only define SVR4 when -lkvm is required.
7771         Reported by Yaakov Selkowitz.
7772
7773 2010-08-24  Bruno Haible  <bruno@clisp.org>
7774
7775         priv-set: fix comment
7776         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
7777
7778 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
7779
7780         priv-set: fix comments
7781         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
7782         to match code, as suggested by David Bartley in:
7783         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
7784
7785 2010-08-23  Eric Blake  <eblake@redhat.com>
7786
7787         stdbool: avoid rejecting clang
7788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
7789         * tests/test-stdbool.c: Enable more tests if using the system
7790         <stdbool.h> instead of the gnulib replacement.
7791         (main): Move xlc bug test to a runtime test for all compilers.
7792         Reported by Anders Kaseorg.
7793
7794         argz: fix shell quoting issue
7795         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
7796         Reported by Charles Wilson.
7797
7798 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
7799             Erik Faye-Lund <kusmabite@gmail.com>
7800
7801         poll, select: handle ERROR_BROKEN_PIPE.
7802         * lib/poll.c (win32_compute_revents): Return POLLHUP when
7803         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7804         * lib/select.c (win32_compute_revents): Do not mark a pipe
7805         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
7806
7807 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
7808
7809         fts: allow compilation with C++
7810         * lib/fts_.h: Specify extern "C" linkage with C++.
7811
7812 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7813
7814         Fix gnulib-tool sed script de-commentation for AIX sed.
7815         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
7816         sed.
7817
7818 2010-08-17  Eric Blake  <eblake@redhat.com>
7819
7820         test-stddef: test for (some) offsetof bugs
7821         * tests/test-stddef.c: Enhance test to ensure correct type of
7822         offsetof.
7823         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
7824         that we are not fixing at this time.
7825
7826 2010-08-15  Bruno Haible  <bruno@clisp.org>
7827
7828         stpncpy: Allow stpncpy to be defined as a macro.
7829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
7830         if it's already correctly declared.
7831         * lib/string.in.h (stpncpy): Undefine before redefining.
7832         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
7833
7834 2010-08-14  Bruno Haible  <bruno@clisp.org>
7835
7836         Rename module 'memxfrm' to 'amemxfrm'.
7837         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
7838         (amemxfrm): Renamed from memxfrm.
7839         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
7840         (amemxfrm): Renamed from memxfrm.
7841         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
7842         * NEWS: Mention the change.
7843         * MODULES.html.sh (String handling <string.h>): Update.
7844         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
7845         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
7846         * lib/unicase/u16-casexfrm.c: Likewise.
7847         * lib/unicase/u32-casexfrm.c: Likewise.
7848         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
7849         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
7850         * lib/uninorm/u16-normxfrm.c: Likewise.
7851         * lib/uninorm/u32-normxfrm.c: Likewise.
7852         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
7853         memxfrm.
7854         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
7855         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
7856         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
7857         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
7858         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
7859         Suggested by Paul Eggert.
7860
7861 2010-08-14  Bruno Haible  <bruno@clisp.org>
7862
7863         Tests for module 'astrxfrm'.
7864         * modules/astrxfrm-tests: New file.
7865         * tests/test-astrxfrm.c: New file.
7866
7867         New module 'astrxfrm'.
7868         * lib/astrxfrm.h: New file.
7869         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
7870         * modules/astrxfrm: New file.
7871
7872 2010-08-14  Reuben Thomas <rrt@sc3d.org>
7873
7874         regex: Tweak doc.
7875         * doc/regex.texi (Overview): Don't mention regex.c.
7876         (GNU Regular Expression Compiling): Likewise.
7877         (Match-end-of-line Operator): Mention 'not_eol'.
7878
7879 2010-08-14  Brian Gough  <bjg@gnu.org>
7880             Bruno Haible  <bruno@clisp.org>
7881
7882         git-merge-changelog: add doc relating to use with bzr and hg.
7883         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
7884
7885 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
7886
7887         pthread: fix pthread.h creation for srcdir != builddir
7888         * modules/pthread (Makefile.am): Fix the rule to work also in a
7889         non-srcdir build.
7890
7891 2010-08-13  Karl Berry  <karl@gnu.org>
7892
7893         * doc/regex.texi (Predefined Syntaxes): @smallexample.
7894         * doc/posix-*/*: force line break before @url of POSIX
7895         specifications.
7896         Suggested by Werner Lemberg.
7897
7898 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7899
7900         strtod: fix const diagnostic
7901         * lib/strtod.c (strtod): Don't assign const char * to char *,
7902         as this elicits a warning from GCC when warnings are enabled.
7903
7904 2010-08-10  Pádraig Brady <P@draigbrady.com>
7905         and Eric Blake  <eblake@redhat.com>
7906
7907         copy-acl: ignore ENOTSUP on HP-UX
7908         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
7909         so that it is available for HP-UX.
7910         * lib/copy-acl.c (qcopy_acl): Use it.
7911         Reported by Patrick M. Callahan.
7912
7913 2010-08-10  Eric Blake  <eblake@redhat.com>
7914
7915         open, chown: relax license
7916         * modules/open (License): Change to LGPLv2+, with consent by all
7917         authors, for use in augeas.
7918         * modules/chown (License): Likewise.
7919         * modules/lchown (Likewise): Likewise.
7920         Requested by Adam Stokes.
7921
7922 2010-08-09  Karl Berry  <karl@gnu.org>
7923
7924         * build-aux/ar-lib: new file, import from Automake.
7925         * config/srclist.txt: autocheck for updates.
7926
7927 2010-08-09  Eric Blake  <eblake@redhat.com>
7928
7929         readlinkat: adjust client modules
7930         * modules/areadlinkat (Depends-on): Use readlinkat, not
7931         symlinkat.
7932         * modules/areadlinkat-with-size (Depends-on): Likewise.
7933
7934         mknod: be more vocal about danger of running tests as root
7935         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
7936         root, since that is just asking for problems.
7937         Suggested by Bruno Haible, based on a report by Rainer Tammer.
7938
7939         readlinkat: split into its own module
7940         * modules/symlinkat: Split readlinkat...
7941         * modules/readlinkat: ...into separate module.
7942         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
7943         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
7944         * lib/symlinkat.c (readlinkat): Move...
7945         * lib/readlinkat.c: ...into new file.
7946         * modules/symlinkat-tests: Split readlinkat test...
7947         * modules/readlinkat-tests: ...into separate module.
7948         * tests/test-symlinkat.c: Split...
7949         * tests/test-readlinkat.c: ...into new file.
7950         * NEWS: Document the split.
7951         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7952         * lib/unistd.in.h (readlinkat): Likewise.
7953         Suggested by Bruno Haible.
7954
7955 2010-08-08  Bruno Haible  <bruno@clisp.org>
7956
7957         memxfrm: Speed up.
7958         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
7959         that usually only one call to strxfrm is necessary for each string
7960         part.
7961         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7962
7963 2010-08-07  Karl Berry  <karl@gnu.org>
7964
7965         * doc/posix-headers/limits.texi,
7966         * doc/posix-functions/malloc.texi,
7967         * doc/posix-functions/strsignal.texi: missing @item.
7968         * doc/ld-version-script.texi: spurious leading i.
7969         * doc/regex.texi (Interval Operators): no commas inside @var.
7970
7971 2010-08-01  Bruno Haible  <bruno@clisp.org>
7972
7973         Integrate the regex documentation.
7974         * doc/gnulib.texi: Define 'cn' index.
7975         (Regular expressions): New a chapter that includes regex.texi and
7976         regexprops-generic.texi.
7977         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
7978         syntax.
7979
7980         Whitespace cleanup.
7981         * doc/regex.texi: Remove trailing spaces.
7982
7983         Add regex documentation.
7984         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
7985         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
7986         Written by Kathy A. Hargreaves and Karl Berry.
7987
7988 2010-08-01  Bruno Haible  <bruno@clisp.org>
7989
7990         link: Update documentation.
7991         * doc/posix-functions/link.texi: Update regarding Solaris.
7992
7993 2010-07-31  Bruno Haible  <bruno@clisp.org>
7994
7995         Update modules list.
7996         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
7997         (String handling <string.h>): Add memcmp2, memxfrm.
7998         (Container data structures): Add xlist, xsublist, xoset.
7999         (Core language properties): Add alignof, unused-parameter.
8000         (Process control, Numeric conversion functions <stdlib.h>): Renamed
8001         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
8002         (Unibyte characters <ctype.h>): New section.
8003         (String handling <string.h>): New section.
8004         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
8005         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
8006         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
8007         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
8008         tan, tanh, tanl, y0, y1, yn.
8009         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
8010         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
8011         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
8012         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
8013         unlockpt, vdprintf, vdprintf-posix.
8014         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
8015         (File system functions): Add concat-filename, sys_file, sys_ioctl,
8016         xconcat-filename.
8017         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
8018         getdtablesize, pipe2, pipe2-safer.
8019         (Security): New section.
8020         (Networking functions): Add accept4.
8021         (Signal handling): Add sigpipe.
8022         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
8023         mbmemcasecoll.
8024         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
8025         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
8026         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
8027         pipe-filter-ii.
8028         (Misc): Add argp-version-etc, login_tty, parse-duration.
8029
8030 2010-07-31  Bruno Haible  <bruno@clisp.org>
8031
8032         Improve doc in MODULES.html.
8033         * modules/linkat (Description): Add the word "function".
8034         * modules/mkfifo (Description): Likewise.
8035         * modules/mknod (Description): Likewise.
8036         * modules/remove (Description): Likewise.
8037         * modules/renameat (Description): Likewise.
8038         * modules/stat (Description): Likewise.
8039         * modules/symlink (Description): Likewise.
8040         * modules/unlink (Description): Likewise.
8041
8042 2010-07-31  Bruno Haible  <bruno@clisp.org>
8043
8044         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
8045         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
8046         option --enable/disable-c++ instead of --enable/disable-cxx.
8047         * NEWS: Mention the change.
8048
8049 2010-07-31  Bruno Haible  <bruno@clisp.org>
8050
8051         readlink, areadlink: Relax test a bit.
8052         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
8053         alternative to ENOTDIR.
8054         * tests/test-areadlink.h (test_areadlink): Likewise.
8055         Reported by Rainer Tammer.
8056
8057 2010-07-31  Bruno Haible  <bruno@clisp.org>
8058
8059         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
8060         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
8061         character, perform the search using U_STRCHR.
8062         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
8063         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
8064         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
8065         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
8066         Suggested by Paolo Bonzini.
8067
8068 2010-07-31  Bruno Haible  <bruno@clisp.org>
8069
8070         unistr/u*-strstr: Fix dependencies.
8071         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
8072         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
8073         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
8074
8075 2010-07-31  Bruno Haible  <bruno@clisp.org>
8076
8077         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
8078         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
8079         the beginning of the loop.
8080         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
8081         cases in 'switch' statement.
8082
8083         unistr/u8-strchr: Fix several bugs.
8084         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
8085         the string. When not found, return NULL, not a pointer near the end.
8086
8087         More tests for unistr/u8-strchr.
8088         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
8089         that the function does not read past the first occurrence of the byte
8090         being searched.
8091         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
8092         * tests/unistr/test-u16-strchr.c (main): New function.
8093         * tests/unistr/test-u32-strchr.c (main): New function.
8094
8095 2010-07-31  Bruno Haible  <bruno@clisp.org>
8096
8097         posix-modules: Ignore backup files of documentation files.
8098         * posix-modules: grep only through files named *.texi.
8099
8100 2010-07-31  Bruno Haible  <bruno@clisp.org>
8101
8102         symlinkat: Fix documentation.
8103         * doc/posix-functions/readlinkat.texi: Fix module name.
8104
8105 2010-07-31  Bruno Haible  <bruno@clisp.org>
8106
8107         fchownat: Replace also when chown has the trailing slash bug.
8108         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
8109         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
8110         introduced on 2010-04-10.
8111         Reported by Rainer Tammer.
8112
8113 2010-07-31  Bruno Haible  <bruno@clisp.org>
8114
8115         linkat: Work around AIX 7.1 bug.
8116         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
8117         whether linkat handles trailing slash correctly. If not, replace linkat
8118         and define LINKAT_TRAILING_SLASH_BUG.
8119         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
8120         check whether (fd1,file1) points to a directory if file1 or file2 ends
8121         in a slash. Code taken from lib/link.c.
8122         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
8123         Reported by Rainer Tammer.
8124
8125 2010-07-31  Bruno Haible  <bruno@clisp.org>
8126
8127         Correctly determine whether pow is available in libc on AIX 7 with xlc.
8128         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
8129         This disables an xlc optimization that was causing wrong test results.
8130         Reported by Rainer Tammer.
8131
8132 2010-07-31  Bruno Haible  <bruno@clisp.org>
8133
8134         iconv: Work around AIX 6.1..7.1 bug.
8135         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
8136         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
8137         cross-compiling, guess no on all versions of AIX.
8138         Reported by Rainer Tammer.
8139
8140 2010-07-31  Bruno Haible  <bruno@clisp.org>
8141
8142         readlink: Relax test a bit.
8143         * tests/test-readlink.h (test_readlink): Allow different errno value
8144         when readlink is called with a file name that ends in / and refers to
8145         a file.
8146         Suggested by Eric Blake.
8147         Reported by Rainer Tammer.
8148
8149 2010-07-31  Bruno Haible  <bruno@clisp.org>
8150
8151         copysign: Does not require -lm on glibc systems.
8152         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
8153         gl_COMMON_DOUBLE_MATHFUNC.
8154         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
8155
8156 2010-07-31  Bruno Haible  <bruno@clisp.org>
8157
8158         duplocale: Work around AIX 7.1 bug.
8159         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
8160         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
8161         * lib/duplocale.c (rpl_duplocale): Update comment.
8162         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
8163         Reported by Rainer Tammer.
8164
8165 2010-07-30  Bruno Haible  <bruno@clisp.org>
8166
8167         dirfd: Avoid link error on AIX 7.1.
8168         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
8169         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
8170         exist, set REPLACE_DIRFD.
8171         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
8172         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
8173         * doc/posix-functions/dirfd.texi: Update.
8174         Reported by Rainer Tammer.
8175
8176 2010-07-30  Eric Blake  <eblake@redhat.com>
8177
8178         strtod: next round of AIX fixes
8179         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
8180         exponent.
8181         * tests/test-strtod.c (main): Enhance tests.
8182         * doc/posix-functions/strtod.texi (strtod): Document next bug.
8183         Reported by Rainer Tammer.
8184
8185         futimens: fix configure check
8186         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
8187         Reported by Bruno Haible.
8188
8189 2010-07-30  Bruno Haible  <bruno@clisp.org>
8190
8191         getline: Update regarding AIX.
8192         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
8193         Reported by Rainer Tammer.
8194
8195 2010-07-30  Bruno Haible  <bruno@clisp.org>
8196
8197         wcwidth: Drop replacement on AIX 7.
8198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
8199         AIX 7.
8200         Reported by Rainer Tammer.
8201
8202 2010-07-30  Bruno Haible  <bruno@clisp.org>
8203
8204         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
8205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
8206         a 'char *'.
8207         Reported by Rainer Tammer.
8208
8209 2010-07-30  Bruno Haible  <bruno@clisp.org>
8210
8211         unlink: Update regarding AIX.
8212         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
8213         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
8214         Reported by Rainer Tammer.
8215
8216 2010-07-30  Bruno Haible  <bruno@clisp.org>
8217
8218         symlink: Update regarding AIX.
8219         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
8220         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
8221         Reported by Rainer Tammer.
8222
8223 2010-07-30  Bruno Haible  <bruno@clisp.org>
8224
8225         strndup: Update regarding AIX.
8226         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
8227         AIX 7.
8228         Reported by Rainer Tammer.
8229
8230 2010-07-30  Bruno Haible  <bruno@clisp.org>
8231
8232         stat: Update regarding AIX.
8233         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
8234         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
8235         Reported by Rainer Tammer.
8236
8237 2010-07-30  Bruno Haible  <bruno@clisp.org>
8238
8239         truncl: Fix autoconf test.
8240         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
8241         whether truncl works.
8242         Reported by Rainer Tammer.
8243
8244 2010-07-30  Bruno Haible  <bruno@clisp.org>
8245
8246         round: Update regarding AIX.
8247         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
8248         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
8249         Reported by Rainer Tammer.
8250
8251 2010-07-30  Bruno Haible  <bruno@clisp.org>
8252
8253         rename: Update regarding AIX.
8254         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
8255         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
8256         Reported by Rainer Tammer.
8257
8258 2010-07-30  Bruno Haible  <bruno@clisp.org>
8259
8260         printf.m4: Update regarding AIX.
8261         * m4/printf.m4: Update comments regarding AIX.
8262         Reported by Rainer Tammer.
8263
8264 2010-07-30  Bruno Haible  <bruno@clisp.org>
8265
8266         iconv: Update regarding AIX.
8267         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
8268         AIX 7.
8269         Reported by Rainer Tammer.
8270
8271 2010-07-30  Bruno Haible  <bruno@clisp.org>
8272
8273         getopt: Update regarding AIX.
8274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
8275         no on AIX.
8276         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
8277         Reported by Rainer Tammer.
8278
8279 2010-07-30  Bruno Haible  <bruno@clisp.org>
8280
8281         ldexpl; Update regarding AIX.
8282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
8283         on AIX 7.
8284         Reported by Rainer Tammer.
8285
8286 2010-07-30  Bruno Haible  <bruno@clisp.org>
8287
8288         frexpl: Update regarding AIX.
8289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
8290         on AIX 7.
8291         Reported by Rainer Tammer.
8292
8293 2010-07-30  Bruno Haible  <bruno@clisp.org>
8294
8295         open, fopen: Update regarding AIX.
8296         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
8297         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
8298         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
8299         * doc/posix-functions/fopen.texi: Likewise.
8300         Reported by Rainer Tammer.
8301
8302 2010-07-30  Bruno Haible  <bruno@clisp.org>
8303
8304         chown: Update doc regarding AIX.
8305         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
8306         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
8307         Reported by Rainer Tammer.
8308
8309 2010-07-30  Eric Blake  <eblake@redhat.com>
8310
8311         strtod: fix bug in replacement function on AIX
8312         * lib/strtod.c (strtod): Special case broken "0x" parse in
8313         underlying strtod.
8314         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
8315         * doc/posix-functions/strtod.texi (strtod): Likewise.
8316         Reported by Rainer Tammer.
8317
8318 2010-07-30  Bruno Haible  <bruno@clisp.org>
8319
8320         mbrlen: Fix cross-compilation guess for AIX.
8321         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
8322         guess. Leftover from 2008-12-22.
8323
8324 2010-07-30  Bruno Haible  <bruno@clisp.org>
8325
8326         mbrtowc: Fix cross-compilation guess for AIX.
8327         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
8328         guess. Leftover from 2008-12-21.
8329
8330 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
8331
8332         init.sh: work around trap limitation of some shells
8333         * tests/init.sh (setup_): Move exit trap outside of shell function.
8334
8335 2010-07-29  Eric Blake  <eblake@redhat.com>
8336
8337         strtod: aid debugging
8338         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
8339         understanding why strtod is rejected.
8340
8341 2010-07-28  Bruno Haible  <bruno@clisp.org>
8342
8343         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
8344         * lib/unistr/u8-chr.c: Include <string.h>.
8345         * tests/unistr/test-u8-chr.c: Likewise.
8346         * tests/unistr/test-u16-chr.c: Likewise.
8347         * tests/unistr/test-u32-chr.c: Likewise.
8348         * tests/unistr/test-u8-strchr.c: Likewise.
8349         * tests/unistr/test-u16-strchr.c: Likewise.
8350         * tests/unistr/test-u32-strchr.c: Likewise.
8351         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
8352         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
8353         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
8354         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
8355
8356 2010-07-28  Bruno Haible  <bruno@clisp.org>
8357
8358         Use spaces for indentation, not tabs.
8359         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8360
8361 2010-07-27  Bruno Haible  <bruno@clisp.org>
8362
8363         mbspcasecmp: Fix function specification.
8364         * lib/string.in.h (mbspcasecmp): Fix specification comment.
8365         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
8366         Reported by Eric Blake <eblake@redhat.com>.
8367
8368 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
8369
8370         timespec: use cast and not conditional, as truncation isn't possible
8371         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
8372         instead of a conditional.  Comment about the situation in more detail.
8373         This undoes most of the 2009-10-29 patch.
8374
8375 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
8376
8377         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
8378         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
8379         * lib/unistr/u8-strchr.c: Likewise.
8380         * modules/unistr/u8-chr: Depend on memchr.
8381
8382         unistr/u*-strchr: add tests
8383         * modules/unistr/u8-strchr-tests: New file.
8384         * modules/unistr/u16-strchr-tests: New file.
8385         * modules/unistr/u32-strchr-tests: New file.
8386         * tests/unistr/test-strchr.h: New file.
8387         * tests/unistr/test-u8-strchr.c: New file.
8388         * tests/unistr/test-u16-strchr.c: New file.
8389         * tests/unistr/test-u32-strchr.c: New file.
8390
8391         unistr/u*-chr: test multibyte sequences more
8392         * tests/unistr/test-chr.h: Do complete testing of the characters in the
8393         test vector.
8394         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
8395         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
8396         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
8397
8398         unistr/u*-chr: test multibyte sequences
8399         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
8400
8401         unistr/u*-chr: prepare for multibyte tests
8402         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
8403         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
8404         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
8405         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
8406         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
8407         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
8408
8409 2010-07-18  Bruno Haible  <bruno@clisp.org>
8410
8411         unistr/u8-strchr: Optimize non-ASCII argument case.
8412         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
8413         because the first byte often matches anyway.
8414         Reported by Pádraig Brady <P@draigbrady.com>.
8415
8416 2010-07-15  Karl Berry  <karl@gnu.org>
8417
8418         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
8419
8420 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
8421
8422         getcwd: on Solaris, work better if ancestors are inaccessible
8423         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
8424         buffer and size, try again with a large buffer.  This works better
8425         on Solaris, since its getcwd succeeds even if the path to the root
8426         is inaccessible, and this is helpful in common cases such as .zfs
8427         hidden directories.  Problem reported by J Chapman Flack in
8428         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
8429         Use system getcwd if it's declared, not merely if it's partly
8430         working; use the partly-working test only to avoid needless effort
8431         if the system getcwd fails.
8432         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
8433         comment that was already obsolete and is now even more obsolete.
8434         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
8435         now might call strdup.
8436
8437 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
8438
8439         pthread: Add enough so that coreutils/src/sort.c compiles.
8440         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
8441         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
8442         gnulib. Include <sched.h> and <time.h>, as per POSIX.
8443         Include <sys/types.h>, in case it defines pthread_t.
8444         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
8445         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
8446         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
8447         (pthread_rwlockattr_t, pthread_spinlock_t):
8448         New typedefs, if HAVE_PTHREAD_T is not defined.
8449         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
8450         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
8451         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
8452         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
8453         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
8454         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
8455         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
8456         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
8457         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
8458         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
8459         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
8460         New macros.
8461         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
8462         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
8463         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
8464         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
8465         (pthread_spin_unlock): New dummy functions.
8466         (pthread_create): Return EAGAIN; don't set errno.
8467         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
8468         require AC_C_INLINE.
8469         * modules/pthread (Depends-on): Add sched, time.
8470         (pthread.h): Use AM_V_GEN.
8471
8472 2010-07-13  Bruno Haible  <bruno@clisp.org>
8473
8474         striconveh: Don't malloc memory if the result buffer is sufficient.
8475         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
8476         buffer if its size is sufficient.
8477         Reported by Ludovic Courtès <ludo@gnu.org>.
8478
8479 2010-07-13  Bruno Haible  <bruno@clisp.org>
8480
8481         strtod: Add safety check.
8482         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
8483
8484 2010-07-12  Bruno Haible  <bruno@clisp.org>
8485
8486         Unify tests that set gl_cv_func_ldexpl_no_libm.
8487         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
8488         gl_FUNC_LDEXPL.
8489         (gl_FUNC_LDEXPL): Invoke it.
8490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8491
8492 2010-07-12  Bruno Haible  <bruno@clisp.org>
8493
8494         Unify tests that set gl_cv_func_ldexp_no_libm.
8495         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
8496         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
8497         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
8498         (configure.ac): Simply invoke gl_FUNC_LDEXP.
8499         * modules/strtod (Files): Add m4/ldexp.m4.
8500
8501 2010-07-12  Bruno Haible  <bruno@clisp.org>
8502
8503         Unify tests that set gl_cv_func_frexpl_no_libm.
8504         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
8505         gl_FUNC_FREXPL_NO_LIBM.
8506         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
8507         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8508
8509 2010-07-12  Bruno Haible  <bruno@clisp.org>
8510
8511         Unify tests that set gl_cv_func_frexp_no_libm.
8512         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
8513         gl_FUNC_FREXP_NO_LIBM.
8514         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
8515         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
8516
8517 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8518
8519         memcoll: clarify sizes versus lengths, document better, and tweak perf
8520         * lib/memcoll.c (strcoll_loop, memcoll0):
8521         Improve quality of descriptive comments.  Name variables
8522         consistently as to whether they are lengths (which do not include
8523         terminating null) versus sizes (which do).
8524         * lib/xmemcoll.c (xmemcoll0): Likewise.
8525         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
8526         returned when s1size == 0; this is easier to compile and saves
8527         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
8528
8529 2010-07-12  Bruno Haible  <bruno@clisp.org>
8530
8531         Tests for module '_Exit'.
8532         * modules/_Exit-tests: New file.
8533         * tests/test-_Exit.sh: New file.
8534         * tests/test-_Exit.c: New file.
8535
8536         New module '_Exit'.
8537         * lib/stdlib.in.h (__attribute__): New macro.
8538         (_Exit): New declaration.
8539         * lib/_Exit.c: New file.
8540         * m4/_Exit.m4: New file.
8541         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
8542         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
8543         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
8544         * modules/_Exit: New file.
8545         * tests/test-stdlib-c++.cc (_Exit): Check signature.
8546         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
8547
8548 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
8549
8550         strtod: make it more-accurate typically, and don't require libm
8551         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
8552         Include limits.h.  Don't include string.h.
8553         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
8554         (locale_isspace): New function, so that no casts are needed to
8555         check whether *s is a space.
8556         (ldexp): Provide an unused dummy if not available.
8557         (scale_radix_exp, parse_number, underlying_strtod): New functions.
8558         (strtod): Use them.  This implementation prefers to use the
8559         underlying strtod if available, falling back on our own code
8560         only to fix known bugs.  This is more likely to produce an
8561         accurate result.  Also, it avoids the use of libm functions.
8562         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
8563         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
8564         was absent, but it caused a test failure with coreutils.
8565         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
8566         with libm.
8567         * modules/strtod (Makefile.am, Link): libm is no longer needed.
8568         * modules/strtod-tests (Makefile.am): Likewise.
8569
8570 2010-07-11  Pádraig Brady  <P@draigBrady.com>
8571             Bruno Haible  <bruno@clisp.org>
8572
8573         unistr/u8-strchr: Optimize ASCII argument case.
8574         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
8575
8576 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8577
8578         (x)memcoll: minor tweaks
8579         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
8580         is after the type that it qualifies.
8581         (memcoll0): Likewise.
8582         * lib/memcoll.h (memcoll0): Likewise.
8583         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
8584         * lib/xmemcoll.h (xmemcoll0): Likewise.
8585         * lib/memcoll.c (memcoll0): Correct the comment.  This function
8586         differs from memcoll in that the NUL byte is part of the argument.
8587         Omit the abort-checks, as performance is a real issue here.  Plus,
8588         the checks were wrong anyway (an off-by-one error).  Omit local
8589         variable 'diff', as it's a bit clearer that way.
8590         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
8591         no longer needed.
8592
8593 2010-07-08  Chen Guo <chenguo4@yahoo.com>
8594
8595         (x)memcoll: speedup when input is known to be NUL delimited
8596         * lib/memcoll.c: Include stdlib.
8597         (memcoll0) New function.
8598         (strcoll_loop) New function, refactored for use in both memcoll
8599         and memcoll0.
8600         * lib/memcoll.h: Add prototype for memcoll0.
8601         * lib/xmemcoll.c: (xmemcoll0) New function.
8602         (collate_error) New function, refactored for use in both xmemcoll
8603         and xmemcoll0.
8604         * lib/xmemcoll.h: Add prototype for xmemcoll0.
8605         * m4/memcoll.m4: add inline invocation.
8606
8607 2010-07-06  Pádraig Brady  <P@draigBrady.com>
8608
8609         * build-aux/bootstrap: Remove any local translations
8610         from the translation project synchronization directory,
8611         so that local only translations are not distributed.
8612
8613 2010-07-04  Bruno Haible  <bruno@clisp.org>
8614
8615         fsusage: Clarify which code applies to which platforms.
8616         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
8617         platform.
8618         * lib/fsusage.c (get_fs_usage): Likewise.
8619
8620 2010-07-04  Bruno Haible  <bruno@clisp.org>
8621
8622         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
8623         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
8624         Reported by Martin Lambers <marlam@marlam.de>.
8625
8626 2010-07-04  Jim Meyering  <meyering@redhat.com>
8627
8628         hash: once again explicitly disallow insertion of NULL
8629         * lib/hash.c (hash_insert0): Reinstate just-removed test:
8630         inserting a NULL pointer cannot work with these functions.
8631         Add a comment with details.
8632         This reverts part of the 2010-07-01 commit, 5bef1a35
8633         "hash: extend module to deal with non-pointer keys".
8634
8635 2010-07-01  Bruno Haible  <bruno@clisp.org>
8636
8637         stdbool: Update doc.
8638         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
8639         Info from Christian Weisgerber <naddy@mips.inka.de>.
8640
8641 2010-07-01  Jim Meyering  <meyering@redhat.com>
8642
8643         hash: extend module to deal with non-pointer keys
8644         * lib/hash.c (hash_insert0): New interface, much like hash_insert
8645         but that allows insertion of non-pointer entries.
8646         Do not disallow an ENTRY value of NULL.
8647         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
8648         * lib/hash.h (hash_insert0): Declare.
8649
8650 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8651
8652         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
8653         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
8654         not present (i.e. with autoconf 2.59 and when using gettextize, not
8655         gnulib), require AC_GNU_SOURCE instead.
8656
8657 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
8658
8659         idpriv-drop: Fix tests.
8660         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
8661         not to the test-idpriv-droptemp program.
8662
8663 2010-06-29  Bruno Haible  <bruno@clisp.org>
8664
8665         string: Fix syntax error with g++ 2.96.
8666         * lib/string.in.h (__pure__): Remove definition.
8667         (_GL_ATTRIBUTE_PURE): New macro.
8668         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
8669         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
8670         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8671
8672 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
8673
8674         unitypes: Fix bug introduced on 2010-05-18.
8675         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
8676
8677 2010-06-22  Eric Blake  <eblake@redhat.com>
8678
8679         memmem: slight optimization
8680         * lib/str-two-way.h (critical_factorization): Update comments.
8681         Reduce work during factorization phase.
8682         Reported by Carlos Bueno <carlos@bueno.org>.
8683
8684 2010-06-21  Bruno Haible  <bruno@clisp.org>
8685
8686         Fix HAVE_CALLOC_POSIX misnomer.
8687         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
8688         !HAVE_CALLOC_POSIX.
8689         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
8690         HAVE_CALLOC_POSIX.
8691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
8692         instead of HAVE_CALLOC_POSIX.
8693         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
8694         HAVE_CALLOC_POSIX.
8695
8696         Use modern idiom for calloc() replacement.
8697         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
8698         AC_FUNC_CALLOC.
8699         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
8700         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
8701         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8702         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
8703         (gl_REPLACE_CALLOC): New macro.
8704
8705 2010-06-21  Bruno Haible  <bruno@clisp.org>
8706
8707         Fix HAVE_REALLOC_POSIX misnomer.
8708         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
8709         !HAVE_REALLOC_POSIX.
8710         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
8711         HAVE_REALLOC_POSIX.
8712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
8713         instead of HAVE_REALLOC_POSIX.
8714         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
8715         HAVE_REALLOC_POSIX.
8716
8717         Use modern idiom for realloc() replacement.
8718         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
8719         AC_FUNC_REALLOC.
8720         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
8721         Autoconf's AC_FUNC_REALLOC.
8722         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8723         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
8724         (gl_REPLACE_REALLOC): New macro.
8725         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8726
8727 2010-06-21  Bruno Haible  <bruno@clisp.org>
8728
8729         Fix HAVE_MALLOC_POSIX misnomer.
8730         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
8731         !HAVE_MALLOC_POSIX.
8732         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
8733         HAVE_MALLOC_POSIX.
8734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
8735         instead of HAVE_MALLOC_POSIX.
8736         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
8737         HAVE_MALLOC_POSIX.
8738
8739         Use modern idiom for malloc() replacement.
8740         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
8741         AC_FUNC_MALLOC.
8742         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
8743         Autoconf's AC_FUNC_MALLOC.
8744         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
8745         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
8746         (gl_REPLACE_MALLOC): New macro.
8747         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
8748
8749 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
8750
8751         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
8752         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
8753         This macro takes 3 arguments, not 4.
8754
8755 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
8756
8757         ipv6: fix detection under mingw
8758         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
8759         in6_addr.
8760
8761 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
8762
8763         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
8764         that strtod() works when cross-compiling to a glibc version known
8765         to work.
8766
8767 2010-06-15  Bruno Haible  <bruno@clisp.org>
8768
8769         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
8770
8771 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
8772
8773         select: Correct timeout.
8774         * lib/select.c (rpl_select): Compute wait_timeout correctly.
8775
8776 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8777
8778         git-version-gen: init shell var to avoid env var influence
8779         * build-aux/git-version-gen (v): Init shell var to empty.
8780
8781 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
8782
8783         priv-set: Don't assume that priv.h exists merely because getppriv does.
8784         See Jan Andersen's bug report about AIX 5L in
8785         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
8786         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
8787         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
8788         * lib/priv-set.h: Likewise.
8789         * tests/test-priv-set.c: Likewise.
8790
8791 2010-06-13  Bruno Haible  <bruno@clisp.org>
8792
8793         relocatable: Make it easier to test whether to install wrappers.
8794         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
8795         RELOCATABLE_VIA_WRAPPER.
8796
8797 2010-06-13  Bruno Haible  <bruno@clisp.org>
8798
8799         gnulib-tool: Display specified modules and dependencies differently.
8800         * gnulib-tool (func_show_module_list): New function.
8801         (func_import, func_create_testdir): Invoke it.
8802         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
8803
8804 2010-06-13  Bruno Haible  <bruno@clisp.org>
8805
8806         gnulib-tool: Align code of func_import and func_create_testdir.
8807         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
8808         specified_modules.
8809
8810 2010-06-12  Jim Meyering  <meyering@redhat.com>
8811
8812         test-inttostr: avoid spurious failure on Solaris 9
8813         * tests/test-inttostr.c (main): Skip the test when snprintf fails
8814         to accept "%ju".  Reported by Bruno Haible.
8815
8816 2010-06-11  Jim Meyering  <meyering@redhat.com>
8817
8818         test-sys_socket: mark variables as used more readably
8819         * tests/test-sys_socket.c (main): Mark otherwise unused variables
8820         as "used" explicitly via (void) statement casts.  This is more
8821         readable than using them in an artificial return expression.
8822         Suggestion from Bruno Haible.
8823
8824 2010-06-11  Bruno Haible  <bruno@clisp.org>
8825
8826         Avoid some more warnings from "gcc -Wwrite-strings".
8827         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
8828         to 'const char *'.
8829         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
8830         * tests/test-c-strcasestr.c (main): Likewise.
8831         * tests/test-mbscasestr1.c (main): Likewise.
8832         * tests/test-mbscasestr2.c (main): Likewise.
8833         * tests/test-memmem.c (main): Likewise.
8834         * tests/test-strstr.c (main): Likewise.
8835         * tests/test-strcasestr.c (main): Likewise.
8836
8837 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8838
8839         init.sh: change framework_failure_ to fail with status 99, not 1
8840         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
8841         automake's parallel-tests rule that this is an unexpected failure,
8842         even if the test is listed in XFAIL_TESTS.
8843
8844 2010-06-11  Jim Meyering  <meyering@redhat.com>
8845
8846         test-inttostr: avoid warnings about 4-6KB literal strings
8847         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
8848         Include "macros.h", for its definition of ASSERT.
8849         (CK): s/assert/ASSERT/
8850         * modules/inttostr-tests (Files): Add macros.h.
8851
8852         init.sh: don't use $ME_ or skip_ before they are defined
8853         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
8854         their first uses.  Also hoist their companions: warn_, fail_,
8855         framework_failure_, $stderr_fileno.  Prompted by a patch from
8856         Stefano Lattarini.
8857
8858         test-sys_socket: avoid set-but-not-used warnings from gcc
8859         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
8860         avoid warning about set-but-not-used variables.
8861
8862         test-xvasprintf: avoid 'const' discard warnings
8863         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
8864         "const" when assigning from literal strings.
8865         (test_xasprintf): Add "void" in function argument list to placate
8866         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
8867
8868         tests: avoid compilation warnings in argmatch and exclude tests...
8869         in packages that define ARGMATCH_DIE_DECL, like coreutils.
8870         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
8871         Since it always exits, declare with the "noreturn" attribute.
8872         * tests/test-argmatch.c: Likewise.
8873
8874         tests: avoid 'const' discard warnings in mbsstr tests
8875         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
8876         * tests/test-mbsstr2.c (main): Likewise.
8877
8878         test-verify: avoid warning from gcc's -Wmissing-declarations
8879         * tests/test-verify.c (function): Declare to be static.
8880
8881         test-inttostr.c: include <string.h> for use of strcmp
8882         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
8883
8884         test-linkat: avoid failed assertion on "other" architectures
8885         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
8886         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
8887         sparc: https://bugs.launchpad.net/bugs/591968
8888
8889 2010-06-11  Jim Meyering  <meyering@redhat.com>
8890
8891         printf.m4: avoid autoconf's "Expanded Before Required" warning
8892         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
8893         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
8894         autoconf warning.
8895
8896 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
8897
8898         Replacement header templates are now named with ".in", not "_".
8899         * doc/gnulib-intro.texi: Correct.
8900
8901 2010-06-10  Jim Meyering  <meyering@redhat.com>
8902
8903         inttostr-tests: depend on snprintf, not snprintf-posix
8904         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
8905         snprintf-posix, to avoid this aclocal failure:
8906           missing file gnulib-tests/vasnprintf.c
8907           configure.ac:45: error: expected source file, required through \
8908           AC_LIBSOURCES, not found
8909
8910 2010-06-10  Jim Meyering  <meyering@redhat.com>
8911
8912         inttostr: add a new function, inttostr, and tests
8913         The namesake function was not available.  The existence of the
8914         template file, inttostr.c makes its addition nontrivial.
8915         * lib/anytostr.c: Rename from inttostr.c.
8916         (anytostr): Rename from inttostr.
8917         * lib/inttostr.c: New file.
8918         * modules/inttostr (Files): Add anytostr.c.
8919         (Makefile.am): Set lib_SOURCES instead of ...
8920         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
8921         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
8922         * lib/offtostr.c: Likewise.
8923         * lib/uinttostr.c: Likewise.
8924         * lib/umaxtostr.c: Likewise.
8925         * modules/inttostr-tests: New file.
8926         * tests/test-inttostr.c: New file.  Test these functions.
8927
8928 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
8929             Bruno Haible  <bruno@clisp.org>
8930
8931         Add "Extending Gnulib" chapter to manual.
8932         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
8933         chapter.
8934         (Extending Gnulib): New chapter.
8935         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
8936         chapter.
8937
8938 2010-06-09  Bruno Haible  <bruno@clisp.org>
8939
8940         Avoid relocwrapper link errors due to gnulib replacement functions.
8941         * lib/areadlink.c: Use the system's malloc, realloc functions.
8942         (areadlink): Set errno to ENOMEM explicitly.
8943         * modules/areadlink (Depends-on): Remove malloc-posix.
8944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8945
8946 2010-06-09  Bruno Haible  <bruno@clisp.org>
8947
8948         Avoid relocwrapper link errors due to gnulib replacement functions.
8949         * lib/canonicalize-lgpl.c: Use the system's malloc function.
8950         * lib/malloca.c: Likewise.
8951         * lib/relocatable.c: Likewise.
8952         * lib/progreloc.c: Use the system's malloc, sprintf functions.
8953         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
8954         * lib/setenv.c: Use the system's malloc, realloc functions.
8955         * lib/strerror.c: Use the system's sprintf function.
8956         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8957
8958 2010-06-04  Bruno Haible  <bruno@clisp.org>
8959
8960         Prefer documented low-level autoconf macro names.
8961         * m4/lib-link.m4: Use m4_translit instead of translit.
8962         * m4/environ.m4: Likewise.
8963         * m4/mathfunc.m4: Likewise.
8964         * m4/onceonly.m4: Likewise.
8965         * m4/stdint.m4: Likewise.
8966         Suggested by Eric Blake.
8967
8968 2010-06-04  Martin Lambers  <marlam@marlam.de>
8969             Bruno Haible  <bruno@clisp.org>
8970
8971         havelib: Allow library names with '+' characters.
8972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8973         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
8974
8975 2010-06-09  Bruno Haible  <bruno@clisp.org>
8976
8977         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
8978         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
8979         realloc failed.
8980
8981 2010-06-08  Peter Simons  <simons@cryp.to>
8982
8983         maint.mk: make the news-check rule more configurable
8984         * top/maint.mk (news-check-lines-spec) New variable.
8985         (news-check): Use "sed -n 1,10p" in place of "head".
8986
8987 2010-06-07  Jim Meyering  <meyering@redhat.com>
8988
8989         do-release-commit-and-tag: fix typo in --help
8990         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
8991
8992         regex: avoid new dead-code warning with gcc-4.6.0
8993         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
8994         if-block containing a while-loop.  It's been unused for at least
8995         5 years.
8996
8997 2010-06-05  Bruno Haible  <bruno@clisp.org>
8998
8999         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
9000         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
9001
9002 2010-06-04  Bruno Haible  <bruno@clisp.org>
9003
9004         Update to GNU gettext 0.18.1.
9005         * modules/gettext (configure.ac): Require gettext infrastructure from
9006         version 0.18.1.
9007
9008 2010-06-03  Bruno Haible  <bruno@clisp.org>
9009
9010         Don't use AC_LIBOBJ with file names in subdirectories.
9011         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
9012         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
9013         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
9014         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
9015         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
9016         gl_LIBUNISTRING_LIBSOURCE.
9017         (Makefile.am): Augment lib_SOURCES here, conditionally.
9018         * NEWS: Drop requirement for Automake option 'subdir-objects'.
9019
9020 2010-06-03  Bruno Haible  <bruno@clisp.org>
9021
9022         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
9023         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
9024         expansion does not end with a newline.
9025         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
9026         unnecessary newline.
9027
9028 2010-06-03  Bruno Haible  <bruno@clisp.org>
9029
9030         Reduce dependencies.
9031         * tests/test-quotearg.h: New file, extracted from
9032         tests/test-quotearg.c.
9033         * tests/test-quotearg-simple.c: New file, extracted from
9034         tests/test-quotearg.c.
9035         * tests/test-quotearg.c: Don't include <ctype.h>.
9036         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
9037         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
9038         use_quote_double_quotes, use_quotearg_colon): Moved to
9039         tests/test-quotearg.h.
9040         (results_g, flag_results, custom_quotes, custom_results): Moved
9041         to tests/test-quotearg-simple.c.
9042         (main): Moved the part that does not depend on gettext to
9043         tests/test-quotearg-simple.c. Return 77 if the test cannot be
9044         performed.
9045         * modules/quotearg-simple: New file.
9046         * modules/quotearg-simple-tests: New file.
9047         * modules/quotearg (Depends-on): Add quotearg-simple.
9048         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
9049         (Files): Add tests/test-quotearg.h.
9050         Reported by Paolo Bonzini.
9051
9052 2010-06-03  Bruno Haible  <bruno@clisp.org>
9053
9054         Reduce dependencies.
9055         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
9056
9057 2010-06-03  Bruno Haible  <bruno@clisp.org>
9058
9059         time: Undefine more broken macros.
9060         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
9061         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
9062         Reported by Eric Blake.
9063
9064 2010-06-03  Bruno Haible  <bruno@clisp.org>
9065
9066         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
9067         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
9068         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
9069         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
9070         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
9071         Reported by Ludovic Courtès <ludo@gnu.org>.
9072
9073 2010-06-02  Eric Blake  <eblake@redhat.com>
9074
9075         time: work with mingw + pthreads-win32 library
9076         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
9077         if timespec is defined only in pthread.h.
9078         * modules/time (Makefile.am): Substitute it.
9079         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
9080         <pthread.h>, when needed.
9081         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
9082         from the library.
9083
9084 2010-05-31  Bruno Haible  <bruno@clisp.org>
9085
9086         Avoid expanding two macros in the wrong order.
9087         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
9088         gl_LIBUNISTRING if it is defined.
9089         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
9090         autoconf >= 2.64.
9091         Reported by Ludovic Courtès <ludo@gnu.org>.
9092
9093 2010-05-27  Jim Meyering  <meyering@redhat.com>
9094
9095         maint.mk: also prohibit "#undef" of always-defined symbols
9096         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
9097         Allow more than one space before the symbol name.
9098         (sc_prohibit_always-defined_macros): Use grep's -E, now that
9099         the regexp uses alternation.
9100
9101 2010-05-26  Eric Blake  <eblake@redhat.com>
9102
9103         maint.mk: avoid echo -e
9104         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
9105         Convert all uses of echo -* to printf.
9106         Reported by Matthias Bolte.
9107
9108 2010-05-25  Bruno Haible  <bruno@clisp.org>
9109
9110         Update to GNU gettext 0.18, part 2.
9111         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
9112         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
9113
9114 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9115
9116         Add missing include in test-pwrite.c.
9117         * tests/test-pwrite.c: Include string.h, for strcmp.
9118
9119 2010-05-24  Bruno Haible  <bruno@clisp.org>
9120
9121         * NEWS: Mention requirement for Automake option 'subdir-objects'.
9122
9123 2010-05-24  Bruno Haible  <bruno@clisp.org>
9124
9125         Don't use conversion with transliteration in u{8,16,32}_strcoll.
9126         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
9127         iconveh_error argument.
9128         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
9129         U_STRCONV_TO_LOCALE.
9130         * lib/unistr/u16-strcoll.c: Likewise.
9131         * lib/unistr/u32-strcoll.c: Likewise.
9132         * modules/unistr/u8-strcoll (Depends-on): Add
9133         uniconv/u8-strconv-to-enc, localcharset. Remove
9134         uniconv/u8-strconv-to-locale.
9135         (configure.ac): Bump version number.
9136         * modules/unistr/u16-strcoll (Depends-on): Add
9137         uniconv/u16-strconv-to-enc, localcharset. Remove
9138         uniconv/u16-strconv-to-locale.
9139         (configure.ac): Bump version number.
9140         * modules/unistr/u32-strcoll (Depends-on): Add
9141         uniconv/u32-strconv-to-enc, localcharset. Remove
9142         uniconv/u32-strconv-to-locale.
9143         (configure.ac): Bump version number.
9144
9145 2010-05-24  Bruno Haible  <bruno@clisp.org>
9146
9147         Avoid a test failure on NetBSD 5.0.
9148         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
9149         an iconv() bug.
9150
9151 2010-05-24  Bruno Haible  <bruno@clisp.org>
9152
9153         Adjust #include directive style.
9154         * modules/regex (Includes): Recommend to write <regex.h>.
9155
9156 2010-05-24  Bruno Haible  <bruno@clisp.org>
9157
9158         regex: Don't require alloca.
9159         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
9160         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
9161         only inside if (0).
9162
9163 2010-05-23  Jim Meyering  <meyering@redhat.com>
9164
9165         test-renameat.c: include <sys/stat.h>
9166         * tests/test-renameat.c: Include <sys/stat.h>; required for
9167         definition of S_IS* macros.
9168
9169 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
9170
9171         Update maintainer documentation for 'relocatable-prog' module.
9172         * doc/relocatable-maint.texi: Update.
9173         Comments by Bruno Haible.
9174
9175 2010-05-23  Bruno Haible  <bruno@clisp.org>
9176
9177         git-merge-changelog: Enable --split-merged-entry by default.
9178         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
9179         (usage): Don't mention this option any more.
9180         Reported by Ralf Wildenhues.
9181
9182 2010-05-23  Jim Meyering  <meyering@redhat.com>
9183
9184         test-pwrite: do not leave behind a test file named "out"
9185         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
9186         The trivial-looking use of init.sh is really necessary.
9187         It ensures that the temporary file, "out", is created in
9188         a temporary directory, and removed upon termination.
9189         * tests/test-pwrite.sh: Re-add file.
9190         * modules/pwrite-tests: Reference it.
9191
9192 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9193
9194         Fix output redirection buglet in init.sh.
9195         * tests/init.sh: Fix redirection of stderr.
9196
9197 2010-05-20  Simon Josefsson  <simon@josefsson.org>
9198
9199         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
9200
9201 2010-05-17  Simon Josefsson  <simon@josefsson.org>
9202
9203         * modules/valgrind-tests: New file.
9204         * m4/valgrind-tests.m4: New file.
9205         * doc/valgrind-tests.texi: New file.
9206         * doc/gnulib.texi (Running self-tests under valgrind): New
9207         section.
9208
9209 2010-05-19  Bruno Haible  <bruno@clisp.org>
9210
9211         Clean up dead code in recent commit.
9212         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
9213         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
9214         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
9215         Suggested by Paolo Bonzini.
9216
9217 2010-05-19  Bruno Haible  <bruno@clisp.org>
9218
9219         Avoid valgrind error reports from libunistring.
9220         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
9221         * modules/libunistring (Files): Add it.
9222         * modules/libunistring-optional (Files): Likewise.
9223
9224 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
9225             Bruno Haible  <bruno@clisp.org>
9226
9227         New module 'libunistring-optional'.
9228         * modules/libunistring-optional: New file.
9229         * m4/libunistring-base.m4: New file.
9230         * m4/libunistring-optional.m4: New file.
9231         * lib/unicase.in.h: Renamed from lib/unicase.h.
9232         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
9233         * lib/unictype.in.h: Renamed from lib/unictype.h.
9234         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
9235         * lib/uniname.in.h: Renamed from lib/uniname.h.
9236         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
9237         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
9238         * lib/unistr.in.h: Renamed from lib/unistr.h.
9239         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
9240         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
9241         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
9242         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
9243         gl_LIBUNISTRING. If the library was found, determine the installed
9244         version and set LIBUNISTRING_VERSION.
9245         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
9246         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
9247         handle a configuration option --with-included-libunistring.
9248         * modules/libunistring (Files): Add m4/absolute-header.m4.
9249         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
9250         Add m4/libunistring-base.m4.
9251         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9252         (Makefile.am): Build unicase.h from unicase.in.h.
9253         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
9254         Add m4/libunistring-base.m4.
9255         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9256         (Makefile.am): Build uniconv.h from uniconv.in.h.
9257         * modules/unictype/base (Files): Use unictype.in.h instead of
9258         unictype.h. Add m4/libunistring-base.m4.
9259         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9260         (Makefile.am): Build unictype.h from unictype.in.h.
9261         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
9262         Add m4/libunistring-base.m4.
9263         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9264         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
9265         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
9266         Add m4/libunistring-base.m4.
9267         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9268         (Makefile.am): Build uniname.h from uniname.in.h.
9269         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
9270         Add m4/libunistring-base.m4.
9271         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9272         (Makefile.am): Build uninorm.h from uninorm.in.h.
9273         * modules/unistdio/base (Files): Use unistdio.in.h instead of
9274         unistdio.h. Add m4/libunistring-base.m4.
9275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9276         (Makefile.am): Build unistdio.h from unistdio.in.h.
9277         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
9278         Add m4/libunistring-base.m4.
9279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9280         (Makefile.am): Build unistr.h from unistr.in.h.
9281         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
9282         Add m4/libunistring-base.m4.
9283         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9284         (Makefile.am): Build unitypes.h from unitypes.in.h.
9285         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
9286         Add m4/libunistring-base.m4.
9287         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9288         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
9289         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
9290         uniwidth.h. Add m4/libunistring-base.m4.
9291         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
9292         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
9293         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
9294         instead of augmenting lib_SOURCES.
9295         * modules/unicase/empty-suffix-context: Likewise.
9296         * modules/unicase/locale-language: Likewise.
9297         * modules/unicase/tolower: Likewise.
9298         * modules/unicase/totitle: Likewise.
9299         * modules/unicase/toupper: Likewise.
9300         * modules/unicase/u8-casecmp: Likewise.
9301         * modules/unicase/u8-casecoll: Likewise.
9302         * modules/unicase/u8-casefold: Likewise.
9303         * modules/unicase/u8-casexfrm: Likewise.
9304         * modules/unicase/u8-ct-casefold: Likewise.
9305         * modules/unicase/u8-ct-tolower: Likewise.
9306         * modules/unicase/u8-ct-totitle: Likewise.
9307         * modules/unicase/u8-ct-toupper: Likewise.
9308         * modules/unicase/u8-is-cased: Likewise.
9309         * modules/unicase/u8-is-casefolded: Likewise.
9310         * modules/unicase/u8-is-lowercase: Likewise.
9311         * modules/unicase/u8-is-titlecase: Likewise.
9312         * modules/unicase/u8-is-uppercase: Likewise.
9313         * modules/unicase/u8-prefix-context: Likewise.
9314         * modules/unicase/u8-suffix-context: Likewise.
9315         * modules/unicase/u8-tolower: Likewise.
9316         * modules/unicase/u8-totitle: Likewise.
9317         * modules/unicase/u8-toupper: Likewise.
9318         * modules/unicase/u16-casecmp: Likewise.
9319         * modules/unicase/u16-casecoll: Likewise.
9320         * modules/unicase/u16-casefold: Likewise.
9321         * modules/unicase/u16-casexfrm: Likewise.
9322         * modules/unicase/u16-ct-casefold: Likewise.
9323         * modules/unicase/u16-ct-tolower: Likewise.
9324         * modules/unicase/u16-ct-totitle: Likewise.
9325         * modules/unicase/u16-ct-toupper: Likewise.
9326         * modules/unicase/u16-is-cased: Likewise.
9327         * modules/unicase/u16-is-casefolded: Likewise.
9328         * modules/unicase/u16-is-lowercase: Likewise.
9329         * modules/unicase/u16-is-titlecase: Likewise.
9330         * modules/unicase/u16-is-uppercase: Likewise.
9331         * modules/unicase/u16-prefix-context: Likewise.
9332         * modules/unicase/u16-suffix-context: Likewise.
9333         * modules/unicase/u16-tolower: Likewise.
9334         * modules/unicase/u16-totitle: Likewise.
9335         * modules/unicase/u16-toupper: Likewise.
9336         * modules/unicase/u32-casecmp: Likewise.
9337         * modules/unicase/u32-casecoll: Likewise.
9338         * modules/unicase/u32-casefold: Likewise.
9339         * modules/unicase/u32-casexfrm: Likewise.
9340         * modules/unicase/u32-ct-casefold: Likewise.
9341         * modules/unicase/u32-ct-tolower: Likewise.
9342         * modules/unicase/u32-ct-totitle: Likewise.
9343         * modules/unicase/u32-ct-toupper: Likewise.
9344         * modules/unicase/u32-is-cased: Likewise.
9345         * modules/unicase/u32-is-casefolded: Likewise.
9346         * modules/unicase/u32-is-lowercase: Likewise.
9347         * modules/unicase/u32-is-titlecase: Likewise.
9348         * modules/unicase/u32-is-uppercase: Likewise.
9349         * modules/unicase/u32-prefix-context: Likewise.
9350         * modules/unicase/u32-suffix-context: Likewise.
9351         * modules/unicase/u32-tolower: Likewise.
9352         * modules/unicase/u32-totitle: Likewise.
9353         * modules/unicase/u32-toupper: Likewise.
9354         * modules/unicase/ulc-casecmp: Likewise.
9355         * modules/unicase/ulc-casecoll: Likewise.
9356         * modules/unicase/ulc-casexfrm: Likewise.
9357         * modules/uniconv/u8-conv-from-enc: Likewise.
9358         * modules/uniconv/u8-conv-to-enc: Likewise.
9359         * modules/uniconv/u8-strconv-from-enc: Likewise.
9360         * modules/uniconv/u8-strconv-from-locale: Likewise.
9361         * modules/uniconv/u8-strconv-to-enc: Likewise.
9362         * modules/uniconv/u8-strconv-to-locale: Likewise.
9363         * modules/uniconv/u16-conv-from-enc: Likewise.
9364         * modules/uniconv/u16-conv-to-enc: Likewise.
9365         * modules/uniconv/u16-strconv-from-enc: Likewise.
9366         * modules/uniconv/u16-strconv-from-locale: Likewise.
9367         * modules/uniconv/u16-strconv-to-enc: Likewise.
9368         * modules/uniconv/u16-strconv-to-locale: Likewise.
9369         * modules/uniconv/u32-conv-from-enc: Likewise.
9370         * modules/uniconv/u32-conv-to-enc: Likewise.
9371         * modules/uniconv/u32-strconv-from-enc: Likewise.
9372         * modules/uniconv/u32-strconv-from-locale: Likewise.
9373         * modules/uniconv/u32-strconv-to-enc: Likewise.
9374         * modules/uniconv/u32-strconv-to-locale: Likewise.
9375         * modules/unictype/bidicategory-byname: Likewise.
9376         * modules/unictype/bidicategory-name: Likewise.
9377         * modules/unictype/bidicategory-of: Likewise.
9378         * modules/unictype/bidicategory-test: Likewise.
9379         * modules/unictype/block-list: Likewise.
9380         * modules/unictype/block-test: Likewise.
9381         * modules/unictype/category-C: Likewise.
9382         * modules/unictype/category-Cc: Likewise.
9383         * modules/unictype/category-Cf: Likewise.
9384         * modules/unictype/category-Cn: Likewise.
9385         * modules/unictype/category-Co: Likewise.
9386         * modules/unictype/category-Cs: Likewise.
9387         * modules/unictype/category-L: Likewise.
9388         * modules/unictype/category-Ll: Likewise.
9389         * modules/unictype/category-Lm: Likewise.
9390         * modules/unictype/category-Lo: Likewise.
9391         * modules/unictype/category-Lt: Likewise.
9392         * modules/unictype/category-Lu: Likewise.
9393         * modules/unictype/category-M: Likewise.
9394         * modules/unictype/category-Mc: Likewise.
9395         * modules/unictype/category-Me: Likewise.
9396         * modules/unictype/category-Mn: Likewise.
9397         * modules/unictype/category-N: Likewise.
9398         * modules/unictype/category-Nd: Likewise.
9399         * modules/unictype/category-Nl: Likewise.
9400         * modules/unictype/category-No: Likewise.
9401         * modules/unictype/category-P: Likewise.
9402         * modules/unictype/category-Pc: Likewise.
9403         * modules/unictype/category-Pd: Likewise.
9404         * modules/unictype/category-Pe: Likewise.
9405         * modules/unictype/category-Pf: Likewise.
9406         * modules/unictype/category-Pi: Likewise.
9407         * modules/unictype/category-Po: Likewise.
9408         * modules/unictype/category-Ps: Likewise.
9409         * modules/unictype/category-S: Likewise.
9410         * modules/unictype/category-Sc: Likewise.
9411         * modules/unictype/category-Sk: Likewise.
9412         * modules/unictype/category-Sm: Likewise.
9413         * modules/unictype/category-So: Likewise.
9414         * modules/unictype/category-Z: Likewise.
9415         * modules/unictype/category-Zl: Likewise.
9416         * modules/unictype/category-Zp: Likewise.
9417         * modules/unictype/category-Zs: Likewise.
9418         * modules/unictype/category-and: Likewise.
9419         * modules/unictype/category-and-not: Likewise.
9420         * modules/unictype/category-byname: Likewise.
9421         * modules/unictype/category-name: Likewise.
9422         * modules/unictype/category-none: Likewise.
9423         * modules/unictype/category-of: Likewise.
9424         * modules/unictype/category-or: Likewise.
9425         * modules/unictype/category-test: Likewise.
9426         * modules/unictype/combining-class: Likewise.
9427         * modules/unictype/ctype-alnum: Likewise.
9428         * modules/unictype/ctype-alpha: Likewise.
9429         * modules/unictype/ctype-blank: Likewise.
9430         * modules/unictype/ctype-cntrl: Likewise.
9431         * modules/unictype/ctype-digit: Likewise.
9432         * modules/unictype/ctype-graph: Likewise.
9433         * modules/unictype/ctype-lower: Likewise.
9434         * modules/unictype/ctype-print: Likewise.
9435         * modules/unictype/ctype-punct: Likewise.
9436         * modules/unictype/ctype-space: Likewise.
9437         * modules/unictype/ctype-upper: Likewise.
9438         * modules/unictype/ctype-xdigit: Likewise.
9439         * modules/unictype/decimal-digit: Likewise.
9440         * modules/unictype/digit: Likewise.
9441         * modules/unictype/mirror: Likewise.
9442         * modules/unictype/numeric: Likewise.
9443         * modules/unictype/property-alphabetic: Likewise.
9444         * modules/unictype/property-ascii-hex-digit: Likewise.
9445         * modules/unictype/property-bidi-arabic-digit: Likewise.
9446         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
9447         * modules/unictype/property-bidi-block-separator: Likewise.
9448         * modules/unictype/property-bidi-boundary-neutral: Likewise.
9449         * modules/unictype/property-bidi-common-separator: Likewise.
9450         * modules/unictype/property-bidi-control: Likewise.
9451         * modules/unictype/property-bidi-embedding-or-override: Likewise.
9452         * modules/unictype/property-bidi-eur-num-separator: Likewise.
9453         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
9454         * modules/unictype/property-bidi-european-digit: Likewise.
9455         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
9456         * modules/unictype/property-bidi-left-to-right: Likewise.
9457         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
9458         * modules/unictype/property-bidi-other-neutral: Likewise.
9459         * modules/unictype/property-bidi-pdf: Likewise.
9460         * modules/unictype/property-bidi-segment-separator: Likewise.
9461         * modules/unictype/property-bidi-whitespace: Likewise.
9462         * modules/unictype/property-byname: Likewise.
9463         * modules/unictype/property-combining: Likewise.
9464         * modules/unictype/property-composite: Likewise.
9465         * modules/unictype/property-currency-symbol: Likewise.
9466         * modules/unictype/property-dash: Likewise.
9467         * modules/unictype/property-decimal-digit: Likewise.
9468         * modules/unictype/property-default-ignorable-code-point: Likewise.
9469         * modules/unictype/property-deprecated: Likewise.
9470         * modules/unictype/property-diacritic: Likewise.
9471         * modules/unictype/property-extender: Likewise.
9472         * modules/unictype/property-format-control: Likewise.
9473         * modules/unictype/property-grapheme-base: Likewise.
9474         * modules/unictype/property-grapheme-extend: Likewise.
9475         * modules/unictype/property-grapheme-link: Likewise.
9476         * modules/unictype/property-hex-digit: Likewise.
9477         * modules/unictype/property-hyphen: Likewise.
9478         * modules/unictype/property-id-continue: Likewise.
9479         * modules/unictype/property-id-start: Likewise.
9480         * modules/unictype/property-ideographic: Likewise.
9481         * modules/unictype/property-ids-binary-operator: Likewise.
9482         * modules/unictype/property-ids-trinary-operator: Likewise.
9483         * modules/unictype/property-ignorable-control: Likewise.
9484         * modules/unictype/property-iso-control: Likewise.
9485         * modules/unictype/property-join-control: Likewise.
9486         * modules/unictype/property-left-of-pair: Likewise.
9487         * modules/unictype/property-line-separator: Likewise.
9488         * modules/unictype/property-logical-order-exception: Likewise.
9489         * modules/unictype/property-lowercase: Likewise.
9490         * modules/unictype/property-math: Likewise.
9491         * modules/unictype/property-non-break: Likewise.
9492         * modules/unictype/property-not-a-character: Likewise.
9493         * modules/unictype/property-numeric: Likewise.
9494         * modules/unictype/property-other-alphabetic: Likewise.
9495         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
9496         * modules/unictype/property-other-grapheme-extend: Likewise.
9497         * modules/unictype/property-other-id-continue: Likewise.
9498         * modules/unictype/property-other-id-start: Likewise.
9499         * modules/unictype/property-other-lowercase: Likewise.
9500         * modules/unictype/property-other-math: Likewise.
9501         * modules/unictype/property-other-uppercase: Likewise.
9502         * modules/unictype/property-paired-punctuation: Likewise.
9503         * modules/unictype/property-paragraph-separator: Likewise.
9504         * modules/unictype/property-pattern-syntax: Likewise.
9505         * modules/unictype/property-pattern-white-space: Likewise.
9506         * modules/unictype/property-private-use: Likewise.
9507         * modules/unictype/property-punctuation: Likewise.
9508         * modules/unictype/property-quotation-mark: Likewise.
9509         * modules/unictype/property-radical: Likewise.
9510         * modules/unictype/property-sentence-terminal: Likewise.
9511         * modules/unictype/property-soft-dotted: Likewise.
9512         * modules/unictype/property-space: Likewise.
9513         * modules/unictype/property-terminal-punctuation: Likewise.
9514         * modules/unictype/property-test: Likewise.
9515         * modules/unictype/property-titlecase: Likewise.
9516         * modules/unictype/property-unassigned-code-value: Likewise.
9517         * modules/unictype/property-unified-ideograph: Likewise.
9518         * modules/unictype/property-uppercase: Likewise.
9519         * modules/unictype/property-variation-selector: Likewise.
9520         * modules/unictype/property-white-space: Likewise.
9521         * modules/unictype/property-xid-continue: Likewise.
9522         * modules/unictype/property-xid-start: Likewise.
9523         * modules/unictype/property-zero-width: Likewise.
9524         * modules/unictype/scripts: Likewise.
9525         * modules/unictype/syntax-c-ident: Likewise.
9526         * modules/unictype/syntax-c-whitespace: Likewise.
9527         * modules/unictype/syntax-java-ident: Likewise.
9528         * modules/unictype/syntax-java-whitespace: Likewise.
9529         * modules/unilbrk/u8-possible-linebreaks: Likewise.
9530         * modules/unilbrk/u8-width-linebreaks: Likewise.
9531         * modules/unilbrk/u16-possible-linebreaks: Likewise.
9532         * modules/unilbrk/u16-width-linebreaks: Likewise.
9533         * modules/unilbrk/u32-possible-linebreaks: Likewise.
9534         * modules/unilbrk/u32-width-linebreaks: Likewise.
9535         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
9536         * modules/unilbrk/ulc-width-linebreaks: Likewise.
9537         * modules/uniname/uniname: Likewise.
9538         * modules/uninorm/canonical-decomposition: Likewise.
9539         * modules/uninorm/composition: Likewise.
9540         * modules/uninorm/decomposing-form: Likewise.
9541         * modules/uninorm/decomposition: Likewise.
9542         * modules/uninorm/filter: Likewise.
9543         * modules/uninorm/nfc: Likewise.
9544         * modules/uninorm/nfd: Likewise.
9545         * modules/uninorm/nfkc: Likewise.
9546         * modules/uninorm/nfkd: Likewise.
9547         * modules/uninorm/u8-normalize: Likewise.
9548         * modules/uninorm/u8-normcmp: Likewise.
9549         * modules/uninorm/u8-normcoll: Likewise.
9550         * modules/uninorm/u8-normxfrm: Likewise.
9551         * modules/uninorm/u16-normalize: Likewise.
9552         * modules/uninorm/u16-normcmp: Likewise.
9553         * modules/uninorm/u16-normcoll: Likewise.
9554         * modules/uninorm/u16-normxfrm: Likewise.
9555         * modules/uninorm/u32-normalize: Likewise.
9556         * modules/uninorm/u32-normcmp: Likewise.
9557         * modules/uninorm/u32-normcoll: Likewise.
9558         * modules/uninorm/u32-normxfrm: Likewise.
9559         * modules/unistdio/u8-asnprintf: Likewise.
9560         * modules/unistdio/u8-asprintf: Likewise.
9561         * modules/unistdio/u8-snprintf: Likewise.
9562         * modules/unistdio/u8-sprintf: Likewise.
9563         * modules/unistdio/u8-u8-asnprintf: Likewise.
9564         * modules/unistdio/u8-u8-asprintf: Likewise.
9565         * modules/unistdio/u8-u8-snprintf: Likewise.
9566         * modules/unistdio/u8-u8-sprintf: Likewise.
9567         * modules/unistdio/u8-u8-vasnprintf: Likewise.
9568         * modules/unistdio/u8-u8-vasprintf: Likewise.
9569         * modules/unistdio/u8-u8-vsnprintf: Likewise.
9570         * modules/unistdio/u8-u8-vsprintf: Likewise.
9571         * modules/unistdio/u8-vasnprintf: Likewise.
9572         * modules/unistdio/u8-vasprintf: Likewise.
9573         * modules/unistdio/u8-vsnprintf: Likewise.
9574         * modules/unistdio/u8-vsprintf: Likewise.
9575         * modules/unistdio/u16-asnprintf: Likewise.
9576         * modules/unistdio/u16-asprintf: Likewise.
9577         * modules/unistdio/u16-snprintf: Likewise.
9578         * modules/unistdio/u16-sprintf: Likewise.
9579         * modules/unistdio/u16-u16-asnprintf: Likewise.
9580         * modules/unistdio/u16-u16-asprintf: Likewise.
9581         * modules/unistdio/u16-u16-snprintf: Likewise.
9582         * modules/unistdio/u16-u16-sprintf: Likewise.
9583         * modules/unistdio/u16-u16-vasnprintf: Likewise.
9584         * modules/unistdio/u16-u16-vasprintf: Likewise.
9585         * modules/unistdio/u16-u16-vsnprintf: Likewise.
9586         * modules/unistdio/u16-u16-vsprintf: Likewise.
9587         * modules/unistdio/u16-vasnprintf: Likewise.
9588         * modules/unistdio/u16-vasprintf: Likewise.
9589         * modules/unistdio/u16-vsnprintf: Likewise.
9590         * modules/unistdio/u16-vsprintf: Likewise.
9591         * modules/unistdio/u32-asnprintf: Likewise.
9592         * modules/unistdio/u32-asprintf: Likewise.
9593         * modules/unistdio/u32-snprintf: Likewise.
9594         * modules/unistdio/u32-sprintf: Likewise.
9595         * modules/unistdio/u32-u32-asnprintf: Likewise.
9596         * modules/unistdio/u32-u32-asprintf: Likewise.
9597         * modules/unistdio/u32-u32-snprintf: Likewise.
9598         * modules/unistdio/u32-u32-sprintf: Likewise.
9599         * modules/unistdio/u32-u32-vasnprintf: Likewise.
9600         * modules/unistdio/u32-u32-vasprintf: Likewise.
9601         * modules/unistdio/u32-u32-vsnprintf: Likewise.
9602         * modules/unistdio/u32-u32-vsprintf: Likewise.
9603         * modules/unistdio/u32-vasnprintf: Likewise.
9604         * modules/unistdio/u32-vasprintf: Likewise.
9605         * modules/unistdio/u32-vsnprintf: Likewise.
9606         * modules/unistdio/u32-vsprintf: Likewise.
9607         * modules/unistdio/ulc-asnprintf: Likewise.
9608         * modules/unistdio/ulc-asprintf: Likewise.
9609         * modules/unistdio/ulc-fprintf: Likewise.
9610         * modules/unistdio/ulc-snprintf: Likewise.
9611         * modules/unistdio/ulc-sprintf: Likewise.
9612         * modules/unistdio/ulc-vasnprintf: Likewise.
9613         * modules/unistdio/ulc-vasprintf: Likewise.
9614         * modules/unistdio/ulc-vfprintf: Likewise.
9615         * modules/unistdio/ulc-vsnprintf: Likewise.
9616         * modules/unistdio/ulc-vsprintf: Likewise.
9617         * modules/unistr/u8-check: Likewise.
9618         * modules/unistr/u8-chr: Likewise.
9619         * modules/unistr/u8-cmp: Likewise.
9620         * modules/unistr/u8-cmp2: Likewise.
9621         * modules/unistr/u8-cpy: Likewise.
9622         * modules/unistr/u8-cpy-alloc: Likewise.
9623         * modules/unistr/u8-endswith: Likewise.
9624         * modules/unistr/u8-mblen: Likewise.
9625         * modules/unistr/u8-mbsnlen: Likewise.
9626         * modules/unistr/u8-mbtouc: Likewise.
9627         * modules/unistr/u8-mbtouc-unsafe: Likewise.
9628         * modules/unistr/u8-mbtoucr: Likewise.
9629         * modules/unistr/u8-move: Likewise.
9630         * modules/unistr/u8-next: Likewise.
9631         * modules/unistr/u8-prev: Likewise.
9632         * modules/unistr/u8-set: Likewise.
9633         * modules/unistr/u8-startswith: Likewise.
9634         * modules/unistr/u8-stpcpy: Likewise.
9635         * modules/unistr/u8-stpncpy: Likewise.
9636         * modules/unistr/u8-strcat: Likewise.
9637         * modules/unistr/u8-strchr: Likewise.
9638         * modules/unistr/u8-strcmp: Likewise.
9639         * modules/unistr/u8-strcoll: Likewise.
9640         * modules/unistr/u8-strcpy: Likewise.
9641         * modules/unistr/u8-strcspn: Likewise.
9642         * modules/unistr/u8-strdup: Likewise.
9643         * modules/unistr/u8-strlen: Likewise.
9644         * modules/unistr/u8-strmblen: Likewise.
9645         * modules/unistr/u8-strmbtouc: Likewise.
9646         * modules/unistr/u8-strncat: Likewise.
9647         * modules/unistr/u8-strncmp: Likewise.
9648         * modules/unistr/u8-strncpy: Likewise.
9649         * modules/unistr/u8-strnlen: Likewise.
9650         * modules/unistr/u8-strpbrk: Likewise.
9651         * modules/unistr/u8-strrchr: Likewise.
9652         * modules/unistr/u8-strspn: Likewise.
9653         * modules/unistr/u8-strstr: Likewise.
9654         * modules/unistr/u8-strtok: Likewise.
9655         * modules/unistr/u8-to-u16: Likewise.
9656         * modules/unistr/u8-to-u32: Likewise.
9657         * modules/unistr/u8-uctomb: Likewise.
9658         * modules/unistr/u16-check: Likewise.
9659         * modules/unistr/u16-chr: Likewise.
9660         * modules/unistr/u16-cmp: Likewise.
9661         * modules/unistr/u16-cmp2: Likewise.
9662         * modules/unistr/u16-cpy: Likewise.
9663         * modules/unistr/u16-cpy-alloc: Likewise.
9664         * modules/unistr/u16-endswith: Likewise.
9665         * modules/unistr/u16-mblen: Likewise.
9666         * modules/unistr/u16-mbsnlen: Likewise.
9667         * modules/unistr/u16-mbtouc: Likewise.
9668         * modules/unistr/u16-mbtouc-unsafe: Likewise.
9669         * modules/unistr/u16-mbtoucr: Likewise.
9670         * modules/unistr/u16-move: Likewise.
9671         * modules/unistr/u16-next: Likewise.
9672         * modules/unistr/u16-prev: Likewise.
9673         * modules/unistr/u16-set: Likewise.
9674         * modules/unistr/u16-startswith: Likewise.
9675         * modules/unistr/u16-stpcpy: Likewise.
9676         * modules/unistr/u16-stpncpy: Likewise.
9677         * modules/unistr/u16-strcat: Likewise.
9678         * modules/unistr/u16-strchr: Likewise.
9679         * modules/unistr/u16-strcmp: Likewise.
9680         * modules/unistr/u16-strcoll: Likewise.
9681         * modules/unistr/u16-strcpy: Likewise.
9682         * modules/unistr/u16-strcspn: Likewise.
9683         * modules/unistr/u16-strdup: Likewise.
9684         * modules/unistr/u16-strlen: Likewise.
9685         * modules/unistr/u16-strmblen: Likewise.
9686         * modules/unistr/u16-strmbtouc: Likewise.
9687         * modules/unistr/u16-strncat: Likewise.
9688         * modules/unistr/u16-strncmp: Likewise.
9689         * modules/unistr/u16-strncpy: Likewise.
9690         * modules/unistr/u16-strnlen: Likewise.
9691         * modules/unistr/u16-strpbrk: Likewise.
9692         * modules/unistr/u16-strrchr: Likewise.
9693         * modules/unistr/u16-strspn: Likewise.
9694         * modules/unistr/u16-strstr: Likewise.
9695         * modules/unistr/u16-strtok: Likewise.
9696         * modules/unistr/u16-to-u32: Likewise.
9697         * modules/unistr/u16-to-u8: Likewise.
9698         * modules/unistr/u16-uctomb: Likewise.
9699         * modules/unistr/u32-check: Likewise.
9700         * modules/unistr/u32-chr: Likewise.
9701         * modules/unistr/u32-cmp: Likewise.
9702         * modules/unistr/u32-cmp2: Likewise.
9703         * modules/unistr/u32-cpy: Likewise.
9704         * modules/unistr/u32-cpy-alloc: Likewise.
9705         * modules/unistr/u32-endswith: Likewise.
9706         * modules/unistr/u32-mblen: Likewise.
9707         * modules/unistr/u32-mbsnlen: Likewise.
9708         * modules/unistr/u32-mbtouc: Likewise.
9709         * modules/unistr/u32-mbtouc-unsafe: Likewise.
9710         * modules/unistr/u32-mbtoucr: Likewise.
9711         * modules/unistr/u32-move: Likewise.
9712         * modules/unistr/u32-next: Likewise.
9713         * modules/unistr/u32-prev: Likewise.
9714         * modules/unistr/u32-set: Likewise.
9715         * modules/unistr/u32-startswith: Likewise.
9716         * modules/unistr/u32-stpcpy: Likewise.
9717         * modules/unistr/u32-stpncpy: Likewise.
9718         * modules/unistr/u32-strcat: Likewise.
9719         * modules/unistr/u32-strchr: Likewise.
9720         * modules/unistr/u32-strcmp: Likewise.
9721         * modules/unistr/u32-strcoll: Likewise.
9722         * modules/unistr/u32-strcpy: Likewise.
9723         * modules/unistr/u32-strcspn: Likewise.
9724         * modules/unistr/u32-strdup: Likewise.
9725         * modules/unistr/u32-strlen: Likewise.
9726         * modules/unistr/u32-strmblen: Likewise.
9727         * modules/unistr/u32-strmbtouc: Likewise.
9728         * modules/unistr/u32-strncat: Likewise.
9729         * modules/unistr/u32-strncmp: Likewise.
9730         * modules/unistr/u32-strncpy: Likewise.
9731         * modules/unistr/u32-strnlen: Likewise.
9732         * modules/unistr/u32-strpbrk: Likewise.
9733         * modules/unistr/u32-strrchr: Likewise.
9734         * modules/unistr/u32-strspn: Likewise.
9735         * modules/unistr/u32-strstr: Likewise.
9736         * modules/unistr/u32-strtok: Likewise.
9737         * modules/unistr/u32-to-u16: Likewise.
9738         * modules/unistr/u32-to-u8: Likewise.
9739         * modules/unistr/u32-uctomb: Likewise.
9740         * modules/uniwbrk/u8-wordbreaks: Likewise.
9741         * modules/uniwbrk/u16-wordbreaks: Likewise.
9742         * modules/uniwbrk/u32-wordbreaks: Likewise.
9743         * modules/uniwbrk/ulc-wordbreaks: Likewise.
9744         * modules/uniwbrk/wordbreak-property: Likewise.
9745         * modules/uniwidth/u8-strwidth: Likewise.
9746         * modules/uniwidth/u8-width: Likewise.
9747         * modules/uniwidth/u16-strwidth: Likewise.
9748         * modules/uniwidth/u16-width: Likewise.
9749         * modules/uniwidth/u32-strwidth: Likewise.
9750         * modules/uniwidth/u32-width: Likewise.
9751         * modules/uniwidth/width: Likewise.
9752         * modules/unicase/cased-tests (Makefile.am): Link all test programs
9753         with $(LIBUNISTRING).
9754         * modules/unicase/ignorable-tests: Likewise.
9755         * modules/unicase/locale-language-tests: Likewise.
9756         * modules/unicase/tolower-tests: Likewise.
9757         * modules/unicase/totitle-tests: Likewise.
9758         * modules/unicase/toupper-tests: Likewise.
9759         * modules/unicase/u8-casecmp-tests: Likewise.
9760         * modules/unicase/u8-casecoll-tests: Likewise.
9761         * modules/unicase/u8-casefold-tests: Likewise.
9762         * modules/unicase/u8-is-cased-tests: Likewise.
9763         * modules/unicase/u8-is-casefolded-tests: Likewise.
9764         * modules/unicase/u8-is-lowercase-tests: Likewise.
9765         * modules/unicase/u8-is-titlecase-tests: Likewise.
9766         * modules/unicase/u8-is-uppercase-tests: Likewise.
9767         * modules/unicase/u8-tolower-tests: Likewise.
9768         * modules/unicase/u8-totitle-tests: Likewise.
9769         * modules/unicase/u8-toupper-tests: Likewise.
9770         * modules/unicase/u16-casecmp-tests: Likewise.
9771         * modules/unicase/u16-casecoll-tests: Likewise.
9772         * modules/unicase/u16-casefold-tests: Likewise.
9773         * modules/unicase/u16-is-cased-tests: Likewise.
9774         * modules/unicase/u16-is-casefolded-tests: Likewise.
9775         * modules/unicase/u16-is-lowercase-tests: Likewise.
9776         * modules/unicase/u16-is-titlecase-tests: Likewise.
9777         * modules/unicase/u16-is-uppercase-tests: Likewise.
9778         * modules/unicase/u16-tolower-tests: Likewise.
9779         * modules/unicase/u16-totitle-tests: Likewise.
9780         * modules/unicase/u16-toupper-tests: Likewise.
9781         * modules/unicase/u32-casecmp-tests: Likewise.
9782         * modules/unicase/u32-casecoll-tests: Likewise.
9783         * modules/unicase/u32-casefold-tests: Likewise.
9784         * modules/unicase/u32-is-cased-tests: Likewise.
9785         * modules/unicase/u32-is-casefolded-tests: Likewise.
9786         * modules/unicase/u32-is-lowercase-tests: Likewise.
9787         * modules/unicase/u32-is-titlecase-tests: Likewise.
9788         * modules/unicase/u32-is-uppercase-tests: Likewise.
9789         * modules/unicase/u32-tolower-tests: Likewise.
9790         * modules/unicase/u32-totitle-tests: Likewise.
9791         * modules/unicase/u32-toupper-tests: Likewise.
9792         * modules/unicase/ulc-casecmp-tests: Likewise.
9793         * modules/unicase/ulc-casecoll-tests: Likewise.
9794         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
9795         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
9796         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
9797         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
9798         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
9799         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
9800         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
9801         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
9802         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
9803         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
9804         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
9805         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
9806         * modules/unictype/bidicategory-byname-tests: Likewise.
9807         * modules/unictype/bidicategory-name-tests: Likewise.
9808         * modules/unictype/bidicategory-of-tests: Likewise.
9809         * modules/unictype/bidicategory-test-tests: Likewise.
9810         * modules/unictype/block-list-tests: Likewise.
9811         * modules/unictype/block-of-tests: Likewise.
9812         * modules/unictype/block-test-tests: Likewise.
9813         * modules/unictype/category-C-tests: Likewise.
9814         * modules/unictype/category-Cc-tests: Likewise.
9815         * modules/unictype/category-Cf-tests: Likewise.
9816         * modules/unictype/category-Cn-tests: Likewise.
9817         * modules/unictype/category-Co-tests: Likewise.
9818         * modules/unictype/category-Cs-tests: Likewise.
9819         * modules/unictype/category-L-tests: Likewise.
9820         * modules/unictype/category-Ll-tests: Likewise.
9821         * modules/unictype/category-Lm-tests: Likewise.
9822         * modules/unictype/category-Lo-tests: Likewise.
9823         * modules/unictype/category-Lt-tests: Likewise.
9824         * modules/unictype/category-Lu-tests: Likewise.
9825         * modules/unictype/category-M-tests: Likewise.
9826         * modules/unictype/category-Mc-tests: Likewise.
9827         * modules/unictype/category-Me-tests: Likewise.
9828         * modules/unictype/category-Mn-tests: Likewise.
9829         * modules/unictype/category-N-tests: Likewise.
9830         * modules/unictype/category-Nd-tests: Likewise.
9831         * modules/unictype/category-Nl-tests: Likewise.
9832         * modules/unictype/category-No-tests: Likewise.
9833         * modules/unictype/category-P-tests: Likewise.
9834         * modules/unictype/category-Pc-tests: Likewise.
9835         * modules/unictype/category-Pd-tests: Likewise.
9836         * modules/unictype/category-Pe-tests: Likewise.
9837         * modules/unictype/category-Pf-tests: Likewise.
9838         * modules/unictype/category-Pi-tests: Likewise.
9839         * modules/unictype/category-Po-tests: Likewise.
9840         * modules/unictype/category-Ps-tests: Likewise.
9841         * modules/unictype/category-S-tests: Likewise.
9842         * modules/unictype/category-Sc-tests: Likewise.
9843         * modules/unictype/category-Sk-tests: Likewise.
9844         * modules/unictype/category-Sm-tests: Likewise.
9845         * modules/unictype/category-So-tests: Likewise.
9846         * modules/unictype/category-Z-tests: Likewise.
9847         * modules/unictype/category-Zl-tests: Likewise.
9848         * modules/unictype/category-Zp-tests: Likewise.
9849         * modules/unictype/category-Zs-tests: Likewise.
9850         * modules/unictype/category-and-not-tests: Likewise.
9851         * modules/unictype/category-and-tests: Likewise.
9852         * modules/unictype/category-byname-tests: Likewise.
9853         * modules/unictype/category-name-tests: Likewise.
9854         * modules/unictype/category-none-tests: Likewise.
9855         * modules/unictype/category-of-tests: Likewise.
9856         * modules/unictype/category-or-tests: Likewise.
9857         * modules/unictype/category-test-withtable-tests: Likewise.
9858         * modules/unictype/combining-class-tests: Likewise.
9859         * modules/unictype/ctype-alnum-tests: Likewise.
9860         * modules/unictype/ctype-alpha-tests: Likewise.
9861         * modules/unictype/ctype-blank-tests: Likewise.
9862         * modules/unictype/ctype-cntrl-tests: Likewise.
9863         * modules/unictype/ctype-digit-tests: Likewise.
9864         * modules/unictype/ctype-graph-tests: Likewise.
9865         * modules/unictype/ctype-lower-tests: Likewise.
9866         * modules/unictype/ctype-print-tests: Likewise.
9867         * modules/unictype/ctype-punct-tests: Likewise.
9868         * modules/unictype/ctype-space-tests: Likewise.
9869         * modules/unictype/ctype-upper-tests: Likewise.
9870         * modules/unictype/ctype-xdigit-tests: Likewise.
9871         * modules/unictype/decimal-digit-tests: Likewise.
9872         * modules/unictype/digit-tests: Likewise.
9873         * modules/unictype/mirror-tests: Likewise.
9874         * modules/unictype/numeric-tests: Likewise.
9875         * modules/unictype/property-alphabetic-tests: Likewise.
9876         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
9877         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
9878         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
9879         * modules/unictype/property-bidi-block-separator-tests: Likewise.
9880         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
9881         * modules/unictype/property-bidi-common-separator-tests: Likewise.
9882         * modules/unictype/property-bidi-control-tests: Likewise.
9883         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
9884         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
9885         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
9886         * modules/unictype/property-bidi-european-digit-tests: Likewise.
9887         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
9888         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
9889         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
9890         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
9891         * modules/unictype/property-bidi-pdf-tests: Likewise.
9892         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
9893         * modules/unictype/property-bidi-whitespace-tests: Likewise.
9894         * modules/unictype/property-byname-tests: Likewise.
9895         * modules/unictype/property-combining-tests: Likewise.
9896         * modules/unictype/property-composite-tests: Likewise.
9897         * modules/unictype/property-currency-symbol-tests: Likewise.
9898         * modules/unictype/property-dash-tests: Likewise.
9899         * modules/unictype/property-decimal-digit-tests: Likewise.
9900         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
9901         * modules/unictype/property-deprecated-tests: Likewise.
9902         * modules/unictype/property-diacritic-tests: Likewise.
9903         * modules/unictype/property-extender-tests: Likewise.
9904         * modules/unictype/property-format-control-tests: Likewise.
9905         * modules/unictype/property-grapheme-base-tests: Likewise.
9906         * modules/unictype/property-grapheme-extend-tests: Likewise.
9907         * modules/unictype/property-grapheme-link-tests: Likewise.
9908         * modules/unictype/property-hex-digit-tests: Likewise.
9909         * modules/unictype/property-hyphen-tests: Likewise.
9910         * modules/unictype/property-id-continue-tests: Likewise.
9911         * modules/unictype/property-id-start-tests: Likewise.
9912         * modules/unictype/property-ideographic-tests: Likewise.
9913         * modules/unictype/property-ids-binary-operator-tests: Likewise.
9914         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
9915         * modules/unictype/property-ignorable-control-tests: Likewise.
9916         * modules/unictype/property-iso-control-tests: Likewise.
9917         * modules/unictype/property-join-control-tests: Likewise.
9918         * modules/unictype/property-left-of-pair-tests: Likewise.
9919         * modules/unictype/property-line-separator-tests: Likewise.
9920         * modules/unictype/property-logical-order-exception-tests: Likewise.
9921         * modules/unictype/property-lowercase-tests: Likewise.
9922         * modules/unictype/property-math-tests: Likewise.
9923         * modules/unictype/property-non-break-tests: Likewise.
9924         * modules/unictype/property-not-a-character-tests: Likewise.
9925         * modules/unictype/property-numeric-tests: Likewise.
9926         * modules/unictype/property-other-alphabetic-tests: Likewise.
9927         * modules/unictype/property-other-default-ignorable-code-point-tests:
9928         Likewise.
9929         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
9930         * modules/unictype/property-other-id-continue-tests: Likewise.
9931         * modules/unictype/property-other-id-start-tests: Likewise.
9932         * modules/unictype/property-other-lowercase-tests: Likewise.
9933         * modules/unictype/property-other-math-tests: Likewise.
9934         * modules/unictype/property-other-uppercase-tests: Likewise.
9935         * modules/unictype/property-paired-punctuation-tests: Likewise.
9936         * modules/unictype/property-paragraph-separator-tests: Likewise.
9937         * modules/unictype/property-pattern-syntax-tests: Likewise.
9938         * modules/unictype/property-pattern-white-space-tests: Likewise.
9939         * modules/unictype/property-private-use-tests: Likewise.
9940         * modules/unictype/property-punctuation-tests: Likewise.
9941         * modules/unictype/property-quotation-mark-tests: Likewise.
9942         * modules/unictype/property-radical-tests: Likewise.
9943         * modules/unictype/property-sentence-terminal-tests: Likewise.
9944         * modules/unictype/property-soft-dotted-tests: Likewise.
9945         * modules/unictype/property-space-tests: Likewise.
9946         * modules/unictype/property-terminal-punctuation-tests: Likewise.
9947         * modules/unictype/property-test-tests: Likewise.
9948         * modules/unictype/property-titlecase-tests: Likewise.
9949         * modules/unictype/property-unassigned-code-value-tests: Likewise.
9950         * modules/unictype/property-unified-ideograph-tests: Likewise.
9951         * modules/unictype/property-uppercase-tests: Likewise.
9952         * modules/unictype/property-variation-selector-tests: Likewise.
9953         * modules/unictype/property-white-space-tests: Likewise.
9954         * modules/unictype/property-xid-continue-tests: Likewise.
9955         * modules/unictype/property-xid-start-tests: Likewise.
9956         * modules/unictype/property-zero-width-tests: Likewise.
9957         * modules/unictype/scripts-tests: Likewise.
9958         * modules/unictype/syntax-c-ident-tests: Likewise.
9959         * modules/unictype/syntax-c-whitespace-tests: Likewise.
9960         * modules/unictype/syntax-java-ident-tests: Likewise.
9961         * modules/unictype/syntax-java-whitespace-tests: Likewise.
9962         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
9963         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
9964         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
9965         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
9966         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
9967         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
9968         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
9969         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
9970         * modules/uniname/uniname-tests: Likewise.
9971         * modules/uninorm/canonical-decomposition-tests: Likewise.
9972         * modules/uninorm/compat-decomposition-tests: Likewise.
9973         * modules/uninorm/composition-tests: Likewise.
9974         * modules/uninorm/decomposing-form-tests: Likewise.
9975         * modules/uninorm/decomposition-tests: Likewise.
9976         * modules/uninorm/filter-tests: Likewise.
9977         * modules/uninorm/nfc-tests: Likewise.
9978         * modules/uninorm/nfd-tests: Likewise.
9979         * modules/uninorm/nfkc-tests: Likewise.
9980         * modules/uninorm/nfkd-tests: Likewise.
9981         * modules/uninorm/u8-normcmp-tests: Likewise.
9982         * modules/uninorm/u8-normcoll-tests: Likewise.
9983         * modules/uninorm/u16-normcmp-tests: Likewise.
9984         * modules/uninorm/u16-normcoll-tests: Likewise.
9985         * modules/uninorm/u32-normcmp-tests: Likewise.
9986         * modules/uninorm/u32-normcoll-tests: Likewise.
9987         * modules/unistdio/u8-asnprintf-tests: Likewise.
9988         * modules/unistdio/u8-vasnprintf-tests: Likewise.
9989         * modules/unistdio/u8-vasprintf-tests: Likewise.
9990         * modules/unistdio/u8-vsnprintf-tests: Likewise.
9991         * modules/unistdio/u8-vsprintf-tests: Likewise.
9992         * modules/unistdio/u16-asnprintf-tests: Likewise.
9993         * modules/unistdio/u16-vasnprintf-tests: Likewise.
9994         * modules/unistdio/u16-vasprintf-tests: Likewise.
9995         * modules/unistdio/u16-vsnprintf-tests: Likewise.
9996         * modules/unistdio/u16-vsprintf-tests: Likewise.
9997         * modules/unistdio/u32-asnprintf-tests: Likewise.
9998         * modules/unistdio/u32-vasnprintf-tests: Likewise.
9999         * modules/unistdio/u32-vasprintf-tests: Likewise.
10000         * modules/unistdio/u32-vsnprintf-tests: Likewise.
10001         * modules/unistdio/u32-vsprintf-tests: Likewise.
10002         * modules/unistdio/ulc-asnprintf-tests: Likewise.
10003         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
10004         * modules/unistdio/ulc-vasprintf-tests: Likewise.
10005         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
10006         * modules/unistdio/ulc-vsprintf-tests: Likewise.
10007         * modules/unistr/u8-check-tests: Likewise.
10008         * modules/unistr/u8-chr-tests: Likewise.
10009         * modules/unistr/u8-cmp-tests: Likewise.
10010         * modules/unistr/u8-cmp2-tests: Likewise.
10011         * modules/unistr/u8-cpy-alloc-tests: Likewise.
10012         * modules/unistr/u8-cpy-tests: Likewise.
10013         * modules/unistr/u8-mblen-tests: Likewise.
10014         * modules/unistr/u8-mbsnlen-tests: Likewise.
10015         * modules/unistr/u8-mbtouc-tests: Likewise.
10016         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
10017         * modules/unistr/u8-mbtoucr-tests: Likewise.
10018         * modules/unistr/u8-move-tests: Likewise.
10019         * modules/unistr/u8-next-tests: Likewise.
10020         * modules/unistr/u8-prev-tests: Likewise.
10021         * modules/unistr/u8-set-tests: Likewise.
10022         * modules/unistr/u8-stpcpy-tests: Likewise.
10023         * modules/unistr/u8-stpncpy-tests: Likewise.
10024         * modules/unistr/u8-strcat-tests: Likewise.
10025         * modules/unistr/u8-strcmp-tests: Likewise.
10026         * modules/unistr/u8-strcoll-tests: Likewise.
10027         * modules/unistr/u8-strcpy-tests: Likewise.
10028         * modules/unistr/u8-strdup-tests: Likewise.
10029         * modules/unistr/u8-strlen-tests: Likewise.
10030         * modules/unistr/u8-strmblen-tests: Likewise.
10031         * modules/unistr/u8-strmbtouc-tests: Likewise.
10032         * modules/unistr/u8-strncat-tests: Likewise.
10033         * modules/unistr/u8-strncmp-tests: Likewise.
10034         * modules/unistr/u8-strncpy-tests: Likewise.
10035         * modules/unistr/u8-strnlen-tests: Likewise.
10036         * modules/unistr/u8-to-u16-tests: Likewise.
10037         * modules/unistr/u8-to-u32-tests: Likewise.
10038         * modules/unistr/u8-uctomb-tests: Likewise.
10039         * modules/unistr/u16-check-tests: Likewise.
10040         * modules/unistr/u16-chr-tests: Likewise.
10041         * modules/unistr/u16-cmp-tests: Likewise.
10042         * modules/unistr/u16-cmp2-tests: Likewise.
10043         * modules/unistr/u16-cpy-alloc-tests: Likewise.
10044         * modules/unistr/u16-cpy-tests: Likewise.
10045         * modules/unistr/u16-mblen-tests: Likewise.
10046         * modules/unistr/u16-mbsnlen-tests: Likewise.
10047         * modules/unistr/u16-mbtouc-tests: Likewise.
10048         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
10049         * modules/unistr/u16-mbtoucr-tests: Likewise.
10050         * modules/unistr/u16-move-tests: Likewise.
10051         * modules/unistr/u16-next-tests: Likewise.
10052         * modules/unistr/u16-prev-tests: Likewise.
10053         * modules/unistr/u16-set-tests: Likewise.
10054         * modules/unistr/u16-stpcpy-tests: Likewise.
10055         * modules/unistr/u16-stpncpy-tests: Likewise.
10056         * modules/unistr/u16-strcat-tests: Likewise.
10057         * modules/unistr/u16-strcmp-tests: Likewise.
10058         * modules/unistr/u16-strcoll-tests: Likewise.
10059         * modules/unistr/u16-strcpy-tests: Likewise.
10060         * modules/unistr/u16-strdup-tests: Likewise.
10061         * modules/unistr/u16-strlen-tests: Likewise.
10062         * modules/unistr/u16-strmblen-tests: Likewise.
10063         * modules/unistr/u16-strmbtouc-tests: Likewise.
10064         * modules/unistr/u16-strncat-tests: Likewise.
10065         * modules/unistr/u16-strncmp-tests: Likewise.
10066         * modules/unistr/u16-strncpy-tests: Likewise.
10067         * modules/unistr/u16-strnlen-tests: Likewise.
10068         * modules/unistr/u16-to-u32-tests: Likewise.
10069         * modules/unistr/u16-to-u8-tests: Likewise.
10070         * modules/unistr/u16-uctomb-tests: Likewise.
10071         * modules/unistr/u32-check-tests: Likewise.
10072         * modules/unistr/u32-chr-tests: Likewise.
10073         * modules/unistr/u32-cmp-tests: Likewise.
10074         * modules/unistr/u32-cmp2-tests: Likewise.
10075         * modules/unistr/u32-cpy-alloc-tests: Likewise.
10076         * modules/unistr/u32-cpy-tests: Likewise.
10077         * modules/unistr/u32-mblen-tests: Likewise.
10078         * modules/unistr/u32-mbsnlen-tests: Likewise.
10079         * modules/unistr/u32-mbtouc-tests: Likewise.
10080         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
10081         * modules/unistr/u32-mbtoucr-tests: Likewise.
10082         * modules/unistr/u32-move-tests: Likewise.
10083         * modules/unistr/u32-next-tests: Likewise.
10084         * modules/unistr/u32-prev-tests: Likewise.
10085         * modules/unistr/u32-set-tests: Likewise.
10086         * modules/unistr/u32-stpcpy-tests: Likewise.
10087         * modules/unistr/u32-stpncpy-tests: Likewise.
10088         * modules/unistr/u32-strcat-tests: Likewise.
10089         * modules/unistr/u32-strcmp-tests: Likewise.
10090         * modules/unistr/u32-strcoll-tests: Likewise.
10091         * modules/unistr/u32-strcpy-tests: Likewise.
10092         * modules/unistr/u32-strdup-tests: Likewise.
10093         * modules/unistr/u32-strlen-tests: Likewise.
10094         * modules/unistr/u32-strmblen-tests: Likewise.
10095         * modules/unistr/u32-strmbtouc-tests: Likewise.
10096         * modules/unistr/u32-strncat-tests: Likewise.
10097         * modules/unistr/u32-strncmp-tests: Likewise.
10098         * modules/unistr/u32-strncpy-tests: Likewise.
10099         * modules/unistr/u32-strnlen-tests: Likewise.
10100         * modules/unistr/u32-to-u16-tests: Likewise.
10101         * modules/unistr/u32-to-u8-tests: Likewise.
10102         * modules/unistr/u32-uctomb-tests: Likewise.
10103         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
10104         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
10105         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
10106         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
10107         * modules/uniwidth/u8-strwidth-tests: Likewise.
10108         * modules/uniwidth/u8-width-tests: Likewise.
10109         * modules/uniwidth/u16-strwidth-tests: Likewise.
10110         * modules/uniwidth/u16-width-tests: Likewise.
10111         * modules/uniwidth/u32-strwidth-tests: Likewise.
10112         * modules/uniwidth/u32-width-tests: Likewise.
10113         * modules/uniwidth/width-tests: Likewise.
10114
10115 2010-05-18  Richard Jones  <rjones@redhat.com>
10116
10117         doc: users.txt: list hivex
10118         * users.txt: Add hivex.
10119
10120 2010-05-18  Richard Jones  <rjones@redhat.com>
10121
10122         doc: users.txt: list febootstrap
10123         * users.txt: Add febootstrap.
10124
10125 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
10126
10127         bootstrap: fix an error when gnulib is not used as a git submodule
10128         * build-aux/bootstrap (gnulib_path): If its length is zero then
10129         assign "gnulib" to it.
10130         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
10131
10132 2010-05-16  Bruno Haible  <bruno@clisp.org>
10133
10134         Avoid autoconf warnings about AM_ICONV.
10135         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
10136         2.64.
10137
10138 2010-05-16  Bruno Haible  <bruno@clisp.org>
10139
10140         absolute-header: Make the macro usable in more situations.
10141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
10142         from gl_ABSOLUTE_HEADER.
10143         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
10144
10145 2010-05-16  James Youngman  <jay@gnu.org>
10146
10147         doc: update users.txt
10148         * users.txt: Add CSSC.
10149
10150 2010-05-16  Jim Meyering  <meyering@redhat.com>
10151
10152         init.sh: fix an error in the previous change; add more comments
10153         * tests/init.sh: Compare exit code in loop against 9, not 2.
10154         Patch by Bruno Haible.
10155         Make the two tests more similar by adding an empty "then" clause.
10156         Add comments.
10157
10158         init.sh: avoid unnecessary shell re-exec
10159         * tests/init.sh: Improve the re-exec-required check to first test the
10160         current shell.  If it passes the test, do not search for a shell that
10161         does pass, and do not re-exec.  This test is particularly contorted to
10162         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
10163         of $(...) evokes a syntax error and causes immediate shell exit with
10164         status 2.  Bruno Haible reported that the re-exec made it impossible
10165         to single-step through any init.sh-using script.
10166
10167 2010-05-16  Bruno Haible  <bruno@clisp.org>
10168
10169         Fix collision between gnulib's and libintl's printf replacements.
10170         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
10171         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
10172         (printf): When using GNU C, map the __printf__ function to rpl_printf
10173         via __asm__. When not using GNU C, define rpl_printf instead of
10174         __printf__.
10175         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
10176         commit.
10177         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
10178         commit.
10179         * m4/asm-underscore.m4: New file.
10180         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
10181         * modules/stdio (Files): Add m4/asm-underscore.m4.
10182         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
10183         Reported by Ben Pfaff.
10184
10185 2010-05-16  Bruno Haible  <bruno@clisp.org>
10186
10187         verify: Avoid skipping the test on openSUSE 11.0.
10188         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
10189
10190 2010-05-13  Bruno Haible  <bruno@clisp.org>
10191
10192         Avoid useless warnings from G++.
10193         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
10194         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
10195         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10196
10197 2010-05-11  Jim Meyering  <meyering@redhat.com>
10198
10199         maint.mk: tweak preceding change
10200         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
10201         regexps tighter by anchoring at EOL, and make the new group "shy"
10202         for slightly decreased overhead.
10203
10204 2010-05-11  Eric Blake  <eblake@redhat.com>
10205
10206         maint.mk: gnulib doesn't guarantee NSIG
10207         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
10208
10209 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10210
10211         test-pwrite.c: Remove unused variable declaration.
10212         * tests/test-pwrite.c (main): Remove read_buf declaration.
10213
10214         Remove useless test-pwrite.sh file.
10215         * tests/test-pwrite.sh: Delete file.
10216         * modules/pwrite-tests: Remove references.
10217         Reported by Bruno Haible.
10218
10219 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
10220
10221         init.sh: fix a typo
10222         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
10223
10224 2010-05-10  Jim Meyering  <meyering@redhat.com>
10225
10226         maint.mk: avoid using a temporary file in the always-defined-macros check
10227         * top/maint.mk (.re-defmac): Remove rule.
10228         (gl_trap_): Remove definition.
10229         (sc_prohibit_always-defined_macros): Rewrite not to create and
10230         depend on a temporary file.  Instead, depend on GNU grep's ability
10231         to read a list of regular expressions from stdin when given "-f -".
10232
10233 2010-05-09  Bruno Haible  <bruno@clisp.org>
10234
10235         Update to GNU gettext 0.18, part 1.
10236         * m4/gettext.m4: Update to GNU gettext 0.18.
10237         * m4/intl.m4: Likewise.
10238         * m4/po.m4: Likewise.
10239         * modules/gettext (Files): Add m4/fcntl-o.m4.
10240         (configure.ac): Require gettext infrastructure from version 0.18.
10241
10242 2010-05-09  Jim Meyering  <meyering@redhat.com>
10243
10244         init.sh: enable MALLOC_PERTURB_
10245         * tests/init.sh: Enable glibc's malloc-perturbing option.
10246
10247         maint.mk: improve sc_cross_check_PATH_usage_in_tests
10248         With my recent change in init.sh from the two-line form:
10249             -#   : ${srcdir=.}
10250             -#   . "$srcdir/init.sh"; path_prepend_ .
10251             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
10252         I noticed that using the one-line form would cause this test
10253         to fail with a false-positive, or to stop working altogether,
10254         depending on whether help-version changed or all the tests did.
10255         * top/maint.mk (_hv_regex): Remove this definition.
10256         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
10257         (_hv_regex_strong): Use a stronger regex to check for conformance.
10258         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
10259         Give a separate diagnostic for lack of conforming use.
10260
10261         maint.mk: prohibit definition of symbols defined by gnulib
10262         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
10263         definition of symbols defined by gnulib.
10264
10265 2010-05-09  Bruno Haible  <bruno@clisp.org>
10266
10267         acl: Avoid test failure on Cygwin-hosted mingw.
10268         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
10269
10270 2010-05-09  Bruno Haible  <bruno@clisp.org>
10271
10272         error: Use system's fcntl function.
10273         * lib/error.c (fcntl): Undefine.
10274
10275 2010-05-09  Jim Meyering  <meyering@redhat.com>
10276
10277         verify: adjust formatting to be more consistent
10278         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
10279         argument-list '('s, and after one comma.
10280
10281 2010-05-09  Bruno Haible  <bruno@clisp.org>
10282
10283         error: More reliable output on mingw.
10284         * lib/error.c: Include <windows.h>.
10285         (is_open): New function.
10286         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
10287         defined.
10288
10289 2010-05-09  Bruno Haible  <bruno@clisp.org>
10290
10291         vasnprintf: Fix syntax errors in libintl build on mingw.
10292         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
10293         pad_ourselves and prec_ourselves after use.
10294
10295 2010-05-08  Bruno Haible  <bruno@clisp.org>
10296
10297         * lib/config.charset: Update comments for Cygwin 1.7.
10298         * lib/localcharset.c: Likewise.
10299
10300 2010-05-07  Jim Meyering  <meyering@redhat.com>
10301
10302         init.sh: improve comments
10303         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
10304         . "${srcdir=.}/init.sh"; path_prepend_ .
10305         Add a note about path_prepend_ and the alternative of using
10306         TESTS_ENVIRONMENT.
10307
10308 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10309
10310         exclude: Unescape hashed patterns in wildcard mode.
10311         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
10312         to the hash list.
10313         * tests/test-exclude8.sh: New test case.
10314         * modules/exclude-tests: Add new test.
10315
10316 2010-05-05  Eric Blake  <eblake@redhat.com>
10317
10318         verify: automate tests
10319         * modules/verify-tests: New module.
10320         * tests/test-verify.sh: New file.
10321         * tests/test-verify.c: Guard each negative test with a unique id.
10322         Also avoid warning about unused left hand of comma expressions.
10323
10324 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10325
10326         Further improvements to verify.h, suggested by Eric Blake.
10327         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
10328         the GL_* versions, to avoid collision with OpenGL.
10329         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
10330         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
10331         than testing merely whether it's defined.
10332
10333         Modify verify.h to pacify gcc -Wredundant_decls.
10334         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
10335         These use the prefix "GL_" since they're likely to be useful elsewhere.
10336         We may need to break them out into a different .h file.
10337         (__COUNTER__): Define to 0 if the compiler doesn't support it.
10338         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
10339         of verify_function__.
10340
10341 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10342
10343         Tests for module pwrite.
10344         * modules/pwrite-tests: New file.
10345         * tests/test-pwrite.sh: New file.
10346         * tests/test-pwrite.c: New file.
10347
10348         New module pwrite.
10349         * lib/unistd.in.h (pwrite): New declaration.
10350         * lib/pwrite.c: New file, from glibc with modifications.
10351         * m4/pwrite.m4: New file.
10352         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
10353         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
10354         REPLACE_PWRITE.
10355         * modules/pwrite: New file.
10356         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
10357         REPLACE_PWRITE.
10358         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
10359         * doc/posix-functions/pwrite.texi: Mention the new module.
10360
10361 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
10362
10363         pread: Update documentation.
10364         * doc/posix-functions/pread.texi: Mention the 'pread' module.
10365
10366 2010-05-04  Eric Blake  <eblake@redhat.com>
10367
10368         docs: update cygwin progress
10369         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
10370         this bug.
10371         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
10372         Added in cygwin 1.7.2.
10373         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
10374         Likewise.
10375         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
10376         Likewise.
10377         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10378         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10379         * doc/glibc-functions/accept4.texi (accept4): Likewise.
10380         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
10381         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
10382         Mention nproc module.
10383         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
10384         bug in cygwin 1.7.5 addition.
10385         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
10386         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
10387         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
10388         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
10389         1.7.5.
10390         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
10391         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
10392         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
10393         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
10394         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
10395         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
10396         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
10397         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
10398         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
10399         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
10400         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
10401         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
10402         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
10403         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
10404         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
10405         Likewise.
10406         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
10407         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
10408         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
10409         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
10410         Likewise.
10411         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
10412         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
10413         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
10414         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
10415         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
10416         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
10417         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
10418         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
10419         Likewise.
10420         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
10421         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
10422         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
10423         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
10424         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
10425         Likewise.
10426         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
10427         Likewise.
10428         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
10429         Likewise.
10430         * doc/glibc-functions/xdrrec_endofrecord.texi
10431         (xdrrec_endofrecord): Likewise.
10432         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
10433         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
10434         Likewise.
10435         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
10436         Likewise.
10437
10438 2010-05-04  Jim Meyering  <meyering@redhat.com>
10439
10440         gendocs.sh: make its "-s FILE" option more useful
10441         * build-aux/gendocs.sh: When honoring the -s FILE option, update
10442         $PACKAGE to reflect the probably-different basename of "FILE".
10443
10444 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10445
10446         bootstrap: don't ignore download_po_files failure
10447         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
10448         failure.
10449
10450 2010-05-03  Jim Meyering  <meyering@redhat.com>
10451
10452         maint.mk: allow to pass options to gendocs.sh
10453         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
10454         (gendocs_options_): New overridable variable.
10455
10456         gnu-web-doc-update: don't ignore configure or build failure
10457         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
10458
10459         announce-gen: backslash-escape '@'s in --help output
10460         * build-aux/announce-gen: Fix syntax errors.
10461
10462         maint.mk, announce-gen: allow project-specific announcement mail headers
10463         * top/maint.mk (translation_project_): Define default.
10464         (announcement_Cc_, announcement_mail_headers_): Likewise.
10465         (announcement): Invoke announce-gen with new --mail-headers option.
10466         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
10467
10468         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
10469         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
10470         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
10471         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
10472         line in the "err2" output file when running "make check" in verbose
10473         mode (i.e., with set -x enabled).
10474
10475 2010-05-03  Bruno Haible  <bruno@clisp.org>
10476
10477         wctob: Fix for weird platforms.
10478         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
10479         argument value.
10480
10481 2010-05-03  Jim Meyering  <meyering@redhat.com>
10482
10483         maint.mk: prohibit unwarranted use of <strings.h>
10484         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
10485         strings.h in a file that does not also use strcasecmp, strncasecmp,
10486         ffs or ffsll.
10487
10488         maint.mk: remove obsolete comments
10489         * top/maint.mk: Remove stale, commented-out rules.
10490
10491 2010-05-02  Bruno Haible  <bruno@clisp.org>
10492
10493         wcwidth: Declare also when it's aliased.
10494         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
10495         macro.
10496
10497 2010-05-02  Bruno Haible  <bruno@clisp.org>
10498
10499         Fix regression from 2010-04-25.
10500         * gnulib-tool (func_modules_transitive_closure): Check the status of
10501         all modules, not only of the tests that are of the form foo-tests where
10502         foo is a module.
10503
10504 2010-05-02  Bruno Haible  <bruno@clisp.org>
10505
10506         wctob: Work around nasty Cygwin 1.7.2 bug.
10507         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
10508         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
10509
10510 2010-05-01  Bruno Haible  <bruno@clisp.org>
10511
10512         fpurge: Sharper test.
10513         * tests/test-fpurge.c (main): Add one more ftell check.
10514         * modules/fpurge-tests (Depends-on): Add ftell.
10515         Suggested by Eric Blake.
10516
10517 2010-05-01  Bruno Haible  <bruno@clisp.org>
10518
10519         ftello: Another test.
10520         * tests/test-ftello3.c: New file.
10521         * modules/ftello-tests (Files): Add it.
10522         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10523         MOSTLYCLEANFILES.
10524
10525         ftell: Another test.
10526         * tests/test-ftell3.c: New file.
10527         * modules/ftell-tests (Files): Add it.
10528         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
10529         MOSTLYCLEANFILES.
10530
10531 2010-05-01  Bruno Haible  <bruno@clisp.org>
10532
10533         ftell, ftello: Work around Solaris bug.
10534         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
10535         * lib/ftello.c: Include stdio-impl.h.
10536         (ftello): On Solaris, when _IOWRT is set, compute the result without
10537         looking at _IOREAD.
10538         * modules/ftello (Files): Add lib/stdio-impl.h.
10539         * doc/posix-functions/ftell.texi: Mention Solaris bug.
10540         * doc/posix-functions/ftello.texi: Likewise.
10541         Reported by Eric Blake.
10542
10543 2010-05-01  Bruno Haible  <bruno@clisp.org>
10544
10545         freading: Adapt to special meaning of _IOREAD flag on Solaris.
10546         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
10547         the _IOWRT flag is also set.
10548
10549 2010-05-01  Bruno Haible  <bruno@clisp.org>
10550
10551         Fix doc about a HP-UX stdio bug.
10552         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
10553         * doc/posix-functions/ftello.texi: Likewise.
10554
10555 2010-05-01  Bruno Haible  <bruno@clisp.org>
10556
10557         lseek test: Fix failure on Solaris.
10558         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
10559         output.
10560
10561 2010-04-30  Jim Meyering  <meyering@redhat.com>
10562
10563         bootstrap: don't ignore failure to generate po*/Makevars
10564         * build-aux/bootstrap (with_gettext): Don't ignore failure
10565         to create po/Makevars or runtime-po/Makevars.
10566
10567 2010-04-29  Eric Blake  <eblake@redhat.com>
10568
10569         headers: relax license to LGPLv2+
10570         * modules/fcntl-h (License): Relax license.
10571         * modules/getopt-posix (License): Likewise.
10572         * modules/locale (License): Likewise.
10573         * modules/math (License): Likewise.
10574         * modules/pty (License): Likewise.
10575         * modules/sched (License): Likewise.
10576         * modules/search (License): Likewise.
10577         * modules/spawn (License): Likewise.
10578         * modules/stdarg (License): Likewise.
10579         * modules/sysexits (License): Likewise.
10580
10581 2010-04-29  Jim Meyering  <meyering@redhat.com>
10582
10583         inttypes: relax license to LGPLv2+
10584         * modules/inttypes (License): Relax license.
10585
10586 2010-04-29  Simon Josefsson  <simon@josefsson.org>
10587
10588         * top/maint.mk (indent): Run twice to produce idempotent results.
10589
10590 2010-04-28  Bruno Haible  <bruno@clisp.org>
10591
10592         getdate: Generate getdate.c in the source directory.
10593         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
10594         MOSTLYCLEANFILES.
10595         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
10596
10597 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
10598
10599         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
10600         is not declared as a const *; avoid warnings in that case.
10601
10602 2010-04-28  Eric Blake  <eblake@redhat.com>
10603
10604         canonicalize-lgpl: avoid compiler warning
10605         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
10606         declaration' / 'extraneous semicolon' warning with some compilers.
10607         Reported by Andreas Gruenbacher.
10608
10609 2010-04-28  Jim Meyering  <meyering@redhat.com>
10610
10611         init.sh: ensure a more reliable exit status when exiting via trap
10612         * tests/init.sh (setup_): Don't rely on $? in signal handler.
10613         Inspired by patches from Dmitry V. Levin.
10614         Also trap on signal 3 (SIGQUIT).
10615
10616 2010-04-27  Bruno Haible  <bruno@clisp.org>
10617
10618         Update doc about utimes().
10619         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
10620         'utimens' module.
10621         Reported by Andreas Gruenbacher <agruen@suse.de>.
10622
10623 2010-04-27  Eric Blake  <eblake@redhat.com>
10624
10625         full-read, full-write: relax license
10626         * modules/full-read (License): Drop to LGPLv2+.
10627         * modules/full-write (License): Likewise.
10628         * modules/safe-read (License): Likewise.
10629         * modules/safe-write (License): Likewise.
10630
10631         pthread: mention library for linking
10632         * modules/pthread (Link): Mention $(LIB_PTHREAD).
10633
10634 2010-04-27  Jim Meyering  <meyering@redhat.com>
10635
10636         maint.mk: fix a bug introduced in last change
10637         * top/maint.mk (gl_assured_headers_): Now that all names are on
10638         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
10639         is not anchored to end of word, it should be adequate.
10640
10641         maint.mk: avoid side-effect in latest syntax-check
10642         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
10643         to run commands via $(shell...), and hence to incur cost only when
10644         the new rule is actually run.
10645
10646         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
10647         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
10648         and use that to create a regexp used to detect all #if HAVE_..._H uses.
10649         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
10650         (gl_assured_headers_, az_, AZ_): Define.
10651         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
10652
10653 2010-04-26  Jim Meyering  <jim@meyering.net>
10654             Bruno Haible  <bruno@clisp.org>
10655
10656         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
10657         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
10658         Prompted by an exchange with Gilles Espinasse.
10659
10660 2010-04-26  Jim Meyering  <meyering@redhat.com>
10661
10662         git-version-gen: aesthetic tweak
10663         * build-aux/git-version-gen: Use "$nl" rather than a literal,
10664         so that the command remains on a single line.
10665
10666 2010-04-26  Eric Blake  <eblake@redhat.com>
10667
10668         git-version-gen: allow use on EBCDIC hosts
10669         * build-aux/git-version-gen (dirty): Use literal rather than tying
10670         ourselves to ascii.
10671         Reported by Steve Goetze.
10672
10673 2010-04-25  Bruno Haible  <bruno@clisp.org>
10674
10675         netdb: Add support for GNULIB_POSIXCHECK.
10676         * lib/netdb.in.h: Include warn-on-use.h.
10677         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
10678         functions are used when GNULIB_POSIXCHECK is defined and the
10679         getaddrinfo module is not in use.
10680         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
10681         freeaddrinfo, gai_strerror, getnameinfo are declared.
10682         * modules/netdb (Depends-on): Add warn-on-use.
10683         (Makefile.am): Include warn-on-use.h in netdb.h.
10684
10685 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
10686
10687         build: avoid "make check" failure without .git/ directory
10688         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
10689         there is no .git/ directory.
10690
10691 2010-04-25  Bruno Haible  <bruno@clisp.org>
10692
10693         ptsname: Fix misuse of ttyname_r.
10694         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
10695         of errno.
10696
10697 2010-04-25  Bruno Haible  <bruno@clisp.org>
10698
10699         ttyname_r: Make it work on Solaris 10.
10700         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
10701         if the system function has the POSIX declaration. Test whether the
10702         function fails if the buffer is less than 128 bytes large.
10703         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
10704         system's ttyname_r function. Provide a reasonably large buffer.
10705         * modules/ttyname_r (Depends-on): Add extensions.
10706         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
10707
10708 2010-04-25  Bruno Haible  <bruno@clisp.org>
10709
10710         Use the 'extensions' module for some more functions on Solaris.
10711         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
10712         module.
10713         * doc/posix-functions/ctime_r.texi: Likewise.
10714         * doc/posix-functions/getgrgid_r.texi: Likewise.
10715         * doc/posix-functions/getgrnam_r.texi: Likewise.
10716         * doc/posix-functions/getpwnam_r.texi: Likewise.
10717         * doc/posix-functions/getpwuid_r.texi: Likewise.
10718         * doc/posix-functions/readdir_r.texi: Likewise.
10719         * doc/posix-functions/sigwait.texi: Likewise.
10720         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
10721         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
10722
10723 2010-04-25  Bruno Haible  <bruno@clisp.org>
10724
10725         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
10726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
10727         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
10728         * lib/ttyname_r.c: Include <limits.h>.
10729         (ttyname_r): Define using the system's ttyname_r function, if it exists
10730         and not on Solaris.
10731         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
10732         set.
10733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
10734         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
10735         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
10736         Reported by Simon Josefsson.
10737
10738 2010-04-25  Bruno Haible  <bruno@clisp.org>
10739
10740         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
10741         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
10742         * doc/posix-functions/ctime_r.texi: Likewise.
10743         * doc/posix-functions/getgrgid_r.texi: Likewise.
10744         * doc/posix-functions/getgrnam_r.texi: Likewise.
10745         * doc/posix-functions/getlogin_r.texi: Likewise.
10746         * doc/posix-functions/getpwnam_r.texi: Likewise.
10747         * doc/posix-functions/getpwuid_r.texi: Likewise.
10748         * doc/posix-functions/readdir_r.texi: Likewise.
10749         * doc/posix-functions/sigwait.texi: Likewise.
10750         * doc/posix-functions/ttyname_r.texi: Likewise.
10751         Reported by Simon Josefsson.
10752
10753 2010-04-25  Bruno Haible  <bruno@clisp.org>
10754
10755         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
10756         * gnulib-tool (func_usage): Document that --with-*-tests options apply
10757         also to --create-testdir.
10758         (func_acceptable): Don't consider the status of *-tests modules here.
10759         (func_modules_transitive_closure): Consider it here, before including a
10760         test module.
10761         (func_import, func_create_testdir): Set inc_all_direct_tests,
10762         inc_all_indirect_tests.
10763         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
10764         --create-testdir and --create-megatestdir.
10765
10766 2010-04-25  Bruno Haible  <bruno@clisp.org>
10767
10768         gnulib-tool: Add --without-*-tests options.
10769         * gnulib-tool (func_usage): Document the --without-*-tests options.
10770         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
10771         excl_unportable_tests): New variables.
10772         Fail if they are specified with --import or --update.
10773         (func_acceptable): Respect the excl_*_tests variables.
10774         (func_import): Set the excl_*_tests variables to empty.
10775
10776 2010-04-25  Simon Josefsson  <simon@josefsson.org>
10777             Bruno Haible  <bruno@clisp.org>
10778
10779         Work around a MacOS X 10.4 bug with openpty.
10780         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
10781         * tests/test-openpty.c (main): Close the master side explicitly.
10782
10783 2010-04-25  Bruno Haible  <bruno@clisp.org>
10784
10785         strnlen: Fix a C++ test error on MacOS X and Solaris.
10786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
10787         the function is not declared.
10788         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
10789         Simon Josefsson.
10790
10791 2010-04-24  Bruno Haible  <bruno@clisp.org>
10792
10793         Avoid a gcc warning.
10794         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
10795         of correct type for %08lx directive.
10796         Reported by Eric Blake.
10797
10798 2010-04-24  Bruno Haible  <bruno@clisp.org>
10799
10800         vasnprintf: Correct errno value in case of out-of-memory.
10801         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
10802         or sprintf. Use the errno value from SNPRINTF or sprintf.
10803         Reported by Ian Beckwith <ianb@erislabs.net>.
10804
10805 2010-04-24  Bruno Haible  <bruno@clisp.org>
10806
10807         ansi-c++-opt: Find correct compiler when cross-compiling.
10808         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
10809         AC_CHECK_PROGS.
10810         Reported by Simon Josefsson.
10811
10812 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
10813
10814         vc-list-files: Add support for subversion
10815         * build-aux/vc-list-files: Use "svn list" to generate the list of
10816         files controlled by subversion.
10817
10818 2010-04-23  Jim Meyering  <meyering@redhat.com>
10819
10820         vc-list-files tests: convert to use init.sh
10821         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
10822         path_prepend_.
10823         Use Exit, not exit.
10824         Use skip_ rather than open coding it.
10825         Remove trap set-up and compare definitions.
10826         * tests/test-vc-list-files-git.sh: Likewise.
10827         * modules/vc-list-files-tests (Files): Add tests/init.sh.
10828
10829 2010-04-22  Simon Josefsson  <simon@josefsson.org>
10830
10831         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
10832         backup files.
10833
10834 2010-04-21  Simon Josefsson  <simon@josefsson.org>
10835
10836         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
10837
10838 2010-04-20  Eric Blake  <eblake@redhat.com>
10839
10840         tests: be robust to ignored SIGPIPE
10841         * tests/test-select-in.sh: Consume all output.
10842         * tests/test-lseek.sh: Check correct exit status, while avoiding
10843         EPIPE.
10844
10845 2010-04-20  Simon Josefsson  <simon@josefsson.org>
10846             Bruno Haible  <bruno@clisp.org>
10847
10848         visibility: Don't use -fvisibility if it leads to a warning.
10849         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
10850         yes, don't pretend that visibility works if it leads to a warning.
10851         Reported by Mike Gran <spk121@yahoo.com>.
10852
10853 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
10854
10855         * build-aux/bootstrap: Use "git -h" for testing for supported options
10856         instead of "git --help".  The short-form option only shows a summary,
10857         and doesn't layout the full man page.  Grep for the full option name
10858         in the summary, too.
10859
10860 2010-04-19  Bruno Haible  <bruno@clisp.org>
10861
10862         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
10863         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
10864         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
10865         mention of RELOCATABLE_STRIP.
10866         Reported by Sylvain Beucler <beuc@beuc.net>.
10867
10868 2010-04-19  Bruno Haible  <bruno@clisp.org>
10869
10870         * lib/diffseq.h: Fix typo in comment.
10871         Reported by Eric Blake.
10872
10873 2010-04-19  Bruno Haible  <bruno@clisp.org>
10874
10875         ioctl: Move autoconf macro to a .m4 file.
10876         * m4/ioctl.m4: New file, extracted from modules/ioctl.
10877         * modules/ioctl (Files): Add it.
10878         (configure.ac): Simply invoke gl_FUNC_IOCTL.
10879         Reported by Ian Beckwith <ianb@erislabs.net>.
10880
10881 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
10882             Bruno Haible  <bruno@clisp.org>
10883
10884         diffseq: Accommodate use-case with abstract arrays.
10885         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
10886         is not defined.
10887         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
10888         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
10889
10890 2010-04-18  Bruno Haible  <bruno@clisp.org>
10891
10892         * doc/posix-headers/stdbool.texi: More precise wording.
10893
10894 2010-04-17  Jim Meyering  <meyering@redhat.com>
10895
10896         maint.mk: use gnu-style indentation in an embedded perl script
10897         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
10898         Rename variable: s/two/last_two_bytes/
10899
10900 2010-04-16  Eric Blake  <eblake@redhat.com>
10901
10902         test-stdbool: skip test that fails with Solaris CC
10903         * tests/test-stdbool.c (f): Skip test that causes compilation
10904         error under buggy C++ compiler.
10905         * lib/stdbool.in.h: Document the limitation.
10906         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
10907
10908         setenv: allow compilation with C++
10909         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
10910         register keyword.
10911
10912         stdint: allow test to pass with C++
10913         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
10914
10915         getopt: allow compilation with C++
10916         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
10917         struct.
10918         * lib/getopt.c (_getopt_internal_r): Use correct type.
10919         Reported by Dagobert Michelson, via Joel E. Denny.
10920
10921 2010-04-16  Bruno Haible  <bruno@clisp.org>
10922
10923         Override netdb.h always.
10924         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
10925         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
10926         Reported by Ludovic Courtès <ludo@gnu.org>.
10927
10928 2010-04-15  Bruno Haible  <bruno@clisp.org>
10929
10930         openpty: Fix mistake from 2010-03-21.
10931         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
10932         Reported by Simon Josefsson.
10933
10934 2010-04-15  Eric Blake  <eblake@redhat.com>
10935
10936         test-forkpty: fix expected signature
10937         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
10938         Reported by Simon Josefsson.
10939
10940 2010-04-15  Jim Meyering  <meyering@redhat.com>
10941
10942         maint.mk: texinfo_suffix_re_: correct the default regexp
10943         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
10944
10945         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
10946         make it configurable via texinfo_suffix_re_.
10947
10948 2010-04-14  Eric Blake  <eblake@redhat.com>
10949
10950         strtok_r: relax license to LGPLv2+
10951         * modules/strtok_r (License): Relax license.
10952         Reported by Matthias Bolte.
10953
10954 2010-04-14  Simon Josefsson  <simon@josefsson.org>
10955
10956         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
10957         version 1.4.4 by default instead of requiring the libgcrypt
10958         version used during build.  This makes it possible to use the
10959         application with older but still binary compatible libgcrypt
10960         versions.
10961
10962 2010-04-13  Eric Blake  <eblake@redhat.com>
10963
10964         getopt-gnu: match recent glibc fixes and posix ruling
10965         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
10966         '+' handling, when requesting extensions.
10967         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
10968         'W;' handling.
10969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
10970         * doc/posix-functions/getopt.texi (getopt): Document this.
10971         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10972         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10973         Likewise.
10974
10975         getopt: merge bug fixes from glibc
10976         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
10977         diagnostics.  Honor '+:' correctly.  Reject ';'.
10978
10979         getopt-posix: detect MacOS bug
10980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
10981         optind when missing a required argument.
10982         * doc/posix-functions/getopt.texi (getopt): Document the bug.
10983         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10984         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10985         Likewise.
10986
10987         getopt-posix: avoid spurious failure on Solaris
10988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
10989         an indicator that setting optind=1 is sufficient for reset.
10990
10991         getopt-posix: avoid spurious failure on FreeBSD
10992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
10993         in POSIX mode, since the m4 test uses it.
10994
10995         gnulib-tool: silence warning on BSD sh
10996         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
10997
10998 2010-04-13  Jim Meyering  <meyering@redhat.com>
10999
11000         doc: users.txt: GNU patch now uses gnulib
11001         * users.txt: Add patch.
11002
11003 2010-04-12  Jim Meyering  <meyering@redhat.com>
11004
11005         maint.mk: generate more concise timing data for syntax-check rules
11006         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
11007         " done" from each line that reports a syntax-check test duration.
11008
11009 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
11010
11011         git-version-gen: use "git update-index..." rather than "git status"
11012         * build-aux/git-version-gen: Use git update-index --refresh, not
11013         "git status".  With some versions of git, "git status" would fail
11014         to update the index and result in an unwarranted "-dirty" suffix.
11015
11016 2010-04-11  Jim Meyering  <meyering@redhat.com>
11017
11018         openat: correct formatting (no semantic change)
11019         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
11020         Suggested by Bruno Haible.
11021
11022 2010-04-11  Bruno Haible  <bruno@clisp.org>
11023
11024         Stricter declaration checking in testdirs.
11025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11026         If for_tests is true, augment AM_CPPFLAGS to define
11027         GNULIB_STRICT_CHECKING.
11028         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
11029         GNULIB_STRICT_CHECKING is defined, verify that the function is
11030         declared.
11031
11032 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
11033             Bruno Haible  <bruno@clisp.org>
11034
11035         libunistring: Improve configure output.
11036         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
11037         Don't say "consider installing GNU libunistring" when checking again
11038         with libiconv.
11039
11040 2010-04-11  Bruno Haible  <bruno@clisp.org>
11041
11042         libunistring: Correct value of $LTLIBUNISTRING.
11043         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
11044         correct the value of $LTLIBUNISTRING.
11045
11046 2010-04-11  Bruno Haible  <bruno@clisp.org>
11047
11048         havelib: Add static libraries to LIBS in the right order.
11049         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
11050         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
11051
11052 2010-04-11  Bruno Haible  <bruno@clisp.org>
11053
11054         libunistring: Detect libunistring also when it depends on libiconv.
11055         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
11056         the second AC_LIB_HAVE_LINKFLAGS invocation.
11057
11058 2010-04-11  James Youngman  <jay@gnu.org>
11059
11060         close-stream: declare local scalars to be "const"
11061         * lib/close-stream.c (close_stream): Make boolean variables const
11062         to document the fact that we set but do not change them.
11063
11064 2010-04-11  Bruno Haible  <bruno@clisp.org>
11065
11066         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
11067
11068 2010-04-11  Jim Meyering  <meyering@redhat.com>
11069
11070         maint.mk: don't include dist-check.mk
11071         * top/maint.mk: Remove bogus include directive.
11072
11073         maint.mk: improve empty-line-at-EOF check
11074         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
11075         solution, rather than tail+Perl-based one.  The latter would read
11076         a few kilobytes from the end of each file, and did not handle empty
11077         files properly.
11078
11079         maint.mk: print the elapsed time for each syntax-check rule
11080         * top/maint.mk (sc_m_rules_): Save start time in a file.
11081         (sc_z_rules_): New rules: remove temp file and print elapsed time.
11082         (local-check): Interpose the .z rules
11083
11084 2010-04-11  Jim Meyering  <meyering@redhat.com>
11085
11086         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
11087         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
11088         empty file with one that ends in an empty line.
11089
11090 2010-04-10  Bruno Haible  <bruno@clisp.org>
11091
11092         mkdir: Make it work on mingw64.
11093         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
11094         * lib/mkdir.c: Update comment.
11095         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
11096
11097 2010-04-10  Bruno Haible  <bruno@clisp.org>
11098
11099         Don't override improved macro from newer autoconf.
11100         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
11101         autoconf >= 2.62.
11102         Reported by Joel E. Denny <jdenny@clemson.edu>.
11103
11104 2010-04-10  Jim Meyering  <meyering@redhat.com>
11105
11106         maint.mk: new syntax-check rule: prohibit empty lines at end of file
11107         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
11108
11109         maint.mk: correct a diagnostic
11110         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
11111         in diagnostic; now use $prohibit.
11112
11113 2010-04-10  Bruno Haible  <address@hidden>
11114
11115         fchownat: Fix a C++ test error on Solaris 8.
11116         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
11117         the function does not exist.
11118
11119 2010-04-10  Bruno Haible  <bruno@clisp.org>
11120
11121         vasnprintf: Add more tests.
11122         * tests/test-vasnprintf-posix.c: Include <errno.h>.
11123         (test_function): Test converting an invalid wide string.
11124
11125         vasnprintf: Correct handling of unconvertible wide string arguments.
11126         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
11127         VASNPRINTF.
11128         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
11129         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
11130         smaller than the expected maximum need for the directive. Set errno to
11131         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
11132         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
11133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
11134         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
11135         * modules/vasnprintf (Files): Add m4/printf.m4.
11136         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11137
11138 2010-04-10  Bruno Haible  <bruno@clisp.org>
11139
11140         vasnprintf: Fix crash in %ls directive.
11141         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
11142         string is passed as argument to %ls, with no precision and no width.
11143         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11144
11145 2010-04-10  Bruno Haible  <bruno@clisp.org>
11146
11147         vasnprintf: Fix multiple test failures on mingw.
11148         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
11149         _snprintf, or snwprintf, not _snwprintf.
11150
11151 2010-04-10  Bruno Haible  <bruno@clisp.org>
11152
11153         write: Fix a C++ test error on mingw.
11154         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
11155
11156 2010-04-10  Bruno Haible  <bruno@clisp.org>
11157
11158         vasnprintf test: Reduce code duplication.
11159         * tests/test-vasnprintf.c (test_function): New function, extracted from
11160         test_vasnprintf.
11161         (test_vasnprintf, test_asnprintf): Invoke it.
11162
11163 2010-04-10  Bruno Haible  <bruno@clisp.org>
11164
11165         strnlen: Fix warning in C++ mode on MacOS X.
11166         * lib/string.in.h (strnlen): Use the modern idiom.
11167         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
11168         defining strnlen as a macro already in <config.h>.
11169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11170         REPLACE_STRNLEN.
11171         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
11172         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11173
11174 2010-04-08  James Youngman  <jay@gnu.org>
11175
11176         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
11177         the example.
11178
11179 2010-04-09  Jim Meyering  <meyering@redhat.com>
11180
11181         maint.mk: print better diagnostic when there is no $(_hv_file)
11182         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
11183         announce that when $(_hv_file) (aka help-version) does not exist.
11184
11185         init.sh: run tr in the "C" locale to avoid multibyte interpretation
11186         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
11187         not try to interpret its random input bytes.  Jarno Rajahalme reported
11188         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
11189         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
11190         (mktempd_): Likewise, just in case.
11191
11192         ftruncate: add two years to projected module removal date: 2012
11193         * m4/ftruncate.m4: Adjust comments.
11194
11195         ftruncate: mark module as obsolete; even MinGW provides it, now
11196         * modules/ftruncate (Status): Obsolete.
11197         (Notice): Say that.
11198         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
11199         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
11200
11201 2010-04-08  Bruno Haible  <bruno@clisp.org>
11202
11203         Fix side effects from tests-related modules.
11204         * modules/dprintf-posix (Comment): New section.
11205         * modules/fprintf-posix (Comment): Likewise.
11206         * modules/obstack-printf-posix (Comment): Likewise.
11207         * modules/printf-posix (Comment): Likewise.
11208         * modules/snprintf-posix (Comment): Likewise.
11209         * modules/sprintf-posix (Comment): Likewise.
11210         * modules/vasnprintf-posix (Comment): Likewise.
11211         * modules/vasprintf-posix (Comment): Likewise.
11212         * modules/vdprintf-posix (Comment): Likewise.
11213         * modules/vfprintf-posix (Comment): Likewise.
11214         * modules/vprintf-posix (Comment): Likewise.
11215         * modules/vsnprintf-posix (Comment): Likewise.
11216         * modules/vsprintf-posix (Comment): Likewise.
11217         * modules/xprintf-posix (Comment): Likewise.
11218         * modules/xvasprintf-posix (Comment): Likewise.
11219         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
11220         * modules/floorf-tests (Depends-on): Likewise.
11221         * modules/round-tests (Depends-on): Likewise.
11222         * modules/roundf-tests (Depends-on): Likewise.
11223         * modules/trunc-tests (Depends-on): Likewise.
11224         * modules/truncf-tests (Depends-on): Likewise.
11225         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
11226         'fprintf-posix' module is not present.
11227         * tests/test-floorf2.c (check): Likewise.
11228         * tests/test-trunc2.c (check): Likewise.
11229         * tests/test-truncf2.c (check): Likewise.
11230         * tests/test-round2.c (equal): Likewise.
11231         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11232
11233 2010-04-07  Karl Berry  <karl@gnu.org>
11234
11235         * config/srclist.txt,
11236         * config/srclistvars.sh,
11237         * config/srclist-update: doc fixes.
11238
11239 2010-04-07  Jim Meyering  <meyering@redhat.com>
11240
11241         maint.mk: add a PATH crosschecking syntax-check rule
11242         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
11243         Useful if you use a test like the one in help-version (coreutils,
11244         diffutils, grep, gzip) that ensures $(VERSION) matches what is
11245         printed by prog --version.
11246
11247 2010-04-06  Bruno Haible  <bruno@clisp.org>
11248
11249         Fix link error on mingw.
11250         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
11251         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
11252
11253 2010-04-06  Bruno Haible  <bruno@clisp.org>
11254
11255         Assume rmdir exists.
11256         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
11257
11258 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
11259
11260         doc: update users.txt
11261         * users.txt: Add gcal.
11262
11263 2010-04-06  Jim Meyering  <meyering@redhat.com>
11264
11265         init.sh: simply unset TMPDIR rather than risking env -i
11266         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
11267         although it probably works fine on all Unix-based systems, some
11268         systems (Cygwin?) cannot tolerate a totally cleared environment.
11269         Suggestion from Eric Blake.
11270
11271 2010-04-06  Jim Meyering  <meyering@redhat.com>
11272
11273         init.sh: portability fix: use env's POSIX-specified -i option not -u
11274         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
11275         than unportable env -u.  Solaris 5.11's env lacks support for -u.
11276
11277 2010-04-05  Bruno Haible  <bruno@clisp.org>
11278
11279         btowc: Work around Cygwin 1.7.2 bug.
11280         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
11281         does not map NUL to 0.
11282         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
11283
11284 2010-04-05  Bruno Haible  <bruno@clisp.org>
11285
11286         Make the multithread modules work on Cygwin 1.7.2.
11287         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
11288         imported symbols can be declared weak, so that it returns "no" on
11289         Cygwin 1.7.2.
11290
11291 2010-04-05  Bruno Haible  <bruno@clisp.org>
11292
11293         Use the module 'strncat'.
11294         * modules/unistr/u8-strncat (Depends-on): Add strncat.
11295
11296         Tests for module 'strncat'.
11297         * modules/strncat-tests: New file.
11298         * tests/test-strncat.c: New file.
11299
11300         New module 'strncat'.
11301         * lib/string.in.h (strncat): New declaration.
11302         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
11303         * m4/strncat.m4: New file, based on m4/memchr.m4.
11304         * modules/strncat: New file.
11305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
11306         is declared.
11307         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
11308         REPLACE_STRNCAT.
11309         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
11310         REPLACE_STRNCAT.
11311         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
11312         module.
11313         * tests/test-string-c++.cc: Check signature of strncat.
11314
11315 2010-04-05  Jim Meyering  <meyering@redhat.com>
11316
11317         xstrtoumax-tests: convert to use init.sh
11318         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
11319         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11320         Use Exit, not exit.
11321         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11322
11323         xstrtoimax-tests: convert to use init.sh
11324         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11325         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11326         Use Exit, not exit.
11327         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11328
11329 2010-04-05  Bruno Haible  <bruno@clisp.org>
11330
11331         sys_socket: Avoid #define replacements in C++ mode.
11332         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
11333         warning to the function if possible, rather than #defining the symbol
11334         to a dysfunctional alias.
11335
11336 2010-04-05  Bruno Haible  <bruno@clisp.org>
11337
11338         fseeko: Fix C++ test error on mingw.
11339         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
11340         gl_FUNC_FSEEKO.
11341         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
11342         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
11343         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
11344         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
11345
11346 2010-04-05  Bruno Haible  <bruno@clisp.org>
11347
11348         duplocale: Improve test output.
11349         * tests/test-duplocale.c (main): Print reason for skipped test.
11350
11351 2010-04-05  Bruno Haible  <bruno@clisp.org>
11352
11353         Assume rmdir exists.
11354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
11355         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11356
11357 2010-04-05  Bruno Haible  <bruno@clisp.org>
11358
11359         Fix link error on Solaris 8 with cc.
11360         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
11361
11362 2010-04-05  Bruno Haible  <bruno@clisp.org>
11363
11364         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11365         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
11366
11367 2010-04-05  Bruno Haible  <bruno@clisp.org>
11368
11369         vasprintf: Update documentation.
11370         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
11371
11372 2010-04-05  Bruno Haible  <bruno@clisp.org>
11373
11374         ptsname: Improve test.
11375         * tests/test-ptsname.c (main): Also try the various master names of BSD
11376         systems.
11377
11378 2010-04-05  Bruno Haible  <bruno@clisp.org>
11379
11380         memchr: Avoid a possible C++ test error.
11381         * lib/string.in.h (memchr): Provide declaration if function is missing.
11382         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
11383         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
11384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
11385         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
11386
11387 2010-04-05  Bruno Haible  <bruno@clisp.org>
11388
11389         strtok_r: Improve idiom.
11390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
11391         AC_LIBOBJ is used.
11392
11393 2010-04-05  Bruno Haible  <bruno@clisp.org>
11394
11395         strdup: Improve idiom.
11396         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
11397         AC_LIBOBJ is used.
11398         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
11399         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
11400         when AC_LIBOBJ is used.
11401
11402 2010-04-05  Bruno Haible  <bruno@clisp.org>
11403
11404         mbsinit, mbrtowc, wcrtomb: Improve idioms.
11405         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
11406         don't set REPLACE_MBSINIT to 1.
11407         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
11408         don't set REPLACE_MBRTOWC to 1.
11409         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
11410         exist, don't set REPLACE_MBSRTOWCS to 1.
11411         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
11412         exist, don't set REPLACE_MBSNRTOWCS to 1.
11413         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
11414         don't set REPLACE_WCRTOMB to 1.
11415         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
11416         exist, don't set REPLACE_WCSRTOMBS to 1.
11417         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
11418         exist, don't set REPLACE_WCSNRTOMBS to 1.
11419
11420 2010-04-05  Bruno Haible  <bruno@clisp.org>
11421
11422         ldexpl: Improve idiom.
11423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
11424         make sure to set HAVE_DECL_LDEXPL to 0.
11425
11426 2010-04-05  Jim Meyering  <meyering@redhat.com>
11427
11428         xstrtol-tests: convert to use init.sh
11429         * modules/xstrtol-tests (Files): Add tests/init.sh.
11430         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11431         Use Exit, not exit.
11432         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11433
11434         atexit-tests: convert to use init.sh
11435         * modules/atexit-tests (Files): Add tests/init.sh.
11436         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
11437         Use Exit, not exit.
11438         Remove uses of $EXEEXT and "./" to run a program in the current dir.
11439
11440         init.sh: fix typo
11441         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
11442
11443         init.sh: make it easier for a test script to write to the tty, ...
11444         when using automake's parallel-tests mode.
11445         * tests/init.sh (stderr_fileno_): Define overridable variable.
11446         (warn_): New function, to use it.
11447         (fail_, skip_, framework_failure_): Use warn_.
11448
11449 2010-04-04  Bruno Haible  <bruno@clisp.org>
11450
11451         btowc: Avoid warning.
11452         * lib/btowc.c: Include <stdlib.h>.
11453         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
11454
11455 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11456             Bruno Haible  <bruno@clisp.org>
11457
11458         wchar: Port to NetBSD 1.5.
11459         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
11460         * lib/wctype.in.h (WEOF): Likewise.
11461
11462 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
11463             Bruno Haible  <bruno@clisp.org>
11464
11465         Port extended stdio to NetBSD 1.5.
11466         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
11467         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
11468         older.
11469
11470 2010-04-04  Bruno Haible  <bruno@clisp.org>
11471
11472         string: Remove unused substitution.
11473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
11474         HAVE_DECL_STRERROR.
11475         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
11476
11477 2010-04-04  Bruno Haible  <bruno@clisp.org>
11478
11479         strtod: Avoid a possible C++ test error.
11480         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
11481         set REPLACE_STRTOD.
11482
11483 2010-04-04  Bruno Haible  <bruno@clisp.org>
11484
11485         strerror: Update documentation.
11486         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
11487
11488 2010-04-04  Bruno Haible  <bruno@clisp.org>
11489
11490         stdio: Fix some C++ test errors on Solaris 8 with GCC.
11491         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
11492         _GL_CXXALIAS_SYS_CAST.
11493
11494 2010-04-04  Bruno Haible  <bruno@clisp.org>
11495
11496         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
11497         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
11498         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
11499         REPLACE_FREXPL to 1.
11500         * doc/posix-functions/frexpl.texi: Update documentation.
11501
11502 2010-04-04  Bruno Haible  <bruno@clisp.org>
11503
11504         math: Fix some C++ test errors on Solaris 8 and Cygwin.
11505         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
11506
11507 2010-04-04  Bruno Haible  <bruno@clisp.org>
11508
11509         Implement nanosleep for native Windows.
11510         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
11511
11512 2010-04-04  Bruno Haible  <bruno@clisp.org>
11513
11514         math: Fix some C++ test errors on Solaris 8.
11515         * lib/math.in.h (truncf, trunc): Use simpler idiom.
11516
11517 2010-04-04  Bruno Haible  <bruno@clisp.org>
11518
11519         math: Fix some C++ test errors on Cygwin.
11520         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
11521         truncl): Provide declaration if the system does not have it.
11522         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
11523         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
11524         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
11525         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
11526         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
11527         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
11528         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
11529         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
11530         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
11531         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
11532         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
11533         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
11534         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
11535         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
11536         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
11537         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
11538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
11539         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11540         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11541         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
11542         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
11543         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
11544
11545 2010-04-04  Bruno Haible  <bruno@clisp.org>
11546
11547         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
11548         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11549         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11550         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11551         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11552         * m4/isinf.m4 (gl_ISINF): Likewise.
11553         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11554
11555 2010-04-04  Bruno Haible  <bruno@clisp.org>
11556
11557         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
11558         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11559
11560 2010-04-04  Bruno Haible  <bruno@clisp.org>
11561
11562         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
11563         * modules/tmpfile (configure.ac): Update.
11564
11565         tmpfile: Fix C++ test error on mingw.
11566         * lib/stdio.in.h (tmpfile): New declaration.
11567         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
11568         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
11569         * modules/tmpfile (Depends-on): Add stdio.
11570         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11571         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
11572         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
11573         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
11574         REPLACE_TMPFILE.
11575         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
11576
11577 2010-04-04  Bruno Haible  <bruno@clisp.org>
11578
11579         ioctl: Fix C++ test error on mingw.
11580         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
11581         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
11582         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
11583
11584 2010-04-03  Bruno Haible  <bruno@clisp.org>
11585
11586         wcwidth: Fix C++ test error on mingw.
11587         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
11588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
11589         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
11590
11591 2010-04-03  Bruno Haible  <bruno@clisp.org>
11592
11593         nanosleep: Fix C++ test error on mingw.
11594         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
11595         * lib/time.in.h (nanosleep): Use modern idiom.
11596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
11597         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
11598         REPLACE_NANOSLEEP to 1.
11599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
11600         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
11601
11602 2010-04-03  Bruno Haible  <bruno@clisp.org>
11603
11604         strptime: Fix C++ test error on mingw.
11605         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
11606         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
11607         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
11608         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
11609         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
11610         not REPLACE_STRPTIME.
11611         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
11612         REPLACE_STRPTIME.
11613
11614 2010-04-03  Bruno Haible  <bruno@clisp.org>
11615
11616         timegm: Fix C++ test error on mingw.
11617         * lib/time.in.h (timegm): Use modern idiom.
11618         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
11619         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
11620         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
11621         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
11622
11623 2010-04-03  Bruno Haible  <bruno@clisp.org>
11624
11625         timegm: Assume declaration if function exists.
11626         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
11627         if it exists. Don't clobber ac_cv_func_timegm.
11628
11629 2010-04-03  Bruno Haible  <bruno@clisp.org>
11630
11631         time_r: Fix C++ test error on mingw.
11632         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
11633         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
11634         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
11635         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
11636         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
11637
11638 2010-04-03  Bruno Haible  <bruno@clisp.org>
11639
11640         time_r: Minor updates.
11641         * modules/time_r (Description): Mention the provided functions.
11642         * lib/time_r.c: Don't include <string.h>.
11643         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
11644         * doc/posix-functions/localtime_r.texi: Likewise.
11645
11646 2010-04-03  Bruno Haible  <bruno@clisp.org>
11647
11648         time: Fix regression introduced on 2010-03-08.
11649         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
11650         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
11651
11652 2010-04-03  Jim Meyering  <meyering@redhat.com>
11653
11654         maint.mk: don't silently disable project-specific syntax-check rules
11655         * top/maint.mk (_prohibit_regexp): Define, to help people realize
11656         that they need to convert their project-specific syntax-check rules
11657         to use the new _sc_search_regexp.
11658
11659 2010-04-03  Bruno Haible  <bruno@clisp.org>
11660
11661         fchdir: Fix regression introduced on 2010-03-08.
11662         * lib/unistd.in.h (fchdir): Fix declaration.
11663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
11664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
11665         REPLACE_FCHDIR.
11666         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
11667         REPLACE_FCHDIR.
11668
11669 2010-04-03  Bruno Haible  <bruno@clisp.org>
11670
11671         getpagesize: Fix C++ test error on mingw.
11672         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
11673         system does not declare the function.
11674         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
11675         declared.
11676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11677         HAVE_DECL_GETPAGESIZE.
11678         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
11679
11680 2010-04-03  Bruno Haible  <bruno@clisp.org>
11681
11682         stdio: Make C++ tests work on mingw.
11683         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
11684         does not declare the function.
11685
11686 2010-04-03  Bruno Haible  <bruno@clisp.org>
11687
11688         ftello: Fix C++ test error on mingw.
11689         * lib/stdio.in.h (ftello): Use modern idiom.
11690         * lib/ftello.c (ftello): Renamed from rpl_ftello.
11691         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
11692         is missing and that it needs to be replaced.
11693         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
11694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
11695         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
11696
11697 2010-04-03  Bruno Haible  <bruno@clisp.org>
11698
11699         fseeko: Fix C++ test error on mingw.
11700         * lib/stdio.in.h (fseeko): Use modern idiom.
11701         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
11702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
11703         is missing and that it needs to be replaced.
11704         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
11705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
11706         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
11707
11708 2010-04-03  Bruno Haible  <bruno@clisp.org>
11709
11710         mkstemp: Fix C++ test error on mingw.
11711         * lib/stdlib.in.h (mkstemp): Use modern idiom.
11712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
11713         function is missing and that it needs to be replaced.
11714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
11715         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
11716
11717 2010-04-03  Bruno Haible  <bruno@clisp.org>
11718
11719         stpncpy: Fix C++ test error on mingw.
11720         * lib/string.in.h (stpncpy): Use modern idiom.
11721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
11722         function is missing and that it needs to be replaced.
11723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11724         REPLACE_STPNCPY.
11725         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
11726
11727 2010-04-03  Bruno Haible  <bruno@clisp.org>
11728
11729         sys_stat: Fix C++ test error on mingw.
11730         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
11731         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
11732
11733 2010-04-03  Bruno Haible  <bruno@clisp.org>
11734
11735         pty: Update doc.
11736         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
11737
11738 2010-04-03  Bruno Haible  <bruno@clisp.org>
11739
11740         unistd: Fix C++ test error on mingw.
11741         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
11742
11743 2010-04-03  Bruno Haible  <bruno@clisp.org>
11744
11745         Update doc regarding mingw.
11746         * doc/glibc-functions/openpty.texi: Update regarding mingw.
11747         * doc/glibc-functions/login_tty.texi: Likewise.
11748         * doc/glibc-functions/forkpty.texi: Likewise.
11749
11750 2010-04-03  Bruno Haible  <bruno@clisp.org>
11751
11752         stdlib: Avoid compilation failure of c-strtold on mingw.
11753         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
11754
11755 2010-04-03  Bruno Haible  <bruno@clisp.org>
11756
11757         locale: Make C++ tests work on Cygwin and mingw.
11758         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
11759         cannot provide the function.
11760         Reported by Simon Josefsson.
11761
11762 2010-04-03  Bruno Haible  <bruno@clisp.org>
11763
11764         localename: Port to MacOS X 10.6.
11765         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
11766         memory layout of the locales in MacOS X 10.6 as well.
11767         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
11768
11769 2010-04-02  Bruno Haible  <bruno@clisp.org>
11770
11771         gnulib-tool: Ensure that long-running tests are executed last.
11772         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
11773         running tests after the one for the other tests.
11774
11775 2010-04-02  Bruno Haible  <bruno@clisp.org>
11776
11777         gnulib-tool: Ensure the tests in the main directory are executed first.
11778         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
11779         start with the current directory.
11780
11781 2010-04-02  Bruno Haible  <bruno@clisp.org>
11782
11783         Tests for module 'havelib', moved here from GNU gettext.
11784         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
11785         modifications.
11786         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
11787         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
11788         with modifications.
11789         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
11790         modifications.
11791         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
11792         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
11793         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
11794         with modifications.
11795         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
11796         with modifications.
11797         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
11798         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
11799         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
11800         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
11801         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
11802         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
11803         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
11804         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
11805         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
11806         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
11807         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
11808         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
11809         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
11810         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
11811         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
11812         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
11813         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
11814         with modifications.
11815         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
11816         with modifications.
11817         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
11818         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
11819         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
11820         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
11821         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
11822         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
11823         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
11824         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
11825         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
11826         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
11827         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
11828         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
11829         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
11830         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
11831         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
11832         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
11833         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
11834         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
11835         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
11836         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
11837         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
11838         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
11839         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
11840         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
11841         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
11842         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
11843         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
11844         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
11845         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
11846         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
11847         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
11848         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
11849         * tests/havelib/rpathx/rpathx.c: New file, from
11850         gettext/autoconf-lib-link.
11851         * tests/havelib/rpathx/Makefile.am: New file, from
11852         gettext/autoconf-lib-link.
11853         * tests/havelib/rpathx/configure.ac: New file, from
11854         gettext/autoconf-lib-link with modifications.
11855         * tests/havelib/rpathy/rpathy.c: New file, from
11856         gettext/autoconf-lib-link.
11857         * tests/havelib/rpathy/Makefile.am: New file, from
11858         gettext/autoconf-lib-link.
11859         * tests/havelib/rpathy/configure.ac: New file, from
11860         gettext/autoconf-lib-link with modifications.
11861         * tests/havelib/rpathz/rpathz.c: New file, from
11862         gettext/autoconf-lib-link.
11863         * tests/havelib/rpathz/Makefile.am: New file, from
11864         gettext/autoconf-lib-link.
11865         * tests/havelib/rpathz/configure.ac: New file, from
11866         gettext/autoconf-lib-link with modifications.
11867         * tests/havelib/rpathlx/usex.c: New file, from
11868         gettext/autoconf-lib-link.
11869         * tests/havelib/rpathlx/Makefile.am: New file, from
11870         gettext/autoconf-lib-link.
11871         * tests/havelib/rpathlx/configure.ac: New file, from
11872         gettext/autoconf-lib-link with modifications.
11873         * tests/havelib/rpathly/usey.c: New file, from
11874         gettext/autoconf-lib-link.
11875         * tests/havelib/rpathly/Makefile.am: New file, from
11876         gettext/autoconf-lib-link.
11877         * tests/havelib/rpathly/configure.ac: New file, from
11878         gettext/autoconf-lib-link with modifications.
11879         * tests/havelib/rpathlz/usez.c: New file, from
11880         gettext/autoconf-lib-link.
11881         * tests/havelib/rpathlz/Makefile.am: New file, from
11882         gettext/autoconf-lib-link.
11883         * tests/havelib/rpathlz/configure.ac: New file, from
11884         gettext/autoconf-lib-link with modifications.
11885         * tests/havelib/rpathlyx/usey.c: New file, from
11886         gettext/autoconf-lib-link.
11887         * tests/havelib/rpathlyx/Makefile.am: New file, from
11888         gettext/autoconf-lib-link.
11889         * tests/havelib/rpathlyx/configure.ac: New file, from
11890         gettext/autoconf-lib-link with modifications.
11891         * tests/havelib/rpathlzyx/usez.c: New file, from
11892         gettext/autoconf-lib-link.
11893         * tests/havelib/rpathlzyx/Makefile.am: New file, from
11894         gettext/autoconf-lib-link.
11895         * tests/havelib/rpathlzyx/configure.ac: New file, from
11896         gettext/autoconf-lib-link with modifications.
11897         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
11898         with modifications.
11899
11900 2010-04-02  Bruno Haible  <bruno@clisp.org>
11901
11902         gnulib-tool: Create distributed built sources also for the tests.
11903         * gnulib-tool (func_create_testdir): Also generate distributed built
11904         sources in the tests directory.
11905
11906 2010-04-02  Bruno Haible  <bruno@clisp.org>
11907
11908         gnulib-tool: Obey user's environment variables.
11909         * gnulib-tool (func_create_testdir): When creating built sources,
11910         respect the environment variables for autoconf, automake, etc. given by
11911         the user.
11912
11913 2010-04-02  Bruno Haible  <bruno@clisp.org>
11914
11915         gnulib-tool: Provide the value of --m4-base to modules.
11916         * gnulib-tool (func_import, func_create_testdir): Emit a definition
11917         of gl_m4_base.
11918
11919 2010-04-02  Eric Blake  <eblake@redhat.com>
11920
11921         maint.mk: fix some fallout
11922         * NEWS: Document the incompatible change, and its effect on cfg.mk.
11923         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
11924
11925 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11926
11927         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
11928         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
11929         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
11930         (sc_cast_of_x_alloc_return_value): Likewise.
11931         (sc_cast_of_alloca_return_value): Likewise.
11932         (sc_space_tab): Likewise.
11933         (sc_prohibit_atoi_atof): Likewise.
11934         (sc_prohibit_magic_number_exit): Likewise.
11935         (sc_error_exit_success): Likewise.
11936         (sc_file_system): Likewise.
11937         (sc_prohibit_have_config_h): Likewise.
11938         (sc_require_config_h): Likewise.
11939         (sc_prohibit_HAVE_MBRTOWC): Likewise.
11940         (sc_obsolete_symbols): Likewise.
11941         (sc_changelog): Likewise.
11942         (sc_program_name): Likewise.
11943         (sc_the_the): Likewise.
11944         (sc_trailing_blank): Likewise.
11945         (sc_two_space_separator_in_usage): Likewise.
11946         (sc_useless_cpp_parens): Likewise.
11947         (sc_GPL_version): Likewise.
11948         (sc_GFDL_version): Likewise.
11949         (sc_texinfo_acronym): Likewise.
11950         (sc_prohibit_cvs_keyword): Likewise.
11951         (sc_prohibit_stat_st_blocks): Likewise.
11952         (sc_prohibit_S_IS_definition): Likewise.
11953         (sc_redundant_const): Likewise.
11954         (sc_makefile_TAB_only_indentation): Likewise.
11955         (sc_m4_quote_check): Likewise.
11956         (sc_makefile_path_separator_check): Likewise.
11957         (sc_copyright_check): Likewise.
11958         (sc_Wundef_boolean): Likewise.
11959         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11960
11961         maint.mk: match 0 or more whitespace-before-function-call '('
11962         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
11963         that have zero or two-and-more spaces between the function name
11964         and the open parenthesis.
11965         (sc_error_message_warn_fatal): Likewise.
11966         (sc_error_message_uppercase): Likewise.
11967         (sc_error_message_period): Likewise.
11968
11969 2010-03-31  Eric Blake  <eblake@redhat.com>
11970
11971         maint.mk: check for [ as well as test
11972         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
11973         Based on a libvirt report by Matthias Bolte.
11974
11975         gnumakefile: don't squelch _version output
11976         * top/GNUmakefile (_version): Create one-shot dependency rather
11977         than using $(shell) when version must be regenerated.
11978         (_autoreconf): Run verbosely, by default.
11979
11980         sys_time: avoid compiler warnings
11981         * lib/sys_time.in.h (includes): Ensure gcc pragma is
11982         unconditional, fixing regression from 2010-03-29.
11983         Reported by Simon Josefsson.
11984
11985 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11986
11987         maint.mk: s/_header_without_use/_sc_header_without_use/
11988         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
11989         (sc_prohibit_assert_without_use): Use the new name.
11990         (sc_prohibit_close_stream_without_use): Likewise.
11991         (sc_prohibit_getopt_without_use): Likewise.
11992         (sc_prohibit_quotearg_without_use): Likewise.
11993         (sc_prohibit_quote_without_use): Likewise.
11994         (sc_prohibit_long_options_without_use): Likewise.
11995         (sc_prohibit_inttostr_without_use): Likewise.
11996         (sc_prohibit_ignore_value_without_use): Likewise.
11997         (sc_prohibit_error_without_use): Likewise.
11998         (sc_prohibit_xalloc_without_use): Likewise.
11999         (sc_prohibit_hash_without_use): Likewise.
12000         (sc_prohibit_hash_pjw_without_use): Likewise.
12001         (sc_prohibit_safe_read_without_use): Likewise.
12002         (sc_prohibit_argmatch_without_use): Likewise.
12003         (sc_prohibit_canonicalize_without_use): Likewise.
12004         (sc_prohibit_root_dev_ino_without_use): Likewise.
12005         (sc_prohibit_openat_without_use): Likewise.
12006         (sc_prohibit_c_ctype_without_use): Likewise.
12007         (sc_prohibit_signal_without_use): Likewise.
12008         (sc_prohibit_intprops_without_use): Likewise.
12009
12010 2010-03-30  Eric Blake  <eblake@redhat.com>
12011
12012         maint: improve module indicators
12013         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
12014         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
12015         columns, and avoid extra macro expansion.
12016
12017         fdopendir: work around FreeBSD bug
12018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12019         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
12020         * modules/dirent (Makefile.am): Substitute it.
12021         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
12022         declaration.
12023         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
12024         fix.
12025         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12026
12027 2010-03-29  Bruno Haible  <bruno@clisp.org>
12028
12029         Emit #pragma system_header after the inclusion guard, not before.
12030         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
12031         guard that spans the entire file, not before. This enables an
12032         optimization in GCC's preprocessor.
12033         * lib/ctype.in.h: Likewise.
12034         * lib/dirent.in.h: Likewise.
12035         * lib/errno.in.h: Likewise.
12036         * lib/float.in.h: Likewise.
12037         * lib/getopt.in.h: Likewise.
12038         * lib/iconv.in.h: Likewise.
12039         * lib/langinfo.in.h: Likewise.
12040         * lib/locale.in.h: Likewise.
12041         * lib/math.in.h: Likewise.
12042         * lib/netdb.in.h: Likewise.
12043         * lib/netinet_in.in.h: Likewise.
12044         * lib/pty.in.h: Likewise.
12045         * lib/sched.in.h: Likewise.
12046         * lib/se-selinux.in.h: Likewise.
12047         * lib/search.in.h: Likewise.
12048         * lib/spawn.in.h: Likewise.
12049         * lib/stdarg.in.h: Likewise.
12050         * lib/stdint.in.h: Likewise.
12051         * lib/string.in.h: Likewise.
12052         * lib/strings.in.h: Likewise.
12053         * lib/sys_file.in.h: Likewise.
12054         * lib/sys_ioctl.in.h: Likewise.
12055         * lib/sys_time.in.h: Likewise.
12056         * lib/sys_times.in.h: Likewise.
12057         * lib/sys_utsname.in.h: Likewise.
12058         * lib/sys_wait.in.h: Likewise.
12059         * lib/sysexits.in.h: Likewise.
12060         * lib/wctype.in.h: Likewise.
12061
12062 2010-03-28  James Youngman  <jay@gnu.org>
12063
12064         save-cwd: don't leak a file descriptor when the caller execs.
12065         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
12066         saved file descriptor.
12067         * modules/save-cwd (Depends-on): Depend on cloexec.
12068
12069 2010-03-29  Bruno Haible  <bruno@clisp.org>
12070
12071         Remove vestiges of fts-lgpl module.
12072         * lib/fts_.h: Assume GNULIB_FTS is 1.
12073         * lib/fts.c: Likewise.
12074         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12075
12076 2010-03-28  Bruno Haible  <bruno@clisp.org>
12077
12078         Fix definition of tests witness macro.
12079         * gnulib-tool (func_import): Fix definition of witness macro.
12080
12081 2010-03-28  Bruno Haible  <bruno@clisp.org>
12082
12083         Fix ioctl's protoype on glibc systems.
12084         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
12085         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
12086         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
12087         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
12088         signature. If not, arrange to replace the ioctl function.
12089         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12090         REPLACE_IOCTL.
12091         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12092         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
12093         Reported by Ludovic Courtès <ludo@gnu.org>.
12094
12095 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
12096
12097         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
12098         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
12099         made it so grep -r --include=GLOB* ... did not work.
12100
12101 2010-03-26  Jim Meyering  <meyering@redhat.com>
12102             Eric Blake  <eblake@redhat.com>
12103
12104         maint.mk: prohibit use of test's -o and -a operators
12105         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
12106
12107 2010-03-28  Bruno Haible  <bruno@clisp.org>
12108
12109         Remove unused GNULIB_XYZ macro definitions.
12110         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
12111         invocation.
12112
12113 2010-03-28  Bruno Haible  <bruno@clisp.org>
12114
12115         Mark privileged tests modules.
12116         * modules/idpriv-drop-tests (Status): New section.
12117         * modules/idpriv-droptemp-tests (Status): New section.
12118
12119 2010-03-28  Bruno Haible  <bruno@clisp.org>
12120
12121         Split C++ tests into separate tests modules.
12122         * modules/dirent-c++-tests: New file, extracted from
12123         modules/dirent-tests.
12124         * modules/dirent-tests: Depend on it.
12125         * modules/fcntl-h-c++-tests: New file, extracted from
12126         modules/fcntl-h-tests.
12127         * modules/fcntl-h-tests: Depend on it.
12128         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
12129         * modules/glob-tests: Depend on it.
12130         * modules/iconv-h-c++-tests: New file, extracted from
12131         modules/iconv-h-tests.
12132         * modules/iconv-h-tests: Depend on it.
12133         * modules/langinfo-c++-tests: New file, extracted from
12134         modules/langinfo-tests.
12135         * modules/langinfo-tests: Depend on it.
12136         * modules/locale-c++-tests: New file, extracted from
12137         modules/locale-tests.
12138         * modules/locale-tests: Depend on it.
12139         * modules/math-c++-tests: New file, extracted from modules/math-tests.
12140         * modules/math-tests: Depend on it.
12141         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
12142         * modules/pty-tests: Depend on it.
12143         * modules/search-c++-tests: New file, extracted from
12144         modules/search-tests.
12145         * modules/search-tests: Depend on it.
12146         * modules/signal-c++-tests: New file, extracted from
12147         modules/signal-tests.
12148         * modules/signal-tests: Depend on it.
12149         * modules/spawn-c++-tests: New file, extracted from
12150         modules/spawn-tests.
12151         * modules/spawn-tests: Depend on it.
12152         * modules/stdio-c++-tests: New file, extracted from
12153         modules/stdio-tests.
12154         * modules/stdio-tests: Depend on it.
12155         * modules/stdlib-c++-tests: New file, extracted from
12156         modules/stdlib-tests.
12157         * modules/stdlib-tests: Depend on it.
12158         * modules/string-c++-tests: New file, extracted from
12159         modules/string-tests.
12160         * modules/string-tests: Depend on it.
12161         * modules/sys_ioctl-c++-tests: New file, extracted from
12162         modules/sys_ioctl-tests.
12163         * modules/sys_ioctl-tests: Depend on it.
12164         * modules/sys_select-c++-tests: New file, extracted from
12165         modules/sys_select-tests.
12166         * modules/sys_select-tests: Depend on it.
12167         * modules/sys_socket-c++-tests: New file, extracted from
12168         modules/sys_socket-tests.
12169         * modules/sys_socket-tests: Depend on it.
12170         * modules/sys_stat-c++-tests: New file, extracted from
12171         modules/sys_stat-tests.
12172         * modules/sys_stat-tests: Depend on it.
12173         * modules/sys_time-c++-tests: New file, extracted from
12174         modules/sys_time-tests.
12175         * modules/sys_time-tests: Depend on it.
12176         * modules/time-c++-tests: New file, extracted from modules/time-tests.
12177         * modules/time-tests: Depend on it.
12178         * modules/unistd-c++-tests: New file, extracted from
12179         modules/unistd-tests.
12180         * modules/unistd-tests: Depend on it.
12181         * modules/wchar-c++-tests: New file, extracted from
12182         modules/wchar-tests.
12183         * modules/wchar-tests: Depend on it.
12184         * modules/wctype-c++-tests: New file, extracted from
12185         modules/wctype-tests.
12186         * modules/wctype-tests: Depend on it.
12187         Reported by Simon Josefsson.
12188
12189 2010-03-28  Bruno Haible  <bruno@clisp.org>
12190
12191         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
12192         * gnulib-tool (func_exists_module): New function, extracted from
12193         func_verify_module.
12194         (func_verify_module): Use it.
12195         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
12196         'foo' only if 'foo' exists.
12197         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
12198         module.
12199
12200 2010-03-28  Bruno Haible  <bruno@clisp.org>
12201
12202         gnulib-tool: Add support for special categories of tests.
12203         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
12204         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
12205         (func_usage): Document them.
12206         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
12207         inc_unportable_tests, inc_all_tests): New variables.
12208         (func_acceptable): Consider these variables.
12209         (func_modules_transitive_closure): Make it work when the 'Status' field
12210         consists of multiple words.
12211         (func_import): Store and restore the values of inc_cxx_tests,
12212         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
12213         inc_all_tests in gnulib-comp.m4.
12214         (func_create_testdir): Set inc_all_tests to true.
12215         * doc/gnulib.texi (Extra tests modules): New section.
12216         Suggested by Jim Meyering.
12217
12218 2010-03-28  Bruno Haible  <bruno@clisp.org>
12219
12220         ansi-c++-opt: Allow turning off the C++ build by default.
12221         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
12222         gl_CXX_CHOICE_DEFAULT_NO is defined.
12223         Requested by Eric Blake.
12224
12225 2010-03-28  Bruno Haible  <bruno@clisp.org>
12226
12227         unistd: Avoid #define replacements in C++ mode.
12228         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12229         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12230         setsockopt, shutdown, select): In C++, attach a warning to the function
12231         if possible, rather than #defining the symbol to a dysfunctional alias.
12232         Reported by John W. Eaton <jwe@gnu.org>.
12233
12234 2010-03-28  Bruno Haible  <bruno@clisp.org>
12235
12236         Fix link errors on mingw.
12237         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
12238         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
12239         $(LIBSOCKET).
12240         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
12241         $(LIBSOCKET).
12242
12243 2010-03-28  Bruno Haible  <bruno@clisp.org>
12244             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12245
12246         lib-ignore: Determine different options for different compilers.
12247         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
12248         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
12249         Add comments.
12250         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
12251         * NEWS: Mention the change.
12252
12253 2010-03-27  Bruno Haible  <bruno@clisp.org>
12254
12255         Remove unused GNULIB_XYZ macro definitions.
12256         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
12257         * modules/fseek (configure.ac): Likewise.
12258         * modules/ioctl (configure.ac): Likewise.
12259         * modules/open (configure.ac): Likewise.
12260         * modules/stdlib-safer (configure.ac): Likewise.
12261
12262 2010-03-27  Bruno Haible  <bruno@clisp.org>
12263
12264         Add a remark about certain modules.
12265         * modules/malloc (Comment): New section.
12266         * modules/realloc (Comment): Likewise.
12267         * modules/sigpipe (Comment): Likewise.
12268
12269 2010-03-27  Bruno Haible  <bruno@clisp.org>
12270
12271         Resolve conflict between the two kinds of module indicators.
12272         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
12273         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
12274         * modules/canonicalize (configure.ac): Invoke
12275         gl_MODULE_INDICATOR_FOR_TESTS.
12276         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
12277         GNULIB_XYZ.
12278         * tests/test-dirent-c++.cc: Likewise.
12279         * tests/test-dirent-safer.c: Likewise.
12280         * tests/test-dup2.c: Likewise.
12281         * tests/test-fchdir.c: Likewise.
12282         * tests/test-fcntl-h-c++.cc: Likewise.
12283         * tests/test-getopt.c: Likewise.
12284         * tests/test-getopt.h: Likewise.
12285         * tests/test-langinfo-c++.cc: Likewise.
12286         * tests/test-locale-c++.cc: Likewise.
12287         * tests/test-math-c++.cc: Likewise.
12288         * tests/test-pty-c++.cc: Likewise.
12289         * tests/test-search-c++.cc: Likewise.
12290         * tests/test-signal-c++.cc: Likewise.
12291         * tests/test-spawn-c++.cc: Likewise.
12292         * tests/test-stdio-c++.cc: Likewise.
12293         * tests/test-stdlib-c++.cc: Likewise.
12294         * tests/test-string-c++.cc: Likewise.
12295         * tests/test-sys_ioctl-c++.cc: Likewise.
12296         * tests/test-sys_select-c++.cc: Likewise.
12297         * tests/test-sys_socket-c++.cc: Likewise.
12298         * tests/test-sys_stat-c++.cc: Likewise.
12299         * tests/test-sys_time-c++.cc: Likewise.
12300         * tests/test-time-c++.cc: Likewise.
12301         * tests/test-unistd-c++.cc: Likewise.
12302         * tests/test-wchar-c++.cc: Likewise.
12303         * tests/uninorm/test-u8-nfc.c: Likewise.
12304         * tests/uninorm/test-u8-nfd.c: Likewise.
12305         * tests/uninorm/test-u8-nfkc.c: Likewise.
12306         * tests/uninorm/test-u8-nfkd.c: Likewise.
12307         * tests/uninorm/test-u16-nfc.c: Likewise.
12308         * tests/uninorm/test-u16-nfd.c: Likewise.
12309         * tests/uninorm/test-u16-nfkc.c: Likewise.
12310         * tests/uninorm/test-u16-nfkd.c: Likewise.
12311         * tests/uninorm/test-u32-nfc.c: Likewise.
12312         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12313         * tests/uninorm/test-u32-nfd.c: Likewise.
12314         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12315         * tests/uninorm/test-u32-nfkc.c: Likewise.
12316         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12317         * tests/uninorm/test-u32-nfkd.c: Likewise.
12318         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12319         * tests/uninorm/test-u32-normalize-big.c: Likewise.
12320
12321 2010-03-27  Bruno Haible  <bruno@clisp.org>
12322
12323         Distinguish two kinds of module indicators.
12324         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
12325         gl_MODULE_INDICATOR.
12326         (gl_MODULE_INDICATOR): New macro.
12327         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12328         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
12329         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12330         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12331         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12332         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12333         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12334         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12335         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12336         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12337         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12338         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12340         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12341         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12342         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12343         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12344         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12345         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12346         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12347         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12348         * modules/cloexec (configure.ac): Likewise.
12349         * modules/getopt-gnu (configure.ac): Likewise.
12350         * modules/uninorm/u8-normalize (configure.ac): Likewise.
12351         * modules/uninorm/u16-normalize (configure.ac): Likewise.
12352         * modules/uninorm/u32-normalize (configure.ac): Likewise.
12353         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
12354
12355 2010-03-27  Bruno Haible  <bruno@clisp.org>
12356
12357         New module description field 'Comment'.
12358         * gnulib-tool: New option --extract-comment.
12359         (func_usage): Document it.
12360         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
12361         (func_get_comment): New function.
12362         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
12363
12364 2010-03-27  Bruno Haible  <bruno@clisp.org>
12365
12366         Addendum to 2010-02-07 commit.
12367         * gnulib-tool (func_usage): Document --extract-applicability option.
12368
12369 2010-03-27  Bruno Haible  <bruno@clisp.org>
12370
12371         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
12372         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
12373         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
12374         rather than link errors.
12375
12376 2010-03-27  Bruno Haible  <bruno@clisp.org>
12377
12378         Avoid side effects from tests-related modules on the compilation of lib.
12379         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
12380         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
12381         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
12382         parameter. Emit into AM_CPPFLAGS a definition of the designated C
12383         macro.
12384         (func_import): Define a witness macro. Assign it a value that depends
12385         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
12386         tests-related modules.
12387         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
12388         Reported by Jim Meyering.
12389
12390 2010-03-27  Bruno Haible  <bruno@clisp.org>
12391
12392         Factorize common .m4 code.
12393         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
12394         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
12395         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
12396         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
12397         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
12398         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
12399         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
12400         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
12401         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
12402         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
12403         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
12404         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
12405         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
12406         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
12407         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
12408         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
12409         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
12410         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
12411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
12412         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
12413         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
12414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
12415         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
12416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
12417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
12418         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
12419         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
12420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
12421         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
12422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
12423         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
12424         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
12425
12426 2010-03-27  Bruno Haible  <bruno@clisp.org>
12427
12428         Fix a compilation error on Cygwin with g++ >= 4.3.
12429         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
12430         if it is undefined or if we alias it to chmod.
12431         (lstat): Don't warn about the use of this function if it is undefined
12432         or if we alias it to stat.
12433         Reported by Simon Josefsson.
12434
12435 2010-03-27  Bruno Haible  <bruno@clisp.org>
12436
12437         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
12438         * modules/getlogin (configure.ac): Update.
12439
12440         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
12441         * modules/getlogin_r (configure.ac): Update.
12442
12443         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
12444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
12445         * modules/inet_ntop (configure.ac): Update.
12446
12447         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
12448         * modules/inet_pton (configure.ac): Update.
12449
12450         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
12451         * modules/mbslen (configure.ac): Update.
12452
12453         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
12454         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
12455         * modules/forkpty (configure.ac): Update.
12456         * modules/openpty (configure.ac): Update.
12457
12458 2010-03-26  Simon Josefsson  <simon@josefsson.org>
12459
12460         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
12461         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
12462
12463 2010-03-25  Eric Blake  <eblake@redhat.com>
12464
12465         maint: use pragma consistently across replacement headers
12466         * lib/ctype.in.h (system_header): Hoist for consistent placement.
12467         * lib/dirent.in.h (system_header): Likewise.
12468         * lib/errno.in.h (system_header): Likewise.
12469         * lib/float.in.h (system_header): Likewise.
12470         * lib/getopt.in.h (system_header): Likewise.
12471         * lib/iconv.in.h (system_header): Likewise.
12472         * lib/inttypes.in.h (system_header): Likewise.
12473         * lib/langinfo.in.h (system_header): Likewise.
12474         * lib/locale.in.h (system_header): Likewise.
12475         * lib/math.in.h (system_header): Likewise.
12476         * lib/netdb.in.h (system_header): Likewise.
12477         * lib/netinet_in.in.h (system_header): Likewise.
12478         * lib/pty.in.h (system_header): Likewise.
12479         * lib/sched.in.h (system_header): Likewise.
12480         * lib/se-selinux.in.h (system_header): Likewise.
12481         * lib/search.in.h (system_header): Likewise.
12482         * lib/spawn.in.h (system_header): Likewise.
12483         * lib/stdarg.in.h (system_header): Likewise.
12484         * lib/stdint.in.h (system_header): Likewise.
12485         * lib/string.in.h (system_header): Likewise.
12486         * lib/strings.in.h (system_header): Likewise.
12487         * lib/sys_file.in.h (system_header): Likewise.
12488         * lib/sys_ioctl.in.h (system_header): Likewise.
12489         * lib/sys_socket.in.h (system_header): Likewise.
12490         * lib/sys_times.in.h (system_header): Likewise.
12491         * lib/sys_utsname.in.h (system_header): Likewise.
12492         * lib/sys_wait.in.h (system_header): Likewise.
12493         * lib/sysexits.in.h (system_header): Likewise.
12494         * lib/unistd.in.h (system_header): Likewise.
12495         * lib/wctype.in.h (system_header): Likewise.
12496
12497         arpa/inet: fix mingw compilation warning
12498         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
12499         Reported by Matthew Bolte.
12500
12501 2010-03-25  Bruno Haible  <bruno@clisp.org>
12502
12503         Avoid collision between gnulib wrapper and libintl wrapper.
12504         * lib/printf.c (printf): Don't define if a printf wrapper is already
12505         defined in intl/printf.c.
12506         Reported by Michel Boaventura <michel@michelboaventura.com>.
12507
12508 2010-03-25  Bruno Haible  <bruno@clisp.org>
12509
12510         Use ANSI C.
12511         * lib/readutmp.h (getutent): Provide ANSI C prototype.
12512
12513 2010-03-25  Bruno Haible  <bruno@clisp.org>
12514
12515         Minor formatting changes.
12516         * lib/acosl.c: Insert space before function argument list.
12517         * lib/argz.c: Likewise.
12518         * lib/asinl.c: Likewise.
12519         * lib/expl.c: Likewise.
12520         * lib/gen-uni-tables.c: Likewise.
12521         * lib/gettext.h: Likewise.
12522         * lib/glthread/lock.h: Likewise.
12523         * lib/tanl.c: Likewise.
12524         * lib/uniname/uniname.c: Likewise.
12525         * tests/test-idpriv-drop.c: Likewise.
12526         * tests/test-idpriv-droptemp.c: Likewise.
12527         * tests/test-lock.c: Likewise.
12528         * tests/test-tls.c: Likewise.
12529         * lib/argp-help.c: Insert space before function-like macro argument
12530         list.
12531         * lib/memcmp.c: Likewise.
12532         * tests/test-base64.c: Likewise.
12533         * lib/localename.c: Insert space before sizeof's argument list.
12534         * lib/safe-alloc.h: Likewise.
12535         * lib/file-set.h: Insert space before macro argument list.
12536         * tests/test-argp.c: Likewise.
12537         * lib/argp-namefrob.h: Insert space before function parameter list.
12538         * lib/getaddrinfo.c: Likewise.
12539         * lib/netdb.in.h: Likewise.
12540         * lib/parse-duration.h: Likewise.
12541         * lib/parse-duration.c: Likewise.
12542         * lib/poll.c: Likewise.
12543         * lib/select.c: Likewise.
12544         * lib/trim.h: Likewise.
12545         * tests/test-usleep.c: Likewise.
12546         * lib/ldexpl.c: Insert space before function parameter list and before
12547         function argument list.
12548         * lib/logl.c: Likewise.
12549         * lib/sqrtl.c: Likewise.
12550         * lib/trim.c: Likewise.
12551         * lib/cosl.c: Use GNU style indentation. Insert space before function
12552         argument list.
12553         * lib/sinl.c: Likewise.
12554         * lib/tsearch.c: Insert space after 'for'.
12555         Reported by Jim Meyering.
12556
12557 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
12558
12559         * maint.mk (sc_Wundef_boolean): Check for the presence of the
12560         config header before grepping, as it's not present before
12561         autoreconf/configure are run.  Reported by Simon Josefsson.
12562
12563 2010-03-23  Bruno Haible  <bruno@clisp.org>
12564
12565         pt_chown: Make it work with automake < 1.11.
12566         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
12567         Reported by Simon Josefsson.
12568
12569 2010-03-23  Bruno Haible  <bruno@clisp.org>
12570
12571         pt_chown: Don't depend on GPLed modules.
12572         * lib/pt_chown.c: Don't include idpriv.h.
12573         (main): Don't drop privileges.
12574         * modules/pt_chown (Depends-on): Remove idpriv-drop.
12575         Reported by Simon Josefsson.
12576
12577 2010-03-24  Simon Josefsson  <simon@josefsson.org>
12578
12579         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
12580         suggestions from karl@freefriends.org (Karl Berry).
12581
12582 2010-03-22  Eric Blake  <eblake@redhat.com>
12583
12584         gethostname: further tweaks
12585         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
12586         are overriding gethostname.
12587         Suggested by Bruno Haible.
12588
12589 2010-03-21  Bruno Haible  <bruno@clisp.org>
12590
12591         Fix comments.
12592         * lib/forkpty.c (rpl_forkpty): Fix comment.
12593         * lib/openpty.c (rpl_openpty): Likewise.
12594         Reported by Eric Blake.
12595
12596 2010-03-22  Eric Blake  <eblake@redhat.com>
12597
12598         gethostname: fix build on mingw
12599         * lib/unistd.in.h (includes): Work around fact that mingw
12600         <winsock2.h> re-includes <unistd.h>, by avoiding any
12601         redeclarations if we are being included by <winsock2.h>.
12602         Reported by Matthias Bolte.
12603
12604 2010-03-21  Bruno Haible  <bruno@clisp.org>
12605
12606         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12607         * lib/forkpty.c (forkpty): New replacement function, from glibc with
12608         modifications.
12609         * lib/pty.in.h (forkpty): Update declaration. Add comments.
12610         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
12611         provide the replacement.
12612         * modules/forkpty (Depends-on): Add openpty, login_tty.
12613         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
12614         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
12615         * doc/glibc-functions/forkpty.texi: More supported platforms.
12616         * config/srclist.txt: Add forkpty.c (commented).
12617
12618 2010-03-21  Bruno Haible  <bruno@clisp.org>
12619
12620         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
12621         (Makefile.am): Verify that PTY_LIB is defined.
12622
12623         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
12624
12625 2010-03-21  Bruno Haible  <bruno@clisp.org>
12626
12627         Tests for module 'login_tty'.
12628         * modules/login_tty-tests: New file.
12629         * tests/test-login_tty.c: New file.
12630
12631         New module 'login_tty'.
12632         * lib/login_tty.c: New file.
12633         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
12634         * modules/login_tty: New file.
12635         * doc/glibc-functions/login_tty.texi: Mention the new module.
12636
12637 2010-03-21  Bruno Haible  <bruno@clisp.org>
12638
12639         login_tty: Documentation.
12640         * doc/glibc-functions/login_tty.texi: New file.
12641         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
12642
12643 2010-03-21  Bruno Haible  <bruno@clisp.org>
12644
12645         pty: Consistent macro naming.
12646         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
12647         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
12648         * modules/pty (configure.ac): Update.
12649
12650 2010-03-21  Bruno Haible  <bruno@clisp.org>
12651
12652         Tests for openpty: Make stricter.
12653         * tests/test-openpty.c (main): Add test of canonical processing and
12654         erase.
12655         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
12656
12657         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
12658         * lib/openpty.c (openpty): New replacement function.
12659         * lib/pty.in.h: Include <termios.h>.
12660         (openpty): Update declaration. Add comments.
12661         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
12662         is not declared, arrange to provide the replacement. Check for _getpty
12663         and posix_openpt.
12664         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
12665         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
12666         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
12667         * modules/pty-tests (test_pty_c___LDADD): New variable.
12668         * doc/glibc-functions/openpty.texi: More supported platforms.
12669
12670 2010-03-21  Bruno Haible  <bruno@clisp.org>
12671
12672         setenv: Tweaks.
12673         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
12674         the test program.
12675         * doc/posix-functions/setenv.texi: Update platforms list.
12676
12677 2010-03-21  Bruno Haible  <bruno@clisp.org>
12678
12679         New module 'unlockpt'.
12680         * lib/unlockpt.c: New file, from glibc with modifications.
12681         * m4/unlockpt.m4: New file.
12682         * modules/unlockpt: New file.
12683         * lib/stdlib.in.h (unlockpt): New declaration.
12684         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
12685         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
12686         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
12687         HAVE_UNLOCKPT.
12688         * doc/posix-functions/unlockpt.texi: Mention the new module.
12689         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
12690         * config/srclist.txt: Add unlockpt.c (commented).
12691
12692 2010-03-21  Jim Meyering  <meyering@redhat.com>
12693
12694         maint.mk: prohibit inclusion of "intprops.h" without use
12695         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
12696
12697 2010-03-21  Bruno Haible  <bruno@clisp.org>
12698
12699         New module 'grantpt'.
12700         * lib/grantpt.c: New file, from glibc with modifications.
12701         * m4/grantpt.m4: New file.
12702         * modules/grantpt: New file.
12703         * lib/stdlib.in.h (grantpt): New declaration.
12704         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
12705         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
12706         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
12707         HAVE_GRANTPT.
12708         * doc/posix-functions/grantpt.texi: Mention the new module.
12709         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
12710         * config/srclist.txt: Add grantpt.c (commented).
12711
12712 2010-03-21  Bruno Haible  <bruno@clisp.org>
12713
12714         New module 'pt_chown'.
12715         * lib/pt_chown.c: New file, from glibc with modifications.
12716         * lib/pty-private.h: New file, from glibc with modifications.
12717         * modules/pt_chown: New file.
12718         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
12719
12720 2010-03-21  Bruno Haible  <bruno@clisp.org>
12721
12722         Tests for module 'ptsname'.
12723         * modules/ptsname-tests: New file.
12724         * tests/test-ptsname.c: New file.
12725
12726         New module 'ptsname'.
12727         * lib/ptsname.c: New file, from glibc with modifications.
12728         * m4/ptsname.m4: New file.
12729         * modules/ptsname: New file.
12730         * lib/stdlib.in.h (ptsname): New declaration.
12731         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
12732         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
12733         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
12734         HAVE_PTSNAME.
12735         * doc/posix-functions/ptsname.texi: Mention the new module.
12736         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
12737         * config/srclist.txt: Add ptsname.c (commented).
12738
12739 2010-03-21  Bruno Haible  <bruno@clisp.org>
12740
12741         Tests for module 'ttyname_r'.
12742         * modules/ttyname_r-tests: New file.
12743         * tests/test-ttyname_r.c: New file.
12744
12745         New module 'ttyname_r'.
12746         * lib/ttyname_r.c: New file.
12747         * m4/ttyname_r.m4: New file.
12748         * modules/ttyname_r: New file.
12749         * lib/unistd.in.h (ttyname_r): New declaration.
12750         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
12751         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
12752         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
12753         HAVE_TTYNAME_R.
12754         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
12755         * doc/posix-functions/ttyname_r.texi: Mention the new module.
12756
12757 2010-03-20  Bruno Haible  <bruno@clisp.org>
12758
12759         signal: Undefine macro definitions in C++ mode.
12760         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
12761         sigfillset): Undefine macro definitions from the system header in C++
12762         mode.
12763         Reported by John W. Eaton <jwe@gnu.org>.
12764
12765 2010-03-20  Bruno Haible  <bruno@clisp.org>
12766
12767         Ensure no #include statements inside extern "C" { ... }.
12768         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
12769         contain #include statements.
12770         * lib/time.in.h: Likewise.
12771
12772 2010-03-20  Bruno Haible  <bruno@clisp.org>
12773
12774         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
12775         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
12776         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
12777         Reported by John W. Eaton <jwe@gnu.org>.
12778
12779 2010-03-20  Bruno Haible  <bruno@clisp.org>
12780
12781         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
12782         Reported by Jim Meyering.
12783
12784 2010-03-20  Bruno Haible  <bruno@clisp.org>
12785
12786         pipe: Set errno upon failure.
12787         * lib/pipe.h: Specify that when -1 is returned, errno is set.
12788         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
12789         errno value in error message.
12790
12791 2010-03-20  Bruno Haible  <bruno@clisp.org>
12792             Jim Meyering  <meyering@redhat.com>
12793
12794         lchown: Avoid "unused variable" warning.
12795         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
12796
12797 2010-03-20  Bruno Haible  <bruno@clisp.org>
12798
12799         Work around unlink() bug on MacOS X 10.5.6.
12800         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
12801         attempting to unlink a parent directory.
12802         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
12803         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
12804         activate for the replacement function.
12805         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
12806
12807 2010-03-20  Bruno Haible  <bruno@clisp.org>
12808
12809         Fix link errors on Solaris 8.
12810         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
12811         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
12812
12813 2010-03-19  Jim Meyering  <meyering@redhat.com>
12814
12815         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
12816         The _LIBC implementation of build_range_exp correctly honors the
12817         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
12818         However, the non-_LIBC implementation would ignore that syntax-bit
12819         flag and return REG_ERANGE unconditionally.
12820         This change makes it honor that flag.
12821         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
12822         Make two pointer parameters "const".
12823         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
12824         (parse_bracket_exp): Update caller.
12825
12826         regex.m4: correct the reversed range endpoint ([b-a]) test
12827         * m4/regex.m4: When requiring that [b-a] evoke failure,
12828         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
12829         test pass once again for x86-based systems.
12830
12831 2010-03-19  Bruno Haible  <bruno@clisp.org>
12832
12833         scandir: Fix link error on Solaris 8.
12834         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
12835         macros.
12836
12837 2010-03-19  Bruno Haible  <bruno@clisp.org>
12838
12839         getusershell: Fix documentation.
12840         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
12841         module.
12842         * doc/glibc-functions/setusershell.texi: Likewise.
12843
12844         getusershell: Provide declaration, missing on Solaris 9.
12845         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
12846         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
12847         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
12848         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
12849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12850         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
12851         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
12852         HAVE_GETUSERSHELL.
12853         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
12854
12855 2010-03-19  Bruno Haible  <bruno@clisp.org>
12856
12857         wctype: Provide iswblank function.
12858         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
12859         exists and is fine.
12860         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
12861         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
12862         * tests/test-wctype.c (main): Re-enable the iswblank tests.
12863         * doc/posix-functions/iswblank.texi: Update.
12864
12865 2010-03-19  Bruno Haible  <bruno@clisp.org>
12866
12867         Tests of module 'pty' in C++ mode.
12868         * modules/pty-tests: New file.
12869         * tests/test-pty-c++.cc: New file.
12870         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12871
12872 2010-03-19  Eric Blake  <eblake@redhat.com>
12873
12874         logb: fix documentation
12875         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
12876         1.5 declaration bug.
12877
12878         forkpty, openpty: prefer glibc's const-safe prototype
12879         * lib/forkpty.c (rpl_forkpty): New file.
12880         * lib/openpty.c (rpl_openpty): Likewise.
12881         * modules/forkpty (Files): Distribute it.
12882         * modules/openpty (Files): Likewise.
12883         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
12884         check...
12885         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
12886         replacement for for non-const BSD signature.
12887         * modules/pty (Makefile.am): Substitute witnesses.
12888         * lib/pty.in.h (forkpty, openpty): Declare replacements.
12889         * tests/test-forkpty.c: Update signature check.
12890         * tests/test-openpty.c: Likewise.
12891         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
12892         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12893
12894         forkpty, openpty: split functions into new modules
12895         * modules/pty (Makefile.am): Substitute new witnesses.
12896         (Libraries): Move library detection...
12897         * modules/forkpty: ...into new module.
12898         * modules/openpty: Another new module.
12899         * modules/pty-tests: Rename and split...
12900         * modules/forkpty-tests: ...to this...
12901         * modules/openpty-tests: ...and this.
12902         * tests/test-pty.c: Rename and split...
12903         * tests/test-forkpty.c: ...to this...
12904         * tests/test-openpty.c: ...and this.
12905         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
12906         (gl_PTY): Split library searching...
12907         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
12908         (gl_FORKPTY, gl_OPENPTY): New macros.
12909         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
12910         * NEWS: Mention the split.
12911         * MODULES.html.sh (Misc): Document the modules.
12912         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
12913         * doc/glibc-functions/openpty.texi (openpty): Likewise.
12914
12915         pty: improve replacement header
12916         * lib/pty.in.h: New file.
12917         * modules/pty (Files): Ship it.
12918         (Makefile.am): Always build replacement.
12919         * m4/pty.m4: Rename...
12920         * m4/pty_h.m4: ...to this.
12921         (gl_PTY): Modernize setting of witness macros; update check of
12922         forkpty to take proper advantage of cache.
12923         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
12924
12925         getopt: avoid compiler warning
12926         * lib/getopt.c (attribute_hidden): Remove unused macro.
12927
12928 2010-03-18  Bruno Haible  <bruno@clisp.org>
12929
12930         Fix link errors on Solaris 8.
12931         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
12932         * modules/search-tests (test_search_c___LDADD): Likewise.
12933         * modules/signal-tests (test_signal_c___LDADD): Likewise.
12934         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
12935         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
12936         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
12937         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
12938         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
12939         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
12940
12941 2010-03-18  Bruno Haible  <bruno@clisp.org>
12942
12943         Fix bug introduced on 2010-03-14.
12944         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
12945         (gl_SPAWN_H): Require it.
12946         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
12947         Reported by Simon Josefsson.
12948
12949 2010-03-18  Bruno Haible  <bruno@clisp.org>
12950
12951         Fix typo introduced on 2009-12-31.
12952         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
12953         posix_spawn_file_actions_adddup2.
12954
12955 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
12956         and Eric Blake  <eblake@redhat.com>
12957
12958         test-vc-list-files-git: make more robust
12959         * tests/test-vc-list-files-git.sh: Unset problematic environment
12960         variables.  Chain commands together.
12961
12962 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
12963
12964         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
12965         `AC_CHECK_DECL' invocation.
12966
12967 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
12968
12969         * lib/inttostr.c (inttostr): Make sure the invocation of verify
12970         appears before executable statements. Suggested by Petr Sumbera
12971         <Petr.Sumbera@Sun.COM>.
12972
12973 2010-03-14  Bruno Haible  <bruno@clisp.org>
12974
12975         * tests/test-flock.c (test_exclusive): Comment out a test that causes
12976         portability problems. Instead use a simpler test.
12977         (main): Check that invalid arguments are rejected only on Linux.
12978
12979 2010-03-14  Bruno Haible  <bruno@clisp.org>
12980
12981         Fix bug introduced on 2009-12-31.
12982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12983         gl_PREREQ_SYS_H_WINSOCK2 always.
12984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
12985         SYS_SOCKET_H variable.
12986         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
12987         Update comments.
12988         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
12989         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12990         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12991         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12992         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12993
12994 2010-03-14  Bruno Haible  <bruno@clisp.org>
12995
12996         Fix values returned by sinl, cosl.
12997         * lib/trigl.h: Add specification comments.
12998         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
12999         that combines the values from the precomputed table with the values of
13000         the Chebyshev polynomials.
13001
13002 2010-03-14  Bruno Haible  <bruno@clisp.org>
13003
13004         Fix compilation error when modules 'posix_spawn[p]' are not used.
13005         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
13006         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
13007
13008 2010-03-14  Bruno Haible  <bruno@clisp.org>
13009
13010         Fix compilation error on mingw when module 'time_r' is not used.
13011         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
13012         is 1.
13013         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
13014         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13015         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
13016         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
13017
13018 2010-03-14  Bruno Haible  <bruno@clisp.org>
13019
13020         Fix compilation error with Sun C.
13021         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
13022         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
13023         instead of GCC specific ULONG_LONG_MAX.
13024         * lib/xstrtoll.c: Likewise.
13025         * lib/xstrtoull.c: Likewise.
13026
13027 2010-03-13  Bruno Haible  <bruno@clisp.org>
13028
13029         Allow the user to disable C++ code and tests.
13030         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
13031         (gl_PROG_ANSI_CXX): Require it.
13032
13033 2010-03-13  Bruno Haible  <bruno@clisp.org>
13034
13035         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
13036         cases.
13037
13038 2010-03-13  Bruno Haible  <bruno@clisp.org>
13039
13040         Test that gnulib does not break the standard C++ headers.
13041         * tests/test-locale-c++2.cc: New file.
13042         * modules/locale-tests (Files): Add it.
13043         (Makefile.am): Compile it for test-locale-c++.
13044         * tests/test-math-c++2.cc: New file.
13045         * modules/math-tests (Files): Add it.
13046         (Makefile.am): Compile it for test-math-c++.
13047         * tests/test-signal-c++2.cc: New file.
13048         * modules/signal-tests (Files): Add it.
13049         (Makefile.am): Compile it for test-signal-c++.
13050         * tests/test-stdio-c++2.cc: New file.
13051         * modules/stdio-tests (Files): Add it.
13052         (Makefile.am): Compile it for test-stdio-c++.
13053         * tests/test-stdlib-c++2.cc: New file.
13054         * modules/stdlib-tests (Files): Add it.
13055         (Makefile.am): Compile it for test-stdlib-c++.
13056         * tests/test-string-c++2.cc: New file.
13057         * modules/string-tests (Files): Add it.
13058         (Makefile.am): Compile it for test-string-c++.
13059         * tests/test-time-c++2.cc: New file.
13060         * modules/time-tests (Files): Add it.
13061         (Makefile.am): Compile it for test-time-c++.
13062         Reported by John W. Eaton <jwe@gnu.org>.
13063
13064 2010-03-13  Bruno Haible  <bruno@clisp.org>
13065
13066         * gnulib-tool (func_usage): Clarify which options are available for
13067         --create-testdir and --create-megatestdir.
13068
13069 2010-03-13  Bruno Haible  <bruno@clisp.org>
13070
13071         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
13072         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
13073         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
13074         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
13075         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
13076         when appropriate.
13077         Reported by Jim Meyering.
13078
13079 2010-03-12  Simon Josefsson  <simon@josefsson.org>
13080
13081         * gnulib-tool (func_import): Explain origin of code.
13082
13083 2010-03-12  Bruno Haible  <bruno@clisp.org>
13084
13085         Fix problem with automake's definition of CXXLINK.
13086         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
13087         Reported by Simon Josefsson and Ludovic Courtès.
13088
13089 2010-03-12  Bruno Haible  <bruno@clisp.org>
13090
13091         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
13092         stable releases.
13093
13094 2010-03-11  Bruno Haible  <bruno@clisp.org>
13095
13096         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
13097         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
13098         whether the system provides one variant or multiple variants of the
13099         function.
13100         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
13101         C++ compilers.
13102         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
13103         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
13104         Reported by Jim Meyering.
13105
13106 2010-03-09  Simon Josefsson  <simon@josefsson.org>
13107
13108         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
13109
13110 2010-03-08  Bruno Haible  <bruno@clisp.org>
13111
13112         gnulib-tool: Add support for --libtool in --create-testdir.
13113         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
13114         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
13115
13116 2010-03-08  Eric Blake  <eblake@redhat.com>
13117
13118         gnulib-tool.texi: mention possibility of git submodule
13119         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
13120         submodules.
13121         * doc/.gitignore: Ignore another generated file.
13122
13123 2010-03-08  Karl Berry  <karl@gnu.org>
13124
13125         * doc/gnulib-tool.texi (VCS Issues): Mention third option
13126         of committing gnulib files while skipping others.
13127
13128 2010-03-07  Bruno Haible  <bruno@clisp.org>
13129
13130         Tests of module 'wctype' in C++ mode.
13131         * tests/test-wctype-c++.cc: New file.
13132         * modules/wctype-tests (Files): Add it and tests/signature.h.
13133         (Depends-on): Add ansi-c++-opt.
13134         (Makefile.am): Arrange to compile and run test-wctype-c++.
13135
13136         Tests of module 'wchar' in C++ mode.
13137         * tests/test-wchar-c++.cc: New file.
13138         * modules/wchar-tests (Files): Add it and tests/signature.h.
13139         (Depends-on): Add ansi-c++-opt.
13140         (Makefile.am): Arrange to compile and run test-wchar-c++.
13141         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
13142         gl_MODULE_INDICATOR.
13143
13144         Tests of module 'unistd' in C++ mode.
13145         * tests/test-unistd-c++.cc: New file.
13146         * modules/unistd-tests (Files): Add it and tests/signature.h.
13147         (Depends-on): Add ansi-c++-opt.
13148         (Makefile.am): Arrange to compile and run test-unistd-c++.
13149         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
13150         gl_MODULE_INDICATOR.
13151
13152         Tests of module 'time' in C++ mode.
13153         * tests/test-time-c++.cc: New file.
13154         * modules/time-tests (Files): Add it and tests/signature.h.
13155         (Depends-on): Add ansi-c++-opt.
13156         (Makefile.am): Arrange to compile and run test-time-c++.
13157         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13158
13159         Tests of module 'sys_time' in C++ mode.
13160         * tests/test-sys_time-c++.cc: New file.
13161         * modules/sys_time-tests (Files): Add it and tests/signature.h.
13162         (Depends-on): Add ansi-c++-opt.
13163         (Makefile.am): Arrange to compile and run test-sys_time-c++.
13164         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
13165         gl_MODULE_INDICATOR.
13166
13167         Tests of module 'sys_stat' in C++ mode.
13168         * tests/test-sys_stat-c++.cc: New file.
13169         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
13170         (Depends-on): Add ansi-c++-opt.
13171         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
13172         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
13173         gl_MODULE_INDICATOR.
13174
13175         Tests of module 'sys_socket' in C++ mode.
13176         * tests/test-sys_socket-c++.cc: New file.
13177         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
13178         (Depends-on): Add ansi-c++-opt.
13179         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
13180         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
13181         gl_MODULE_INDICATOR.
13182
13183         Tests of module 'sys_select' in C++ mode.
13184         * tests/test-sys_select-c++.cc: New file.
13185         * modules/sys_select-tests (Files): Add it and tests/signature.h.
13186         (Depends-on): Add ansi-c++-opt.
13187         (Makefile.am): Arrange to compile and run test-sys_select-c++.
13188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
13189         gl_MODULE_INDICATOR.
13190
13191         Tests of module 'sys_ioctl' in C++ mode.
13192         * tests/test-sys_ioctl-c++.cc: New file.
13193         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
13194         (Depends-on): Add ansi-c++-opt.
13195         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
13196         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
13197         gl_MODULE_INDICATOR.
13198
13199         Tests of module 'string' in C++ mode.
13200         * tests/test-string-c++.cc: New file.
13201         * modules/string-tests (Files): Add it and tests/signature.h.
13202         (Depends-on): Add ansi-c++-opt.
13203         (Makefile.am): Arrange to compile and run test-string-c++.
13204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
13205         gl_MODULE_INDICATOR.
13206
13207         Tests of module 'stdlib' in C++ mode.
13208         * tests/test-stdlib-c++.cc: New file.
13209         * modules/stdlib-tests (Files): Add it and tests/signature.h.
13210         (Depends-on): Add ansi-c++-opt.
13211         (Makefile.am): Arrange to compile and run test-stdlib-c++.
13212         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
13213         gl_MODULE_INDICATOR.
13214
13215         Tests of module 'stdio' in C++ mode.
13216         * tests/test-stdio-c++.cc: New file.
13217         * modules/stdio-tests (Files): Add it and tests/signature.h.
13218         (Depends-on): Add ansi-c++-opt.
13219         (Makefile.am): Arrange to compile and run test-stdio-c++.
13220         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
13221         gl_MODULE_INDICATOR.
13222
13223         Tests of module 'spawn' in C++ mode.
13224         * tests/test-spawn-c++.cc: New file.
13225         * modules/spawn-tests (Files): Add it and tests/signature.h.
13226         (Depends-on): Add ansi-c++-opt.
13227         (Makefile.am): Arrange to compile and run test-spawn-c++.
13228         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
13229         gl_MODULE_INDICATOR.
13230
13231         Tests of module 'signal' in C++ mode.
13232         * tests/test-signal-c++.cc: New file.
13233         * modules/signal-tests (Files): Add it and tests/signature.h.
13234         (Depends-on): Add ansi-c++-opt.
13235         (Makefile.am): Arrange to compile and run test-signal-c++.
13236         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
13237         gl_MODULE_INDICATOR.
13238
13239         Tests of module 'search' in C++ mode.
13240         * tests/test-search-c++.cc: New file.
13241         * modules/search-tests (Files): Add it and tests/signature.h.
13242         (Depends-on): Add ansi-c++-opt.
13243         (Makefile.am): Arrange to compile and run test-search-c++.
13244         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
13245         gl_MODULE_INDICATOR.
13246
13247         Tests of module 'math' in C++ mode.
13248         * tests/test-math-c++.cc: New file.
13249         * modules/math-tests (Files): Add it and tests/signature.h.
13250         (Depends-on): Add ansi-c++-opt.
13251         (Makefile.am): Arrange to compile and run test-math-c++.
13252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
13253
13254         Tests of module 'locale' in C++ mode.
13255         * tests/test-locale-c++.cc: New file.
13256         * modules/locale-tests (Files): Add it and tests/signature.h.
13257         (Depends-on): Add ansi-c++-opt.
13258         (Makefile.am): Arrange to compile and run test-locale-c++.
13259         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
13260         gl_MODULE_INDICATOR.
13261
13262         Tests of module 'langinfo' in C++ mode.
13263         * tests/test-langinfo-c++.cc: New file.
13264         * modules/langinfo-tests (Files): Add it and tests/signature.h.
13265         (Depends-on): Add ansi-c++-opt.
13266         (Makefile.am): Arrange to compile and run test-langinfo-c++.
13267         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
13268         gl_MODULE_INDICATOR.
13269
13270         Tests of module 'iconv-h' in C++ mode.
13271         * tests/test-iconv-h-c++.cc: New file.
13272         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
13273         (Depends-on): Add ansi-c++-opt.
13274         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
13275
13276         Tests of module 'glob' in C++ mode.
13277         * tests/test-glob-c++.cc: New file.
13278         * modules/glob-tests (Files): Add it.
13279         (Depends-on): Add ansi-c++-opt.
13280         (Makefile.am): Arrange to compile and run test-glob-c++.
13281
13282         Tests of module 'fcntl-h' in C++ mode.
13283         * tests/test-fcntl-h-c++.cc: New file.
13284         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
13285         (Depends-on): Add ansi-c++-opt.
13286         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
13287         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
13288         gl_MODULE_INDICATOR.
13289
13290         Tests of module 'dirent' in C++ mode.
13291         * tests/test-dirent-c++.cc: New file.
13292         * modules/dirent-tests (Files): Add it and tests/signature.h.
13293         (Depends-on): Add ansi-c++-opt.
13294         (Makefile.am): Arrange to compile and run test-dirent-c++.
13295         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
13296         gl_MODULE_INDICATOR.
13297
13298         New module 'ansi-c++-opt'.
13299         * modules/ansi-c++-opt: New file.
13300         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
13301
13302         Document C++ namespace mode.
13303         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
13304
13305         wctype: Avoid #define replacements in C++ mode.
13306         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
13307         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
13308         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
13309         In C++, define a namespaced alias symbol.
13310         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
13311         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
13312         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
13313         rule.
13314
13315         wchar: Avoid #define replacements in C++ mode.
13316         * lib/wchar.in.h: Include c++defs.h.
13317         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
13318         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
13319         symbol.
13320         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
13321         * modules/wchar (Depends-on): Add c++defs.
13322         (Makefile.am): Update wchar.h rule.
13323
13324         unistd: Avoid #define replacements in C++ mode.
13325         * lib/unistd.in.h: Include c++defs.h.
13326         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
13327         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
13328         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
13329         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
13330         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
13331         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
13332         symbol.
13333         (environ): Update.
13334         * modules/unistd (Depends-on): Add c++defs.
13335         (Makefile.am): Update unistd.h rule.
13336
13337         time: Avoid #define replacements in C++ mode.
13338         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
13339         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
13340         define a namespaced alias symbol.
13341         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
13342         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
13343         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
13344         * modules/time (Depends-on): Add c++defs, warn-on-use.
13345         (Makefile.am): Update time.h rule.
13346         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
13347         * modules/nanosleep (configure.ac): Likewise.
13348         * modules/strptime (configure.ac): Likewise.
13349         * modules/timegm (configure.ac): Likewise.
13350
13351         sys_time: Avoid #define replacements in C++ mode.
13352         * lib/sys_time.in.h: Include c++defs.h.
13353         (gettimeofday): In C++, define a namespaced alias symbol.
13354         * modules/sys_time (Depends-on): Add c++defs.
13355         (Makefile.am): Update sys/time.h rule.
13356
13357         sys_stat: Avoid #define replacements in C++ mode.
13358         * lib/sys_stat.in.h: Include c++defs.h.
13359         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
13360         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
13361         namespaced alias symbol.
13362         In C++, define a namespaced alias symbol.
13363         * modules/sys_stat (Depends-on): Add c++defs.
13364         (Makefile.am): Update sys/stat.h rule.
13365
13366         sys_socket: Avoid #define replacements in C++ mode.
13367         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
13368         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
13369         definitions also when the system has a <sys/socket.h>.
13370         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13371         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
13372         In C++, define a namespaced alias symbol.
13373         * modules/sys_socket (Depends-on): Add c++defs.
13374         (Makefile.am): Update sys/socket.h rule.
13375
13376         sys_select: Avoid #define replacements in C++ mode.
13377         * lib/sys_select.in.h: Include c++defs.h. Enable the function
13378         definitions also when the system has a <sys/select.h>.
13379         (select): In C++, define a namespaced alias symbol.
13380         * modules/sys_select (Depends-on): Add c++defs.
13381         (Makefile.am): Update sys/select.h rule.
13382
13383         sys_ioctl: Avoid #define replacements in C++ mode.
13384         * lib/sys_ioctl.in.h: Include c++defs.h.
13385         (ioctl): In C++, define a namespaced alias symbol.
13386         * modules/sys_ioctl (Depends-on): Add c++defs.
13387         (Makefile.am): Update sys/ioctl.h rule.
13388
13389         string: Avoid #define replacements in C++ mode.
13390         * lib/string.in.h: Include c++defs.h.
13391         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
13392         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13393         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13394         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
13395         strsignal, strverscmp): In C++, define a namespaced alias symbol.
13396         * modules/string (Depends-on): Add c++defs.
13397         (Makefile.am): Update string.h rule.
13398
13399         stdlib: Avoid #define replacements in C++ mode.
13400         * lib/stdlib.in.h: Include c++defs.h.
13401         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
13402         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
13403         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
13404         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
13405         symbol.
13406         * modules/stdlib (Depends-on): Add c++defs.
13407         (Makefile.am): Update stdlib.h rule.
13408
13409         stdio: Avoid #define replacements in C++ mode.
13410         * lib/stdio.in.h: Include c++defs.h.
13411         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
13412         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
13413         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
13414         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
13415         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
13416         namespaced alias symbol.
13417         * modules/stdio (Depends-on): Add c++defs.
13418         (Makefile.am): Update stdio.h rule.
13419
13420         spawn: Avoid #define replacements in C++ mode.
13421         * lib/spawn.in.h: Include c++defs.h.
13422         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13423         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13424         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13425         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13426         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13427         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13428         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13429         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13430         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13431         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13432         In C++, define a namespaced alias symbol.
13433         * modules/spawn (Depends-on): Add c++defs.
13434         (Makefile.am): Update spawn.h rule.
13435
13436         signal: Avoid #define replacements in C++ mode.
13437         * lib/signal.in.h: Include c++defs.h.
13438         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13439         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
13440         namespaced alias symbol.
13441         * modules/signal (Depends-on): Add c++defs.
13442         (Makefile.am): Update signal.h rule.
13443
13444         search: Avoid #define replacements in C++ mode.
13445         * lib/search.in.h: Include c++defs.h.
13446         (_gl_search_compar_fn, _gl_search_action_fn): New types.
13447         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
13448         symbol.
13449         * modules/search (Depends-on): Add c++defs.
13450         (Makefile.am): Update search.h rule.
13451
13452         math: Avoid #define replacements in C++ mode.
13453         * lib/math.in.h: Include c++defs.h.
13454         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
13455         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
13456         trunc, truncl): In C++, define a namespaced alias symbol.
13457         * modules/math (Depends-on): Add c++defs.
13458         (Makefile.am): Update math.h rule.
13459
13460         locale: Avoid #define replacements in C++ mode.
13461         * lib/locale.in.h: Include c++defs.h.
13462         (duplocale): In C++, define a namespaced alias symbol.
13463         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
13464         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
13465         * modules/locale (Depends-on): Add c++defs.
13466         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
13467
13468         langinfo: Avoid #define replacements in C++ mode.
13469         * lib/langinfo.in.h: Include c++defs.h.
13470         (nl_langinfo): In C++, define a namespaced alias symbol.
13471         * modules/langinfo (Depends-on): Add c++defs.
13472         (Makefile.am): Update langinfo.h rule.
13473
13474         iconv-h: Avoid #define replacements in C++ mode.
13475         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
13476         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
13477         symbol.
13478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
13479         whenever iconv is present.
13480         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
13481         (Makefile.am): Update iconv.h rule.
13482
13483         glob: Avoid #define replacements in C++ mode.
13484         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
13485         (_gl_glob_errfunc_fn): New type.
13486         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
13487         symbol.
13488         * modules/glob (Depends-on): Add c++defs, warn-on-use.
13489         (Makefile.am): Update glob.h rule.
13490
13491         fcntl-h: Avoid #define replacements in C++ mode.
13492         * lib/fcntl.in.h: Include c++defs.h.
13493         (fcntl, open, openat): In C++, define a namespaced alias symbol.
13494         * modules/fcntl-h (Depends-on): Add c++defs.
13495         (Makefile.am): Update fcntl.h rule.
13496
13497         dirent: Avoid #define replacements in C++ mode.
13498         * lib/dirent.in.h: Include c++defs.h.
13499         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
13500         namespaced alias symbol.
13501         (dirfd): Update declaration.
13502         * modules/dirent (Depends-on): Add c++defs.
13503         (Makefile.am): Update dirent.h rule.
13504
13505         ctype: Make it usable in C++ code.
13506         * lib/ctype.in.h: Include c++defs.h.
13507         (isblank): Declare as extern "C".
13508         * modules/ctype (Depends-on): Add c++defs.
13509         (Makefile.am): Update ctype.h rule.
13510
13511         New module 'c++defs'.
13512         * modules/c++defs: New file.
13513         * build-aux/c++defs.h: New file.
13514         Reported by John W. Eaton <jwe@gnu.org>.
13515
13516 2010-03-07  Bruno Haible  <bruno@clisp.org>
13517
13518         logb: Provide missing declaration for Cygwin.
13519         * lib/math.in.h (logb): New declaration.
13520         * m4/logb.m4: New file.
13521         * modules/logb (Files): Add m4/logb.m4.
13522         (Depends-on): Add math.
13523         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
13524         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
13525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
13526         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
13527         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
13528
13529 2010-03-07  Bruno Haible  <bruno@clisp.org>
13530
13531         Fix test-cond link error.
13532         * tests/test-cond.c: Include <stdio.h>.
13533
13534 2010-03-07  Bruno Haible  <bruno@clisp.org>
13535
13536         Fix test-dirent-safer link error.
13537         * modules/dirent-safer-tests (Makefile.am): Define
13538         test_dirent_safer_LDADD.
13539
13540 2010-03-07  Bruno Haible  <bruno@clisp.org>
13541
13542         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
13543         among default module list.
13544
13545 2010-03-07  Bruno Haible  <bruno@clisp.org>
13546
13547         Fix link error on platforms with GNU libiconv.
13548         * modules/unistr/u8-strcoll-tests (Makefile): Define
13549         test_u8_strcoll_LDADD.
13550         * modules/unistr/u16-strcoll-tests (Makefile): Define
13551         test_u16_strcoll_LDADD.
13552         * modules/unistr/u32-strcoll-tests (Makefile): Define
13553         test_u32_strcoll_LDADD.
13554
13555 2010-03-07  Bruno Haible  <bruno@clisp.org>
13556
13557         Use POSIX declarations for socket functions.
13558         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
13559         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
13560         rpl_sendto): Change declaration to match POSIX.
13561         * lib/connect.c (rpl_connect): Likewise.
13562         * lib/accept.c (rpl_accept): Likewise.
13563         * lib/bind.c (rpl_bind): Likewise.
13564         * lib/getpeername.c (rpl_getpeername): Likewise.
13565         * lib/getsockname.c (rpl_getsockname): Likewise.
13566         * lib/recv.c (rpl_recv): Likewise.
13567         * lib/send.c (rpl_send): Likewise.
13568         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13569         * lib/sendto.c (rpl_sendto): Likewise.
13570
13571 2010-03-06  Bruno Haible  <bruno@clisp.org>
13572
13573         Clarify access, euidaccess, faccessat.
13574         * doc/posix-functions/faccessat.texi: Mention security problem under
13575         "Other problems", not "Portability problems".
13576         * doc/posix-functions/access.texi: Likewise. Mention a related security
13577         problem.
13578         * doc/glibc-functions/euidaccess.texi: Mention security problems.
13579         * lib/euidaccess.c: Add comments about platforms.
13580         * lib/unistd.in.h (access, euidaccess): Add warnings.
13581
13582 2010-03-07  Bruno Haible  <bruno@clisp.org>
13583
13584         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
13585         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
13586         (POSIX_SPAWN_SETSCHEDULER): Likewise.
13587         (POSIX_SPAWN_USEVFORK): Define in a way that works when
13588         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13589         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
13590         declare when POSIX_SPAWN_SETSCHEDULER is zero.
13591         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
13592         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
13593         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
13594         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
13595         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
13596         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
13597         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
13598         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
13599         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
13600         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
13601         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
13602         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
13603         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
13604         Likewise.
13605         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
13606         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
13607         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
13608         Likewise.
13609         * tests/test-spawn.c (main): Make it work when
13610         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
13611
13612 2010-03-07  Bruno Haible  <bruno@clisp.org>
13613
13614         Fix incorrect Makefile.am generation in German locale.
13615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13616         Execute sed command with character range in C locale.
13617
13618 2010-03-06  Bruno Haible  <bruno@clisp.org>
13619
13620         Tests for module 'iconv-h'.
13621         * modules/iconv-h-tests: New file.
13622         * tests/test-iconv-h.c: New file.
13623
13624         New module 'iconv-h'.
13625         * modules/iconv-h: New file.
13626         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
13627         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
13628         (configure.ac): Remove gl_ICONV_H.
13629         (Makefile.am): Remove rule for iconv.h.
13630
13631 2010-03-06  Bruno Haible  <bruno@clisp.org>
13632
13633         More consistent naming of *.m4 files.
13634         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
13635         * modules/wctype (Files): Update.
13636
13637         More consistent naming of *.m4 files.
13638         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
13639         * modules/wchar (Files): Update.
13640
13641 2010-03-06  Jim Meyering  <meyering@redhat.com>
13642
13643         euidaccess: relax license to LGPLv2+
13644         * modules/euidaccess (License): Relax to LGPLv2+.
13645
13646 2010-03-06  Bruno Haible  <bruno@clisp.org>
13647
13648         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
13649         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
13650         (Makefile.am): Augment lib_SOURCES instead.
13651
13652 2010-03-04  Jim Meyering  <meyering@redhat.com>
13653
13654         utime: remove obsolete module
13655         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
13656         unnecessary for years, and has been marked as obsolete for 10 months.
13657         * modules/utime: Remove file.
13658         * lib/utime.c: Remove file.
13659         * m4/utime.m4: Remove file.
13660         * m4/utimes-null.m4: Remove file.
13661         * doc/posix-functions/utime.texi (utime): Remove reference to
13662         the module.  Move the sole "fixed by gnulib" item into the
13663         "problems not fixed by Gnulib" list.
13664         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
13665
13666 2010-03-05  Simon Josefsson  <simon@josefsson.org>
13667
13668         * modules/exit (License): Relax license to LGPLv2+.
13669         (Status): Mark as obsolete.
13670         * NEWS: Mention deprecated 'exit' module.
13671         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
13672         of now obsolete 'exit'.
13673
13674 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13675
13676         fts-lgpl: remove unused module
13677         * modules/fts-lgpl: Remove.
13678         * MODULES.html.sh (func_all_modules): Adjust.
13679         * check-module (find_included_lib_files): Adjust.
13680         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
13681
13682 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
13683
13684         copy-acl: enhance Solaris ACL error handling
13685         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
13686         * lib/set-mode-acl.c (qset_acl): Likewise.
13687
13688 2010-03-02  Bruno Haible  <bruno@clisp.org>
13689
13690         spawn: Don't override the system defined values on FreeBSD 8.
13691         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
13692         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
13693         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
13694         if HAVE_POSIX_SPAWN is 1.
13695         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
13696
13697 2010-03-01  Bruno Haible  <bruno@clisp.org>
13698
13699         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
13700         regarding Automake.
13701
13702 2010-02-25  Bruno Haible  <bruno@clisp.org>
13703
13704         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
13705         * gnulib-tool: Define 'echo' as a function only before the ksh alias
13706         setting, not afterwards.
13707         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
13708
13709 2010-02-24  Eric Blake  <eblake@redhat.com>
13710
13711         bootstrap, git-version-gen: use timestamp
13712         * build-aux/git-version-gen (scriptversion): Force UTC.
13713         * build-aux/bootstrap (scriptversion): New variable.
13714
13715         bootstrap: allow older git
13716         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
13717         older than 1.6.4.  Requested by the libvirt project.
13718
13719 2010-02-23  Eric Blake  <eblake@redhat.com>
13720
13721         warn-on-use: work with old autoconf
13722         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
13723         AS_VAR semantics of autoconf 2.60.
13724         Reported by Bruno Haible.
13725
13726         bootstrap: improve some comments
13727         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
13728         clarification comments.
13729
13730         gettimeofday: provide correct function
13731         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
13732         when replacement is declared, otherwise provide gettimeofday.
13733         Reported by Michael Goffioul.
13734
13735 2010-02-23  Jim Meyering  <meyering@redhat.com>
13736
13737         lib-ignore: relax license to "unlimited", not LGPLv2+
13738         * modules/lib-ignore (License): Relax to "unlimited".
13739
13740 2010-02-23  Jim Meyering  <meyering@redhat.com>
13741
13742         lib-ignore: relax license to LGPLv2+
13743         * modules/lib-ignore (License): Relax to LGPLv2+.
13744
13745 2010-02-22  Eric Blake  <eblake@redhat.com>
13746
13747         lseek: avoid bash 3.2 broken pipe bug
13748         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
13749         warning from bash 3.2.
13750         Reported by Ben Pfaff, with analysis from Bruno Haible.
13751
13752         bootstrap: support non-FSF copyright holder
13753         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
13754         bootstrap.conf override of COPYRIGHT_HOLDER.
13755         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
13756
13757         bootstrap: interoperate with gettext 0.14.1
13758         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
13759
13760         bootstrap: allow for alternate submodule location
13761         * build-aux/bootstrap (gnulib_path): New variable; use instead of
13762         hardcoding submodule location.
13763         (gnulib_mk): Allow direct use of Makefile.am.
13764
13765         bootstrap: use GNULIB_SRCDIR to reduce disk usage
13766         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
13767         rather than reconfiguring where the submodule points.
13768
13769         gettimeofday: restore support for platforms that lack function
13770         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
13771         replacement if function is missing.
13772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
13773         * modules/sys_time (Makefile.am): Substitute it.
13774         * lib/sys_time.in.h (gettimeofday): Check it.
13775         Reported by Michael Goffioul.
13776
13777 2010-02-21  Bruno Haible  <bruno@clisp.org>
13778
13779         * lib/stdio.in.h (obstack_printf): Fix typo.
13780
13781 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
13782
13783         vc-list-files: use bzr ls's -R option
13784         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
13785         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
13786
13787 2010-02-21  Jim Meyering  <meyering@redhat.com>
13788
13789         init.sh: fix EXEEXT shims to work also for names like test-prog
13790         * tests/init.sh: Re-exec a better shell, when needed.
13791         If the current shell lacks support for posix $(...), an init.sh-using
13792         test will now try to find a shell that supports that.  If EXEEXT is
13793         nonempty, we also require support for hyphen-in-alias-name and shell
13794         substitutions like ${var#glob}.  Failure to find such a shell results
13795         in a skipped test.
13796
13797 2010-02-21  Bruno Haible  <bruno@clisp.org>
13798
13799         Really work around around "broken pipe" error message from bash 3.2.
13800         * gnulib-tool (func_reset_sigpipe): Remove function.
13801         (echo): In bash 3.2, define to a function that uses printf.
13802         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
13803
13804 2010-02-20  Bruno Haible  <bruno@clisp.org>
13805
13806         Restore support for automake 1.9.6 with autoconf 2.61.
13807         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
13808         Reported by James Youngman <jay@gnu.org>.
13809
13810 2010-02-20  Bruno Haible  <bruno@clisp.org>
13811
13812         Improve *printf warning condition.
13813         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
13814         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
13815         and the function is overridden due to SIGPIPE emulation.
13816
13817 2010-02-20  Bruno Haible  <bruno@clisp.org>
13818
13819         * lib/stdio.in.h: Tweak comments.
13820
13821 2010-02-19  Bruno Haible  <bruno@clisp.org>
13822
13823         Make it easier to find modules. New gnulib-tool option '--find'.
13824         * gnulib-tool: New option --find.
13825         (func_usage): Document it.
13826         (func_sanitize_modulelist): New function, extracted from
13827         func_all_modules.
13828         (func_all_modules): Invoke it.
13829         * doc/gnulib-tool.texi (Which modules?): New node.
13830
13831 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
13832
13833         * lib/sys_select.in.h: Provide select replacement even if
13834         sys/select.h exists on a system, for Interix.
13835
13836 2010-02-18  Jim Meyering  <meyering@redhat.com>
13837
13838         init.sh: don't use $(...) just yet
13839         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
13840         to accommodate e.g., Solaris' /bin/sh.
13841
13842 2010-02-17  Bruno Haible  <bruno@clisp.org>
13843
13844         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
13845         Reported by Ludovic Courtès <ludo@gnu.org>.
13846
13847 2010-02-16  Simon Josefsson  <simon@josefsson.org>
13848
13849         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
13850         linking with -lintl.
13851
13852 2010-02-17  Simon Josefsson  <simon@josefsson.org>
13853
13854         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
13855         if not provided by the system's netdb.h.  Reported by
13856         ludo@gnu.org (Ludovic Courtès).
13857
13858 2010-02-15  Jim Meyering  <meyering@redhat.com>
13859
13860         init.sh: improve portability and efficiency
13861         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
13862         "dummy" in a for loop.
13863         Use '!', not '^' to select the complement of a character set used
13864         in a "case" statement.
13865         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
13866         Suggestions from Eric Blake.
13867
13868         init.sh: automatically accommodate programs with the .exe suffix
13869         Automatically arrange for an invocation of "prog" to execute the
13870         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
13871         may use the simpler "prog", yet still work when built on a system
13872         that requires specifying the added suffix.
13873         Do this by constructing a function named "prog" that invokes
13874         "prog.exe" for each .exe file in selected directories.
13875         * tests/init.sh (find_exe_basenames_): New function.
13876         (create_exe_shim_functions_): New function.
13877         (path_prepend_): Use it.
13878
13879         maint.mk: mark syntax-check sc_*.m rules as .PHONY
13880         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
13881         "make -t syntax-check" doesn't create a ton of sc_*.m files.
13882
13883 2010-02-14  Jim Meyering  <meyering@redhat.com>
13884
13885         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
13886         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
13887         (sc_prohibit_hash_pjw_without_use): New rule.
13888
13889         maint.mk: allow the default upload destination dir to be overridden
13890         * top/maint.mk (upload_dest_dir_): Define with a default that
13891         preserves the status quo.
13892         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
13893         Reported by Peter Simons.
13894
13895         maint.mk: prohibit inclusion of "hash.h" without_use
13896         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
13897
13898 2010-02-10  Jim Meyering  <meyering@redhat.com>
13899
13900         maint.mk: prohibit inclusion of "ignore-value.h" without_use
13901         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
13902
13903 2010-02-09  Eric Blake  <ebb9@byu.net>
13904         and Bruno Haible  <bruno@clisp.org>
13905
13906         obstack-printf-posix: ensure declaration
13907         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
13908         extracted from gl_FUNC_OBSTACK_PRINTF.
13909         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
13910         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13911         Likewise.
13912         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
13913         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
13914         0.
13915
13916 2010-02-08  Bruno Haible  <bruno@clisp.org>
13917
13918         gnulib-tool: Fix typo in 2010-02-07 commit.
13919         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
13920         Reported by Eric Blake.
13921
13922 2010-02-07  Bruno Haible  <bruno@clisp.org>
13923
13924         gnulib-tool: Fix up caching patches.
13925         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
13926         option --no-cache. Use associative arrays when supported by the shell.
13927         (sed_comments): New variable.
13928         (modcache): Renamed from do_cache.
13929         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
13930         abbreviate unnecessarily.
13931         (have_associative): New variable.
13932         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
13933         way also for ksh and zsh.
13934         (func_init_sed_convert_to_cache_statements): New function, extracted
13935         from func_cache_lookup_module. Add support for associative arrays.
13936         Don't set the c_MODULE_cached variable here. Ignore all lines before
13937         the first field header. Remove only the final newline, not all trailing
13938         newlines. Support empty fields correctly. Limit the use of 'eval' to
13939         assignments.
13940         (func_get_description, func_get_status, func_get_notice,
13941         func_get_applicability, func_get_filelist, func_get_dependencies,
13942         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
13943         func_get_automake_snippet, func_get_include_directive,
13944         func_get_link_directive, func_get_license, func_get_maintainer):
13945         Update documentation. List the unoptimized code first. Add support for
13946         associative arrays. Limit the use of 'eval' to assignments.
13947         (func_get_applicability): Undo stylistic pessimisations.
13948         (func_get_automake_snippet, func_get_include_directive): Reduce code
13949         duplication.
13950         (func_modules_transitive_closure, func_modules_add_dummy,
13951         func_modules_notice, func_modules_to_filelist, func_add_file,
13952         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
13953         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
13954         func_create_testdir, func_create_megatestdir): Update documentation.
13955
13956 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13957
13958         * gnulib-tool (func_cache_lookup_module): Store the module name
13959         belonging to the cache variable; error out if two different
13960         module names map to the same cache variable name.
13961
13962 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13963
13964         gnulib-tool: Make caching optional.
13965         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
13966         Update matching short versions of --no-changelog.
13967         (func_usage): Update.
13968         (sed_extract_cache_prog): Renamed from ...
13969         (sed_extract_prog): ... this; revert to old extraction script.
13970         (func_get_description, func_get_status)
13971         (func_get_notice, func_get_applicability, func_get_filelist)
13972         (func_get_dependencies, func_get_autoconf_early_snippet)
13973         (func_get_autoconf_snippet, func_get_automake_snippet)
13974         (func_get_include_directive, func_get_link_directive)
13975         (func_get_license, func_get_maintainer): If $do_cache is false,
13976         use old, non-caching extraction scripts.
13977         Suggestion by Bruno Haible.
13978
13979 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13980
13981         gnulib-tool: cache module metainformation.
13982         * gnulib-tool (sed_extract_prog): Match newline before each
13983         header, and rewrite header to a shell variable suffix.
13984         (func_cache_var, func_cache_lookup_module): New functions,
13985         to turn a module name into a cache variable prefix, and to
13986         look up and cache module metainformation.
13987         (func_get_description, func_get_status)
13988         (func_get_notice, func_get_applicability, func_get_filelist)
13989         (func_get_dependencies, func_get_autoconf_early_snippet)
13990         (func_get_autoconf_snippet, func_get_automake_snippet)
13991         (func_get_include_directive, func_get_link_directive)
13992         (func_get_license, func_get_maintainer): Use
13993         func_cache_lookup_module.
13994
13995 2010-02-07  Bruno Haible  <bruno@clisp.org>
13996
13997         fnctl: Fix missing dependency.
13998         * modules/fcntl (Depends-on): Add getdtablesize.
13999         Reported by John W. Eaton <jwe@gnu.org>.
14000
14001 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14002
14003         Argp: fix recognition of short alias options.
14004
14005         * lib/argp-parse.c (convert_options): Fix improper use of
14006         `|' between character values.
14007         * tests/test-argp.c (group1_option): New alias option
14008         --read (-r).
14009         (group1_parser): Special handling for 'r'.
14010         (test15): New test case.
14011         (test_fun): Add test15.
14012         * tests/test-argp-2.sh: Update expected --help and --usage
14013         outputs.
14014
14015 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
14016
14017         * tests/test-argp.c: Fix indentation.
14018
14019 2010-02-04  Eric Blake  <ebb9@byu.net>
14020
14021         gettimeofday: expose type of second argument
14022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
14023         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
14024         * tests/test-gettimeofday.c: Use it to silence warning.
14025         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
14026         the issue.
14027
14028 2010-02-03  Jim Meyering  <meyering@redhat.com>
14029
14030         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
14031         * lib/regcomp.c (TYPE_SIGNED): Define.
14032         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
14033
14034         regcomp.c: avoid a new -Wshadow warning
14035         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
14036
14037 2010-02-01  Jim Meyering  <meyering@redhat.com>
14038
14039         removing useless parentheses in cpp #define directives
14040         For motivation, see commit c0221df4, "define STREQ(a,b)
14041         consistently, removing useless parentheses"
14042         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
14043         * lib/mountlist.c (MNT_IGNORE): Likewise.
14044         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
14045
14046 2010-02-01  Eric Blake  <ebb9@byu.net>
14047
14048         sys_time: use link-warning
14049         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
14050         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
14051         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
14052         * modules/sys_time (Depends-on): Add warn-on-use.
14053         (Makefile.am): Always build replacement.
14054         (configure.ac): Update substitutions.
14055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
14056         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
14057         bother with SYS_TIME_H.
14058         * modules/gettimeofday (configure.ac): Declare indicator.
14059         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
14060         in use.
14061
14062         closein-tests: silence compiler warning
14063         * tests/test-closein.c (main): Ignore fread result.
14064         * modules/closein-tests (Depends-on): Add ignore-value.
14065
14066         tests: silence warning about system return
14067         * tests/test-areadlink-with-size.c (main): Ignore system result.
14068         * tests/test-areadlink.c (main): Likewise.
14069         * tests/test-areadlinkat-with-size.c (main): Likewise.
14070         * tests/test-areadlinkat.c (main): Likewise.
14071         * tests/test-canonicalize-lgpl.c (main): Likewise.
14072         * tests/test-canonicalize.c (main): Likewise.
14073         * tests/test-chown.c (main): Likewise.
14074         * tests/test-fchownat.c (main): Likewise.
14075         * tests/test-fdutimensat.c (main): Likewise.
14076         * tests/test-fstatat.c (main): Likewise.
14077         * tests/test-futimens.c (main): Likewise.
14078         * tests/test-lchown.c (main): Likewise.
14079         * tests/test-link.c (main): Likewise.
14080         * tests/test-linkat.c (main): Likewise.
14081         * tests/test-lstat.c (main): Likewise.
14082         * tests/test-mkdir.c (main): Likewise.
14083         * tests/test-mkdirat.c (main): Likewise.
14084         * tests/test-mkfifo.c (main): Likewise.
14085         * tests/test-mkfifoat.c (main): Likewise.
14086         * tests/test-mknod.c (main): Likewise.
14087         * tests/test-readlink.c (main): Likewise.
14088         * tests/test-remove.c (main): Likewise.
14089         * tests/test-rename.c (main): Likewise.
14090         * tests/test-renameat.c (main): Likewise.
14091         * tests/test-rmdir.c (main): Likewise.
14092         * tests/test-symlink.c (main): Likewise.
14093         * tests/test-symlinkat.c (main): Likewise.
14094         * tests/test-unlink.c (main): Likewise.
14095         * tests/test-unlinkat.c (main): Likewise.
14096         * tests/test-utimens.c (main): Likewise.
14097         * tests/test-utimensat.c (main): Likewise.
14098         * modules/areadlink-tests (Depends-on): Add ignore-value.
14099         * modules/areadlink-with-size-tests (Depends-on): Likewise.
14100         * modules/areadlinkat-tests (Depends-on): Likewise.
14101         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
14102         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14103         * modules/canonicalize-tests (Depends-on): Likewise.
14104         * modules/chown-tests (Depends-on): Likewise.
14105         * modules/fdutimensat-tests (Depends-on): Likewise.
14106         * modules/futimens-tests (Depends-on): Likewise.
14107         * modules/lchown-tests (Depends-on): Likewise.
14108         * modules/link-tests (Depends-on): Likewise.
14109         * modules/linkat-tests (Depends-on): Likewise.
14110         * modules/lstat-tests (Depends-on): Likewise.
14111         * modules/mkdir-tests (Depends-on): Likewise.
14112         * modules/mkfifo-tests (Depends-on): Likewise.
14113         * modules/mkfifoat-tests (Depends-on): Likewise.
14114         * modules/mknod-tests (Depends-on): Likewise.
14115         * modules/openat-tests (Depends-on): Likewise.
14116         * modules/readlink-tests (Depends-on): Likewise.
14117         * modules/remove-tests (Depends-on): Likewise.
14118         * modules/rename-tests (Depends-on): Likewise.
14119         * modules/renameat-tests (Depends-on): Likewise.
14120         * modules/rmdir-tests (Depends-on): Likewise.
14121         * modules/symlink-tests (Depends-on): Likewise.
14122         * modules/symlinkat-tests (Depends-on): Likewise.
14123         * modules/unlink-tests (Depends-on): Likewise.
14124         * modules/utimens-tests (Depends-on): Likewise.
14125         * modules/utimensat-tests (Depends-on): Likewise.
14126
14127 2010-01-31  Bruno Haible  <bruno@clisp.org>
14128
14129         Perform the same test for many <math.h> functions.
14130         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
14131         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
14132         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
14133         of gl_MATHFUNC.
14134         * modules/acos (configure.ac): Likewise.
14135         * modules/asin (configure.ac): Likewise.
14136         * modules/atan (configure.ac): Likewise.
14137         * modules/atan2 (configure.ac): Likewise.
14138         * modules/cbrt (configure.ac): Likewise.
14139         * modules/copysign (configure.ac): Likewise.
14140         * modules/cos (configure.ac): Likewise.
14141         * modules/cosh (configure.ac): Likewise.
14142         * modules/erf (configure.ac): Likewise.
14143         * modules/erfc (configure.ac): Likewise.
14144         * modules/exp (configure.ac): Likewise.
14145         * modules/fmod (configure.ac): Likewise.
14146         * modules/hypot (configure.ac): Likewise.
14147         * modules/j0 (configure.ac): Likewise.
14148         * modules/j1 (configure.ac): Likewise.
14149         * modules/jn (configure.ac): Likewise.
14150         * modules/lgamma (configure.ac): Likewise.
14151         * modules/log (configure.ac): Likewise.
14152         * modules/log10 (configure.ac): Likewise.
14153         * modules/log1p (configure.ac): Likewise.
14154         * modules/pow (configure.ac): Likewise.
14155         * modules/remainder (configure.ac): Likewise.
14156         * modules/sin (configure.ac): Likewise.
14157         * modules/sinh (configure.ac): Likewise.
14158         * modules/tan (configure.ac): Likewise.
14159         * modules/tanh (configure.ac): Likewise.
14160         * modules/y0 (configure.ac): Likewise.
14161         * modules/y1 (configure.ac): Likewise.
14162         * modules/yn (configure.ac): Likewise.
14163         Suggested by Paolo Bonzini.
14164
14165 2010-01-31  Bruno Haible  <bruno@clisp.org>
14166
14167         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
14168
14169 2010-01-31  Bruno Haible  <bruno@clisp.org>
14170
14171         Work around getdelim() bug on FreeBSD 8.0.
14172         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
14173         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
14174         not work.
14175         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
14176         is 1.
14177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
14178         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
14179         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
14180         a non-zero size.
14181         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
14182
14183 2010-01-31  Bruno Haible  <bruno@clisp.org>
14184
14185         Work around getline() bug on FreeBSD 8.0.
14186         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
14187         and a non-zero size.
14188         * tests/test-getline.c (main): Likewise.
14189         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
14190         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
14191
14192 2010-01-28  Eric Blake  <ebb9@byu.net>
14193
14194         regex: fix build failure
14195         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
14196         platforms.
14197
14198 2010-01-28  Jim Meyering  <meyering@redhat.com>
14199
14200         regex: do not ignore memory allocation failure
14201         * lib/regex_internal.c (create_cd_newstate): Detect
14202         re_node_set_init_copy failure.   Extracted from glibc commit
14203         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14204
14205         regex: sync more white-space changes from libc
14206         * lib/regex_internal.c: White-space only changes.
14207         * lib/regexec.c: Likewise.
14208
14209         regex: add many uses of __attribute_warn_unused_result__
14210         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
14211         * lib/regexec.c: Likewise.
14212         Extracted from a messy glibc commit.
14213
14214         regcomp.c: spelling and merge-artifact from glibc
14215         * lib/regcomp.c: Merge remainder of glibc's
14216         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14217
14218         regcomp.c: sync white-space changes from glibc
14219         * lib/regcomp.c: Merge to accommodate white space
14220         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
14221
14222         regcomp.c: do not ignore internal return values
14223         * lib/regcomp.c: Do not ignore internal return values.
14224         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
14225         but without its white-space changes and spelling fixes.
14226
14227         regex_internal.h: define __attribute_warn_unused_result__
14228         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
14229
14230         maint: add a syntax-check rule to check for vulnerable Makefile.in
14231         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
14232
14233 2010-01-27  Jim Meyering  <meyering@redhat.com>
14234
14235         ncftpput-ftp: clean up spaces
14236         * build-aux/ncftpput-ftp: Make Copyright line consistent.
14237         Remove trailing blanks.
14238
14239 2010-01-27  Simon Josefsson  <simon@josefsson.org>
14240
14241         * build-aux/git-version-gen: Fix copyright statement.
14242         * build-aux/gnupload: Likewise.
14243         * tests/test-arcfour.c: Likewise.
14244         * tests/test-arctwo.c: Likewise.
14245         * tests/test-count-one-bits.c: Likewise.
14246         * tests/test-crc.c: Likewise.
14247         * tests/test-des.c: Likewise.
14248         * tests/test-gc-arcfour.c: Likewise.
14249         * tests/test-gc-arctwo.c: Likewise.
14250         * tests/test-gc-des.c: Likewise.
14251         * tests/test-gc-hmac-md5.c: Likewise.
14252         * tests/test-gc-hmac-sha1.c: Likewise.
14253         * tests/test-gc-md2.c: Likewise.
14254         * tests/test-gc-md4.c: Likewise.
14255         * tests/test-gc-md5.c: Likewise.
14256         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14257         * tests/test-gc-rijndael.c: Likewise.
14258         * tests/test-gc-sha1.c: Likewise.
14259         * tests/test-gc.c: Likewise.
14260         * tests/test-gethostname.c: Likewise.
14261         * tests/test-gettimeofday.c: Likewise.
14262         * tests/test-hash.c: Likewise.
14263         * tests/test-hmac-md5.c: Likewise.
14264         * tests/test-hmac-sha1.c: Likewise.
14265         * tests/test-md2.c: Likewise.
14266         * tests/test-md4.c: Likewise.
14267         * tests/test-md5.c: Likewise.
14268         * tests/test-memchr.c: Likewise.
14269         * tests/test-memchr2.c: Likewise.
14270         * tests/test-memcmp.c: Likewise.
14271         * tests/test-memmem.c: Likewise.
14272         * tests/test-memrchr.c: Likewise.
14273         * tests/test-rawmemchr.c: Likewise.
14274         * tests/test-read-file.c: Likewise.
14275         * tests/test-rijndael.c: Likewise.
14276         * tests/test-sockets.c: Likewise.
14277         * tests/test-strchrnul.c: Likewise.
14278         * tests/test-strstr.c: Likewise.
14279         * tests/test-strtod.c: Likewise.
14280         * build-aux/ncftpput-ftp: Likewise.
14281
14282 2010-01-26  Eric Blake  <ebb9@byu.net>
14283
14284         ignore-value: update recommended header name
14285         * modules/ignore-value (Include): Only use <> for headers that
14286         exist in glibc.
14287
14288 2010-01-26  Jim Meyering  <meyering@redhat.com>
14289
14290         test-userspec.c: avoid compiler warnings
14291         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
14292         and "initialization discards qualifiers..." warnings.
14293         Put the first "uid" in its own scope, and make char* members "const".
14294
14295 2010-01-25  Bruno Haible  <bruno@clisp.org>
14296
14297         gnulib-tool: Make warning diagnostics consistent.
14298         * gnulib-tool (func_warning): New function.
14299         Use it everywhere where gnulib-tool produces output to stderr and it is
14300         not a fatal error.
14301
14302 2010-01-25  Bruno Haible  <bruno@clisp.org>
14303
14304         Fix test dependencies.
14305         * modules/xstrtol-tests (Depends-on): Add inttypes.
14306         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
14307
14308 2010-01-25 Pádraig Brady <P@draigBrady.com>
14309
14310         syntax-check: detect incorrect boolean macro values in config.h
14311         * modules/maintainer-makefile (configure.ac): Parameterize the location
14312         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
14313         The logic is from Eric Blake and the location indicated by Jim Meyering.
14314         Note the more natural CONFIG_HEADER name is prohibited by automake
14315         for backwards compatibility reasons.
14316         * top/maint.mk (sc_Wundef_boolean): New rule.
14317
14318 2010-01-25  Jim Meyering  <meyering@redhat.com>
14319
14320         bootstrap: detect MacOS 10.6's shasum, too
14321         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
14322         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
14323
14324 2010-01-23  Jim Meyering  <meyering@redhat.com>
14325
14326         xstrtoll: new module
14327         * modules/xstrtoll: New file.
14328         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
14329         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
14330         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
14331         ./configure fails if you use this module and lack "long long".
14332         * modules/xstrtoll-tests: New module.
14333         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
14334         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
14335         new init.sh-based test framework.
14336
14337 2010-01-24  Bruno Haible  <bruno@clisp.org>
14338
14339         Tests for module 'yn'.
14340         * modules/yn-tests: New file.
14341         * tests/test-yn.c: New file.
14342
14343         Tests for module 'y1'.
14344         * modules/y1-tests: New file.
14345         * tests/test-y1.c: New file.
14346
14347         Tests for module 'y0'.
14348         * modules/y0-tests: New file.
14349         * tests/test-y0.c: New file.
14350
14351         Tests for module 'tanh'.
14352         * modules/tanh-tests: New file.
14353         * tests/test-tanh.c: New file.
14354
14355         Tests for module 'tan'.
14356         * modules/tan-tests: New file.
14357         * tests/test-tan.c: New file.
14358
14359         Tests for module 'sqrt'.
14360         * modules/sqrt-tests: New file.
14361         * tests/test-sqrt.c: New file.
14362
14363         Tests for module 'sinh'.
14364         * modules/sinh-tests: New file.
14365         * tests/test-sinh.c: New file.
14366
14367         Tests for module 'sin'.
14368         * modules/sin-tests: New file.
14369         * tests/test-sin.c: New file.
14370
14371         Tests for module 'rint'.
14372         * modules/rint-tests: New file.
14373         * tests/test-rint.c: New file.
14374
14375         Tests for module 'remainder'.
14376         * modules/remainder-tests: New file.
14377         * tests/test-remainder.c: New file.
14378
14379         Tests for module 'pow'.
14380         * modules/pow-tests: New file.
14381         * tests/test-pow.c: New file.
14382
14383         Tests for module 'nextafter'.
14384         * modules/nextafter-tests: New file.
14385         * tests/test-nextafter.c: New file.
14386
14387         Tests for module 'modf'.
14388         * modules/modf-tests: New file.
14389         * tests/test-modf.c: New file.
14390
14391         Tests for module 'logb'.
14392         * modules/logb-tests: New file.
14393         * tests/test-logb.c: New file.
14394
14395         Tests for module 'log1p'.
14396         * modules/log1p-tests: New file.
14397         * tests/test-log1p.c: New file.
14398
14399         Tests for module 'log10'.
14400         * modules/log10-tests: New file.
14401         * tests/test-log10.c: New file.
14402
14403         Tests for module 'log'.
14404         * modules/log-tests: New file.
14405         * tests/test-log.c: New file.
14406
14407         Tests for module 'lgamma'.
14408         * modules/lgamma-tests: New file.
14409         * tests/test-lgamma.c: New file.
14410
14411         Tests for module 'ldexp'.
14412         * modules/ldexp-tests: New file.
14413         * tests/test-ldexp.c: New file.
14414
14415         Tests for module 'jn'.
14416         * modules/jn-tests: New file.
14417         * tests/test-jn.c: New file.
14418
14419         Tests for module 'j1'.
14420         * modules/j1-tests: New file.
14421         * tests/test-j1.c: New file.
14422
14423         Tests for module 'j0'.
14424         * modules/j0-tests: New file.
14425         * tests/test-j0.c: New file.
14426
14427         Tests for module 'hypot'.
14428         * modules/hypot-tests: New file.
14429         * tests/test-hypot.c: New file.
14430
14431         Tests for module 'fmod'.
14432         * modules/fmod-tests: New file.
14433         * tests/test-fmod.c: New file.
14434
14435         Tests for module 'fabs'.
14436         * modules/fabs-tests: New file.
14437         * tests/test-fabs.c: New file.
14438
14439         Tests for module 'exp'.
14440         * modules/exp-tests: New file.
14441         * tests/test-exp.c: New file.
14442
14443         Tests for module 'erfc'.
14444         * modules/erfc-tests: New file.
14445         * tests/test-erfc.c: New file.
14446
14447         Tests for module 'erf'.
14448         * modules/erf-tests: New file.
14449         * tests/test-erf.c: New file.
14450
14451         Tests for module 'cosh'.
14452         * modules/cosh-tests: New file.
14453         * tests/test-cosh.c: New file.
14454
14455         Tests for module 'cos'.
14456         * modules/cos-tests: New file.
14457         * tests/test-cos.c: New file.
14458
14459         Tests for module 'copysign'.
14460         * modules/copysign-tests: New file.
14461         * tests/test-copysign.c: New file.
14462
14463         Tests for module 'cbrt'.
14464         * modules/cbrt-tests: New file.
14465         * tests/test-cbrt.c: New file.
14466
14467         Tests for module 'atan2'.
14468         * modules/atan2-tests: New file.
14469         * tests/test-atan2.c: New file.
14470
14471         Tests for module 'atan'.
14472         * modules/atan-tests: New file.
14473         * tests/test-atan.c: New file.
14474
14475         Tests for module 'asin'.
14476         * modules/asin-tests: New file.
14477         * tests/test-asin.c: New file.
14478
14479         Tests for module 'acos'.
14480         * modules/acos-tests: New file.
14481         * tests/test-acos.c: New file.
14482
14483 2010-01-24  Bruno Haible  <bruno@clisp.org>
14484
14485         Fix tests for common <math.h> functions.
14486         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
14487         code snippet that references the function pointer, rather than merely
14488         calling the function. Substitute the FUNC_LIBM variable.
14489         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
14490         * modules/acos (configure.ac): Likewise.
14491         * modules/asin (configure.ac): Likewise.
14492         * modules/atan (configure.ac): Likewise.
14493         * modules/atan2 (configure.ac): Likewise.
14494         * modules/cbrt (configure.ac): Likewise.
14495         * modules/copysign (configure.ac): Likewise.
14496         * modules/cos (configure.ac): Likewise.
14497         * modules/cosh (configure.ac): Likewise.
14498         * modules/erf (configure.ac): Likewise.
14499         * modules/erfc (configure.ac): Likewise.
14500         * modules/exp (configure.ac): Likewise.
14501         * modules/fabs (configure.ac): Likewise.
14502         * modules/fmod (configure.ac): Likewise.
14503         * modules/hypot (configure.ac): Likewise.
14504         * modules/j0 (configure.ac): Likewise.
14505         * modules/j1 (configure.ac): Likewise.
14506         * modules/jn (configure.ac): Likewise.
14507         * modules/ldexp (configure.ac): Likewise.
14508         * modules/lgamma (configure.ac): Likewise.
14509         * modules/log (configure.ac): Likewise.
14510         * modules/log10 (configure.ac): Likewise.
14511         * modules/log1p (configure.ac): Likewise.
14512         * modules/logb (configure.ac): Likewise.
14513         * modules/modf (configure.ac): Likewise.
14514         * modules/nextafter (configure.ac): Likewise.
14515         * modules/pow (configure.ac): Likewise.
14516         * modules/remainder (configure.ac): Likewise.
14517         * modules/rint (configure.ac): Likewise.
14518         * modules/sin (configure.ac): Likewise.
14519         * modules/sinh (configure.ac): Likewise.
14520         * modules/tan (configure.ac): Likewise.
14521         * modules/tanh (configure.ac): Likewise.
14522         * modules/y0 (configure.ac): Likewise.
14523         * modules/y1 (configure.ac): Likewise.
14524         * modules/yn (configure.ac): Likewise.
14525
14526 2010-01-24  Bruno Haible  <bruno@clisp.org>
14527
14528         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
14529         * tests/test-acosl.c (x): New variable.
14530         (main): Store argument in x and fetch it from x.
14531         * tests/test-asinl.c (x): New variable.
14532         (main): Store argument in x and fetch it from x.
14533         * tests/test-atanl.c (x): New variable.
14534         (main): Store argument in x and fetch it from x.
14535         * tests/test-cosl.c (x): New variable.
14536         (main): Store argument in x and fetch it from x.
14537         * tests/test-expl.c (x): New variable.
14538         (main): Store argument in x and fetch it from x.
14539         * tests/test-logl.c (x): New variable.
14540         (main): Store argument in x and fetch it from x.
14541         * tests/test-sinl.c (x): New variable.
14542         (main): Store argument in x and fetch it from x.
14543         * tests/test-sqrtl.c (x): New variable.
14544         (main): Store argument in x and fetch it from x.
14545         * tests/test-tanl.c (x): New variable.
14546         (main): Store argument in x and fetch it from x.
14547
14548 2010-01-24  Bruno Haible  <bruno@clisp.org>
14549
14550         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
14551         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
14552         assignments to the initial TESTS_ENVIRONMENT.
14553         * doc/gnulib.texi (Unit test modules): Document it.
14554         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
14555         TESTS_ENVIRONMENT.
14556         * modules/btowc-tests (Makefile.am): Likewise.
14557         * modules/c-stack-tests (Makefile.am): Likewise.
14558         * modules/c-strcase-tests (Makefile.am): Likewise.
14559         * modules/copy-file-tests (Makefile.am): Likewise.
14560         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
14561         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
14562         * modules/mbrtowc-tests (Makefile.am): Likewise.
14563         * modules/mbscasecmp-tests (Makefile.am): Likewise.
14564         * modules/mbscasestr-tests (Makefile.am): Likewise.
14565         * modules/mbschr-tests (Makefile.am): Likewise.
14566         * modules/mbscspn-tests (Makefile.am): Likewise.
14567         * modules/mbsinit-tests (Makefile.am): Likewise.
14568         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
14569         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
14570         * modules/mbspbrk-tests (Makefile.am): Likewise.
14571         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
14572         * modules/mbsrchr-tests (Makefile.am): Likewise.
14573         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
14574         * modules/mbsspn-tests (Makefile.am): Likewise.
14575         * modules/mbsstr-tests (Makefile.am): Likewise.
14576         * modules/nl_langinfo-tests (Makefile.am): Likewise.
14577         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
14578         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
14579         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
14580         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
14581         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
14582         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
14583         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
14584         * modules/wcrtomb-tests (Makefile.am): Likewise.
14585         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
14586         * modules/wcsrtombs-tests (Makefile.am): Likewise.
14587         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
14588         assignments from TESTS_ENVIRONMENT.
14589         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
14590         augmentation.
14591         * modules/argp-version-etc-tests (Makefile.am): Likewise.
14592         * modules/atexit-tests (Makefile.am): Likewise.
14593         * modules/binary-io-tests (Makefile.am): Likewise.
14594         * modules/closein-tests (Makefile.am): Likewise.
14595         * modules/dprintf-posix-tests (Makefile.am): Likewise.
14596         * modules/exclude-tests (Makefile.am): Likewise.
14597         * modules/fflush-tests (Makefile.am): Likewise.
14598         * modules/fpending-tests (Makefile.am): Likewise.
14599         * modules/fprintf-posix-tests (Makefile.am): Likewise.
14600         * modules/freadahead-tests (Makefile.am): Likewise.
14601         * modules/freadptr-tests (Makefile.am): Likewise.
14602         * modules/freadseek-tests (Makefile.am): Likewise.
14603         * modules/fseek-tests (Makefile.am): Likewise.
14604         * modules/fseeko-tests (Makefile.am): Likewise.
14605         * modules/ftell-tests (Makefile.am): Likewise.
14606         * modules/ftello-tests (Makefile.am): Likewise.
14607         * modules/idpriv-drop-tests (Makefile.am): Likewise.
14608         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
14609         * modules/lseek-tests (Makefile.am): Likewise.
14610         * modules/parse-duration-tests (Makefile.am): Likewise.
14611         * modules/perror-tests (Makefile.am): Likewise.
14612         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
14613         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
14614         * modules/pipe-tests (Makefile.am): Likewise.
14615         * modules/pread-tests (Makefile.am): Likewise.
14616         * modules/printf-posix-tests (Makefile.am): Likewise.
14617         * modules/select-tests (Makefile.am): Likewise.
14618         * modules/sigpipe-tests (Makefile.am): Likewise.
14619         * modules/tsearch-tests (Makefile.am): Likewise.
14620         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
14621         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
14622         * modules/uniname/uniname-tests (Makefile.am): Likewise.
14623         * modules/uniwidth/width-tests (Makefile.am): Likewise.
14624         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
14625         * modules/version-etc-tests (Makefile.am): Likewise.
14626         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
14627         * modules/vprintf-posix-tests (Makefile.am): Likewise.
14628         * modules/xalloc-die-tests (Makefile.am): Likewise.
14629         * modules/xprintf-posix-tests (Makefile.am): Likewise.
14630         * modules/xstrtoimax-tests (Makefile.am): Likewise.
14631         * modules/xstrtol-tests (Makefile.am): Likewise.
14632         * modules/xstrtoumax-tests (Makefile.am): Likewise.
14633         * modules/yesno-tests (Makefile.am): Likewise.
14634         Suggested by Jim Meyering.
14635
14636 2010-01-24  Bruno Haible  <bruno@clisp.org>
14637
14638         More documentation.
14639         * doc/gnulib.texi (Writing modules): New chapter.
14640         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
14641         the new chapter.
14642
14643 2010-01-24  Jim Meyering  <meyering@redhat.com>
14644
14645         maint.mk: do not prepend "./" after filtering
14646         * top/maint.mk (_prepend_srcdir_prefix): New variable
14647         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
14648         "./" when $(srcdir) is ".".
14649
14650         define STREQ(a,b) consistently, removing useless parentheses
14651         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
14652         since the only risk is that "a" or "b" contains an unparenthesized
14653         comma, but if either did that, STREQ would have 3 or more arguments.
14654         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
14655         * lib/fts.c (STREQ): Remove unnecessary parentheses.
14656         * lib/hash-triple.c (STREQ): Likewise.
14657         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
14658         * lib/getugroups.c (STREQ): Likewise.
14659
14660 2010-01-23  Jim Meyering  <meyering@redhat.com>
14661
14662         maint.mk: fix syntax-check in a non-srcdir build directory
14663         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
14664         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
14665
14666 2010-01-22  Jim Meyering  <meyering@redhat.com>
14667
14668         userspec: add unit tests
14669         * tests/test-userspec.c: New file.
14670         * modules/userspec-tests: Likewise.
14671
14672 2010-01-21  Jim Meyering  <meyering@redhat.com>
14673
14674         maint.mk: handle source file names containing "." robustly
14675         * top/maint.mk (_dot_escaped_srcdir): Define.
14676         (VC_LIST): Use it in LHS of sed substitution.
14677
14678 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
14679
14680         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
14681         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
14682         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
14683         from a non-srcdir build.
14684
14685 2010-01-20  Eric Blake  <ebb9@byu.net>
14686
14687         warn-on-use: use instead of link-warning
14688         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
14689         * modules/unistd (Depends-on, Makefile.am): Likewise.
14690         * modules/arpa_inet (Depends-on): Replace link-warning with
14691         warn-on-use.
14692         (Makefile.am): Update rules accordingly.
14693         * modules/ctype (Depends-on, Makefile.am): Likewise.
14694         * modules/dirent (Depends-on, Makefile.am): Likewise.
14695         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
14696         * modules/inttypes (Depends-on, Makefile.am): Likewise.
14697         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14698         * modules/locale (Depends-on, Makefile.am): Likewise.
14699         * modules/math (Depends-on, Makefile.am): Likewise.
14700         * modules/search (Depends-on, Makefile.am): Likewise.
14701         * modules/signal (Depends-on, Makefile.am): Likewise.
14702         * modules/spawn (Depends-on, Makefile.am): Likewise.
14703         * modules/stdlib (Depends-on, Makefile.am): Likewise.
14704         * modules/string (Depends-on, Makefile.am): Likewise.
14705         * modules/strings (Depends-on, Makefile.am): Likewise.
14706         * modules/sys_file (Depends-on, Makefile.am): Likewise.
14707         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
14708         * modules/sys_select (Depends-on, Makefile.am): Likewise.
14709         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
14710         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
14711         * modules/sys_times (Depends-on, Makefile.am): Likewise.
14712         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14713         * modules/wchar (Depends-on, Makefile.am): Likewise.
14714         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
14715         should be poisoned.
14716         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
14717         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
14718         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
14719         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14720         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14721         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14722         * m4/math_h.m4 (gl_MATH_H): Likewise.
14723         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14724         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14725         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14726         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14727         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14729         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14730         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
14731         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14732         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14734         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14735         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14737         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14738         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14739         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
14740         GL_LINK_WARNING.
14741         * lib/ctype.in.h: Likewise.
14742         * lib/dirent.in.h: Likewise.
14743         * lib/fcntl.in.h: Likewise.
14744         * lib/inttypes.in.h: Likewise.
14745         * lib/langinfo.in.h: Likewise.
14746         * lib/locale.in.h: Likewise.
14747         * lib/math.in.h: Likewise.
14748         * lib/search.in.h: Likewise.
14749         * lib/signal.in.h: Likewise.
14750         * lib/spawn.in.h: Likewise.
14751         * lib/stdio.in.h: Likewise.
14752         * lib/stdlib.in.h: Likewise.
14753         * lib/string.in.h: Likewise.
14754         * lib/strings.in.h: Likewise.
14755         * lib/sys_file.in.h: Likewise.
14756         * lib/sys_ioctl.in.h: Likewise.
14757         * lib/sys_select.in.h: Likewise.
14758         * lib/sys_socket.in.h: Likewise.
14759         * lib/sys_stat.in.h: Likewise.
14760         * lib/sys_times.in.h: Likewise.
14761         * lib/sys_utsname.in.h: Likewise.
14762         * lib/unistd.in.h: Likewise.
14763         * lib/wchar.in.h: Likewise.
14764
14765 2010-01-20  Bruno Haible  <bruno@clisp.org>
14766
14767         Avoid duplicate -lm.
14768         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
14769         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
14770         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
14771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
14772         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
14773         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
14774         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
14775         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
14776         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
14777         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
14778         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
14779         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14780         Reported by Paolo Bonzini.
14781
14782 2010-01-19  Bruno Haible  <bruno@clisp.org>
14783
14784         langinfo, nl_langinfo: Relicense under LGPLv2+.
14785         * modules/langinfo (License): Change to LGPLv2+.
14786         * modules/nl_langinfo (License): Likewise.
14787         Patch by David Lutterkort <lutter@redhat.com>.
14788
14789 2010-01-19  Bruno Haible  <bruno@clisp.org>
14790
14791         Avoid compilation error with cc on OSF/1 5.1.
14792         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
14793         statement, not before.
14794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14795
14796 2010-01-18  Bruno Haible  <bruno@clisp.org>
14797
14798         Avoid a link error due to the __printf__ symbol.
14799         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
14800         and 2.6.x.
14801         (__format__, __printf__): Remove definitions.
14802         * lib/argp-fmtstream.h: Likewise.
14803         * lib/argp.h: Likewise.
14804         * lib/error.h: Likewise.
14805         * lib/vasnprintf.h: Likewise.
14806         * lib/xprintf.h: Likewise.
14807         * lib/xvasprintf.h: Likewise.
14808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14809
14810 2010-01-18  Bruno Haible  <bruno@clisp.org>
14811
14812         Tests for module 'tanl'.
14813         * modules/tanl-tests: New file.
14814         * tests/test-tanl.c: New file.
14815
14816         Tests for module 'sqrtl'.
14817         * modules/sqrtl-tests: New file.
14818         * tests/test-sqrtl.c: New file.
14819
14820         Tests for module 'sinl'.
14821         * modules/sinl-tests: New file.
14822         * tests/test-sinl.c: New file.
14823
14824         Tests for module 'logl'.
14825         * modules/logl-tests: New file.
14826         * tests/test-logl.c: New file.
14827
14828         Tests for module 'expl'.
14829         * modules/expl-tests: New file.
14830         * tests/test-expl.c: New file.
14831
14832         Tests for module 'cosl'.
14833         * modules/cosl-tests: New file.
14834         * tests/test-cosl.c: New file.
14835
14836         Tests for module 'atanl'.
14837         * modules/atanl-tests: New file.
14838         * tests/test-atanl.c: New file.
14839
14840         Tests for module 'asinl'.
14841         * modules/asinl-tests: New file.
14842         * tests/test-asinl.c: New file.
14843
14844         Tests for module 'acosl'.
14845         * modules/acosl-tests: New file.
14846         * tests/test-acosl.c: New file.
14847
14848         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14849         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
14850         tanl): Use the standard gnulib idiom.
14851         * lib/cosl.c: Don't include trigl.c and sincosl.c.
14852         * lib/sinl.c: Likewise.
14853         * lib/tanl.c: Don't include trigl.c.
14854         (kernel_tanl): Make static.
14855         * lib/sincosl.c: Include trigl.h first.
14856         * lib/trigl.c: Likewise.
14857         * m4/acosl.m4: New file.
14858         * m4/asinl.m4: New file.
14859         * m4/atanl.m4: New file.
14860         * m4/cosl.m4: New file.
14861         * m4/expl.m4: New file.
14862         * m4/logl.m4: New file.
14863         * m4/sinl.m4: New file.
14864         * m4/sqrtl.m4: New file.
14865         * m4/tanl.m4: New file.
14866         * m4/mathl.m4: Remove file.
14867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
14868         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
14869         Don't initialize GNULIB_MATHL.
14870         * modules/acosl: New file.
14871         * modules/asinl: New file.
14872         * modules/atanl: New file.
14873         * modules/cosl: New file.
14874         * modules/expl: New file.
14875         * modules/logl: New file.
14876         * modules/sinl: New file.
14877         * modules/sqrtl: New file.
14878         * modules/tanl: New file.
14879         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
14880         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
14881         substitute GNULIB_MATHL.
14882         * modules/mathl: Rewritten.
14883         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
14884         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
14885         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
14886         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
14887         * doc/posix-functions/expl.texi: Mention the 'expl' module.
14888         * doc/posix-functions/logl.texi: Mention the 'logl' module.
14889         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
14890         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
14891         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
14892
14893 2010-01-18  Bruno Haible  <bruno@clisp.org>
14894
14895         sqrt: Make gl_FUNC_SQRT requirable.
14896         * m4/sqrt.m4: New file.
14897         * modules/sqrt (Files): Add it.
14898         (configure.ac): Invoke gl_FUNC_SQRT.
14899
14900 2010-01-18  Bruno Haible  <bruno@clisp.org>
14901
14902         New modules for common <math.h> functions.
14903         * m4/mathfunc.m4: New file.
14904         * modules/acos: New file.
14905         * modules/asin: New file.
14906         * modules/atan: New file.
14907         * modules/atan2: New file.
14908         * modules/cbrt: New file.
14909         * modules/copysign: New file.
14910         * modules/cos: New file.
14911         * modules/cosh: New file.
14912         * modules/erf: New file.
14913         * modules/erfc: New file.
14914         * modules/exp: New file.
14915         * modules/fabs: New file.
14916         * modules/fmod: New file.
14917         * modules/hypot: New file.
14918         * modules/j0: New file.
14919         * modules/j1: New file.
14920         * modules/jn: New file.
14921         * modules/ldexp: New file.
14922         * modules/lgamma: New file.
14923         * modules/log: New file.
14924         * modules/log10: New file.
14925         * modules/log1p: New file.
14926         * modules/logb: New file.
14927         * modules/modf: New file.
14928         * modules/nextafter: New file.
14929         * modules/pow: New file.
14930         * modules/remainder: New file.
14931         * modules/rint: New file.
14932         * modules/sin: New file.
14933         * modules/sinh: New file.
14934         * modules/sqrt: New file.
14935         * modules/tan: New file.
14936         * modules/tanh: New file.
14937         * modules/y0: New file.
14938         * modules/y1: New file.
14939         * modules/yn: New file.
14940         * doc/posix-functions/acos.texi: Mention the 'acos' module.
14941         * doc/posix-functions/asin.texi: Mention the 'asin' module.
14942         * doc/posix-functions/atan.texi: Mention the 'atan' module.
14943         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
14944         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
14945         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
14946         * doc/posix-functions/cos.texi: Mention the 'cos' module.
14947         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
14948         * doc/posix-functions/erf.texi: Mention the 'erf' module.
14949         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
14950         * doc/posix-functions/exp.texi: Mention the 'exp' module.
14951         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
14952         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
14953         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
14954         * doc/posix-functions/j0.texi: Mention the 'j0' module.
14955         * doc/posix-functions/j1.texi: Mention the 'j1' module.
14956         * doc/posix-functions/jn.texi: Mention the 'jn' module.
14957         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
14958         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
14959         * doc/posix-functions/log.texi: Mention the 'log' module.
14960         * doc/posix-functions/log10.texi: Mention the 'log10' module.
14961         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
14962         * doc/posix-functions/logb.texi: Mention the 'logb' module.
14963         * doc/posix-functions/modf.texi: Mention the 'modf' module.
14964         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
14965         * doc/posix-functions/pow.texi: Mention the 'pow' module.
14966         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
14967         * doc/posix-functions/rint.texi: Mention the 'rint' module.
14968         * doc/posix-functions/sin.texi: Mention the 'sin' module.
14969         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
14970         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
14971         * doc/posix-functions/tan.texi: Mention the 'tan' module.
14972         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
14973         * doc/posix-functions/y0.texi: Mention the 'y0' module.
14974         * doc/posix-functions/y1.texi: Mention the 'y1' module.
14975         * doc/posix-functions/yn.texi: Mention the 'yn' module.
14976
14977 2010-01-18  Jim Meyering  <meyering@redhat.com>
14978
14979         ignore-value: relax license to LGPLv2+
14980         * modules/ignore-value (License): Relax to LGPLv2+.
14981
14982         getdate: don't leak when TZ contains two or more '"'s
14983         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
14984         double quote in TZ after the first one.
14985
14986         readtokens: do not leak internal token_lengths buffer
14987         * lib/readtokens.c (readtokens): Free the local, lengths,
14988         when the supplied "token_lengths" parameter is NULL.
14989
14990 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14991
14992         Fix a couple of missing LIBTHREAD link failures on AIX.
14993         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
14994         $(LIBTHREAD).
14995         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
14996
14997         Link test-poll against INET_PTON_LIB.
14998         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
14999         for inet_pton on Solaris 10.
15000
15001 2010-01-17  Bruno Haible  <bruno@clisp.org>
15002
15003         unistdio/*-sprintf: Fix typo in module description.
15004         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
15005         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
15006         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
15007         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
15008         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
15009         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
15010         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
15011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15012
15013 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15014
15015         gnulib-tool: fix filelist for AIX, HP-UX ksh.
15016         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
15017         variables in shell case patterns, for AIX and HP-UX ksh.
15018
15019         Split large sed scripts, for HP-UX sed.
15020         * modules/stdio: Split sed scripts around 50 sed commands,
15021         to avoid HP-UX limit of 99 commands, in the near future.
15022         * modules/string: Likewise.
15023         * modules/unistd: Likewise.
15024
15025         gnulib-tool: avoid writing in the current directory.
15026         * gnulib-tool (func_emit_lib_Makefile_am)
15027         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
15028         not in the current directory, so concurrent gnulib-tool
15029         instances do not interfere.
15030
15031 2010-01-16  Jim Meyering  <meyering@redhat.com>
15032
15033         doc: update users.txt
15034         * users.txt: Add grep.
15035         (diffutils, gzip): Update URLs.
15036
15037 2010-01-12  Bruno Haible  <bruno@clisp.org>
15038
15039         posix_spawn: Avoid test failure on Cygwin.
15040         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
15041         characters.
15042         Reported by Simon Josefsson.
15043
15044 2010-01-12  Bruno Haible  <bruno@clisp.org>
15045
15046         * tests/test-cond.c (main): When skipping the test, show the reason.
15047
15048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15049
15050         * lib/striconv.c (str_cd_iconv): Avoid if before free.
15051
15052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15053
15054         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
15055         VC_LIST_ALWAYS_EXCLUDE_REGEX.
15056
15057 2010-01-12  Eric Blake  <ebb9@byu.net>
15058
15059         build: guarantee AS_VAR_IF
15060         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
15061         (gl_AS_VAR_IF): Move...
15062         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
15063         Reported by Simon Josefsson.
15064
15065 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15066
15067         * lib/stdio.in.h: Fix typo.
15068
15069 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15070
15071         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
15072         libgpg-error.
15073
15074 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15075
15076         * tests/test-xalloc-die.sh: Use $EXEEXT.
15077
15078 2010-01-12  Simon Josefsson  <simon@josefsson.org>
15079             Bruno Haible  <bruno@clisp.org>
15080
15081         getlogin, getlogin_r: Avoid test failure.
15082         * tests/test-getlogin.c: Include <stdio.h>.
15083         (main): Skip the test when the function fails because stdin is not a
15084         tty.
15085         * tests/test-getlogin_r.c: Include <stdio.h>.
15086         (main): Skip the test when the function fails because stdin is not a
15087         tty.
15088
15089 2010-01-11  Eric Blake  <ebb9@byu.net>
15090
15091         tests: avoid more large file warnings
15092         * tests/test-fflush.c: Avoid warning about ftell use.
15093         * tests/test-fseek.c: Avoid warning about fseek use.
15094
15095 2010-01-10  Bruno Haible  <bruno@clisp.org>
15096
15097         nproc: Work better on Linux when /proc and /sys are not mounted.
15098         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
15099         as lower bound when, on glibc/Linux systems,
15100         sysconf (_SC_NPROCESSORS_CONF) returns 1.
15101         Suggested by Pádraig Brady <P@draigbrady.com>.
15102         Reported by Dmitry V. Levin <ldv@altlinux.org>.
15103
15104         nproc: Refactor.
15105         * lib/nproc.c (num_processors_via_affinity_mask): New function,
15106         extracted from num_processors.
15107         (num_processors): Call it.
15108
15109 2010-01-11  Jim Meyering  <meyering@redhat.com>
15110
15111         utimecmp: avoid new warning from upcoming gcc-4.5.0
15112         * lib/utimecmp.c (BILLION): Define using #define rather than an
15113         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
15114
15115 2010-01-11  Eric Blake  <ebb9@byu.net>
15116
15117         math: add portability warnings for classification macros
15118         * modules/math (Depends-on): Add warn-on-use.
15119         (Makefile.am): Provide new substitutions.
15120         * m4/math_h.m4 (gl_MATH_H): Require inline.
15121         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
15122         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
15123         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
15124         implement warnings.
15125
15126         unistd: warn on use of environ without module
15127         * modules/unistd (Depends-on): Add warn-on-use.
15128         (Makefile.am): Provide new substitutions.
15129         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
15130         * lib/unistd.in.h (environ): Wrap with a warning helper function.
15131
15132         stdio: warn on suspicious uses
15133         * modules/stdio (Depends-on): Add warn-on-use.
15134         (Makefile.am): Provide new substitutions.
15135         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
15136         fseeko.
15137         * lib/stdio.in.h (gets): Always warn on use.
15138         (fseek, ftell): Adjust when warnings are issued, and honor
15139         _GL_NO_LARGE_FILES as a way to silence the warning.
15140         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
15141         any warning about large file offsets.
15142         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
15143         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
15144         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
15145         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
15146         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
15147         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
15148         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
15149         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
15150
15151         warn-on-use: new module
15152         * modules/warn-on-use: New file.
15153         * build-aux/warn-on-use.h: Likewise.
15154         * m4/warn-on-use.m4: Likewise.
15155         * MODULES.html.sh (Support for building): Mention it.
15156
15157 2010-01-10  Bruno Haible  <bruno@clisp.org>
15158
15159         Tests for module 'unistr/u32-strdup'.
15160         * modules/unistr/u32-strdup-tests: New file.
15161         * tests/unistr/test-u32-strdup.c: New file.
15162
15163         Tests for module 'unistr/u16-strdup'.
15164         * modules/unistr/u16-strdup-tests: New file.
15165         * tests/unistr/test-u16-strdup.c: New file.
15166
15167         Tests for module 'unistr/u8-strdup'.
15168         * modules/unistr/u8-strdup-tests: New file.
15169         * tests/unistr/test-u8-strdup.c: New file.
15170         * tests/unistr/test-strdup.h: New file.
15171
15172         Tests for module 'unistr/u32-strncmp'.
15173         * modules/unistr/u32-strncmp-tests: New file.
15174         * tests/unistr/test-u32-strncmp.c: New file.
15175
15176         Tests for module 'unistr/u16-strncmp'.
15177         * modules/unistr/u16-strncmp-tests: New file.
15178         * tests/unistr/test-u16-strncmp.c: New file.
15179
15180         Tests for module 'unistr/u8-strncmp'.
15181         * modules/unistr/u8-strncmp-tests: New file.
15182         * tests/unistr/test-u8-strncmp.c: New file.
15183         * tests/unistr/test-strncmp.h: New file.
15184
15185         Tests for module 'unistr/u32-strcoll'.
15186         * modules/unistr/u32-strcoll-tests: New file.
15187         * tests/unistr/test-u32-strcoll.c: New file.
15188
15189         Tests for module 'unistr/u16-strcoll'.
15190         * modules/unistr/u16-strcoll-tests: New file.
15191         * tests/unistr/test-u16-strcoll.c: New file.
15192
15193         Tests for module 'unistr/u8-strcoll'.
15194         * modules/unistr/u8-strcoll-tests: New file.
15195         * tests/unistr/test-u8-strcoll.c: New file.
15196
15197         Tests for module 'unistr/u32-strcmp'.
15198         * modules/unistr/u32-strcmp-tests: New file.
15199         * tests/unistr/test-u32-strcmp.c: New file.
15200         * tests/unistr/test-u32-strcmp.h: New file.
15201
15202         Tests for module 'unistr/u16-strcmp'.
15203         * modules/unistr/u16-strcmp-tests: New file.
15204         * tests/unistr/test-u16-strcmp.c: New file.
15205         * tests/unistr/test-u16-strcmp.h: New file.
15206
15207         Tests for module 'unistr/u8-strcmp'.
15208         * modules/unistr/u8-strcmp-tests: New file.
15209         * tests/unistr/test-u8-strcmp.c: New file.
15210         * tests/unistr/test-u8-strcmp.h: New file.
15211         * tests/unistr/test-strcmp.h: New file.
15212
15213         Tests for module 'unistr/u32-strncat'.
15214         * modules/unistr/u32-strncat-tests: New file.
15215         * tests/unistr/test-u32-strncat.c: New file.
15216
15217         Tests for module 'unistr/u16-strncat'.
15218         * modules/unistr/u16-strncat-tests: New file.
15219         * tests/unistr/test-u16-strncat.c: New file.
15220
15221         Tests for module 'unistr/u8-strncat'.
15222         * modules/unistr/u8-strncat-tests: New file.
15223         * tests/unistr/test-u8-strncat.c: New file.
15224         * tests/unistr/test-strncat.h: New file.
15225
15226         Tests for module 'unistr/u32-strcat'.
15227         * modules/unistr/u32-strcat-tests: New file.
15228         * tests/unistr/test-u32-strcat.c: New file.
15229
15230         Tests for module 'unistr/u16-strcat'.
15231         * modules/unistr/u16-strcat-tests: New file.
15232         * tests/unistr/test-u16-strcat.c: New file.
15233
15234         Tests for module 'unistr/u8-strcat'.
15235         * modules/unistr/u8-strcat-tests: New file.
15236         * tests/unistr/test-u8-strcat.c: New file.
15237         * tests/unistr/test-strcat.h: New file.
15238
15239         Tests for module 'unistr/u32-stpncpy'.
15240         * modules/unistr/u32-stpncpy-tests: New file.
15241         * tests/unistr/test-u32-stpncpy.c: New file.
15242
15243         Tests for module 'unistr/u16-stpncpy'.
15244         * modules/unistr/u16-stpncpy-tests: New file.
15245         * tests/unistr/test-u16-stpncpy.c: New file.
15246
15247         Tests for module 'unistr/u8-stpncpy'.
15248         * modules/unistr/u8-stpncpy-tests: New file.
15249         * tests/unistr/test-u8-stpncpy.c: New file.
15250         * tests/unistr/test-stpncpy.h: New file.
15251
15252         Tests for module 'unistr/u32-strncpy'.
15253         * modules/unistr/u32-strncpy-tests: New file.
15254         * tests/unistr/test-u32-strncpy.c: New file.
15255
15256         Tests for module 'unistr/u16-strncpy'.
15257         * modules/unistr/u16-strncpy-tests: New file.
15258         * tests/unistr/test-u16-strncpy.c: New file.
15259
15260         Tests for module 'unistr/u8-strncpy'.
15261         * modules/unistr/u8-strncpy-tests: New file.
15262         * tests/unistr/test-u8-strncpy.c: New file.
15263         * tests/unistr/test-strncpy.h: New file.
15264
15265         Tests for module 'unistr/u32-stpcpy'.
15266         * modules/unistr/u32-stpcpy-tests: New file.
15267         * tests/unistr/test-u32-stpcpy.c: New file.
15268
15269         Tests for module 'unistr/u16-stpcpy'.
15270         * modules/unistr/u16-stpcpy-tests: New file.
15271         * tests/unistr/test-u16-stpcpy.c: New file.
15272
15273         Tests for module 'unistr/u8-stpcpy'.
15274         * modules/unistr/u8-stpcpy-tests: New file.
15275         * tests/unistr/test-u8-stpcpy.c: New file.
15276         * tests/unistr/test-stpcpy.h: New file.
15277
15278         Tests for module 'unistr/u32-strcpy'.
15279         * modules/unistr/u32-strcpy-tests: New file.
15280         * tests/unistr/test-u32-strcpy.c: New file.
15281
15282         Tests for module 'unistr/u16-strcpy'.
15283         * modules/unistr/u16-strcpy-tests: New file.
15284         * tests/unistr/test-u16-strcpy.c: New file.
15285
15286         Tests for module 'unistr/u8-strcpy'.
15287         * modules/unistr/u8-strcpy-tests: New file.
15288         * tests/unistr/test-u8-strcpy.c: New file.
15289         * tests/unistr/test-strcpy.h: New file.
15290
15291         Tests for module 'unistr/u32-strnlen'.
15292         * modules/unistr/u32-strnlen-tests: New file.
15293         * tests/unistr/test-u32-strnlen.c: New file.
15294
15295         Tests for module 'unistr/u16-strnlen'.
15296         * modules/unistr/u16-strnlen-tests: New file.
15297         * tests/unistr/test-u16-strnlen.c: New file.
15298
15299         Tests for module 'unistr/u8-strnlen'.
15300         * modules/unistr/u8-strnlen-tests: New file.
15301         * tests/unistr/test-u8-strnlen.c: New file.
15302         * tests/unistr/test-strnlen.h: New file.
15303
15304         Tests for module 'unistr/u32-strlen'.
15305         * modules/unistr/u32-strlen-tests: New file.
15306         * tests/unistr/test-u32-strlen.c: New file.
15307
15308         Tests for module 'unistr/u16-strlen'.
15309         * modules/unistr/u16-strlen-tests: New file.
15310         * tests/unistr/test-u16-strlen.c: New file.
15311
15312         Tests for module 'unistr/u8-strlen'.
15313         * modules/unistr/u8-strlen-tests: New file.
15314         * tests/unistr/test-u8-strlen.c: New file.
15315
15316         Tests for module 'unistr/u32-prev'.
15317         * modules/unistr/u32-prev-tests: New file.
15318         * tests/unistr/test-u32-prev.c: New file.
15319
15320         Tests for module 'unistr/u16-prev'.
15321         * modules/unistr/u16-prev-tests: New file.
15322         * tests/unistr/test-u16-prev.c: New file.
15323
15324         Tests for module 'unistr/u8-prev'.
15325         * modules/unistr/u8-prev-tests: New file.
15326         * tests/unistr/test-u8-prev.c: New file.
15327
15328         Tests for module 'unistr/u32-next'.
15329         * modules/unistr/u32-next-tests: New file.
15330         * tests/unistr/test-u32-next.c: New file.
15331
15332         Tests for module 'unistr/u16-next'.
15333         * modules/unistr/u16-next-tests: New file.
15334         * tests/unistr/test-u16-next.c: New file.
15335
15336         Tests for module 'unistr/u8-next'.
15337         * modules/unistr/u8-next-tests: New file.
15338         * tests/unistr/test-u8-next.c: New file.
15339
15340         Tests for module 'unistr/u32-strmbtouc'.
15341         * modules/unistr/u32-strmbtouc-tests: New file.
15342         * tests/unistr/test-u32-strmbtouc.c: New file.
15343
15344         Tests for module 'unistr/u16-strmbtouc'.
15345         * modules/unistr/u16-strmbtouc-tests: New file.
15346         * tests/unistr/test-u16-strmbtouc.c: New file.
15347
15348         Tests for module 'unistr/u8-strmbtouc'.
15349         * modules/unistr/u8-strmbtouc-tests: New file.
15350         * tests/unistr/test-u8-strmbtouc.c: New file.
15351
15352         Tests for module 'unistr/u32-strmblen'.
15353         * modules/unistr/u32-strmblen-tests: New file.
15354         * tests/unistr/test-u32-strmblen.c: New file.
15355
15356         Tests for module 'unistr/u16-strmblen'.
15357         * modules/unistr/u16-strmblen-tests: New file.
15358         * tests/unistr/test-u16-strmblen.c: New file.
15359
15360         Tests for module 'unistr/u8-strmblen'.
15361         * modules/unistr/u8-strmblen-tests: New file.
15362         * tests/unistr/test-u8-strmblen.c: New file.
15363
15364         Tests for module 'unistr/u32-cpy-alloc'.
15365         * modules/unistr/u32-cpy-alloc-tests: New file.
15366         * tests/unistr/test-u32-cpy-alloc.c: New file.
15367
15368         Tests for module 'unistr/u16-cpy-alloc'.
15369         * modules/unistr/u16-cpy-alloc-tests: New file.
15370         * tests/unistr/test-u16-cpy-alloc.c: New file.
15371
15372         Tests for module 'unistr/u8-cpy-alloc'.
15373         * modules/unistr/u8-cpy-alloc-tests: New file.
15374         * tests/unistr/test-u8-cpy-alloc.c: New file.
15375         * tests/unistr/test-cpy-alloc.h: New file.
15376
15377         Tests for module 'unistr/u32-mbsnlen'.
15378         * modules/unistr/u32-mbsnlen-tests: New file.
15379         * tests/unistr/test-u32-mbsnlen.c: New file.
15380
15381         Tests for module 'unistr/u16-mbsnlen'.
15382         * modules/unistr/u16-mbsnlen-tests: New file.
15383         * tests/unistr/test-u16-mbsnlen.c: New file.
15384
15385         Tests for module 'unistr/u8-mbsnlen'.
15386         * modules/unistr/u8-mbsnlen-tests: New file.
15387         * tests/unistr/test-u8-mbsnlen.c: New file.
15388
15389         Tests for module 'unistr/u32-chr'.
15390         * modules/unistr/u32-chr-tests: New file.
15391         * tests/unistr/test-u32-chr.c: New file.
15392
15393         Tests for module 'unistr/u16-chr'.
15394         * modules/unistr/u16-chr-tests: New file.
15395         * tests/unistr/test-u16-chr.c: New file.
15396
15397         Tests for module 'unistr/u8-chr'.
15398         * modules/unistr/u8-chr-tests: New file.
15399         * tests/unistr/test-u8-chr.c: New file.
15400         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
15401
15402         Tests for module 'unistr/u32-cmp2'.
15403         * modules/unistr/u32-cmp2-tests: New file.
15404         * tests/unistr/test-u32-cmp2.c: New file.
15405
15406         Tests for module 'unistr/u16-cmp2'.
15407         * modules/unistr/u16-cmp2-tests: New file.
15408         * tests/unistr/test-u16-cmp2.c: New file.
15409
15410         Tests for module 'unistr/u8-cmp2'.
15411         * modules/unistr/u8-cmp2-tests: New file.
15412         * tests/unistr/test-u8-cmp2.c: New file.
15413         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
15414
15415         Tests for module 'unistr/u32-cmp'.
15416         * modules/unistr/u32-cmp-tests: New file.
15417         * tests/unistr/test-u32-cmp.c: New file.
15418
15419         Tests for module 'unistr/u16-cmp'.
15420         * modules/unistr/u16-cmp-tests: New file.
15421         * tests/unistr/test-u16-cmp.c: New file.
15422
15423         Tests for module 'unistr/u8-cmp'.
15424         * modules/unistr/u8-cmp-tests: New file.
15425         * tests/unistr/test-u8-cmp.c: New file.
15426         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
15427
15428         Tests for module 'unistr/u32-set'.
15429         * modules/unistr/u32-set-tests: New file.
15430         * tests/unistr/test-u32-set.c: New file.
15431
15432         Tests for module 'unistr/u16-set'.
15433         * modules/unistr/u16-set-tests: New file.
15434         * tests/unistr/test-u16-set.c: New file.
15435
15436         Tests for module 'unistr/u8-set'.
15437         * modules/unistr/u8-set-tests: New file.
15438         * tests/unistr/test-u8-set.c: New file.
15439         * tests/unistr/test-set.h: New file.
15440
15441         Tests for module 'unistr/u32-move'.
15442         * modules/unistr/u32-move-tests: New file.
15443         * tests/unistr/test-u32-move.c: New file.
15444
15445         Tests for module 'unistr/u16-move'.
15446         * modules/unistr/u16-move-tests: New file.
15447         * tests/unistr/test-u16-move.c: New file.
15448
15449         Tests for module 'unistr/u8-move'.
15450         * modules/unistr/u8-move-tests: New file.
15451         * tests/unistr/test-u8-move.c: New file.
15452         * tests/unistr/test-move.h: New file.
15453
15454         Tests for module 'unistr/u32-cpy'.
15455         * modules/unistr/u32-cpy-tests: New file.
15456         * tests/unistr/test-u32-cpy.c: New file.
15457
15458         Tests for module 'unistr/u16-cpy'.
15459         * modules/unistr/u16-cpy-tests: New file.
15460         * tests/unistr/test-u16-cpy.c: New file.
15461
15462         Tests for module 'unistr/u8-cpy'.
15463         * modules/unistr/u8-cpy-tests: New file.
15464         * tests/unistr/test-u8-cpy.c: New file.
15465         * tests/unistr/test-cpy.h: New file.
15466
15467 2010-01-09  Bruno Haible  <bruno@clisp.org>
15468
15469         Tests for module 'unistr/u32-uctomb'.
15470         * modules/unistr/u32-uctomb-tests: New file.
15471         * tests/unistr/test-u32-uctomb.c: New file.
15472
15473         Tests for module 'unistr/u16-uctomb'.
15474         * modules/unistr/u16-uctomb-tests: New file.
15475         * tests/unistr/test-u16-uctomb.c: New file.
15476
15477         Tests for module 'unistr/u8-uctomb'.
15478         * modules/unistr/u8-uctomb-tests: New file.
15479         * tests/unistr/test-u8-uctomb.c: New file.
15480
15481         Tests for module 'unistr/u32-mbtoucr'.
15482         * modules/unistr/u32-mbtoucr-tests: New file.
15483         * tests/unistr/test-u32-mbtoucr.c: New file.
15484
15485         Tests for module 'unistr/u16-mbtoucr'.
15486         * modules/unistr/u16-mbtoucr-tests: New file.
15487         * tests/unistr/test-u16-mbtoucr.c: New file.
15488
15489         Tests for module 'unistr/u8-mbtoucr'.
15490         * modules/unistr/u8-mbtoucr-tests: New file.
15491         * tests/unistr/test-u8-mbtoucr.c: New file.
15492
15493         Tests for module 'unistr/u32-mbtouc'.
15494         * modules/unistr/u32-mbtouc-tests: New file.
15495         * tests/unistr/test-u32-mbtouc.c: New file.
15496
15497         Tests for module 'unistr/u16-mbtouc'.
15498         * modules/unistr/u16-mbtouc-tests: New file.
15499         * tests/unistr/test-u16-mbtouc.c: New file.
15500
15501         Tests for module 'unistr/u8-mbtouc'.
15502         * modules/unistr/u8-mbtouc-tests: New file.
15503         * tests/unistr/test-u8-mbtouc.c: New file.
15504
15505         Tests for module 'unistr/u32-mbtouc-unsafe'.
15506         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
15507         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
15508         * tests/unistr/test-u32-mbtouc.h: New file.
15509
15510         Tests for module 'unistr/u16-mbtouc-unsafe'.
15511         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
15512         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
15513         * tests/unistr/test-u16-mbtouc.h: New file.
15514
15515         Tests for module 'unistr/u8-mbtouc-unsafe'.
15516         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
15517         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
15518         * tests/unistr/test-u8-mbtouc.h: New file.
15519
15520         Tests for module 'unistr/u32-mblen'.
15521         * modules/unistr/u32-mblen-tests: New file.
15522         * tests/unistr/test-u32-mblen.c: New file.
15523
15524         Tests for module 'unistr/u16-mblen'.
15525         * modules/unistr/u16-mblen-tests: New file.
15526         * tests/unistr/test-u16-mblen.c: New file.
15527
15528         Tests for module 'unistr/u8-mblen'.
15529         * modules/unistr/u8-mblen-tests: New file.
15530         * tests/unistr/test-u8-mblen.c: New file.
15531
15532         Tests for module 'unistr/u32-to-u16'.
15533         * modules/unistr/u32-to-u16-tests: New file.
15534         * tests/unistr/test-u32-to-u16.c: New file.
15535
15536         Tests for module 'unistr/u32-to-u8'.
15537         * modules/unistr/u32-to-u8-tests: New file.
15538         * tests/unistr/test-u32-to-u8.c: New file.
15539
15540         Tests for module 'unistr/u16-to-u32'.
15541         * modules/unistr/u16-to-u32-tests: New file.
15542         * tests/unistr/test-u16-to-u32.c: New file.
15543
15544         Tests for module 'unistr/u16-to-u8'.
15545         * modules/unistr/u16-to-u8-tests: New file.
15546         * tests/unistr/test-u16-to-u8.c: New file.
15547
15548         Tests for module 'unistr/u8-to-u32'.
15549         * modules/unistr/u8-to-u32-tests: New file.
15550         * tests/unistr/test-u8-to-u32.c: New file.
15551
15552         Tests for module 'unistr/u8-to-u16'.
15553         * modules/unistr/u8-to-u16-tests: New file.
15554         * tests/unistr/test-u8-to-u16.c: New file.
15555
15556         Tests for module 'unistr/u32-check'.
15557         * modules/unistr/u32-check-tests: New file.
15558         * tests/unistr/test-u32-check.c: New file.
15559
15560         Tests for module 'unistr/u16-check'.
15561         * modules/unistr/u16-check-tests: New file.
15562         * tests/unistr/test-u16-check.c: New file.
15563
15564         Tests for module 'unistr/u8-check'.
15565         * modules/unistr/u8-check-tests: New file.
15566         * tests/unistr/test-u8-check.c: New file.
15567
15568         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
15569         (category_equals): New function.
15570         (main): Add more tests.
15571         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
15572
15573         * tests/unictype/test-bidi_byname.c (main): Add more tests.
15574
15575 2010-01-10  Bruno Haible  <bruno@clisp.org>
15576
15577         unistr/u*-strcoll: Try harder to distinguish different strings.
15578         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
15579         compare s1 and s2 to see if they are different.
15580
15581 2010-01-10  Bruno Haible  <bruno@clisp.org>
15582
15583         unistr/u*-stpncpy: Fix the return value.
15584         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
15585         description of the return value consistent with stpncpy in glibc.
15586         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
15587         written non-NUL unit.
15588
15589 2010-01-10  Bruno Haible  <bruno@clisp.org>
15590
15591         unistr/u*-next: Add missing dependencies.
15592         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
15593         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
15594         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
15595
15596 2010-01-10  Bruno Haible  <bruno@clisp.org>
15597
15598         unistr/u8-mbsnlen: Fix return value for incomplete character.
15599         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
15600         u8_mblen.
15601         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
15602         Remove unistr/u8-mblen.
15603         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
15604         u16_mblen.
15605         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
15606         Remove unistr/u16-mblen.
15607
15608 2010-01-10  Bruno Haible  <bruno@clisp.org>
15609
15610         wchar: Fix compilation error when <wchar.h> is used from coreutils.
15611         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
15612         Reported by Brian Gough <bjg@gnu.org> and
15613         Chris Clayton <chris2553@googlemail.com> via
15614         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
15615
15616 2010-01-09  Bruno Haible  <bruno@clisp.org>
15617
15618         unistr/u16-to-u32: Reject invalid input.
15619         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
15620         u16_mbtouc.
15621         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
15622         Remove unistr/u16-mbtouc.
15623
15624         unistr/u16-to-u8: Reject invalid input.
15625         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
15626         u16_mbtouc.
15627         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
15628         Remove unistr/u16-mbtouc.
15629
15630         unistr/u8-to-u32: Reject invalid input.
15631         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
15632         u8_mbtouc.
15633         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
15634         Remove unistr/u8-mbtouc.
15635
15636         unistr/u8-to-u16: Reject invalid input.
15637         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
15638         u8_mbtouc.
15639         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
15640         Remove unistr/u8-mbtouc.
15641
15642 2010-01-09  Bruno Haible  <bruno@clisp.org>
15643
15644         Tests for module 'getlogin'.
15645         * modules/getlogin-tests: New file.
15646         * tests/test-getlogin.c: New file.
15647
15648         New module 'getlogin'.
15649         * lib/unistd.in.h (getlogin): New declaration.
15650         * lib/getlogin.c: New file.
15651         * m4/getlogin.m4: New file.
15652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
15653         HAVE_GETLOGIN.
15654         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
15655         HAVE_GETLOGIN.
15656         * modules/getlogin: New file.
15657         * doc/posix-functions/getlogin.texi: Mention the new module.
15658         Reported by John W. Eaton <jwe@gnu.org>.
15659
15660 2010-01-09  Bruno Haible  <bruno@clisp.org>
15661
15662         getlogin_r: Support for native Windows.
15663         * lib/getlogin_r.c: Include <windows.h>
15664         (getlogin_r): Implement for native Windows.
15665         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
15666         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
15667         via John W. Eaton <jwe@gnu.org>.
15668
15669 2010-01-09  Bruno Haible  <bruno@clisp.org>
15670
15671         getlogin_r: Small fixes.
15672         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
15673         succeeds.
15674         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
15675         before testing whether getlogin_r is declared. No need to set
15676         HAVE_DECL_GETLOGIN_R to 1.
15677         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
15678
15679 2010-01-09  Bruno Haible  <bruno@clisp.org>
15680
15681         * lib/unistd.in.h (getlogin_r): Add comment.
15682
15683 2010-01-09  Bruno Haible  <bruno@clisp.org>
15684
15685         Tests for module 'getlogin_r'.
15686         * modules/getlogin_r-tests: New file.
15687         * tests/test-getlogin_r.c: New file.
15688
15689 2010-01-09  Jim Meyering  <meyering@redhat.com>
15690
15691         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
15692         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
15693         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
15694
15695 2010-01-08  Simon Josefsson  <simon@josefsson.org>
15696
15697         * lib/dup2.c (rpl_dup2): Improve comment.
15698
15699 2010-01-08  Eric Blake  <ebb9@byu.net>
15700
15701         maint.mk: allow packages to add makefile @@ exceptions
15702         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
15703         (sc_makefile_check): Rename...
15704         (sc_makefile_at_at_check): ...to this, and use hook.
15705
15706         dup2: work around mingw bug
15707         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
15708         Reported by Simon Josefsson.
15709
15710 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
15711
15712         glob: Fix C++ compilation.
15713         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
15714         C++.
15715
15716 2010-01-07  Bruno Haible  <bruno@clisp.org>
15717
15718         Fix indentation of wctype.in.h, broken since 2007-01-06.
15719         * lib/wctype.in.h: Fix indentation of preprocessor directives.
15720
15721 2010-01-07  Bruno Haible  <bruno@clisp.org>
15722
15723         mbslen: Avoid collision with system function.
15724         * lib/string.in.h [MirBSD]: Include <wchar.h>.
15725         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
15726         * m4/mbslen.m4: New file.
15727         * modules/mbslen (Files): Add it.
15728         (configure.ac): Invoke gl_MBSLEN.
15729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
15730         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
15731         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
15732         via Ian Beckwith <ianb@erislabs.net>.
15733
15734 2010-01-07  Bruno Haible  <bruno@clisp.org>
15735
15736         dirent: Document the last fix.
15737         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
15738
15739 2010-01-07  Bruno Haible  <bruno@clisp.org>
15740
15741         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
15742         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
15743         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
15744         va_list are defined.
15745         * doc/posix-headers/stdio.texi: Document the bug of missing types.
15746         Reported by Eric Blake.
15747
15748 2010-01-07  Bruno Haible  <bruno@clisp.org>
15749
15750         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
15751         * modules/xlist (Depends-on): Add 'list',
15752         * modules/xoset (Depends-on): Add 'oset'.
15753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15754
15755 2010-01-07  Bruno Haible  <bruno@clisp.org>
15756
15757         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
15758         * doc/posix-functions/strncasecmp.texi: Likewise.
15759
15760 2010-01-07  Bruno Haible  <bruno@clisp.org>
15761
15762         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
15763
15764 2010-01-07  John W. Eaton  <jwe@octave.org>
15765
15766         wctype: allow C++ use
15767         * lib/wctype.in.h: Add extern "C" block for C++.
15768
15769 2010-01-06  Eric Blake  <ebb9@byu.net>
15770
15771         maint.mk: detect incorrect GFDL usage
15772         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
15773
15774 2010-01-06  Jim Meyering  <meyering@redhat.com>
15775         and Eric Blake  <ebb9@byu.net>
15776
15777         maint.mk: ignore multi-line copyright in NEWS
15778         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
15779
15780 2010-01-06  Eric Blake  <ebb9@byu.net>
15781
15782         select: add missing dependency
15783         * modules/select-tests (Depends-on): Move sockets dependency...
15784         * modules/select (Depends-on): ...here.
15785         Reported by Ian Beckwith.
15786
15787         doc: regenerate INSTALL
15788         * doc/INSTALL: Reflect recent autoconf update.
15789         * doc/INSTALL.ISO: Likewise.
15790         * doc/INSTALL.UTF-8: Likewise.
15791
15792         pread: fix compilation on glibc
15793         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
15794         Reported by Ralf Wildenhues.
15795
15796         dirent: fix test failure
15797         * lib/dirent.in.h (includes): Guarantee ino_t.
15798         Reported by Ralf Wildenhues.
15799
15800 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
15801
15802         linkat, renameat: avoid bad free
15803         * lib/at-func2.c (at_func2): Fix typo.
15804         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
15805
15806 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15807
15808         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
15809         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
15810         to avoid failure of symlink test later.
15811
15812 2010-01-06  Eric Blake  <ebb9@byu.net>
15813
15814         stdio, unistd: guarantee ssize_t
15815         * lib/unistd.in.h (includes): Ensure that types required by POSIX
15816         2008 are exposed when needed.
15817         * lib/stdio.in.h (includes): Likewise.
15818         Reported by Ralf Wildenhues.
15819
15820 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
15821
15822         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
15823         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
15824         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
15825
15826 2010-01-06  Jim Meyering  <meyering@redhat.com>
15827
15828         readtokens: this module *does* require xalloc.h
15829         It uses only functions that were omitted by the old syntax-check rule.
15830         * lib/readtokens.c: Include "xalloc.h" once again.
15831         * modules/readtokens (Depends-on): Add xalloc.
15832         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
15833
15834 2010-01-05  Eric Blake  <ebb9@byu.net>
15835
15836         maint: support 'make announcement' from a VPATH build
15837         * top/maint.mk (announcement): Look for correct NEWS file.
15838
15839 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
15840
15841         utimens (fdutimens): ignore a negative FD, per contract
15842         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
15843         when we have a valid file descriptor.  Otherwise, using a brand
15844         new glibc (with just-patched futimens that now fails with EBADF)
15845         would cause this function to fail with ENOSYS.
15846         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
15847         See also http://bugzilla.redhat.com/552320.
15848
15849 2010-01-05  Eric Blake  <ebb9@byu.net>
15850
15851         strcase: document what it provides
15852         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
15853         gnulib module.
15854         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
15855         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
15856
15857 2010-01-05  Jim Meyering  <meyering@redhat.com>
15858
15859         maint: remove useless inclusions of "xalloc.h"
15860         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
15861         * lib/readtokens.c: Likewise.
15862         * lib/same.c: Likewise.
15863         * modules/getloadavg (Depends-on): Remove xalloc.
15864         * modules/readtokens: Likewise.
15865         * modules/same: Likewise.
15866
15867         maint.mk: include 4 more function names in alloca.h-checking regexp
15868         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
15869         regexp.  Before, we would give a false-positive (saying alloca.h
15870         is included unnecessarily) when the only uses involved omitted symbols.
15871
15872         xalloc.h: use consistent formatting
15873         * lib/xalloc.h: Move declarations to start in the first column.
15874
15875 2010-01-05  Eric Blake  <ebb9@byu.net>
15876
15877         mkdir: avoid xalloc
15878         * lib/mkdir.c (includes): Drop unused header.
15879         Reported by John W. Eaton.
15880
15881 2010-01-04  Jim Meyering  <meyering@redhat.com>
15882
15883         nl_langinfo: avoid configure-time syntax error
15884         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
15885         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
15886         the empty string.  Don't let that provoke a shell syntax error.
15887
15888         regcomp, regexec, fnmatch: avoid array bounds read error
15889         * lib/regcomp.c (build_equiv_class): From glibc:
15890         Use only the low 24 bits of a findidx return value as an index
15891         into the weights array.  Patch by Ulrich Drepper:
15892         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
15893         * lib/regexec.c (check_node_accept_bytes): Likewise.
15894         * lib/fnmatch_loop.c (FCT): Likewise.
15895
15896         regcomp: skip collseq lookup when there are no rules
15897         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
15898         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
15899
15900         regcomp: recognize ill-formed { } expressions
15901         * lib/regcomp.c (parse_dup_op): From glibc:
15902         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
15903
15904         regcomp: fix typo in comment
15905         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
15906         s/satisfy/satisfies/.
15907
15908         regcomp: sync from glibc: remove dead store
15909         * lib/regcomp.c (duplicate_node_closure): Remove useless
15910         search_duplicated_node call and dead store.
15911
15912         regcomp: sync from glibc; always use nl_langinfo
15913         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
15914         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
15915         * modules/regex (Depends-on): Add nl_langinfo.
15916
15917 2010-01-04  Eric Blake  <ebb9@byu.net>
15918
15919         fdopendir: fix configure test
15920         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
15921
15922 2010-01-01  Bruno Haible  <bruno@clisp.org>
15923
15924         wchar: Remove unused configure check.
15925         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
15926
15927 2010-01-01  Eric Blake  <ebb9@byu.net>
15928
15929         headers: make check of system header explicit
15930         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
15931         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
15932         ourselves.
15933         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15935         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15936         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
15937         internals.
15938         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
15939         missing.
15940         Suggested by Bruno Haible.
15941
15942 2010-01-01  Jim Meyering  <meyering@redhat.com>
15943
15944         ChangeLog: tweak to eliminate unnecessary copyright line
15945         * ChangeLog: Remove a copyright line that was mistakenly updated
15946         by today's update-copyright run.  Reported by Eric Blake.
15947
15948         test-update-copyright: don't let envvar setting cause test failure
15949         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15950
15951 2010-01-01  Bruno Haible  <bruno@clisp.org>
15952
15953         localename: Avoid gcc warning.
15954         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
15955         function if it is not used.
15956
15957 2010-01-01  Jim Meyering  <meyering@redhat.com>
15958
15959         update nearly all FSF copyright year lists to include 2010
15960         Use the same procedure as for 2009, outlined in
15961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
15962
15963         version-etc: set COPYRIGHT_YEAR to 2010
15964         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
15965
15966 2009-12-31  Eric Blake  <ebb9@byu.net>
15967
15968         doc: correct availability of cygwin 1.5.x getopt
15969         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
15970         variables.
15971         * doc/posix-functions/opterr.texi (opterr): Likewise.
15972         * doc/posix-functions/optind.texi (optind): Likewise.
15973         * doc/posix-functions/optopt.texi (optopt): Likewise.
15974         * doc/posix-functions/tzname.texi (tzname): Likewise.
15975
15976         openat: update maintainer
15977         * modules/openat (Maintainer): Add myself.
15978
15979         utimens: avoid shadowing warning
15980         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
15981         buffers into one, to avoid shadowing, as well as avoiding a
15982         redundant stat.
15983         Reported by Jim Meyering.
15984
15985         test-dup2: avoid compiler warning
15986         * tests/test-dup2.c (is_inheritable): Only define if used.
15987
15988 2010-01-01  Bruno Haible  <bruno@clisp.org>
15989
15990         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
15991         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
15992         defined, use wctomb instead of wcrtomb.
15993
15994 2010-01-01  Bruno Haible  <bruno@clisp.org>
15995
15996         iconv: Reject native Solaris iconv.
15997         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
15998         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
15999
16000 2009-12-31  Bruno Haible  <bruno@clisp.org>
16001
16002         * tests/test-signal.c (main): Remove test of 'SIG'.
16003
16004 2009-12-31  Bruno Haible  <bruno@clisp.org>
16005
16006         spawn: Fix incomplete fix.
16007         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16008         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16009         warnings for GNULIB_POSIXCHECK again.
16010         Reported by Eric Blake.
16011
16012 2009-12-31  Bruno Haible  <bruno@clisp.org>
16013
16014         Avoid namespace pollution on glibc systems.
16015         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
16016         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
16017         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
16018         glibc systems.
16019
16020 2009-12-31  Bruno Haible  <bruno@clisp.org>
16021
16022         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
16023         (gl_REPLACE_WCHAR_H): Turn into a no-op.
16024         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
16025         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16027         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16028         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16029
16030 2009-12-31  Bruno Haible  <bruno@clisp.org>
16031
16032         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16033         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
16034         afterwards.
16035
16036 2009-12-31  Bruno Haible  <bruno@clisp.org>
16037
16038         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
16039         SYS_UTSNAME_H.
16040
16041 2009-12-31  Bruno Haible  <bruno@clisp.org>
16042
16043         spawn: Fix misapplied patch.
16044         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
16045         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16046         warnings for GNULIB_POSIXCHECK.
16047
16048 2009-12-31  Bruno Haible  <bruno@clisp.org>
16049
16050         times: Update after sys_times changed.
16051         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
16052         * modules/times (Files): Add it.
16053         (configure.ac): Invoke gl_FUNC_TIMES.
16054
16055 2009-12-31  Bruno Haible  <bruno@clisp.org>
16056
16057         Use AC_C_INLINE where necessary.
16058         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
16059         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
16060         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16061         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16062         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16063         * m4/mbiter.m4 (gl_MBITER): Likewise.
16064         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16065         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16066         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
16067         * modules/u64 (configure.ac): Likewise.
16068
16069 2009-12-31  Bruno Haible  <bruno@clisp.org>
16070
16071         Use AC_C_INLINE instead of module 'inline' where possible.
16072         * modules/inline (Description): Clarify purpose.
16073         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
16074         * modules/count-one-bits (Depends-on): Remove inline.
16075         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
16076         * modules/openat (Depends-on): Remove inline.
16077         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
16078         instead of depending on module 'inline'.
16079         * modules/filevercmp (Depends-on, configure.ac): Likewise.
16080         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
16081         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
16082         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
16083         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
16084         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
16085         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
16086         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
16087         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
16088         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
16089         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
16090         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
16091         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
16092         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
16093         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
16094         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
16095         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
16096         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
16097         Likewise.
16098         * modules/unictype/property-ascii-hex-digit (Depends-on,
16099         configure.ac): Likewise.
16100         * modules/unictype/property-bidi-arabic-digit (Depends-on,
16101         configure.ac): Likewise.
16102         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
16103         configure.ac): Likewise.
16104         * modules/unictype/property-bidi-block-separator (Depends-on,
16105         configure.ac): Likewise.
16106         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
16107         configure.ac): Likewise.
16108         * modules/unictype/property-bidi-common-separator (Depends-on,
16109         configure.ac): Likewise.
16110         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
16111         Likewise.
16112         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
16113         configure.ac): Likewise.
16114         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
16115         configure.ac): Likewise.
16116         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
16117         configure.ac): Likewise.
16118         * modules/unictype/property-bidi-european-digit (Depends-on,
16119         configure.ac): Likewise.
16120         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
16121         configure.ac): Likewise.
16122         * modules/unictype/property-bidi-left-to-right (Depends-on,
16123         configure.ac): Likewise.
16124         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
16125         configure.ac): Likewise.
16126         * modules/unictype/property-bidi-other-neutral (Depends-on,
16127         configure.ac): Likewise.
16128         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
16129         Likewise.
16130         * modules/unictype/property-bidi-segment-separator (Depends-on,
16131         configure.ac): Likewise.
16132         * modules/unictype/property-bidi-whitespace (Depends-on,
16133         configure.ac): Likewise.
16134         * modules/unictype/property-combining (Depends-on, configure.ac):
16135         Likewise.
16136         * modules/unictype/property-composite (Depends-on, configure.ac):
16137         Likewise.
16138         * modules/unictype/property-currency-symbol (Depends-on,
16139         configure.ac): Likewise.
16140         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
16141         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
16142         Likewise.
16143         * modules/unictype/property-default-ignorable-code-point (Depends-on,
16144         configure.ac): Likewise.
16145         * modules/unictype/property-deprecated (Depends-on, configure.ac):
16146         Likewise.
16147         * modules/unictype/property-diacritic (Depends-on, configure.ac):
16148         Likewise.
16149         * modules/unictype/property-extender (Depends-on, configure.ac):
16150         Likewise.
16151         * modules/unictype/property-format-control (Depends-on, configure.ac):
16152         Likewise.
16153         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
16154         Likewise.
16155         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
16156         Likewise.
16157         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
16158         Likewise.
16159         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
16160         Likewise.
16161         * modules/unictype/property-hyphen (Depends-on, configure.ac):
16162         Likewise.
16163         * modules/unictype/property-id-continue (Depends-on, configure.ac):
16164         Likewise.
16165         * modules/unictype/property-id-start (Depends-on, configure.ac):
16166         Likewise.
16167         * modules/unictype/property-ideographic (Depends-on, configure.ac):
16168         Likewise.
16169         * modules/unictype/property-ids-binary-operator (Depends-on,
16170         configure.ac): Likewise.
16171         * modules/unictype/property-ids-trinary-operator (Depends-on,
16172         configure.ac): Likewise.
16173         * modules/unictype/property-ignorable-control (Depends-on,
16174         configure.ac): Likewise.
16175         * modules/unictype/property-iso-control (Depends-on, configure.ac):
16176         Likewise.
16177         * modules/unictype/property-join-control (Depends-on, configure.ac):
16178         Likewise.
16179         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
16180         Likewise.
16181         * modules/unictype/property-line-separator (Depends-on, configure.ac):
16182         Likewise.
16183         * modules/unictype/property-logical-order-exception (Depends-on,
16184         configure.ac): Likewise.
16185         * modules/unictype/property-lowercase (Depends-on, configure.ac):
16186         Likewise.
16187         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
16188         * modules/unictype/property-non-break (Depends-on, configure.ac):
16189         Likewise.
16190         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
16191         Likewise.
16192         * modules/unictype/property-numeric (Depends-on, configure.ac):
16193         Likewise.
16194         * modules/unictype/property-other-alphabetic (Depends-on,
16195         configure.ac): Likewise.
16196         * modules/unictype/property-other-default-ignorable-code-point
16197         (Depends-on, configure.ac): Likewise.
16198         * modules/unictype/property-other-grapheme-extend (Depends-on,
16199         configure.ac): Likewise.
16200         * modules/unictype/property-other-id-continue (Depends-on,
16201         configure.ac): Likewise.
16202         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
16203         Likewise.
16204         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
16205         Likewise.
16206         * modules/unictype/property-other-math (Depends-on, configure.ac):
16207         Likewise.
16208         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
16209         Likewise.
16210         * modules/unictype/property-paired-punctuation (Depends-on,
16211         configure.ac): Likewise.
16212         * modules/unictype/property-paragraph-separator (Depends-on,
16213         configure.ac): Likewise.
16214         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
16215         Likewise.
16216         * modules/unictype/property-pattern-white-space (Depends-on,
16217         configure.ac): Likewise.
16218         * modules/unictype/property-private-use (Depends-on, configure.ac):
16219         Likewise.
16220         * modules/unictype/property-punctuation (Depends-on, configure.ac):
16221         Likewise.
16222         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
16223         Likewise.
16224         * modules/unictype/property-radical (Depends-on, configure.ac):
16225         Likewise.
16226         * modules/unictype/property-sentence-terminal (Depends-on,
16227         configure.ac): Likewise.
16228         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
16229         Likewise.
16230         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
16231         * modules/unictype/property-terminal-punctuation (Depends-on,
16232         configure.ac): Likewise.
16233         * modules/unictype/property-titlecase (Depends-on, configure.ac):
16234         Likewise.
16235         * modules/unictype/property-unassigned-code-value (Depends-on,
16236         configure.ac): Likewise.
16237         * modules/unictype/property-unified-ideograph (Depends-on,
16238         configure.ac): Likewise.
16239         * modules/unictype/property-uppercase (Depends-on, configure.ac):
16240         Likewise.
16241         * modules/unictype/property-variation-selector (Depends-on,
16242         configure.ac): Likewise.
16243         * modules/unictype/property-white-space (Depends-on, configure.ac):
16244         Likewise.
16245         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
16246         Likewise.
16247         * modules/unictype/property-xid-start (Depends-on, configure.ac):
16248         Likewise.
16249         * modules/unictype/property-zero-width (Depends-on, configure.ac):
16250         Likewise.
16251         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
16252         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
16253         Likewise.
16254
16255 2009-12-31  Bruno Haible  <bruno@clisp.org>
16256
16257         Remove unnecessary AC_C_INLINE invocation.
16258         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
16259         since 2009-08-21.
16260
16261 2009-12-31  Jim Meyering  <meyering@redhat.com>
16262
16263         maint.mk: don't require explicit gpg_key_ID in cfg.mk
16264         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
16265         With this change, we can all remove the gpg_key_ID = ... definition
16266         from our respective cfg.mk files.
16267
16268         maint.mk: create announcement template in ~/, not in /tmp
16269         * top/maint.mk (emit_upload_commands): Adjust.
16270         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
16271         Remove temporary file, .ci-msg.
16272
16273 2009-12-31  Eric Blake  <ebb9@byu.net>
16274
16275         link-warning: always build headers with link warnings
16276         * modules/arpa_inet (Makefile.am): Always build replacement
16277         header.
16278         * modules/ctype (Makefile.am): Likewise.
16279         * modules/dirent (Makefile.am): Likewise.
16280         * modules/inttypes (Makefile.am): Likewise.
16281         * modules/langinfo (Makefile.am): Likewise.
16282         * modules/locale (Makefile.am): Likewise.
16283         * modules/spawn (Makefile.am): Likewise.
16284         * modules/sys_file (Makefile.am): Likewise.
16285         * modules/sys_ioctl (Makefile.am): Likewise.
16286         * modules/sys_select (Makefile.am): Likewise.
16287         * modules/sys_socket (Makefile.am): Likewise.
16288         * modules/sys_times (Makefile.am): Likewise.
16289         * modules/sys_utsname (Makefile.am): Likewise.
16290         * modules/sys_wait (Makefile.am): Likewise.
16291         * modules/wchar (Makefile.am): Likewise.
16292         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
16293         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
16294         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
16295         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
16296         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
16297         Likewise.
16298         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16300         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
16301         Likewise.
16302         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
16303         Likewise.
16304         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16305         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
16306         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
16307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16308         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16309         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16310         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16311         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
16312         (gl_WCHAR_H_DEFAULTS): Likewise.
16313
16314 2009-12-31  Eric Blake  <ebb9@byu.net>
16315
16316         signal, spawn: use link warnings
16317         * lib/signal.in.h (sigset_t): Make unconditional.
16318         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
16319         (sigpending, sigprocmask, sigaction): Add link warnings.
16320         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
16321         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
16322         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
16323         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
16324         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
16325         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
16326         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
16327         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
16328         (posix_spawn_file_actions_destroy)
16329         (posix_spawn_file_actions_addopen)
16330         (posix_spawn_file_actions_addclose)
16331         (posix_spawn_file_actions_adddup2): Likewise.
16332         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
16333         * tests/test-signal.c (main): Enhance test.
16334
16335         spawn: improve wrapper support
16336         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
16337         (gl_SPAWN_H_DEFAULTS): New defaults.
16338         * modules/spawn (Makefile.am): Substitute them.
16339         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
16340         Only declare if missing or broken.
16341
16342         sys_times, sys_utsname: use include_next
16343         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
16344         header.
16345         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
16346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
16347         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
16348         * modules/sys_times (Depends-on): Add include_next.
16349         (Makefile.am): Substitute additional values.
16350         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16351         * lib/sys_times.in.h (includes): Include native header, if
16352         available.
16353         * lib/sys_utsname.in.h (includes): Likewise.
16354         * tests/test-sys_times.c (main): Enhance test.
16355
16356         fdutimensat: revert prior patch
16357         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
16358         utimens.h.
16359         Reported by Bruno Haible.
16360
16361 2009-12-30  Eric Blake  <ebb9@byu.net>
16362
16363         sys_wait: drop link-warning dependency
16364         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
16365         link-warning efforts.
16366         * lib/sys_wait.in.h: Likewise.
16367
16368         fdutimensat: remove bogus dependency
16369         * modules/fdutimensat (Depends-on): Drop inline.
16370
16371         unistd: fix typo
16372         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
16373
16374 2009-12-30  Bruno Haible  <bruno@clisp.org>
16375
16376         Fix compilation error with Solaris cc.
16377         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
16378         * lib/unicase/u16-is-invariant.c: Likewise.
16379         * lib/unicase/u32-is-invariant.c: Likewise.
16380         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16381
16382 2009-12-30  Bruno Haible  <bruno@clisp.org>
16383
16384         Fix test crash.
16385         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
16386         locales.
16387         Reported by Simon Josefsson <simon@josefsson.org>.
16388
16389 2009-12-30  Bruno Haible  <bruno@clisp.org>
16390
16391         Fix compilation error on most platforms.
16392         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
16393         Reported by Simon Josefsson <simon@josefsson.org>
16394         and Nelson H. F. Beebe <beebe@math.utah.edu>.
16395
16396 2009-12-30  Eric Blake  <ebb9@byu.net>
16397
16398         futimens, utimensat: work around ntfs-3g bug
16399         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
16400         a ctime bug is present, and expand workaround to cover ntfs-3g.
16401         * lib/utimens.c (fdutimens, lutimens): Likewise.
16402         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
16403         (validate_timespec): Adjust return value.
16404         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
16405         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16406         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
16407
16408 2009-12-29  Eric Blake  <ebb9@byu.net>
16409
16410         link-warning: make usage consistent
16411         * modules/ctype (Depends-on): Add link-warning.
16412         (Makefile.am): Update rules accordingly.
16413         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16414         * modules/locale (Depends-on, Makefile.am): Likewise.
16415         * modules/sys_file (Makefile.am): Likewise.
16416         * modules/getopt-posix (Makefile.am): Delete unused link warning
16417         efforts.
16418         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
16419         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
16420         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
16421         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
16422
16423         stdio: remove unused variables
16424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
16425         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
16426         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16427
16428         tests: test more substitute headers
16429         * modules/ctype-tests: New file.
16430         * modules/dirent-tests: Likewise.
16431         * modules/spawn-tests: Likewise.
16432         * modules/sys_file-tests: Likewise.
16433         * modules/sys_ioctl-tests: Likewise.
16434         * modules/sys_wait-tests: Likewise.
16435         * tests/test-ctype.c: Likewise.
16436         * tests/test-dirent.c: Likewise.
16437         * tests/test-spawn.c: Likewise.
16438         * tests/test-sys_file.c: Likewise.
16439         * tests/test-sys_ioctl.c: Likewise.
16440         * tests/test-sys_wait.c: Likewise.
16441         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
16442         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
16443         whether or not flock is in use.
16444
16445         tests: remove License section from module
16446         * modules/arpa_inet-tests: Remove unneeded section.
16447         * modules/byteswap-tests: Likewise.
16448         * modules/ceilf-tests: Likewise.
16449         * modules/ceill-tests: Likewise.
16450         * modules/crypto/des-tests: Likewise.
16451         * modules/crypto/gc-arcfour-tests: Likewise.
16452         * modules/crypto/gc-arctwo-tests: Likewise.
16453         * modules/crypto/gc-des-tests: Likewise.
16454         * modules/crypto/gc-hmac-md5-tests: Likewise.
16455         * modules/crypto/gc-hmac-sha1-tests: Likewise.
16456         * modules/crypto/gc-md2-tests: Likewise.
16457         * modules/crypto/gc-md4-tests: Likewise.
16458         * modules/crypto/gc-md5-tests: Likewise.
16459         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
16460         * modules/crypto/gc-rijndael-tests: Likewise.
16461         * modules/crypto/gc-sha1-tests: Likewise.
16462         * modules/crypto/gc-tests: Likewise.
16463         * modules/crypto/md2-tests: Likewise.
16464         * modules/crypto/md4-tests: Likewise.
16465         * modules/fcntl-h-tests: Likewise.
16466         * modules/floorf-tests: Likewise.
16467         * modules/floorl-tests: Likewise.
16468         * modules/frexp-nolibm-tests: Likewise.
16469         * modules/frexp-tests: Likewise.
16470         * modules/frexpl-nolibm-tests: Likewise.
16471         * modules/frexpl-tests: Likewise.
16472         * modules/getaddrinfo-tests: Likewise.
16473         * modules/inttypes-tests: Likewise.
16474         * modules/isfinite-tests: Likewise.
16475         * modules/isinf-tests: Likewise.
16476         * modules/ldexpl-tests: Likewise.
16477         * modules/locale-tests: Likewise.
16478         * modules/math-tests: Likewise.
16479         * modules/netdb-tests: Likewise.
16480         * modules/netinet_in-tests: Likewise.
16481         * modules/printf-frexp-tests: Likewise.
16482         * modules/printf-frexpl-tests: Likewise.
16483         * modules/priv-set-tests: Likewise.
16484         * modules/random_r-tests: Likewise.
16485         * modules/round-tests: Likewise.
16486         * modules/roundf-tests: Likewise.
16487         * modules/roundl-tests: Likewise.
16488         * modules/search-tests: Likewise.
16489         * modules/select-tests: Likewise.
16490         * modules/signal-tests: Likewise.
16491         * modules/stdbool-tests: Likewise.
16492         * modules/stddef-tests: Likewise.
16493         * modules/stdint-tests: Likewise.
16494         * modules/stdio-tests: Likewise.
16495         * modules/stdlib-tests: Likewise.
16496         * modules/string-tests: Likewise.
16497         * modules/strings-tests: Likewise.
16498         * modules/sys_select-tests: Likewise.
16499         * modules/sys_socket-tests: Likewise.
16500         * modules/sys_stat-tests: Likewise.
16501         * modules/sys_time-tests: Likewise.
16502         * modules/sys_utsname-tests: Likewise.
16503         * modules/sysexits-tests: Likewise.
16504         * modules/time-tests: Likewise.
16505         * modules/trunc-tests: Likewise.
16506         * modules/truncf-tests: Likewise.
16507         * modules/truncl-tests: Likewise.
16508         * modules/tsearch-tests: Likewise.
16509         * modules/unistd-tests: Likewise.
16510         * modules/wchar-tests: Likewise.
16511         * modules/wctype-tests: Likewise.
16512
16513         tests: fix license on several tests
16514         * tests/test-des.c: Update to GPLv3+.
16515         * tests/test-flock.c: Likewise.
16516         * tests/test-fsync.c: Likewise.
16517         * tests/test-futimens.h: Likewise.
16518         * tests/test-gc-arcfour.c: Likewise.
16519         * tests/test-gc-arctwo.c: Likewise.
16520         * tests/test-gc-des.c: Likewise.
16521         * tests/test-gc-hmac-md5.c: Likewise.
16522         * tests/test-gc-hmac-sha1.c: Likewise.
16523         * tests/test-gc-md2.c: Likewise.
16524         * tests/test-gc-md4.c: Likewise.
16525         * tests/test-gc-md5.c: Likewise.
16526         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16527         * tests/test-gc-rijndael.c: Likewise.
16528         * tests/test-gc-sha1.c: Likewise.
16529         * tests/test-gc.c: Likewise.
16530         * tests/test-getcwd.c: Likewise.
16531         * tests/test-link.c: Likewise.
16532         * tests/test-link.h: Likewise.
16533         * tests/test-lutimens.h: Likewise.
16534         * tests/test-md2.c: Likewise.
16535         * tests/test-md4.c: Likewise.
16536         * tests/test-mkdir.h: Likewise.
16537         * tests/test-rename.c: Likewise.
16538         * tests/test-rename.h: Likewise.
16539         * tests/test-safe-alloc.c: Likewise.
16540         * tests/test-utimens-common.h: Likewise.
16541         * tests/test-utimens.h: Likewise.
16542
16543         maint: sync license texts
16544         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
16545         * doc/gpl-3.0.texi: Revert copyright year update.
16546         * doc/lgpl-3.0.texi: Likewise.
16547
16548 2009-12-29  Jim Meyering  <meyering@redhat.com>
16549
16550         update nearly all FSF copyright year lists to include 2009
16551         The files named by the following are exempted:
16552             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
16553               test -f "$dst" && { echo "$dst"; continue; }
16554               test -d "$dst" || continue
16555               echo "$dst"/$(basename "$src")
16556             done > exempt
16557             git ls-files tests/unictype >> exempt
16558         In the remaining files, convert to all-interval notation if
16559         - there is already at least one year interval like 2000-2003
16560         - the file is maintained by me
16561         - the file is in lib/uni*/, where that style already prevails
16562         Otherwise, use update-copyright's default.
16563
16564 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16565         and Eric Blake  <ebb9@byu.net>
16566
16567         tests: don't require debug system() to pass
16568         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
16569         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16570         * tests/test-unlink.h (test_unlink_func): Likewise.
16571         * tests/test-fstatat.c (main): ...into callers.
16572         * tests/test-lstat.c (main): Likewise.
16573         * tests/test-rmdir.c (main): Likewise.
16574         * tests/test-unlink.c (main): Likewise.
16575         * tests/test-unlinkat.c (main): Likewise.
16576         * tests/test-areadlink-with-size.c (main): Don't require a
16577         debug-only system call to pass, aiding cross-testing to mingw.
16578         * tests/test-areadlink.c (main): Likewise.
16579         * tests/test-areadlinkat-with-size.c (main): Likewise.
16580         * tests/test-areadlinkat.c (main): Likewise.
16581         * tests/test-canonicalize-lgpl.c (main): Likewise.
16582         * tests/test-canonicalize.c (main): Likewise.
16583         * tests/test-chown.c (main): Likewise.
16584         * tests/test-fchownat.c (main): Likewise.
16585         * tests/test-lchown.c (main): Likewise.
16586         * tests/test-fdutimensat.c (main): Likewise.
16587         * tests/test-futimens.c (main): Likewise.
16588         * tests/test-link.c (main): Likewise.
16589         * tests/test-linkat.c (main): Likewise.
16590         * tests/test-mkdir.c (main): Likewise.
16591         * tests/test-mkdirat.c (main): Likewise.
16592         * tests/test-mkfifo.c (main): Likewise.
16593         * tests/test-mkfifoat.c (main): Likewise.
16594         * tests/test-mknod.c (main): Likewise.
16595         * tests/test-readlink.c (main): Likewise.
16596         * tests/test-remove.c (main): Likewise.
16597         * tests/test-rename.c (main): Likewise.
16598         * tests/test-renameat.c (main): Likewise.
16599         * tests/test-symlink.c (main): Likewise.
16600         * tests/test-symlinkat.c (main): Likewise.
16601         * tests/test-utimens.c (main): Likewise.
16602         * tests/test-utimensat.c (main): Likewise.
16603
16604 2009-12-29  Simon Josefsson  <simon@josefsson.org>
16605
16606         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
16607         on $(UNUSED_PARAMETER_H) to avoid build failure.
16608
16609 2009-12-28  Jim Meyering  <meyering@redhat.com>
16610
16611         update-copyright: you may specify a max. line length other than 72
16612         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
16613
16614         maint: use consistent FSF copyright line syntax
16615         * lib/posixtm.c: Add missing comma in FSF copyright line.
16616         * lib/posixtm.h: Likewise.
16617         * lib/getugroups.c: Add missing ", Inc.".
16618
16619         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
16620         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
16621         FSF copyright line.  Remove trailing blanks.
16622
16623 2009-12-28  Eric Blake  <ebb9@byu.net>
16624
16625         test-dup2: reduce dependencies
16626         * modules/cloexec (Configure.ac): Set witness.
16627         * modules/dup2-tests (Depends-on): Drop cloexec.
16628         * tests/test-dup2.c (main): Skip portion of test if cloexec module
16629         not present.
16630         Suggested by Bruno Haible.
16631
16632 2009-12-26  Bruno Haible  <bruno@clisp.org>
16633
16634         Remove an unneeded dependency.
16635         * modules/fseterr (Depends-on): Remove dup2.
16636
16637 2009-12-26  Eric Blake  <ebb9@byu.net>
16638
16639         tests: use macros.h in more places
16640         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
16641         (ASSERT_STREAM): Provide default of stderr.
16642         * tests/test-dirent-safer.c: Include macros.h, using alternate
16643         stream for assertions.
16644         * tests/test-dup-safer.c: Likewise.
16645         * tests/test-freopen-safer.c: Likewise.
16646         * tests/test-getopt.c: Likewise.
16647         * tests/test-openat-safer.c: Likewise.
16648         * tests/test-pipe.c: Likewise.
16649         * tests/test-popen-safer.c: Likewise.
16650         * modules/dirent-safer-tests (Files): Include macros.h.
16651         * modules/unistd-safer-tests (Files): Likewise.
16652         * modules/freopen-safer-tests (Files): Likewise.
16653         * modules/getopt-posix-tests (Files): Likewise.
16654         * modules/openat-safer-tests (Files): Likewise.
16655         * modules/pipe-tests (Files): Likewise.
16656
16657 2009-12-26  Bruno Haible  <bruno@clisp.org>
16658
16659         javacomp: Portability fix.
16660         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
16661         that it also works on Solaris.
16662
16663 2009-12-26  Bruno Haible  <bruno@clisp.org>
16664
16665         localename: Fix storage allocation of gl_locale_name_thread's result.
16666         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
16667         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
16668         all platforms that have 'uselocale'.
16669         (gl_locale_name_thread_unsafe): New function, extracted from
16670         gl_locale_name_thread.
16671         (gl_locale_name_thread): Call struniq on all platforms that have
16672         'uselocale'.
16673         * tests/test-localename.c (test_locale_name_thread): Check that the
16674         resulting strings are permanently allocated.
16675         * modules/localename-tests (Depends-on): Add strdup.
16676
16677 2009-12-26  Bruno Haible  <bruno@clisp.org>
16678
16679         * tests/test-localename.c (categories): Fill in the strings.
16680
16681 2009-12-26  Jim Meyering  <meyering@redhat.com>
16682
16683         isdir: complete the removal of m4/isdir.m4
16684         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
16685
16686         isdir: clean up, since at least grep still uses it
16687         * lib/isdir.c: Include "isdir.h".
16688         (S_ISDIR): Remove now-unneeded definition.
16689         * modules/isdir (Files): Add lib/isdir.h.
16690         * lib/isdir.h: New file, with declaration.
16691         * m4/isdir.m4: Remove file -- unneeded.
16692
16693 2009-12-25  Bruno Haible  <bruno@clisp.org>
16694
16695         selinux-h: Make generated .h files standalone.
16696         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
16697         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
16698         * lib/se-selinux.in.h: Likewise.
16699         * modules/selinux-h (Depends-on): Add unused-parameter.
16700         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
16701         selinux/selinux.h and selinux/context.h.
16702         Suggested by Eric Blake.
16703
16704 2009-12-25  Bruno Haible  <bruno@clisp.org>
16705
16706         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
16707         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
16708         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
16709         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
16710         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
16711
16712 2009-12-24  Bruno Haible  <bruno@clisp.org>
16713
16714         openat: Fix warning.
16715         * lib/openat-proc.c: Include <unistd.h>.
16716
16717 2009-12-24  Bruno Haible  <bruno@clisp.org>
16718
16719         New module 'unused-parameter'.
16720         * build-aux/unused-parameter.h: New file, extracted from earlier
16721         gnulib-common.m4.
16722         * modules/unused-parameter: New file.
16723         * lib/unistr.h: Include unused-parameter.h.
16724         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
16725         _GL_UNUSED.
16726         * modules/unistr/base (Depends-on): Add unused-parameter.
16727
16728 2009-12-24  Bruno Haible  <bruno@clisp.org>
16729
16730         Add missing dependencies to 'extensions' module.
16731         * m4/extensions.m4: Add comment.
16732         * modules/accept4 (Depends-on): Add extensions.
16733         * modules/dup3 (Depends-on): Likewise.
16734         * modules/fcntl (Depends-on): Likewise.
16735         * modules/futimens (Depends-on): Likewise.
16736         * modules/mknod (Depends-on): Likewise.
16737         * modules/pipe2 (Depends-on): Likewise.
16738         * modules/stat-time (Depends-on): Likewise.
16739         * modules/strcasestr-simple (Depends-on): Likewise.
16740         * modules/strsignal (Depends-on): Likewise.
16741         * modules/utimensat (Depends-on): Likewise.
16742         * modules/localcharset (Depends-on): Likewise. Needed because of
16743         gl_FCNTL_O_FLAGS.
16744         * modules/wcrtomb (Depends-on): Likewise. Needed because of
16745         AC_TYPE_MBSTATE_T.
16746         * modules/wcsnrtombs (Depends-on): Likewise.
16747         * modules/wcsrtombs (Depends-on): Likewise.
16748
16749 2009-12-24  Bruno Haible  <bruno@clisp.org>
16750
16751         binary-io: Avoid gcc warning due to SET_BINARY.
16752         * lib/binary-io.h (SET_BINARY): Cast the result to void.
16753         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
16754
16755 2009-12-24  Bruno Haible  <bruno@clisp.org>
16756
16757         Avoid future namespace pollution on glibc systems.
16758         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
16759         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
16760         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
16761         glibc systems.
16762
16763 2009-12-24  Bruno Haible  <bruno@clisp.org>
16764
16765         Refactor common macros used in tests.
16766         * tests/macros.h: New file.
16767         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
16768         and/or <stdlib.h>, if appropriate.
16769         (ASSERT, SIZEOF): Remove macros.
16770         * tests/test-areadlink-with-size.c: Likewise.
16771         * tests/test-areadlinkat.c: Likewise.
16772         * tests/test-areadlinkat-with-size.c: Likewise.
16773         * tests/test-argmatch.c: Likewise.
16774         * tests/test-argv-iter.c: Likewise.
16775         * tests/test-array-mergesort.c: Likewise.
16776         * tests/test-array_list.c: Likewise.
16777         * tests/test-array_oset.c: Likewise.
16778         * tests/test-avltree_list.c: Likewise.
16779         * tests/test-avltree_oset.c: Likewise.
16780         * tests/test-avltreehash_list.c: Likewise.
16781         * tests/test-base64.c: Likewise.
16782         * tests/test-binary-io.c: Likewise.
16783         * tests/test-bitrotate.c: Likewise.
16784         * tests/test-btowc.c: Likewise.
16785         * tests/test-byteswap.c: Likewise.
16786         * tests/test-c-ctype.c: Likewise.
16787         * tests/test-c-stack.c: Likewise.
16788         * tests/test-c-strcasecmp.c: Likewise.
16789         * tests/test-c-strcasestr.c: Likewise.
16790         * tests/test-c-strncasecmp.c: Likewise.
16791         * tests/test-c-strstr.c: Likewise.
16792         * tests/test-canonicalize-lgpl.c: Likewise.
16793         * tests/test-canonicalize.c: Likewise.
16794         * tests/test-carray_list.c: Likewise.
16795         * tests/test-ceilf1.c: Likewise.
16796         * tests/test-ceilf2.c: Likewise.
16797         * tests/test-ceill.c: Likewise.
16798         * tests/test-chown.c: Likewise.
16799         * tests/test-cloexec.c: Likewise.
16800         * tests/test-copy-acl.c: Likewise.
16801         * tests/test-copy-file.c: Likewise.
16802         * tests/test-count-one-bits.c: Likewise.
16803         * tests/test-dprintf-posix.c: Likewise.
16804         * tests/test-dup2.c: Likewise.
16805         * tests/test-dup3.c: Likewise.
16806         * tests/test-duplocale.c: Likewise.
16807         * tests/test-fbufmode.c: Likewise.
16808         * tests/test-fchdir.c: Likewise.
16809         * tests/test-fchownat.c: Likewise.
16810         * tests/test-fcntl-safer.c: Likewise.
16811         * tests/test-fcntl.c: Likewise.
16812         * tests/test-fdopendir.c: Likewise.
16813         * tests/test-fdutimensat.c: Likewise.
16814         * tests/test-fflush2.c: Likewise.
16815         * tests/test-file-has-acl.c: Likewise.
16816         * tests/test-filevercmp.c: Likewise.
16817         * tests/test-flock.c: Likewise.
16818         * tests/test-floorf1.c: Likewise.
16819         * tests/test-floorf2.c: Likewise.
16820         * tests/test-floorl.c: Likewise.
16821         * tests/test-fnmatch.c: Likewise.
16822         * tests/test-fopen.h: Likewise.
16823         * tests/test-fpending.c: Likewise.
16824         * tests/test-fprintf-posix.c: Likewise.
16825         * tests/test-fpurge.c: Likewise.
16826         * tests/test-freadable.c: Likewise.
16827         * tests/test-freadahead.c: Likewise.
16828         * tests/test-freading.c: Likewise.
16829         * tests/test-freadptr.c: Likewise.
16830         * tests/test-freadptr2.c: Likewise.
16831         * tests/test-freadseek.c: Likewise.
16832         * tests/test-freopen.c: Likewise.
16833         * tests/test-frexp.c: Likewise.
16834         * tests/test-frexpl.c: Likewise.
16835         * tests/test-fseek.c: Likewise.
16836         * tests/test-fseeko.c: Likewise.
16837         * tests/test-fstatat.c: Likewise.
16838         * tests/test-fstrcmp.c: Likewise.
16839         * tests/test-fsync.c: Likewise.
16840         * tests/test-ftell.c: Likewise.
16841         * tests/test-ftello.c: Likewise.
16842         * tests/test-func.c: Likewise.
16843         * tests/test-futimens.c: Likewise.
16844         * tests/test-fwritable.c: Likewise.
16845         * tests/test-fwriting.c: Likewise.
16846         * tests/test-getcwd.c: Likewise.
16847         * tests/test-getdate.c: Likewise.
16848         * tests/test-getdelim.c: Likewise.
16849         * tests/test-getdtablesize.c: Likewise.
16850         * tests/test-getgroups.c: Likewise.
16851         * tests/test-getline.c: Likewise.
16852         * tests/test-getndelim2.c: Likewise.
16853         * tests/test-glob.c: Likewise.
16854         * tests/test-hash.c: Likewise.
16855         * tests/test-i-ring.c: Likewise.
16856         * tests/test-iconv-utf.c: Likewise.
16857         * tests/test-iconv.c: Likewise.
16858         * tests/test-idpriv-drop.c: Likewise.
16859         * tests/test-idpriv-droptemp.c: Likewise.
16860         * tests/test-inet_ntop.c: Likewise.
16861         * tests/test-inet_pton.c: Likewise.
16862         * tests/test-isblank.c: Likewise.
16863         * tests/test-isfinite.c: Likewise.
16864         * tests/test-isinf.c: Likewise.
16865         * tests/test-isnan.c: Likewise.
16866         * tests/test-isnand.h: Likewise.
16867         * tests/test-isnanf.h: Likewise.
16868         * tests/test-isnanl.h: Likewise.
16869         * tests/test-lchown.c: Likewise.
16870         * tests/test-ldexpl.c: Likewise.
16871         * tests/test-link.c: Likewise.
16872         * tests/test-linkat.c: Likewise.
16873         * tests/test-linked_list.c: Likewise.
16874         * tests/test-linkedhash_list.c: Likewise.
16875         * tests/test-localename.c: Likewise.
16876         * tests/test-lseek.c: Likewise.
16877         * tests/test-lstat.c: Likewise.
16878         * tests/test-mbmemcasecmp.c: Likewise.
16879         * tests/test-mbmemcasecoll.c: Likewise.
16880         * tests/test-mbrtowc.c: Likewise.
16881         * tests/test-mbscasecmp.c: Likewise.
16882         * tests/test-mbscasestr1.c: Likewise.
16883         * tests/test-mbscasestr2.c: Likewise.
16884         * tests/test-mbscasestr3.c: Likewise.
16885         * tests/test-mbscasestr4.c: Likewise.
16886         * tests/test-mbschr.c: Likewise.
16887         * tests/test-mbscspn.c: Likewise.
16888         * tests/test-mbsinit.c: Likewise.
16889         * tests/test-mbsncasecmp.c: Likewise.
16890         * tests/test-mbsnrtowcs.c: Likewise.
16891         * tests/test-mbspbrk.c: Likewise.
16892         * tests/test-mbspcasecmp.c: Likewise.
16893         * tests/test-mbsrchr.c: Likewise.
16894         * tests/test-mbsrtowcs.c: Likewise.
16895         * tests/test-mbsspn.c: Likewise.
16896         * tests/test-mbsstr1.c: Likewise.
16897         * tests/test-mbsstr2.c: Likewise.
16898         * tests/test-mbsstr3.c: Likewise.
16899         * tests/test-memchr.c: Likewise.
16900         * tests/test-memchr2.c: Likewise.
16901         * tests/test-memcmp.c: Likewise.
16902         * tests/test-memmem.c: Likewise.
16903         * tests/test-memrchr.c: Likewise.
16904         * tests/test-mkdir.c: Likewise.
16905         * tests/test-mkdirat.c: Likewise.
16906         * tests/test-mkfifo.c: Likewise.
16907         * tests/test-mkfifoat.c: Likewise.
16908         * tests/test-mknod.c: Likewise.
16909         * tests/test-nanosleep.c: Likewise.
16910         * tests/test-nl_langinfo.c: Likewise.
16911         * tests/test-obstack-printf.c: Likewise.
16912         * tests/test-open.c: Likewise.
16913         * tests/test-openat.c: Likewise.
16914         * tests/test-pipe-filter-gi1.c: Likewise.
16915         * tests/test-pipe-filter-gi2-main.c: Likewise.
16916         * tests/test-pipe-filter-ii1.c: Likewise.
16917         * tests/test-pipe-filter-ii2-main.c: Likewise.
16918         * tests/test-pipe2.c: Likewise.
16919         * tests/test-popen.h: Likewise.
16920         * tests/test-posixtm.c: Likewise.
16921         * tests/test-pread.c: Likewise.
16922         * tests/test-printf-frexp.c: Likewise.
16923         * tests/test-printf-frexpl.c: Likewise.
16924         * tests/test-printf-posix.c: Likewise.
16925         * tests/test-priv-set.c: Likewise.
16926         * tests/test-quotearg.c: Likewise.
16927         * tests/test-random_r.c: Likewise.
16928         * tests/test-rawmemchr.c: Likewise.
16929         * tests/test-rbtree_list.c: Likewise.
16930         * tests/test-rbtree_oset.c: Likewise.
16931         * tests/test-rbtreehash_list.c: Likewise.
16932         * tests/test-readlink.c: Likewise.
16933         * tests/test-remove.c: Likewise.
16934         * tests/test-rename.c: Likewise.
16935         * tests/test-renameat.c: Likewise.
16936         * tests/test-rmdir.c: Likewise.
16937         * tests/test-round1.c: Likewise.
16938         * tests/test-roundf1.c: Likewise.
16939         * tests/test-roundl.c: Likewise.
16940         * tests/test-safe-alloc.c: Likewise.
16941         * tests/test-sameacls.c: Likewise.
16942         * tests/test-set-mode-acl.c: Likewise.
16943         * tests/test-setenv.c: Likewise.
16944         * tests/test-sigaction.c: Likewise.
16945         * tests/test-signbit.c: Likewise.
16946         * tests/test-sleep.c: Likewise.
16947         * tests/test-snprintf-posix.c: Likewise.
16948         * tests/test-snprintf.c: Likewise.
16949         * tests/test-sprintf-posix.c: Likewise.
16950         * tests/test-stat-time.c: Likewise.
16951         * tests/test-stat.c: Likewise.
16952         * tests/test-strcasestr.c: Likewise.
16953         * tests/test-strchrnul.c: Likewise.
16954         * tests/test-strerror.c: Likewise.
16955         * tests/test-striconv.c: Likewise.
16956         * tests/test-striconveh.c: Likewise.
16957         * tests/test-striconveha.c: Likewise.
16958         * tests/test-strsignal.c: Likewise.
16959         * tests/test-strstr.c: Likewise.
16960         * tests/test-strtod.c: Likewise.
16961         * tests/test-strverscmp.c: Likewise.
16962         * tests/test-symlink.c: Likewise.
16963         * tests/test-symlinkat.c: Likewise.
16964         * tests/test-trunc1.c: Likewise.
16965         * tests/test-trunc2.c: Likewise.
16966         * tests/test-truncf1.c: Likewise.
16967         * tests/test-truncf2.c: Likewise.
16968         * tests/test-truncl.c: Likewise.
16969         * tests/test-uname.c: Likewise.
16970         * tests/test-unlink.c: Likewise.
16971         * tests/test-unlinkat.c: Likewise.
16972         * tests/test-unsetenv.c: Likewise.
16973         * tests/test-usleep.c: Likewise.
16974         * tests/test-utimens.c: Likewise.
16975         * tests/test-utimensat.c: Likewise.
16976         * tests/test-vasnprintf-posix.c: Likewise.
16977         * tests/test-vasnprintf-posix2.c: Likewise.
16978         * tests/test-vasnprintf.c: Likewise.
16979         * tests/test-vasprintf-posix.c: Likewise.
16980         * tests/test-vasprintf.c: Likewise.
16981         * tests/test-vdprintf-posix.c: Likewise.
16982         * tests/test-vfprintf-posix.c: Likewise.
16983         * tests/test-vprintf-posix.c: Likewise.
16984         * tests/test-vsnprintf-posix.c: Likewise.
16985         * tests/test-vsnprintf.c: Likewise.
16986         * tests/test-vsprintf-posix.c: Likewise.
16987         * tests/test-wcrtomb.c: Likewise.
16988         * tests/test-wcsnrtombs.c: Likewise.
16989         * tests/test-wcsrtombs.c: Likewise.
16990         * tests/test-wctype.c: Likewise.
16991         * tests/test-wcwidth.c: Likewise.
16992         * tests/test-xfprintf-posix.c: Likewise.
16993         * tests/test-xmemdup0.c: Likewise.
16994         * tests/test-xprintf-posix.c: Likewise.
16995         * tests/test-xvasprintf.c: Likewise.
16996         * tests/unicase/test-locale-language.c: Likewise.
16997         * tests/unicase/test-mapping-part1.h: Likewise.
16998         * tests/unicase/test-predicate-part1.h: Likewise.
16999         * tests/unicase/test-u8-casecmp.c: Likewise.
17000         * tests/unicase/test-u8-casecoll.c: Likewise.
17001         * tests/unicase/test-u8-casefold.c: Likewise.
17002         * tests/unicase/test-u8-is-cased.c: Likewise.
17003         * tests/unicase/test-u8-is-casefolded.c: Likewise.
17004         * tests/unicase/test-u8-is-lowercase.c: Likewise.
17005         * tests/unicase/test-u8-is-titlecase.c: Likewise.
17006         * tests/unicase/test-u8-is-uppercase.c: Likewise.
17007         * tests/unicase/test-u8-tolower.c: Likewise.
17008         * tests/unicase/test-u8-totitle.c: Likewise.
17009         * tests/unicase/test-u8-toupper.c: Likewise.
17010         * tests/unicase/test-u16-casecmp.c: Likewise.
17011         * tests/unicase/test-u16-casecoll.c: Likewise.
17012         * tests/unicase/test-u16-casefold.c: Likewise.
17013         * tests/unicase/test-u16-is-cased.c: Likewise.
17014         * tests/unicase/test-u16-is-casefolded.c: Likewise.
17015         * tests/unicase/test-u16-is-lowercase.c: Likewise.
17016         * tests/unicase/test-u16-is-titlecase.c: Likewise.
17017         * tests/unicase/test-u16-is-uppercase.c: Likewise.
17018         * tests/unicase/test-u16-tolower.c: Likewise.
17019         * tests/unicase/test-u16-totitle.c: Likewise.
17020         * tests/unicase/test-u16-toupper.c: Likewise.
17021         * tests/unicase/test-u32-casecmp.c: Likewise.
17022         * tests/unicase/test-u32-casecoll.c: Likewise.
17023         * tests/unicase/test-u32-casefold.c: Likewise.
17024         * tests/unicase/test-u32-is-cased.c: Likewise.
17025         * tests/unicase/test-u32-is-casefolded.c: Likewise.
17026         * tests/unicase/test-u32-is-lowercase.c: Likewise.
17027         * tests/unicase/test-u32-is-titlecase.c: Likewise.
17028         * tests/unicase/test-u32-is-uppercase.c: Likewise.
17029         * tests/unicase/test-u32-tolower.c: Likewise.
17030         * tests/unicase/test-u32-totitle.c: Likewise.
17031         * tests/unicase/test-u32-toupper.c: Likewise.
17032         * tests/unicase/test-ulc-casecmp.c: Likewise.
17033         * tests/unicase/test-ulc-casecoll.c: Likewise.
17034         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
17035         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
17036         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
17037         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
17038         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
17039         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
17040         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
17041         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
17042         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
17043         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
17044         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
17045         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
17046         * tests/unictype/test-bidi_byname.c: Likewise.
17047         * tests/unictype/test-bidi_name.c: Likewise.
17048         * tests/unictype/test-bidi_of.c: Likewise.
17049         * tests/unictype/test-bidi_test.c: Likewise.
17050         * tests/unictype/test-block_list.c: Likewise.
17051         * tests/unictype/test-block_of.c: Likewise.
17052         * tests/unictype/test-block_test.c: Likewise.
17053         * tests/unictype/test-categ_and.c: Likewise.
17054         * tests/unictype/test-categ_and_not.c: Likewise.
17055         * tests/unictype/test-categ_byname.c: Likewise.
17056         * tests/unictype/test-categ_name.c: Likewise.
17057         * tests/unictype/test-categ_none.c: Likewise.
17058         * tests/unictype/test-categ_of.c: Likewise.
17059         * tests/unictype/test-categ_or.c: Likewise.
17060         * tests/unictype/test-categ_test_withtable.c: Likewise.
17061         * tests/unictype/test-combining.c: Likewise.
17062         * tests/unictype/test-decdigit.c: Likewise.
17063         * tests/unictype/test-digit.c: Likewise.
17064         * tests/unictype/test-mirror.c: Likewise.
17065         * tests/unictype/test-numeric.c: Likewise.
17066         * tests/unictype/test-pr_byname.c: Likewise.
17067         * tests/unictype/test-pr_test.c: Likewise.
17068         * tests/unictype/test-predicate-part1.h: Likewise.
17069         * tests/unictype/test-scripts.c: Likewise.
17070         * tests/unictype/test-sy_c_ident.c: Likewise.
17071         * tests/unictype/test-sy_java_ident.c: Likewise.
17072         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
17073         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
17074         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
17075         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
17076         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
17077         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
17078         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
17079         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
17080         * tests/uninorm/test-canonical-decomposition.c: Likewise.
17081         * tests/uninorm/test-compat-decomposition.c: Likewise.
17082         * tests/uninorm/test-composition.c: Likewise.
17083         * tests/uninorm/test-decomposing-form.c: Likewise.
17084         * tests/uninorm/test-decomposition.c: Likewise.
17085         * tests/uninorm/test-u8-nfc.c: Likewise.
17086         * tests/uninorm/test-u8-nfd.c: Likewise.
17087         * tests/uninorm/test-u8-nfkc.c: Likewise.
17088         * tests/uninorm/test-u8-nfkd.c: Likewise.
17089         * tests/uninorm/test-u8-normcmp.c: Likewise.
17090         * tests/uninorm/test-u8-normcoll.c: Likewise.
17091         * tests/uninorm/test-u16-nfc.c: Likewise.
17092         * tests/uninorm/test-u16-nfd.c: Likewise.
17093         * tests/uninorm/test-u16-nfkc.c: Likewise.
17094         * tests/uninorm/test-u16-nfkd.c: Likewise.
17095         * tests/uninorm/test-u16-normcmp.c: Likewise.
17096         * tests/uninorm/test-u16-normcoll.c: Likewise.
17097         * tests/uninorm/test-u32-nfc.c: Likewise.
17098         * tests/uninorm/test-u32-nfd.c: Likewise.
17099         * tests/uninorm/test-u32-nfkc.c: Likewise.
17100         * tests/uninorm/test-u32-nfkd.c: Likewise.
17101         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17102         * tests/uninorm/test-u32-normcmp.c: Likewise.
17103         * tests/uninorm/test-u32-normcoll.c: Likewise.
17104         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
17105         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
17106         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
17107         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
17108         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
17109         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
17110         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17111         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17112         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
17113         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
17114         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
17115         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
17116         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
17117         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17118         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17119         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
17120         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
17121         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
17122         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
17123         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
17124         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17125         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17126         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
17127         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
17128         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
17129         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
17130         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
17131         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17132         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17133         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
17134         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
17135         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
17136         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
17137         * tests/uniwidth/test-u8-strwidth.c: Likewise.
17138         * tests/uniwidth/test-u8-width.c: Likewise.
17139         * tests/uniwidth/test-u16-strwidth.c: Likewise.
17140         * tests/uniwidth/test-u16-width.c: Likewise.
17141         * tests/uniwidth/test-u32-strwidth.c: Likewise.
17142         * tests/uniwidth/test-u32-width.c: Likewise.
17143         * tests/uniwidth/test-uc_width.c: Likewise.
17144         * tests/uniwidth/test-uc_width2.c: Likewise.
17145         * modules/acl-tests (Files): Add tests/macros.h.
17146         * modules/areadlink-tests (Files): Likewise.
17147         * modules/areadlink-with-size-tests (Files): Likewise.
17148         * modules/areadlinkat-tests (Files): Likewise.
17149         * modules/areadlinkat-with-size-tests (Files): Likewise.
17150         * modules/argmatch-tests (Files): Likewise.
17151         * modules/argv-iter-tests (Files): Likewise.
17152         * modules/array-list-tests (Files): Likewise.
17153         * modules/array-mergesort-tests (Files): Likewise.
17154         * modules/array-oset-tests (Files): Likewise.
17155         * modules/avltree-list-tests (Files): Likewise.
17156         * modules/avltree-oset-tests (Files): Likewise.
17157         * modules/avltreehash-list-tests (Files): Likewise.
17158         * modules/base64-tests (Files): Likewise.
17159         * modules/binary-io-tests (Files): Likewise.
17160         * modules/bitrotate-tests (Files): Likewise.
17161         * modules/btowc-tests (Files): Likewise.
17162         * modules/byteswap-tests (Files): Likewise.
17163         * modules/c-ctype-tests (Files): Likewise.
17164         * modules/c-stack-tests (Files): Likewise.
17165         * modules/c-strcase-tests (Files): Likewise.
17166         * modules/c-strcasestr-tests (Files): Likewise.
17167         * modules/c-strstr-tests (Files): Likewise.
17168         * modules/canonicalize-lgpl-tests (Files): Likewise.
17169         * modules/canonicalize-tests (Files): Likewise.
17170         * modules/carray-list-tests (Files): Likewise.
17171         * modules/ceilf-tests (Files): Likewise.
17172         * modules/ceill-tests (Files): Likewise.
17173         * modules/chown-tests (Files): Likewise.
17174         * modules/cloexec-tests (Files): Likewise.
17175         * modules/copy-file-tests (Files): Likewise.
17176         * modules/count-one-bits-tests (Files): Likewise.
17177         * modules/dprintf-posix-tests (Files): Likewise.
17178         * modules/dup2-tests (Files): Likewise.
17179         * modules/dup3-tests (Files): Likewise.
17180         * modules/duplocale-tests (Files): Likewise.
17181         * modules/fbufmode-tests (Files): Likewise.
17182         * modules/fchdir-tests (Files): Likewise.
17183         * modules/fcntl-safer-tests (Files): Likewise.
17184         * modules/fcntl-tests (Files): Likewise.
17185         * modules/fdopendir-tests (Files): Likewise.
17186         * modules/fdutimensat-tests (Files): Likewise.
17187         * modules/fflush-tests (Files): Likewise.
17188         * modules/filevercmp-tests (Files): Likewise.
17189         * modules/flock-tests (Files): Likewise.
17190         * modules/floorf-tests (Files): Likewise.
17191         * modules/floorl-tests (Files): Likewise.
17192         * modules/fnmatch-tests (Files): Likewise.
17193         * modules/fopen-safer-tests (Files): Likewise.
17194         * modules/fopen-tests (Files): Likewise.
17195         * modules/fpending-tests (Files): Likewise.
17196         * modules/fprintf-posix-tests (Files): Likewise.
17197         * modules/fpurge-tests (Files): Likewise.
17198         * modules/freadable-tests (Files): Likewise.
17199         * modules/freadahead-tests (Files): Likewise.
17200         * modules/freading-tests (Files): Likewise.
17201         * modules/freadptr-tests (Files): Likewise.
17202         * modules/freadseek-tests (Files): Likewise.
17203         * modules/freopen-tests (Files): Likewise.
17204         * modules/frexp-nolibm-tests (Files): Likewise.
17205         * modules/frexp-tests (Files): Likewise.
17206         * modules/frexpl-nolibm-tests (Files): Likewise.
17207         * modules/frexpl-tests (Files): Likewise.
17208         * modules/fseek-tests (Files): Likewise.
17209         * modules/fseeko-tests (Files): Likewise.
17210         * modules/fstrcmp-tests (Files): Likewise.
17211         * modules/fsync-tests (Files): Likewise.
17212         * modules/ftell-tests (Files): Likewise.
17213         * modules/ftello-tests (Files): Likewise.
17214         * modules/func-tests (Files): Likewise.
17215         * modules/futimens-tests (Files): Likewise.
17216         * modules/fwritable-tests (Files): Likewise.
17217         * modules/fwriting-tests (Files): Likewise.
17218         * modules/getcwd-tests (Files): Likewise.
17219         * modules/getdate-tests (Files): Likewise.
17220         * modules/getdelim-tests (Files): Likewise.
17221         * modules/getdtablesize-tests (Files): Likewise.
17222         * modules/getgroups-tests (Files): Likewise.
17223         * modules/getline-tests (Files): Likewise.
17224         * modules/getndelim2-tests (Files): Likewise.
17225         * modules/glob-tests (Files): Likewise.
17226         * modules/hash-tests (Files): Likewise.
17227         * modules/i-ring-tests (Files): Likewise.
17228         * modules/iconv-tests (Files): Likewise.
17229         * modules/iconv_open-utf-tests (Files): Likewise.
17230         * modules/idpriv-drop-tests (Files): Likewise.
17231         * modules/idpriv-droptemp-tests (Files): Likewise.
17232         * modules/inet_ntop-tests (Files): Likewise.
17233         * modules/inet_pton-tests (Files): Likewise.
17234         * modules/isblank-tests (Files): Likewise.
17235         * modules/isfinite-tests (Files): Likewise.
17236         * modules/isinf-tests (Files): Likewise.
17237         * modules/isnan-tests (Files): Likewise.
17238         * modules/isnand-nolibm-tests (Files): Likewise.
17239         * modules/isnand-tests (Files): Likewise.
17240         * modules/isnanf-nolibm-tests (Files): Likewise.
17241         * modules/isnanf-tests (Files): Likewise.
17242         * modules/isnanl-nolibm-tests (Files): Likewise.
17243         * modules/isnanl-tests (Files): Likewise.
17244         * modules/lchown-tests (Files): Likewise.
17245         * modules/ldexpl-tests (Files): Likewise.
17246         * modules/link-tests (Files): Likewise.
17247         * modules/linkat-tests (Files): Likewise.
17248         * modules/linked-list-tests (Files): Likewise.
17249         * modules/linkedhash-list-tests (Files): Likewise.
17250         * modules/localename-tests (Files): Likewise.
17251         * modules/lseek-tests (Files): Likewise.
17252         * modules/lstat-tests (Files): Likewise.
17253         * modules/mbmemcasecmp-tests (Files): Likewise.
17254         * modules/mbmemcasecoll-tests (Files): Likewise.
17255         * modules/mbrtowc-tests (Files): Likewise.
17256         * modules/mbscasecmp-tests (Files): Likewise.
17257         * modules/mbscasestr-tests (Files): Likewise.
17258         * modules/mbschr-tests (Files): Likewise.
17259         * modules/mbscspn-tests (Files): Likewise.
17260         * modules/mbsinit-tests (Files): Likewise.
17261         * modules/mbsncasecmp-tests (Files): Likewise.
17262         * modules/mbsnrtowcs-tests (Files): Likewise.
17263         * modules/mbspbrk-tests (Files): Likewise.
17264         * modules/mbspcasecmp-tests (Files): Likewise.
17265         * modules/mbsrchr-tests (Files): Likewise.
17266         * modules/mbsrtowcs-tests (Files): Likewise.
17267         * modules/mbsspn-tests (Files): Likewise.
17268         * modules/mbsstr-tests (Files): Likewise.
17269         * modules/memchr-tests (Files): Likewise.
17270         * modules/memchr2-tests (Files): Likewise.
17271         * modules/memcmp-tests (Files): Likewise.
17272         * modules/memmem-tests (Files): Likewise.
17273         * modules/memrchr-tests (Files): Likewise.
17274         * modules/mkdir-tests (Files): Likewise.
17275         * modules/mkfifo-tests (Files): Likewise.
17276         * modules/mkfifoat-tests (Files): Likewise.
17277         * modules/mknod-tests (Files): Likewise.
17278         * modules/nanosleep-tests (Files): Likewise.
17279         * modules/nl_langinfo-tests (Files): Likewise.
17280         * modules/obstack-printf-tests (Files): Likewise.
17281         * modules/open-tests (Files): Likewise.
17282         * modules/openat-tests (Files): Likewise.
17283         * modules/pipe-filter-gi-tests (Files): Likewise.
17284         * modules/pipe-filter-ii-tests (Files): Likewise.
17285         * modules/pipe2-tests (Files): Likewise.
17286         * modules/popen-safer-tests (Files): Likewise.
17287         * modules/popen-tests (Files): Likewise.
17288         * modules/posixtm-tests (Files): Likewise.
17289         * modules/pread-tests (Files): Likewise.
17290         * modules/printf-frexp-tests (Files): Likewise.
17291         * modules/printf-frexpl-tests (Files): Likewise.
17292         * modules/printf-posix-tests (Files): Likewise.
17293         * modules/priv-set-tests (Files): Likewise.
17294         * modules/quotearg-tests (Files): Likewise.
17295         * modules/random_r-tests (Files): Likewise.
17296         * modules/rawmemchr-tests (Files): Likewise.
17297         * modules/rbtree-list-tests (Files): Likewise.
17298         * modules/rbtree-oset-tests (Files): Likewise.
17299         * modules/rbtreehash-list-tests (Files): Likewise.
17300         * modules/readlink-tests (Files): Likewise.
17301         * modules/remove-tests (Files): Likewise.
17302         * modules/rename-tests (Files): Likewise.
17303         * modules/renameat-tests (Files): Likewise.
17304         * modules/rmdir-tests (Files): Likewise.
17305         * modules/round-tests (Files): Likewise.
17306         * modules/roundf-tests (Files): Likewise.
17307         * modules/roundl-tests (Files): Likewise.
17308         * modules/safe-alloc-tests (Files): Likewise.
17309         * modules/setenv-tests (Files): Likewise.
17310         * modules/sigaction-tests (Files): Likewise.
17311         * modules/signbit-tests (Files): Likewise.
17312         * modules/sleep-tests (Files): Likewise.
17313         * modules/snprintf-posix-tests (Files): Likewise.
17314         * modules/snprintf-tests (Files): Likewise.
17315         * modules/sprintf-posix-tests (Files): Likewise.
17316         * modules/stat-tests (Files): Likewise.
17317         * modules/stat-time-tests (Files): Likewise.
17318         * modules/strcasestr-tests (Files): Likewise.
17319         * modules/strchrnul-tests (Files): Likewise.
17320         * modules/strerror-tests (Files): Likewise.
17321         * modules/striconv-tests (Files): Likewise.
17322         * modules/striconveh-tests (Files): Likewise.
17323         * modules/striconveha-tests (Files): Likewise.
17324         * modules/strsignal-tests (Files): Likewise.
17325         * modules/strstr-tests (Files): Likewise.
17326         * modules/strtod-tests (Files): Likewise.
17327         * modules/strverscmp-tests (Files): Likewise.
17328         * modules/symlink-tests (Files): Likewise.
17329         * modules/symlinkat-tests (Files): Likewise.
17330         * modules/trunc-tests (Files): Likewise.
17331         * modules/truncf-tests (Files): Likewise.
17332         * modules/truncl-tests (Files): Likewise.
17333         * modules/uname-tests (Files): Likewise.
17334         * modules/unicase/cased-tests (Files): Likewise.
17335         * modules/unicase/ignorable-tests (Files): Likewise.
17336         * modules/unicase/locale-language-tests (Files): Likewise.
17337         * modules/unicase/tolower-tests (Files): Likewise.
17338         * modules/unicase/totitle-tests (Files): Likewise.
17339         * modules/unicase/toupper-tests (Files): Likewise.
17340         * modules/unicase/u8-casecmp-tests (Files): Likewise.
17341         * modules/unicase/u8-casecoll-tests (Files): Likewise.
17342         * modules/unicase/u8-casefold-tests (Files): Likewise.
17343         * modules/unicase/u8-is-cased-tests (Files): Likewise.
17344         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
17345         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
17346         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
17347         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
17348         * modules/unicase/u8-tolower-tests (Files): Likewise.
17349         * modules/unicase/u8-totitle-tests (Files): Likewise.
17350         * modules/unicase/u8-toupper-tests (Files): Likewise.
17351         * modules/unicase/u16-casecmp-tests (Files): Likewise.
17352         * modules/unicase/u16-casecoll-tests (Files): Likewise.
17353         * modules/unicase/u16-casefold-tests (Files): Likewise.
17354         * modules/unicase/u16-is-cased-tests (Files): Likewise.
17355         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
17356         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
17357         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
17358         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
17359         * modules/unicase/u16-tolower-tests (Files): Likewise.
17360         * modules/unicase/u16-totitle-tests (Files): Likewise.
17361         * modules/unicase/u16-toupper-tests (Files): Likewise.
17362         * modules/unicase/u32-casecmp-tests (Files): Likewise.
17363         * modules/unicase/u32-casecoll-tests (Files): Likewise.
17364         * modules/unicase/u32-casefold-tests (Files): Likewise.
17365         * modules/unicase/u32-is-cased-tests (Files): Likewise.
17366         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
17367         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
17368         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
17369         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
17370         * modules/unicase/u32-tolower-tests (Files): Likewise.
17371         * modules/unicase/u32-totitle-tests (Files): Likewise.
17372         * modules/unicase/u32-toupper-tests (Files): Likewise.
17373         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
17374         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
17375         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
17376         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
17377         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
17378         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
17379         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
17380         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
17381         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
17382         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
17383         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
17384         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
17385         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
17386         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
17387         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
17388         * modules/unictype/bidicategory-name-tests (Files): Likewise.
17389         * modules/unictype/bidicategory-of-tests (Files): Likewise.
17390         * modules/unictype/bidicategory-test-tests (Files): Likewise.
17391         * modules/unictype/block-list-tests (Files): Likewise.
17392         * modules/unictype/block-of-tests (Files): Likewise.
17393         * modules/unictype/block-test-tests (Files): Likewise.
17394         * modules/unictype/category-C-tests (Files): Likewise.
17395         * modules/unictype/category-Cc-tests (Files): Likewise.
17396         * modules/unictype/category-Cf-tests (Files): Likewise.
17397         * modules/unictype/category-Cn-tests (Files): Likewise.
17398         * modules/unictype/category-Co-tests (Files): Likewise.
17399         * modules/unictype/category-Cs-tests (Files): Likewise.
17400         * modules/unictype/category-L-tests (Files): Likewise.
17401         * modules/unictype/category-Ll-tests (Files): Likewise.
17402         * modules/unictype/category-Lm-tests (Files): Likewise.
17403         * modules/unictype/category-Lo-tests (Files): Likewise.
17404         * modules/unictype/category-Lt-tests (Files): Likewise.
17405         * modules/unictype/category-Lu-tests (Files): Likewise.
17406         * modules/unictype/category-M-tests (Files): Likewise.
17407         * modules/unictype/category-Mc-tests (Files): Likewise.
17408         * modules/unictype/category-Me-tests (Files): Likewise.
17409         * modules/unictype/category-Mn-tests (Files): Likewise.
17410         * modules/unictype/category-N-tests (Files): Likewise.
17411         * modules/unictype/category-Nd-tests (Files): Likewise.
17412         * modules/unictype/category-Nl-tests (Files): Likewise.
17413         * modules/unictype/category-No-tests (Files): Likewise.
17414         * modules/unictype/category-P-tests (Files): Likewise.
17415         * modules/unictype/category-Pc-tests (Files): Likewise.
17416         * modules/unictype/category-Pd-tests (Files): Likewise.
17417         * modules/unictype/category-Pe-tests (Files): Likewise.
17418         * modules/unictype/category-Pf-tests (Files): Likewise.
17419         * modules/unictype/category-Pi-tests (Files): Likewise.
17420         * modules/unictype/category-Po-tests (Files): Likewise.
17421         * modules/unictype/category-Ps-tests (Files): Likewise.
17422         * modules/unictype/category-S-tests (Files): Likewise.
17423         * modules/unictype/category-Sc-tests (Files): Likewise.
17424         * modules/unictype/category-Sk-tests (Files): Likewise.
17425         * modules/unictype/category-Sm-tests (Files): Likewise.
17426         * modules/unictype/category-So-tests (Files): Likewise.
17427         * modules/unictype/category-Z-tests (Files): Likewise.
17428         * modules/unictype/category-Zl-tests (Files): Likewise.
17429         * modules/unictype/category-Zp-tests (Files): Likewise.
17430         * modules/unictype/category-Zs-tests (Files): Likewise.
17431         * modules/unictype/category-and-not-tests (Files): Likewise.
17432         * modules/unictype/category-and-tests (Files): Likewise.
17433         * modules/unictype/category-byname-tests (Files): Likewise.
17434         * modules/unictype/category-name-tests (Files): Likewise.
17435         * modules/unictype/category-none-tests (Files): Likewise.
17436         * modules/unictype/category-of-tests (Files): Likewise.
17437         * modules/unictype/category-or-tests (Files): Likewise.
17438         * modules/unictype/category-test-withtable-tests (Files): Likewise.
17439         * modules/unictype/combining-class-tests (Files): Likewise.
17440         * modules/unictype/ctype-alnum-tests (Files): Likewise.
17441         * modules/unictype/ctype-alpha-tests (Files): Likewise.
17442         * modules/unictype/ctype-blank-tests (Files): Likewise.
17443         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
17444         * modules/unictype/ctype-digit-tests (Files): Likewise.
17445         * modules/unictype/ctype-graph-tests (Files): Likewise.
17446         * modules/unictype/ctype-lower-tests (Files): Likewise.
17447         * modules/unictype/ctype-print-tests (Files): Likewise.
17448         * modules/unictype/ctype-punct-tests (Files): Likewise.
17449         * modules/unictype/ctype-space-tests (Files): Likewise.
17450         * modules/unictype/ctype-upper-tests (Files): Likewise.
17451         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
17452         * modules/unictype/decimal-digit-tests (Files): Likewise.
17453         * modules/unictype/digit-tests (Files): Likewise.
17454         * modules/unictype/mirror-tests (Files): Likewise.
17455         * modules/unictype/numeric-tests (Files): Likewise.
17456         * modules/unictype/property-alphabetic-tests (Files): Likewise.
17457         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
17458         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
17459         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
17460         Likewise.
17461         * modules/unictype/property-bidi-block-separator-tests (Files):
17462         Likewise.
17463         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
17464         Likewise.
17465         * modules/unictype/property-bidi-common-separator-tests (Files):
17466         Likewise.
17467         * modules/unictype/property-bidi-control-tests (Files): Likewise.
17468         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
17469         Likewise.
17470         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
17471         Likewise.
17472         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
17473         Likewise.
17474         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
17475         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
17476         Likewise.
17477         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
17478         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
17479         Likewise.
17480         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
17481         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
17482         * modules/unictype/property-bidi-segment-separator-tests (Files):
17483         Likewise.
17484         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
17485         * modules/unictype/property-byname-tests (Files): Likewise.
17486         * modules/unictype/property-combining-tests (Files): Likewise.
17487         * modules/unictype/property-composite-tests (Files): Likewise.
17488         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
17489         * modules/unictype/property-dash-tests (Files): Likewise.
17490         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
17491         * modules/unictype/property-default-ignorable-code-point-tests (Files):
17492         Likewise.
17493         * modules/unictype/property-deprecated-tests (Files): Likewise.
17494         * modules/unictype/property-diacritic-tests (Files): Likewise.
17495         * modules/unictype/property-extender-tests (Files): Likewise.
17496         * modules/unictype/property-format-control-tests (Files): Likewise.
17497         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
17498         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
17499         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
17500         * modules/unictype/property-hex-digit-tests (Files): Likewise.
17501         * modules/unictype/property-hyphen-tests (Files): Likewise.
17502         * modules/unictype/property-id-continue-tests (Files): Likewise.
17503         * modules/unictype/property-id-start-tests (Files): Likewise.
17504         * modules/unictype/property-ideographic-tests (Files): Likewise.
17505         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
17506         * modules/unictype/property-ids-trinary-operator-tests (Files):
17507         Likewise.
17508         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
17509         * modules/unictype/property-iso-control-tests (Files): Likewise.
17510         * modules/unictype/property-join-control-tests (Files): Likewise.
17511         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
17512         * modules/unictype/property-line-separator-tests (Files): Likewise.
17513         * modules/unictype/property-logical-order-exception-tests (Files):
17514         Likewise.
17515         * modules/unictype/property-lowercase-tests (Files): Likewise.
17516         * modules/unictype/property-math-tests (Files): Likewise.
17517         * modules/unictype/property-non-break-tests (Files): Likewise.
17518         * modules/unictype/property-not-a-character-tests (Files): Likewise.
17519         * modules/unictype/property-numeric-tests (Files): Likewise.
17520         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
17521         * modules/unictype/property-other-default-ignorable-code-point-tests
17522         (Files): Likewise.
17523         * modules/unictype/property-other-grapheme-extend-tests (Files):
17524         Likewise.
17525         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
17526         * modules/unictype/property-other-id-start-tests (Files): Likewise.
17527         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
17528         * modules/unictype/property-other-math-tests (Files): Likewise.
17529         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
17530         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
17531         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
17532         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
17533         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
17534         * modules/unictype/property-private-use-tests (Files): Likewise.
17535         * modules/unictype/property-punctuation-tests (Files): Likewise.
17536         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
17537         * modules/unictype/property-radical-tests (Files): Likewise.
17538         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
17539         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
17540         * modules/unictype/property-space-tests (Files): Likewise.
17541         * modules/unictype/property-terminal-punctuation-tests (Files):
17542         Likewise.
17543         * modules/unictype/property-test-tests (Files): Likewise.
17544         * modules/unictype/property-titlecase-tests (Files): Likewise.
17545         * modules/unictype/property-unassigned-code-value-tests (Files):
17546         Likewise.
17547         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
17548         * modules/unictype/property-uppercase-tests (Files): Likewise.
17549         * modules/unictype/property-variation-selector-tests (Files): Likewise.
17550         * modules/unictype/property-white-space-tests (Files): Likewise.
17551         * modules/unictype/property-xid-continue-tests (Files): Likewise.
17552         * modules/unictype/property-xid-start-tests (Files): Likewise.
17553         * modules/unictype/property-zero-width-tests (Files): Likewise.
17554         * modules/unictype/scripts-tests (Files): Likewise.
17555         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
17556         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
17557         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
17558         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
17559         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
17560         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
17561         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
17562         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
17563         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
17564         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
17565         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
17566         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
17567         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
17568         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
17569         * modules/uninorm/composition-tests (Files): Likewise.
17570         * modules/uninorm/decomposing-form-tests (Files): Likewise.
17571         * modules/uninorm/decomposition-tests (Files): Likewise.
17572         * modules/uninorm/filter-tests (Files): Likewise.
17573         * modules/uninorm/nfc-tests (Files): Likewise.
17574         * modules/uninorm/nfd-tests (Files): Likewise.
17575         * modules/uninorm/nfkc-tests (Files): Likewise.
17576         * modules/uninorm/nfkd-tests (Files): Likewise.
17577         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
17578         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
17579         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
17580         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
17581         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
17582         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
17583         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
17584         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17585         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
17586         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
17587         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
17588         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
17589         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17590         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
17591         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
17592         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
17593         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
17594         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17595         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
17596         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
17597         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
17598         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
17599         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17600         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
17601         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
17602         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
17603         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
17604         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
17605         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
17606         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
17607         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
17608         * modules/uniwidth/u8-width-tests (Files): Likewise.
17609         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
17610         * modules/uniwidth/u16-width-tests (Files): Likewise.
17611         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
17612         * modules/uniwidth/u32-width-tests (Files): Likewise.
17613         * modules/uniwidth/width-tests (Files): Likewise.
17614         * modules/unlink-tests (Files): Likewise.
17615         * modules/unsetenv-tests (Files): Likewise.
17616         * modules/usleep-tests (Files): Likewise.
17617         * modules/utimens-tests (Files): Likewise.
17618         * modules/utimensat-tests (Files): Likewise.
17619         * modules/vasnprintf-posix-tests (Files): Likewise.
17620         * modules/vasnprintf-tests (Files): Likewise.
17621         * modules/vasprintf-posix-tests (Files): Likewise.
17622         * modules/vasprintf-tests (Files): Likewise.
17623         * modules/vdprintf-posix-tests (Files): Likewise.
17624         * modules/vfprintf-posix-tests (Files): Likewise.
17625         * modules/vprintf-posix-tests (Files): Likewise.
17626         * modules/vsnprintf-posix-tests (Files): Likewise.
17627         * modules/vsnprintf-tests (Files): Likewise.
17628         * modules/vsprintf-posix-tests (Files): Likewise.
17629         * modules/wcrtomb-tests (Files): Likewise.
17630         * modules/wcsnrtombs-tests (Files): Likewise.
17631         * modules/wcsrtombs-tests (Files): Likewise.
17632         * modules/wctype-tests (Files): Likewise.
17633         * modules/wcwidth-tests (Files): Likewise.
17634         * modules/xmemdup0-tests (Files): Likewise.
17635         * modules/xprintf-posix-tests (Files): Likewise.
17636         * modules/xvasprintf-tests (Files): Likewise.
17637
17638 2009-12-24  Eric Blake  <ebb9@byu.net>
17639
17640         test-nanosleep: fix typo
17641         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
17642         patch.
17643         Reported by Bruno Haible.
17644
17645 2009-12-24  Bruno Haible  <bruno@clisp.org>
17646
17647         Reduce namespace pollution on glibc systems.
17648         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
17649         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
17650         systems.
17651         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
17652         <getopt.h> on glibc systems.
17653         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
17654         systems.
17655         * lib/fcntl.c: Include <unistd.h> here instead.
17656
17657 2009-12-24  Bruno Haible  <bruno@clisp.org>
17658
17659         * lib/stdlib.in.h (includes): Fix typo in today's commit.
17660
17661 2009-12-24  Eric Blake  <ebb9@byu.net>
17662
17663         tests: add signature checks
17664         * tests/signature.h (SIGNATURE_CHECK): New file.
17665         * modules/atexit-tests (Files): Use it.
17666         * modules/btowc-tests (Files): Likewise.
17667         * modules/canonicalize-lgpl-tests (Files): Likewise.
17668         * modules/ceilf-tests (Files): Likewise.
17669         * modules/ceill-tests (Files): Likewise.
17670         * modules/chown-tests (Files): Likewise.
17671         * modules/dprintf-posix-tests (Files): Likewise.
17672         * modules/dup2-tests (Files): Likewise.
17673         * modules/dup3-tests (Files): Likewise.
17674         * modules/duplocale-tests (Files): Likewise.
17675         * modules/fchdir-tests (Files): Likewise.
17676         * modules/fcntl-tests (Files): Likewise.
17677         * modules/fdopendir-tests (Files): Likewise.
17678         * modules/fflush-tests (Files): Likewise.
17679         * modules/flock-tests (Files): Likewise.
17680         * modules/floorf-tests (Files): Likewise.
17681         * modules/floorl-tests (Files): Likewise.
17682         * modules/fnmatch-tests (Files): Likewise.
17683         * modules/fopen-tests (Files): Likewise.
17684         * modules/fprintf-posix-tests (Files): Likewise.
17685         * modules/freopen-tests (Files): Likewise.
17686         * modules/frexp-nolibm-tests (Files): Likewise.
17687         * modules/frexp-tests (Files): Likewise.
17688         * modules/frexpl-nolibm-tests (Files): Likewise.
17689         * modules/frexpl-tests (Files): Likewise.
17690         * modules/fseek-tests (Files): Likewise.
17691         * modules/fseeko-tests (Files): Likewise.
17692         * modules/fsync-tests (Files): Likewise.
17693         * modules/ftell-tests (Files): Likewise.
17694         * modules/ftello-tests (Files): Likewise.
17695         * modules/futimens-tests (Files): Likewise.
17696         * modules/getaddrinfo-tests (Files): Likewise.
17697         * modules/getcwd-tests (Files): Likewise.
17698         * modules/getdelim-tests (Files): Likewise.
17699         * modules/getdtablesize-tests (Files): Likewise.
17700         * modules/getgroups-tests (Files): Likewise.
17701         * modules/gethostname-tests (Files): Likewise.
17702         * modules/getline-tests (Files): Likewise.
17703         * modules/getopt-posix-tests (Files): Likewise.
17704         * modules/gettimeofday-tests (Files): Likewise.
17705         * modules/glob-tests (Files): Likewise.
17706         * modules/iconv-tests (Files): Likewise.
17707         * modules/inet_ntop-tests (Files): Likewise.
17708         * modules/inet_pton-tests (Files): Likewise.
17709         * modules/isblank-tests (Files): Likewise.
17710         * modules/lchown-tests (Files): Likewise.
17711         * modules/ldexpl-tests (Files): Likewise.
17712         * modules/link-tests (Files): Likewise.
17713         * modules/linkat-tests (Files): Likewise.
17714         * modules/lseek-tests (Files): Likewise.
17715         * modules/lstat-tests (Files): Likewise.
17716         * modules/mbrtowc-tests (Files): Likewise.
17717         * modules/mbsinit-tests (Files): Likewise.
17718         * modules/mbsnrtowcs-tests (Files): Likewise.
17719         * modules/mbsrtowcs-tests (Files): Likewise.
17720         * modules/memchr-tests (Files): Likewise.
17721         * modules/memcmp-tests (Files): Likewise.
17722         * modules/memmem-tests (Files): Likewise.
17723         * modules/memrchr-tests (Files): Likewise.
17724         * modules/mkdir-tests (Files): Likewise.
17725         * modules/mkfifo-tests (Files): Likewise.
17726         * modules/mkfifoat-tests (Files): Likewise.
17727         * modules/mknod-tests (Files): Likewise.
17728         * modules/nanosleep-tests (Files): Likewise.
17729         * modules/nl_langinfo-tests (Files): Likewise.
17730         * modules/obstack-printf-tests (Files): Likewise.
17731         * modules/open-tests (Files): Likewise.
17732         * modules/openat-tests (Files): Likewise.
17733         * modules/perror-tests (Files): Likewise.
17734         * modules/pipe2-tests (Files): Likewise.
17735         * modules/poll-tests (Files): Likewise.
17736         * modules/popen-tests (Files): Likewise.
17737         * modules/posix_spawn-tests (Files): Likewise.
17738         * modules/posix_spawnp-tests (Files): Likewise.
17739         * modules/pread-tests (Files): Likewise.
17740         * modules/printf-posix-tests (Files): Likewise.
17741         * modules/pty-tests (Files): Likewise.
17742         * modules/random_r-tests (Files): Likewise.
17743         * modules/rawmemchr-tests (Files): Likewise.
17744         * modules/readlink-tests (Files): Likewise.
17745         * modules/remove-tests (Files): Likewise.
17746         * modules/rename-tests (Files): Likewise.
17747         * modules/renameat-tests (Files): Likewise.
17748         * modules/rmdir-tests (Files): Likewise.
17749         * modules/round-tests (Files): Likewise.
17750         * modules/roundf-tests (Files): Likewise.
17751         * modules/roundl-tests (Files): Likewise.
17752         * modules/select-tests (Files): Likewise.
17753         * modules/setenv-tests (Files): Likewise.
17754         * modules/sigaction-tests (Files): Likewise.
17755         * modules/sleep-tests (Files): Likewise.
17756         * modules/snprintf-posix-tests (Files): Likewise.
17757         * modules/snprintf-tests (Files): Likewise.
17758         * modules/sprintf-posix-tests (Files): Likewise.
17759         * modules/stat-tests (Files): Likewise.
17760         * modules/strcasestr-tests (Files): Likewise.
17761         * modules/strchrnul-tests (Files): Likewise.
17762         * modules/strerror-tests (Files): Likewise.
17763         * modules/strsignal-tests (Files): Likewise.
17764         * modules/strstr-tests (Files): Likewise.
17765         * modules/strtod-tests (Files): Likewise.
17766         * modules/strverscmp-tests (Files): Likewise.
17767         * modules/symlink-tests (Files): Likewise.
17768         * modules/symlinkat-tests (Files): Likewise.
17769         * modules/times-tests (Files): Likewise.
17770         * modules/trunc-tests (Files): Likewise.
17771         * modules/truncf-tests (Files): Likewise.
17772         * modules/truncl-tests (Files): Likewise.
17773         * modules/tsearch-tests (Files): Likewise.
17774         * modules/uname-tests (Files): Likewise.
17775         * modules/unlink-tests (Files): Likewise.
17776         * modules/unsetenv-tests (Files): Likewise.
17777         * modules/usleep-tests (Files): Likewise.
17778         * modules/utimensat-tests (Files): Likewise.
17779         * modules/vasprintf-tests (Files): Likewise.
17780         * modules/vdprintf-posix-tests (Files): Likewise.
17781         * modules/vfprintf-posix-tests (Files): Likewise.
17782         * modules/vprintf-posix-tests (Files): Likewise.
17783         * modules/vsnprintf-posix-tests (Files): Likewise.
17784         * modules/vsnprintf-tests (Files): Likewise.
17785         * modules/vsprintf-posix-tests (Files): Likewise.
17786         * modules/wcrtomb-tests (Files): Likewise.
17787         * modules/wcsnrtombs-tests (Files): Likewise.
17788         * modules/wcsrtombs-tests (Files): Likewise.
17789         * modules/wcwidth-tests (Files): Likewise.
17790         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
17791         * tests/test-isinf.c (isinf): Likewise.
17792         * tests/test-isnan.c (isnan): Likewise.
17793         * tests/test-signbit.c (signbit): Likewise.
17794         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
17795         declaration, either as macro or with correct signature.
17796         (select): Ensure function under test is declared with correct
17797         signature in correct header.
17798         * tests/test-atexit.c (atexit): Likewise.
17799         * tests/test-btowc.c (btowc): Likewise.
17800         * tests/test-canonicalize-lgpl.c (realpath)
17801         (canonicalize_file_name): Likewise.
17802         * tests/test-ceilf1.c (ceilf): Likewise.
17803         * tests/test-ceill.c (ceill): Likewise.
17804         * tests/test-chown.c (chown): Likewise.
17805         * tests/test-dprintf-posix.c (dprintf): Likewise.
17806         * tests/test-dup2.c (dup2): Likewise.
17807         * tests/test-dup3.c (dup3): Likewise.
17808         * tests/test-duplocale.c (duplocale): Likewise.
17809         * tests/test-fchdir.c (fchdir): Likewise.
17810         * tests/test-fchownat.c (fchownat): Likewise.
17811         * tests/test-fcntl.c (fcntl): Likewise.
17812         * tests/test-fdopendir.c (fdopendir): Likewise.
17813         * tests/test-fflush.c (fflush): Likewise.
17814         * tests/test-flock.c (flock): Likewise.
17815         * tests/test-floorf1.c (floorf): Likewise.
17816         * tests/test-floorl.c (floorl): Likewise.
17817         * tests/test-fnmatch.c (fnmatch): Likewise.
17818         * tests/test-fopen.c (fopen): Likewise.
17819         * tests/test-fprintf-posix.c (fprintf): Likewise.
17820         * tests/test-freopen.c (freopen): Likewise.
17821         * tests/test-frexp.c (frexp): Likewise.
17822         * tests/test-frexpl.c (frexpl): Likewise.
17823         * tests/test-fseek.c (fseek): Likewise.
17824         * tests/test-fseeko.c (fseeko): Likewise.
17825         * tests/test-fstatat.c (fstatat): Likewise.
17826         * tests/test-fsync.c (fsync): Likewise.
17827         * tests/test-ftell.c (ftell): Likewise.
17828         * tests/test-ftello.c (ftello): Likewise.
17829         * tests/test-futimens.c (futimens): Likewise.
17830         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
17831         (gai_strerror): Likewise.
17832         * tests/test-getcwd.c (getcwd): Likewise.
17833         * tests/test-getdelim.c (getdelim): Likewise.
17834         * tests/test-getdtablesize.c (getdtablesize): Likewise.
17835         * tests/test-getgroups.c (getgroups): Likewise.
17836         * tests/test-gethostname.c (gethostname): Likewise.
17837         * tests/test-getline.c (getline): Likewise.
17838         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
17839         Likewise.
17840         * tests/test-gettimeofday.c (gettimeofday): Likewise.
17841         * tests/test-glob.c (glob, globfree): Likewise.
17842         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
17843         * tests/test-inet_ntop.c (inet_ntop): Likewise.
17844         * tests/test-inet_pton.c (inet_pton): Likewise.
17845         * tests/test-isblank.c (isblank): Likewise.
17846         * tests/test-lchown.c (lchown): Likewise.
17847         * tests/test-ldexpl.c (ldexpl): Likewise.
17848         * tests/test-link.c (link): Likewise.
17849         * tests/test-linkat.c (linkat): Likewise.
17850         * tests/test-lseek.c (lseek): Likewise.
17851         * tests/test-lstat.c (lstat): Likewise.
17852         * tests/test-mbrtowc.c (mbrtowc): Likewise.
17853         * tests/test-mbsinit.c (mbsinit): Likewise.
17854         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
17855         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
17856         * tests/test-memchr.c (memchr): Likewise.
17857         * tests/test-memcmp.c (memcmp): Likewise.
17858         * tests/test-memmem.c (memmem): Likewise.
17859         * tests/test-memrchr.c (memrchr): Likewise.
17860         * tests/test-mkdir.c (mkdir): Likewise.
17861         * tests/test-mkdirat.c (mkdirat): Likewise.
17862         * tests/test-mkfifo.c (mkfifo): Likewise.
17863         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
17864         * tests/test-mknod.c (mknod): Likewise.
17865         * tests/test-nanosleep.c (nanosleep): Likewise.
17866         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
17867         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
17868         Likewise.
17869         * tests/test-open.c (open): Likewise.
17870         * tests/test-openat.c (openat): Likewise.
17871         * tests/test-perror.c (perror): Likewise.
17872         * tests/test-pipe2.c (pipe2): Likewise.
17873         * tests/test-poll.c (poll): Likewise.
17874         * tests/test-popen.c (popen, pclose): Likewise.
17875         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
17876         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
17877         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
17878         (posix_spawn_file_actions_destroy)
17879         (posix_spawn_file_actions_addclose)
17880         (posix_spawn_file_actions_addopen)
17881         (posix_spawn_file_actions_adddup2): Likewise.
17882         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
17883         * tests/test-pread.c (pread): Likewise.
17884         * tests/test-printf-posix.c (printf): Likewise.
17885         * tests/test-pty.c (openpty, forkpty): Likewise.
17886         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
17887         (random_r): Likewise.
17888         * tests/test-rawmemchr.c (rawmemchr): Likewise.
17889         * tests/test-readlink.c (readlink): Likewise.
17890         * tests/test-remove.c (remove): Likewise.
17891         * tests/test-rename.c (rename): Likewise.
17892         * tests/test-renameat.c (renameat): Likewise.
17893         * tests/test-rmdir.c (rmdir): Likewise.
17894         * tests/test-round1.c (round): Likewise.
17895         * tests/test-roundf1.c (roundf): Likewise.
17896         * tests/test-roundl.c (roundl): Likewise.
17897         * tests/test-setenv.c (setenv): Likewise.
17898         * tests/test-sigaction.c (sigaction): Likewise.
17899         * tests/test-sleep.c (sleep): Likewise.
17900         * tests/test-snprintf.c (snprintf): Likewise.
17901         * tests/test-sprintf-posix.c (sprintf): Likewise.
17902         * tests/test-stat.c (stat): Likewise.
17903         * tests/test-stpncpy.c (stpncpy): Likewise.
17904         * tests/test-strcasestr.c (strcasestr): Likewise.
17905         * tests/test-strchrnul.c (strchrnul): Likewise.
17906         * tests/test-strerror.c (strerror): Likewise.
17907         * tests/test-strsignal.c (strsignal): Likewise.
17908         * tests/test-strstr.c (strstr): Likewise.
17909         * tests/test-strtod.c (strtod): Likewise.
17910         * tests/test-strverscmp.c (strverscmp): Likewise.
17911         * tests/test-symlink.c (symlink): Likewise.
17912         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
17913         * tests/test-times.c (times): Likewise.
17914         * tests/test-trunc1.c (trunc): Likewise.
17915         * tests/test-truncf1.c (truncf): Likewise.
17916         * tests/test-truncl.c (truncl): Likewise.
17917         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
17918         Likewise.
17919         * tests/test-uname.c (uname): Likewise.
17920         * tests/test-unlink.c (unlink): Likewise.
17921         * tests/test-unlinkat.c (unlinkat): Likewise.
17922         * tests/test-unsetenv.c (unsetenv): Likewise.
17923         * tests/test-usleep.c (usleep): Likewise.
17924         * tests/test-utimensat.c (utimensat): Likewise.
17925         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
17926         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
17927         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
17928         * tests/test-vprintf-posix.c (vprintf): Likewise.
17929         * tests/test-vsnprintf.c (vsnprintf): Likewise.
17930         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
17931         * tests/test-wcrtomb.c (wcrtomb): Likewise.
17932         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
17933         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
17934         * tests/test-wcwidth.c (wcwidth): Likewise.
17935
17936         build: pull in conditional headers during GNULIB_POSIXCHECK
17937         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
17938         definitions from any conditionally-included headers.
17939         * lib/stdlib.in.h (includes): Likewise.
17940         * lib/unistd.in.h (includes): Likewise.
17941
17942 2009-12-24  Bruno Haible  <bruno@clisp.org>
17943
17944         * tests/test-argv-iter.c: Include header file being tested immediately
17945         after config.h.
17946         * tests/test-base64.c: Likewise.
17947         * tests/test-flock.c: Likewise.
17948         * tests/test-fsync.c: Likewise.
17949         * tests/test-getdate.c: Likewise.
17950         * tests/test-getndelim2.c: Likewise.
17951         * tests/test-isfinite.c: Likewise.
17952         * tests/test-isinf.c: Likewise.
17953         * tests/test-strerror.c: Likewise.
17954         * tests/test-strsignal.c: Likewise.
17955
17956 2009-12-23  Eric Blake  <ebb9@byu.net>
17957
17958         unistd: work around cygwin bug
17959         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
17960         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
17961         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17962
17963 2009-12-23  Bruno Haible  <bruno@clisp.org>
17964
17965         localename: More tests.
17966         * tests/test-localename.c (SIZEOF): New macro.
17967         (categories): New variable.
17968         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
17969         test_locale_name_default): Add test w.r.t. thread locale.
17970         (test_locale_name_thread): New function.
17971         (main): Invoke it.
17972
17973         localename: Make aware of thread locale.
17974         * lib/localename.h (gl_locale_name_thread): New declaration.
17975         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
17976         behaviour with respect to thread locale.
17977         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
17978         <langinfo.h>, glthread/lock.h.
17979         (SIZE_BITS): New macro.
17980         (string_hash): New function.
17981         (struct hash_node): New type.
17982         (HASH_TABLE_SIZE): New macro.
17983         (struniq_hash_table, struniq_lock): New variables.
17984         (struniq): New function.
17985         (gl_locale_name_thread): New function.
17986         (gl_locale_name): Invoke it.
17987         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
17988         * modules/localename (Depends-on): Add lock.
17989         Reported by Mike Gran <spk121@yahoo.com>.
17990
17991 2009-12-23  Eric Blake  <ebb9@byu.net>
17992
17993         va-args: new module
17994         * modules/va-args: New file.
17995         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
17996         * MODULES.html.sh (Core language properties): Mention it.
17997
17998         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
17999         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
18000         named alias for __attribute__((__unused__)).
18001         * lib/chown.c: Update client.
18002         * lib/fchmodat.c: Likewise.
18003         * lib/fts.c: Likewise.
18004         * lib/getdate.y: Likewise.
18005         * lib/getgroups.c: Likewise.
18006         * lib/getopt.c: Likewise.
18007         * lib/getugroups.c: Likewise.
18008         * lib/mkdir.c: Likewise.
18009         * lib/mkfifo.c: Likewise.
18010         * lib/mkfifoat.c: Likewise.
18011         * lib/mknod.c: Likewise.
18012         * lib/mknodat.c: Likewise.
18013         * lib/readlink.c: Likewise.
18014         * lib/se-context.in.h: Likewise.
18015         * lib/se-selinux.in.h: Likewise.
18016         * lib/sockets.c: Likewise.
18017         * lib/symlink.c: Likewise.
18018         * lib/symlinkat.c: Likewise.
18019         * lib/unicodeio.c: Likewise.
18020         * lib/unistr.h: Likewise.
18021         * tests/test-areadlink.c: Likewise.
18022         * tests/test-areadlinkat.c: Likewise.
18023         * tests/test-filenamecat.c: Likewise.
18024         * tests/test-fseeko.c: Likewise.
18025         * tests/test-ftello.c: Likewise.
18026         * tests/test-getdate.c: Likewise.
18027         * tests/test-getgroups.c: Likewise.
18028         * tests/test-gethostname.c: Likewise.
18029         * tests/test-quotearg.c: Likewise.
18030         * tests/test-version-etc.c: Likewise.
18031         * tests/test-xalloc-die.c: Likewise.
18032         * tests/test-xfprintf-posix.c: Likewise.
18033         * tests/test-xprintf-posix.c: Likewise.
18034         * tests/test-xvasprintf.c: Likewise.
18035
18036         tests: avoid compiler warnings
18037         * tests/test-fcntl.c (main): Delete unused parameters.
18038         * tests/test-freopen-safer.c (main): Likewise.
18039         * tests/test-xalloc-die.c (main): Mark unused parameters.
18040         * tests/test-fseeko.c (main): Likewise.
18041         * tests/test-ftello.c (main): Likewise.
18042         * tests/test-nanosleep.c (main): Avoid declaration warning.
18043         * tests/test-sleep.c (main): Likewise.
18044         * tests/test-unsetenv.c (main): Silence warning about string
18045         literal.
18046         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18047
18048 2009-12-23  Bruno Haible  <bruno@clisp.org>
18049
18050         * tests/test-localename.c (test_locale_name): New function, extracted
18051         from main. Also test mixed situations.
18052         (test_locale_name_posix, test_locale_name_environ,
18053         test_locale_name_default): New functions.
18054         (main): Invoke them all.
18055         * modules/localename-tests (configure.ac): Test for newlocale.
18056
18057 2009-12-23  Bruno Haible  <bruno@clisp.org>
18058
18059         unistd: Ensure getcwd gets declared before being overridden.
18060         * lib/unistd.in.h: Conditionally include <io.h>.
18061
18062 2009-12-22  Bruno Haible  <bruno@clisp.org>
18063
18064         wchar: Diagnose broken combination of glibc and gcc versions and flags.
18065         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
18066         (gl_WCHAR_H): Invoke it.
18067         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
18068         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
18069         Reported by Karl Berry <karl@freefriends.org>.
18070
18071 2009-12-22  Eric Blake  <ebb9@byu.net>
18072
18073         math, unistd: avoid redundant includes
18074         * lib/math.in.h (isnan): No need to re-include <math.h>.
18075         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
18076
18077         getsubopt: work around cygwin bug
18078         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
18079         avoid conflicting with system getsubopt.
18080         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
18081         bug.
18082
18083         getopt: synchronize from glibc
18084         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
18085         parameter order.  Adjust all callers.
18086         (_getopt_internal_r, main): Adjust quoting in error messages.
18087         Drop considerations for outdated POSIX 1003.2 error message.
18088         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
18089         callers.
18090         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
18091
18092         test-getopt: test stderr behavior
18093         * modules/getopt-posix-tests (Depends-on): Add dup2.
18094         * tests/test-getopt.c (ASSERT): Avoid stderr.
18095         (main): Move stderr to a temporary file.
18096         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
18097         Instead, add parameter to inform caller if output occurred.
18098         (test_getopt): Adjust all existing tests to expect silence, and
18099         add new tests of leading ":".
18100         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18101         glibc shortcomings with leading "-:" or "+:" in optstring.
18102         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18103         Likewise.
18104         * doc/posix-functions/getopt.texi (getopt): Likewise.
18105
18106         test-getopt: enhance test
18107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
18108         supports optind=0.
18109         * tests/test-getopt.c (OPTIND_MIN): Move...
18110         * tests/test-getopt.h (OPTIND_MIN): ...here.
18111         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
18112         Require that optind=0 works, since modern BSD supports it in
18113         addition to optreset, and since coreutils expects it.
18114         (test_getopt_long_only): New test.
18115         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
18116         glibc shortcomings with 'W;', and enforcement of optind=0.
18117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18118         Likewise.
18119
18120 2009-12-21  Bruno Haible  <bruno@clisp.org>
18121
18122         localename: Improvements for MacOS X and Cygwin.
18123         * lib/localename.h (gl_locale_name_environ): New declaration.
18124         * lib/localename.c (gl_locale_name_environ): New function, extracted from
18125         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
18126         (gl_locale_name_posix): Invoke it.
18127         (gl_locale_name_default): Add comments. Use Windows native API also on
18128         Cygwin.
18129
18130 2009-12-21  Bruno Haible  <bruno@clisp.org>
18131
18132         Update list of Win32 locale ids.
18133         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
18134         (LANG_SAMI): Renamed from LANG_SAAMI.
18135         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
18136         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
18137         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
18138         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
18139         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
18140         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
18141         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
18142         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
18143         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
18144         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
18145         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
18146         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
18147         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
18148         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
18149         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
18150         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
18151         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
18152         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
18153         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
18154         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
18155         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
18156         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
18157         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
18158         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
18159         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
18160         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
18161         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
18162         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
18163         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
18164         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
18165         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
18166         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
18167         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
18168         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
18169         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
18170         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
18171         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
18172         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
18173         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
18174         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
18175         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
18176         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
18177         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
18178         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
18179         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
18180         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
18181         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
18182         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
18183         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
18184         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
18185         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
18186         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
18187         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
18188         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
18189         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
18190         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
18191         Add more languages and countries for Sami, Sorbian. Add more countries
18192         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
18193         for Pashto. Change country for Syriac, Tswana.
18194
18195 2009-12-21  Eric Blake  <ebb9@byu.net>
18196
18197         test-utimens: avoid spurious failure
18198         * tests/test-chown.h (nap): Factor...
18199         * tests/nap.h: ...into new file.
18200         * tests/test-lchown.h (nap): Avoid duplication.
18201         * tests/test-utimens-common.h (nap): Use shared implementation,
18202         necessary on file systems with 1-second resolution.
18203         * modules/chown-tests (Files): Include new file.
18204         * modules/fdutimensat-tests (Files): Likewise.
18205         * modules/futimens-tests (Files): Likewise.
18206         * modules/lchown-tests (Files): Likewise.
18207         * modules/openat-tests (Files): Likewise.
18208         * modules/utimens-tests (Files): Likewise.
18209         * modules/utimensat-tests (Files): Likewise.
18210
18211 2009-12-19  Eric Blake  <ebb9@byu.net>
18212
18213         futimens, utimensat: work around Linux bug
18214         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
18215         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18216         * lib/utimensat.c (rpl_utimensat): Work around it.
18217         * lib/futimens.c (rpl_futimens): Adjust comment.
18218
18219         utimens: work around Linux ctime bug
18220         * lib/utimens.c (detect_ctime_bug): New helper function.
18221         (update_timespec): Differentiate between workaround needed for
18222         this bug vs. what is needed for systems that lack utimensat.
18223         (fdutimens, lutimens): Work around bug.
18224
18225         utimens: check for ctime update
18226         * tests/test-utimens-common.h (check_ctime): Define.
18227         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
18228         * tests/test-futimens.h (test_futimens): Likewise.
18229         * tests/test-lutimens.h (test_lutimens): Likewise.
18230         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18231         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18232
18233 2009-12-19  Bruno Haible  <bruno@clisp.org>
18234
18235         dprintf-posix: Check against memory leak fixed on 2009-12-15.
18236         * tests/test-dprintf-posix2.sh: New file.
18237         * tests/test-dprintf-posix2.c: New file.
18238         * modules/dprintf-posix-tests (Files): Add them.
18239         (configure.ac): Check for getrlimit and setrlimit.
18240         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18241
18242 2009-12-19  Bruno Haible  <bruno@clisp.org>
18243
18244         fprintf-posix: Check against memory leak fixed on 2009-12-15.
18245         * tests/test-fprintf-posix3.sh: New file.
18246         * tests/test-fprintf-posix3.c: New file.
18247         * modules/fprintf-posix-tests (Files): Add them.
18248         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
18249
18250 2009-12-19  Eric Blake  <ebb9@byu.net>
18251
18252         dirfd: fix prototype
18253         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
18254         * lib/dirfd.c (dirfd): Likewise.
18255
18256         canonicalize: reduce memory usage
18257         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
18258         allocation to size.
18259         Reported by Solar Designer <solar@openwall.com>.
18260
18261 2009-12-19  Bruno Haible  <bruno@clisp.org>
18262
18263         New module attribute 'Applicability'.
18264         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
18265         * gnulib-tool: New option --extract-applicability.
18266         (func_usage): Document it.
18267         (sed_extract_prog): Recognize it.
18268         (func_get_applicability): New function.
18269         (func_import): Generalize handling of 'link-warning' module.
18270         * modules/link-warning (Applicability): New section.
18271         * modules/arg-nonnull (Applicability): New section.
18272         Repoted by Simon Josefsson <simon@josefsson.org>.
18273
18274 2009-12-19  Bruno Haible  <bruno@clisp.org>
18275
18276         fflush: tweak
18277         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
18278         * lib/fseeko.c (rpl_fseeko): Likewise.
18279
18280 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
18281
18282         * lib/gl_list.h: Fix typo in comment.
18283
18284 2009-12-16  Eric Blake  <ebb9@byu.net>
18285
18286         fcntl: use to simplify other modules
18287         * modules/cloexec (Depends-on): Add fcntl.
18288         * modules/fchdir (Depends-on): Likewise.
18289         * modules/fd-safer-flag (Depends-on): Likewise.
18290         * modules/unistd-safer (Depends-on): Likewise.
18291         * modules/dup3 (configure.ac): Set module indicator.
18292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
18293         missing.
18294         * lib/fchdir.c (_gl_register_dup): Fix comment.
18295         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
18296         * lib/dup-safer.c (dup_safer): Likewise.
18297         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
18298         * lib/dup3.c (dup3): Likewise.
18299         * tests/test-fchdir.c (main): Enhance test.
18300         Fixes a dup_cloexec bug reported by Ondřej Vašík.
18301
18302         fcntl: port portions of fcntl to mingw
18303         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
18304         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
18305         replacement for mingw.
18306         * modules/fcntl (Description): Update.
18307         (Depends-on): Add dup2.
18308         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
18309         * modules/fcntl-h (Makefile.am): Substitute it.
18310         * lib/fcntl.in.h (fcntl): Update declaration.
18311         (F_DUPFD, F_GETFD): New macros, when needed.
18312         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18313         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
18314         * tests/test-fcntl.c (check_flags, main): Enhance test for items
18315         we now guarantee.
18316
18317         fcntl: work around cygwin bug in F_DUPFD
18318         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
18319         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
18320         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
18321         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
18322         * doc/posix-functions/fcntl.texi (fcntl): Document it.
18323
18324         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
18325         * modules/fcntl (Files): List new files.
18326         (configure.ac): Run a test.
18327         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
18328         * lib/fcntl.c (rpl_fcntl): Likewise.
18329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
18330         (gl_FCNTL_H): Always replace fcntl.h.
18331         * modules/fcntl-h (Makefile.am): Substitute witnesses.
18332         * lib/fcntl.in.h (fcntl): Declare replacement.
18333         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
18334         needed, plus a witness.
18335         * doc/posix-functions/fcntl.texi (fcntl): Document this.
18336         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18337         * tests/test-fcntl.c: New file.
18338         * modules/fcntl-tests: Likewise.
18339
18340         binary-io: avoid potential compilation warning
18341         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
18342         directives.
18343
18344         fflush: avoid compilation error on NetBSD
18345         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
18346         between off_t and fpos_t, since the latter is sometimes a struct.
18347         * lib/fseeko.c (rpl_fseeko): Likewise.
18348         Reported by Alexander Nasonov <alnsn@yandex.ru>.
18349
18350 2009-12-15  Eric Blake  <ebb9@byu.net>
18351
18352         fcntl-h, stdio, sys_ioctl: fix declarations
18353         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
18354         function must not take arguments.
18355         * lib/sys_ioctl.in.h (ioctl): Likewise.
18356         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
18357         (open): Add a link warning.
18358
18359 2009-12-15  Jim Meyering  <meyering@redhat.com>
18360
18361         areadlink, areadlink-with-size: relax license to LGPLv2+
18362         * modules/areadlink (License): Relax to LGPLv2+.
18363         * modules/areadlink-with-size (License): Likewise.
18364
18365 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
18366             Bruno Haible  <bruno@clisp.org>
18367
18368         *printf: Fix memory leak.
18369         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
18370         * lib/vfprintf.c (vfprintf): Likewise.
18371         * lib/dprintf.c (dprintf): Likewise.
18372         * lib/vdprintf.c (vdprintf): Likewise.
18373
18374 2009-12-14  Eric Blake  <ebb9@byu.net>
18375
18376         accept4: adjust module dependencies
18377         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
18378
18379         utimens: one more try at avoiding compiler warning
18380         * lib/utimens.c (lutimens): Lower scope of result.
18381
18382 2009-12-13  Bruno Haible  <bruno@clisp.org>
18383
18384         Move the malloc checking from module 'list' to new module 'xlist'.
18385         * modules/xlist: New file.
18386         * lib/gl_xlist.h: New file.
18387         * lib/gl_xlist.c: New file.
18388         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
18389         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
18390         gl_list_add_last, gl_list_add_before, gl_list_add_after,
18391         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
18392         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
18393         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
18394         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
18395         gl_sortedlist_nx_add): New declarations.
18396         (struct gl_list_implementation): Rename and change methods accordingly.
18397         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
18398         (gl_list_nx_create): Renamed from gl_list_create.
18399         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18400         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18401         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18402         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18403         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18404         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18405         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18406         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18407         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
18408         gl_list_create_empty.
18409         (gl_list_nx_create): Renamed from gl_list_create.
18410         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
18411         (gl_list_nx_set_at): Renamed from gl_list_set_at.
18412         (gl_list_nx_add_first): Renamed from gl_list_add_first.
18413         (gl_list_nx_add_last): Renamed from gl_list_add_last.
18414         (gl_list_nx_add_before): Renamed from gl_list_add_before.
18415         (gl_list_nx_add_after): Renamed from gl_list_add_after.
18416         (gl_list_nx_add_at): Renamed from gl_list_add_at.
18417         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
18418         * lib/gl_array_list.c: Don't include xalloc.h.
18419         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
18420         NULL upon out-of-memory.
18421         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
18422         out-of-memory.
18423         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
18424         Change return type to 'int'.
18425         (gl_array_nx_set_at): Renamed from gl_array_set_at.
18426         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18427         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
18428         upon out-of-memory.
18429         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
18430         upon out-of-memory.
18431         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
18432         upon out-of-memory.
18433         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
18434         upon out-of-memory.
18435         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
18436         out-of-memory.
18437         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
18438         Update.
18439         (gl_array_list_implementation): Update.
18440         * lib/gl_carray_list.c: Don't include xalloc.h.
18441         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
18442         Return NULL upon out-of-memory.
18443         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
18444         out-of-memory.
18445         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
18446         Change return type to 'int'.
18447         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
18448         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
18449         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
18450         upon out-of-memory.
18451         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
18452         upon out-of-memory.
18453         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
18454         out-of-memory.
18455         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
18456         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
18457         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
18458         Update.
18459         (gl_carray_list_implementation): Update.
18460         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
18461         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
18462         gl_linked_create_empty. Return NULL upon out-of-memory.
18463         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
18464         out-of-memory.
18465         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
18466         Change return type to 'int'. Return -1 upon out-of-memory.
18467         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
18468         out-of-memory.
18469         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
18470         upon out-of-memory.
18471         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
18472         upon out-of-memory.
18473         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
18474         NULL upon out-of-memory.
18475         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
18476         upon out-of-memory.
18477         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
18478         out-of-memory.
18479         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
18480         Update.
18481         * lib/gl_linked_list.c: Don't include xalloc.h.
18482         (gl_linked_list_implementation): Update.
18483         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
18484         (add_to_bucket): Change return type to 'int'.
18485         (gl_linkedhash_list_implementation): Update.
18486         * lib/gl_anytree_list1.h (free_subtree): New function.
18487         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
18488         gl_tree_create_empty. Return NULL upon out-of-memory.
18489         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
18490         Change return type to 'int'. Return -1 upon out-of-memory.
18491         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
18492         out-of-memory.
18493         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
18494         (gl_tree_remove_node): New function, moved here from
18495         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
18496         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
18497         Update.
18498         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
18499         malloc, not xmalloc. Return NULL upon out-of-memory.
18500         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18501         out-of-memory.
18502         (gl_tree_remove_node_from_tree): New function, extracted from
18503         gl_tree_remove_node.
18504         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18505         upon out-of-memory.
18506         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18507         out-of-memory.
18508         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18509         upon out-of-memory.
18510         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18511         upon out-of-memory.
18512         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18513         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
18514         not xmalloc. Return NULL upon out-of-memory.
18515         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
18516         out-of-memory.
18517         (gl_tree_remove_node_from_tree): New function, extracted from
18518         gl_tree_remove_node.
18519         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
18520         upon out-of-memory.
18521         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
18522         out-of-memory.
18523         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
18524         upon out-of-memory.
18525         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
18526         upon out-of-memory.
18527         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
18528         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
18529         gl_anytree_list1.h before gl_anyavltree_list2.h.
18530         (gl_avltree_list_implementation): Update.
18531         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
18532         gl_anytree_list1.h before gl_anyavltree_list2.h.
18533         (gl_rbtree_list_implementation): Update.
18534         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
18535         Change return type to 'int'. Return -1 upon out-of-memory. Use
18536         __builtin_expect.
18537         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
18538         (gl_avltreehash_list_implementation): Update.
18539         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
18540         (gl_rbtreehash_list_implementation): Update.
18541         * modules/array-list (Depends-on): Remove xalloc.
18542         * modules/carray-list (Depends-on): Likewise.
18543         * modules/linked-list (Depends-on): Likewise.
18544         * modules/linkedhash-list (Depends-on): Likewise.
18545         * modules/avltree-list (Depends-on): Likewise.
18546         * modules/rbtree-list (Depends-on): Likewise.
18547         * modules/avltreehash-list (Depends-on): Likewise.
18548         * modules/rbtreehash-list (Depends-on): Likewise.
18549
18550         * modules/xsublist: New file.
18551         * lib/gl_xsublist.h: New file.
18552         * lib/gl_xsublist.c: New file.
18553         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
18554         (gl_sublist_nx_create): New declaration.
18555         * lib/gl_sublist.c: Don't include xalloc.h.
18556         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
18557         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
18558         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
18559         Change return type to 'int'. Return -1 upon out-of-memory.
18560         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
18561         upon out-of-memory.
18562         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
18563         NULL upon out-of-memory.
18564         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
18565         upon out-of-memory.
18566         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
18567         NULL upon out-of-memory.
18568         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
18569         NULL upon out-of-memory.
18570         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
18571         upon out-of-memory.
18572         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
18573         (gl_sublist_list_implementation): Update.
18574         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
18575         upon out-of-memory.
18576         * modules/sublist (Depends-on): Remove xalloc.
18577
18578         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
18579         * tests/test-carray_list.c: Likewise.
18580         * tests/test-linked_list.c: Likewise.
18581         * tests/test-linkedhash_list.c: Likewise.
18582         * tests/test-avltree_list.c: Likewise.
18583         * tests/test-rbtree_list.c: Likewise.
18584         * tests/test-avltreehash_list.c: Likewise.
18585         * tests/test-rbtreehash_list.c: Likewise.
18586         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
18587         * modules/carray-list-tests (Makefile.am): Likewise.
18588         * modules/linked-list-tests (Makefile.am): Likewise.
18589         * modules/linkedhash-list-tests (Makefile.am): Likewise.
18590         * modules/avltree-list-tests (Makefile.am): Likewise.
18591         * modules/rbtree-list-tests (Makefile.am): Likewise.
18592         * modules/avltreehash-list-tests (Makefile.am): Likewise.
18593         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
18594
18595         * NEWS: Mention the changes.
18596
18597         * lib/clean-temp.c: Include gl_xlist.h.
18598         * modules/clean-temp (Depends-on): Add xlist.
18599
18600         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
18601         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
18602
18603         * tests/test-array_oset.c: Include gl_xlist.h.
18604         * modules/array-oset-tests (Depends-on): Add xlist.
18605
18606         Reported by José E. Marchesi <jemarch@gnu.org>.
18607
18608 2009-12-13  Bruno Haible  <bruno@clisp.org>
18609
18610         Move the malloc checking from module 'oset' to new module 'xoset'.
18611         * modules/xoset: New file.
18612         * lib/gl_xoset.h: New file.
18613         * lib/gl_xoset.c: New file.
18614         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
18615         declarations.
18616         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
18617         (struct gl_oset_implementation): Rename and change methods accordingly.
18618         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
18619         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18620         'int'. Mark as __warn_unused_result__.
18621         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
18622         gl_oset_create_empty.
18623         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
18624         'int'.
18625         * lib/gl_array_oset.c: Don't include xalloc.h.
18626         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
18627         malloc, not xmalloc.
18628         (grow): Change return type to 'int'. Don't call xalloc_die.
18629         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
18630         to 'int'.
18631         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
18632         'int'.
18633         (gl_array_oset_implementation): Update.
18634         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
18635         gl_tree_create_empty.
18636         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
18637         'int'.
18638         * lib/gl_avltree_oset.c: Don't include xalloc.h.
18639         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18640         xmalloc.
18641         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18642         not xmalloc.
18643         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18644         xmalloc.
18645         (gl_avltree_oset_implementation): Update.
18646         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
18647         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
18648         xmalloc.
18649         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
18650         not xmalloc.
18651         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
18652         xmalloc.
18653         (gl_rbtree_oset_implementation): Update.
18654         * modules/array-oset (Depends-on): Remove xalloc.
18655         * modules/avltree-oset (Depends-on): Likewise.
18656         * modules/rbtree-oset (Depends-on): Likewise.
18657         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
18658         * tests/test-avltree_oset.c: Likewise.
18659         * tests/test-rbtree_oset.c: Likewise.
18660         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
18661         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
18662         * modules/rbtree-oset-tests (Makefile.am): Likewise.
18663         * NEWS: Mention the change.
18664
18665 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
18666
18667         maint.mk: allow a project to override release-prep commands
18668         * top/maint.mk (alpha, beta, stable): Move release-preparatory
18669         commands into a new rule.
18670         (release-prep): New rule.
18671         (release-prep-hook): New overridable variable.
18672
18673 2009-12-13  Bruno Haible  <bruno@clisp.org>
18674
18675         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
18676
18677 2009-12-13  Jim Meyering  <meyering@redhat.com>
18678
18679         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
18680         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
18681
18682 2009-12-12  Bruno Haible  <bruno@clisp.org>
18683
18684         duplocale: Tweak.
18685         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
18686
18687 2009-12-12  Karl Berry  <karl@gnu.org>
18688
18689         * config/srclist.txt (strtoll.c): tab changes, no more sync.
18690
18691 2009-12-12  Bruno Haible  <bruno@clisp.org>
18692
18693         * m4/po.m4: Undo incorrect untabification.
18694
18695 2009-12-12  Bruno Haible  <bruno@clisp.org>
18696
18697         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
18698         * modules/c-strtod (Depends-on): Add locale.
18699         * modules/c-strtold (Depends-on): Likewise.
18700
18701 2009-12-12  Bruno Haible  <bruno@clisp.org>
18702
18703         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
18704
18705 2009-12-11  Eric Blake  <ebb9@byu.net>
18706
18707         setenv: relax requirement in light of POSIX ruling
18708         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
18709         not NULL.
18710         * tests/test-setenv.c (main): Relax test.
18711         * tests/test-unsetenv.c (main): Likewise.
18712         * doc/posix-functions/setenv.texi (setenv): Document this.
18713         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18714
18715 2009-12-11  Bruno Haible  <bruno@clisp.org>
18716
18717         New module 'fd-safer-flag'.
18718         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
18719         * lib/dup-safer.c (dup_safer_flag): Remove function.
18720         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
18721         * lib/fd-safer.c (fd_safer_flag): Remove function.
18722         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
18723         * modules/cloexec (configure.ac): Drop indicator macro.
18724         * modules/fd-safer-flag: New file.
18725         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
18726         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
18727         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
18728
18729 2009-12-11  Bruno Haible  <bruno@clisp.org>
18730
18731         Tests for module 'nl_langinfo'.
18732         * modules/nl_langinfo-tests: New file.
18733         * tests/test-nl_langinfo.sh: New file.
18734         * tests/test-nl_langinfo.c: New file.
18735
18736         New module 'nl_langinfo'.
18737         * lib/nl_langinfo.c: New file.
18738         * m4/nl_langinfo.m4: New file.
18739         * modules/nl_langinfo: New file.
18740         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
18741
18742 2009-12-11  Bruno Haible  <bruno@clisp.org>
18743
18744         Tests for module 'langinfo'.
18745         * modules/langinfo-tests: New file.
18746         * tests/test-langinfo.c: New file.
18747
18748         New module 'langinfo'.
18749         * lib/langinfo.in.h: New file.
18750         * m4/langinfo_h.m4: New file.
18751         * modules/langinfo: New file.
18752         * doc/posix-headers/langinfo.texi: Mention the new module.
18753
18754 2009-12-11  Bruno Haible  <bruno@clisp.org>
18755
18756         * lib/config.charset: Untabify.
18757
18758 2009-12-11  Bruno Haible  <bruno@clisp.org>
18759
18760         * modules/unistd-safer (configure.ac): Drop indicator macro.
18761
18762 2009-12-11  Bruno Haible  <bruno@clisp.org>
18763
18764         Move pipe2-safer code to its own file.
18765         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
18766         * lib/pipe-safer.c (pipe2_safer): Remove function.
18767         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
18768         (Makefile.am): Add it to lib_SOURCES.
18769
18770 2009-12-10  Bruno Haible  <bruno@clisp.org>
18771
18772         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
18773
18774 2009-12-10  Bruno Haible  <bruno@clisp.org>
18775
18776         Declare which arguments expect non-NULL values, for GCC and clang.
18777         * build-aux/arg-nonnull.h: New file.
18778         * modules/arg-nonnull: New file.
18779         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
18780         (inet_ntop, inet_pton): Use it.
18781         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
18782         (closedir, dirfd, opendir, scandir, alphasort): Use it.
18783         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
18784         (open, openat): Use it.
18785         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
18786         (fnmatch): Use it.
18787         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
18788         (getopt, getopt_long, getopt_long_only): Use it.
18789         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
18790         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
18791         Use it.
18792         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
18793         (iconv_open): Use it.
18794         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
18795         (strtoimax, strtoumax): Use it.
18796         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
18797         (duplocale): Use it.
18798         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
18799         (frexp, frexpl): Use it.
18800         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
18801         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
18802         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
18803         (tsearch, tfind, tdelete, twalk): Use it.
18804         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
18805         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18806         sigpending): Use it.
18807         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
18808         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18809         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18810         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18811         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18812         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18813         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18814         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18815         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18816         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18817         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18818         Use it.
18819         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
18820         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
18821         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
18822         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
18823         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
18824         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
18825         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
18826         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
18827         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
18828         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
18829         strtoull, unsetenv): Use it.
18830         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
18831         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18832         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18833         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18834         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18835         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
18836         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
18837         (strcasecmp, strncasecmp): Use it.
18838         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
18839         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
18840         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
18841         rpl_setsockopt): Use it.
18842         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
18843         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
18844         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
18845         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
18846         (gettimeofday): Use it.
18847         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
18848         (times): Use it.
18849         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
18850         (uname): Use it.
18851         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
18852         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
18853         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
18854         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
18855         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
18856         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
18857         unlinkat, write): Use it.
18858         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
18859         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
18860         * lib/argv-iter.h: Include arg-nonnull.h.
18861         (_ATTRIBUTE_NONNULL_): Remove macro.
18862         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
18863         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
18864         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
18865         optimization.
18866         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
18867         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
18868         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
18869         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
18870         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
18871         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
18872         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
18873         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
18874         * modules/arpa_inet (Depends-on): Add arg-nonnull.
18875         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
18876         * modules/dirent (Depends-on): Add arg-nonnull.
18877         (Makefile.am): Insert arg-nonnull.h into dirent.h.
18878         * modules/fcntl-h (Depends-on): Add arg-nonnull.
18879         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
18880         * modules/fnmatch (Depends-on): Add arg-nonnull.
18881         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
18882         * modules/getopt-posix (Depends-on): Add arg-nonnull.
18883         (Makefile.am): Insert arg-nonnull.h into getopt.h.
18884         * modules/glob (Depends-on): Add arg-nonnull.
18885         (Makefile.am): Insert arg-nonnull.h into glob.h.
18886         * modules/iconv_open (Depends-on): Add arg-nonnull.
18887         (Makefile.am): Insert arg-nonnull.h into iconv.h.
18888         * modules/inttypes (Depends-on): Add arg-nonnull.
18889         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
18890         * modules/locale (Depends-on): Add arg-nonnull.
18891         (Makefile.am): Insert arg-nonnull.h into locale.h.
18892         * modules/math (Depends-on): Add arg-nonnull.
18893         (Makefile.am): Insert arg-nonnull.h into math.h.
18894         * modules/netdb (Depends-on): Add arg-nonnull.
18895         (Makefile.am): Insert arg-nonnull.h into netdb.h.
18896         * modules/search (Depends-on): Add arg-nonnull.
18897         (Makefile.am): Insert arg-nonnull.h into search.h.
18898         * modules/signal (Depends-on): Add arg-nonnull.
18899         (Makefile.am): Insert arg-nonnull.h into signal.h.
18900         * modules/spawn (Depends-on): Add arg-nonnull.
18901         (Makefile.am): Insert arg-nonnull.h into spawn.h.
18902         * modules/stdio (Depends-on): Add arg-nonnull.
18903         (Makefile.am): Insert arg-nonnull.h into stdio.h.
18904         * modules/stdlib (Depends-on): Add arg-nonnull.
18905         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
18906         * modules/string (Depends-on): Add arg-nonnull.
18907         (Makefile.am): Insert arg-nonnull.h into string.h.
18908         * modules/strings (Depends-on): Add arg-nonnull.
18909         (Makefile.am): Insert arg-nonnull.h into strings.h.
18910         * modules/sys_socket (Depends-on): Add arg-nonnull.
18911         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
18912         * modules/sys_stat (Depends-on): Add arg-nonnull.
18913         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
18914         * modules/sys_time (Depends-on): Add arg-nonnull.
18915         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
18916         * modules/sys_times (Depends-on): Add arg-nonnull.
18917         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
18918         * modules/sys_utsname (Depends-on): Add arg-nonnull.
18919         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
18920         * modules/time (Depends-on): Add arg-nonnull.
18921         (Makefile.am): Insert arg-nonnull.h into time.h.
18922         * modules/unistd (Depends-on): Add arg-nonnull.
18923         (Makefile.am): Insert arg-nonnull.h into unistd.h.
18924         * modules/wchar (Depends-on): Add arg-nonnull.
18925         (Makefile.am): Insert arg-nonnull.h into wchar.h.
18926         * modules/argv-iter (Depends-on): Add arg-nonnull.
18927         * tests/test-canonicalize.c (null_ptr): New function.
18928         (main): Use it.
18929         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
18930         (main): Use it.
18931         * tests/test-memmem.c (null_ptr): New function.
18932         (main): Use it.
18933         Reported by Jim Meyering.
18934
18935 2009-12-10  Bruno Haible  <bruno@clisp.org>
18936
18937         Use spaces for indentation, not tabs.
18938         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18939         * m4/*.m4: Untabify.
18940         * build-aux/*.h: Untabify.
18941         * tests/**/*.[hc]: Untabify.
18942         * README: New section "Indent with spaces, not TABs", based on
18943         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
18944         * NEWS: Mention the change.
18945
18946 2009-12-10  Bruno Haible  <bruno@clisp.org>
18947
18948         pty test: Fix link error.
18949         * modules/pty-tests (Makefile.am): Add the default LDADD value to
18950         test_pty_LDADD.
18951
18952 2009-12-07  Simon Josefsson  <simon@josefsson.org>
18953
18954         * modules/pty: New file.
18955         * modules/pty-tests: New file.
18956         * m4/pty.m4: New file.
18957         * tests/test-pty.c: New file.
18958         * doc/glibc-headers/pty.texi: Modified.
18959         * doc/glibc-functions/forkpty.texi: Modified.
18960         * doc/glibc-functions/openpty.texi: Modified.
18961
18962 2009-12-10  Bruno Haible  <bruno@clisp.org>
18963
18964         Avoid syntax error in C++ mode.
18965         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
18966
18967 2009-12-10  Bruno Haible  <bruno@clisp.org>
18968
18969         Use sed with option -e.
18970         * gnulib-tool (func_version, func_emit_copyright_notice,
18971         func_emit_initmacro_end, func_import, func_create_testdir): Pass
18972         option -e to sed.
18973         * modules/link-warning (Makefile.am): Likewise.
18974
18975 2009-12-10  Jim Meyering  <meyering@redhat.com>
18976
18977         mgetgroups: do not write bytes beyond end of malloc'd buffer
18978         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
18979         username, we call getgroups with a one-element-shorter buffer,
18980         but still told it the length was original, max_n_groups.
18981
18982 2009-12-09  Eric Blake  <ebb9@byu.net>
18983
18984         cloexec: relax license
18985         * modules/cloexec (Maintainer): Add myself.
18986         (License): Use LGPL, not GPL.
18987
18988         link-warning: optimize generation
18989         * modules/link-warning (Makefile.am): Reduce process usage.
18990
18991 2009-12-09  Bruno Haible  <bruno@clisp.org>
18992
18993         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
18994         workaround was added on 2009-11-17.
18995
18996 2009-12-09  Jim Meyering  <meyering@redhat.com>
18997             Bruno Haible  <bruno@clisp.org>
18998
18999         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
19000         * modules/link-warning (Makefile.am): Make the comment-removing sed
19001         command more robust in the face of bootstrap-prepended comment lines.
19002
19003 2009-12-09  Bruno Haible  <bruno@clisp.org>
19004
19005         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
19006         most one group.
19007
19008 2009-12-09  Simon Josefsson <simon@josefsson.org>
19009             Bruno Haible  <bruno@clisp.org>
19010
19011         * build-aux/link-warning.h: Add copyright notice.
19012         * modules/link-warning (Makefile.am): Generate link-warning.h from
19013         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
19014         * NEWS: Mention change in link-warning module.
19015         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
19016         * modules/dirent (Makefile.am): Add dependency to dirent.h.
19017         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
19018         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
19019         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
19020         * modules/math (Makefile.am): Add dependency to math.h.
19021         * modules/search (Makefile.am): Add dependency to search.h.
19022         * modules/signal (Makefile.am): Add dependency to signal.h.
19023         * modules/spawn (Makefile.am): Add dependency to spawn.h.
19024         * modules/stdio (Makefile.am): Add dependency to stdio.h.
19025         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
19026         * modules/string (Makefile.am): Add dependency to string.h.
19027         * modules/strings (Makefile.am): Add dependency to strings.h.
19028         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
19029         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
19030         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
19031         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
19032         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
19033         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
19034         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
19035         * modules/unistd (Makefile.am): Add dependency to unistd.h.
19036         * modules/wchar (Makefile.am): Add dependency to wchar.h.
19037
19038 2009-12-09  Bruno Haible  <bruno@clisp.org>
19039
19040         fchdir: Optimize away rpl_fstat when possible.
19041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
19042         REPLACE_OPEN_DIRECTORY.
19043         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
19044
19045 2009-12-09  Bruno Haible  <bruno@clisp.org>
19046
19047         * lib/fchdir.c: Update comment.
19048
19049 2009-12-09  Bruno Haible  <bruno@clisp.org>
19050
19051         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
19052
19053 2009-12-08  Eric Blake  <ebb9@byu.net>
19054
19055         fchdir: avoid memory leak on re-registration.
19056         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
19057
19058 2009-12-08  Jim Meyering  <meyering@redhat.com>
19059
19060         init.sh: avoid Solaris 10 /bin/sh portability problem
19061         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
19062         sourced script:
19063           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
19064           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
19065           bar
19066         tests/init.sh relied on that, accepting a --set-path=DIR argument,
19067         and two tests used that idiom.
19068         * tests/init.sh: Update suggested usage comments.
19069         (path_prepend_): New function, to be used in place
19070         of the --src-path=DIR option.
19071         (setup_): Move PATH-prepending code into path_prepend_.
19072         * tests/test-pread.sh: Adapt to new usage.
19073         * tests/test-xalloc-die.sh: Likewise.
19074
19075 2009-12-08  Simon Josefsson  <simon@josefsson.org>
19076
19077         * doc/gnulib.texi (Glibc pty.h): Add.
19078         * doc/glibc-functions/forkpty.texi: Add.
19079         * doc/glibc-functions/openpty.texi: Add.
19080         Suggested by Bruno Haible.
19081
19082 2009-12-08  Eric Blake  <ebb9@byu.net>
19083
19084         fchdir: fix logic bugs
19085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
19086         * tests/test-fchdir.c (main): Enhance test.
19087         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
19088         is in use.
19089
19090         dup2: fix logic bugs
19091         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
19092         REPLACE_DUP2 to decide when rpl_dup2 is needed.
19093         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
19094         exists.
19095         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
19096
19097 2009-12-07  Eric Blake  <ebb9@byu.net>
19098
19099         unlink: fix m4 detection
19100         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
19101
19102         unistd-safer: add unit test
19103         * modules/unistd-safer-tests: New file.
19104         * tests/test-dup-safer.c: Likewise.
19105         * tests/test-cloexec.c (setmode): Avoid compiler warning.
19106         * tests/test-dup2.c (setmode): Likewise.
19107         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
19108
19109         cloexec: preserve text vs. binary across dup_cloexec
19110         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
19111         mode.
19112         * modules/dup2-tests (Depends-on): Add binary-io.
19113         * modules/cloexec-tests (Depends-on): Likewise.
19114         * tests/test-dup2.c (setmode, is_mode): New helpers.
19115         (main): Add tests that translation mode is preserved.
19116         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
19117         Reported by Bruno Haible.
19118
19119         mgetgroups: reduce duplicate listings
19120         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
19121         resulting array.
19122         * tests/test-chown.h (test_chown): Simplify client.
19123         * tests/test-lchown.h (test_lchown): Likewise.
19124
19125 2009-12-06  Bruno Haible  <bruno@clisp.org>
19126
19127         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
19128         value.
19129
19130 2009-12-06  Bruno Haible  <bruno@clisp.org>
19131
19132         * lib/progname.c: Include stdio.h, stdlib.h.
19133         (set_program_name): Reject a NULL argument.
19134
19135 2009-12-05  Eric Blake  <ebb9@byu.net>
19136
19137         pipe2-safer: new module
19138         * modules/pipe2-safer: New file.
19139         * lib/unistd-safer.h (pipe2_safer): New prototype.
19140         * lib/unistd--.h (pipe2): New wrapper.
19141         * lib/pipe-safer.c (pipe2_safer): New function.
19142         * modules/pipe (Depends-on): Add pipe2-safer.
19143         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
19144
19145         stdlib-safer: preserve cloexec flag for mkostemp[s]
19146         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
19147         fd_safer_flag.
19148
19149         unistd-safer: allow preservation of cloexec status via flag
19150         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
19151         prototypes.
19152         * lib/dup-safer.c (dup_safer_flag): New function.
19153         * lib/fd-safer.c (fd_safer_flag): Likewise.
19154         * modules/cloexec (configure.ac): Set witness.
19155
19156         test-dup2: enhance test
19157         * modules/dup2-tests (Depends-on): Add cloexec.
19158         * tests/test-dup2.c (main): Enhance test.
19159
19160         cloexec: add dup_cloexec
19161         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
19162         header and comments.
19163         * lib/cloexec.c (set_cloexec_flag): Add comments.
19164         (dup_cloexec): New function, with mingw implementation borrowed
19165         from...
19166         * lib/w32spawn.h (dup_noinherit): ...here.
19167         * modules/execute (Depends-on): Add cloexec.
19168         * modules/pipe (Depends-on): Likewise.
19169         * modules/cloexec (Depends-on): Add dup2.
19170         * modules/cloexec-tests (Files): New file.
19171         * tests/test-cloexec.c: Likewise.
19172
19173         test-xalloc-die: fix test for mingw
19174         * modules/xalloc-die-tests (Files): Add tests/init.sh.
19175         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
19176         directory and .exe suffix off argv[0] output.
19177
19178         test-fseeko: fix test for mingw
19179         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
19180         than undefining fseek, so test will pass on mingw.
19181
19182 2009-12-05  Bruno Haible  <bruno@clisp.org>
19183
19184         * lib/progname.h (set_program_name): Clarify specification.
19185         * lib/progname.c (set_program_name): Likewise.
19186         Reported by Jim Meyering.
19187
19188 2009-12-05  Jim Meyering  <meyering@redhat.com>
19189
19190         maint.mk: backslash-escape parens in default regexp
19191         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
19192         backslash-escape the literal parentheses.
19193
19194         maint.mk: news-date-check: use grep -E
19195         * top/maint.mk (today): Define a Make variable, not a...
19196         (news-date-check): ...shell variable.
19197         (news-date-regexp): Use the Make variable.
19198         Use grep's -E option.  Change the failing diagnostic to mention
19199         the variable, $(news-date-regexp).
19200
19201 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
19202
19203         maintainer-makefile: allow customization of NEWS entry format
19204         * top/maint.mk (news-date-regexp): New overridable variable.
19205         (news-date-check): Use it.
19206
19207 2009-12-04  Eric Blake  <ebb9@byu.net>
19208
19209         mgetgroups: add xgetgroups, and avoid ENOSYS failures
19210         * lib/mgetgroups.h (xgetgroups): New prototype.
19211         * lib/mgetgroups.c (xgetgroups): New wrapper.
19212         (mgetgroups): Handle ENOSYS.
19213         * modules/mgetgroups (Depends-on): Add realloc.
19214         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
19215
19216         mgetgroups: avoid argument promotion issues with -1
19217         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
19218         for invalid gid_t.
19219         * tests/test-chown.h (getegid, test_chown): Likewise.
19220         * tests/test-lchown.h (getegid, test_lchown): Likewise.
19221
19222 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
19223
19224         exclude: Fix header file problems.
19225         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
19226
19227 2009-12-01  Jim Meyering  <meyering@redhat.com>
19228
19229         fts: fts_open: do not let an empty string cause immediate failure
19230         This is required in support of GNU rm, for which the command
19231         "rm A '' B" must process and remove both A and B, in spite of
19232         the empty string argument.
19233         * lib/fts.c (fts_open): Do not let the presence of an empty string
19234         cause fts_open to fail immediately.  Most fts-using tools must be
19235         able to process all arguments, in order, and can be expected to
19236         diagnose such arguments themselves.
19237
19238 2009-11-30  Eric Blake  <ebb9@byu.net>
19239
19240         utimens: fix compilation error
19241         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
19242         Declare variable at right scope.
19243
19244 2009-11-29  Jim Meyering  <meyering@redhat.com>
19245
19246         bootstrap: handle perl-5.11's changed --version output
19247         * build-aux/bootstrap (get_version): Handle perl separately,
19248         since perl-5.11's --version output is different.
19249
19250 2009-11-28  Jim Meyering  <meyering@redhat.com>
19251
19252         userspec: depend on the inttostr module, too
19253         * modules/userspec (Depends-on): Add inttostr.
19254
19255         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
19256         * lib/userspec.c (parse_with_separator): Do not accept a user ID
19257         number of MAXUID when it evaluates to (uid_t) -1.
19258         Likewise for group ID.  Reported by Matt McCutchen in
19259         <http://savannah.gnu.org/bugs/?28113>
19260
19261         userspec: reformat to use spaces, not TABs
19262         * lib/userspec.c: Expand TABs to spaces.
19263         Add Emacs' "indent-tabs-mode: nil" hint.
19264
19265 2009-11-27  Eric Blake  <ebb9@byu.net>
19266
19267         getopt-gnu: flush out another BSD bug
19268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
19269         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
19270         flush out BSD bug.
19271         * tests/test-getopt.h (test_getopt): End lists with NULL.
19272         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19273         (test_getopt_long_posix): Enhance test.
19274         * modules/getopt-posix-tests (Depends-on): Add stdbool.
19275         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
19276         getopt-gnu.
19277         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19278         Likewise.
19279
19280 2009-11-27  Simon Josefsson  <simon@josefsson.org>
19281
19282         * modules/idpriv-droptemp-tests (Notice): Fix text.
19283
19284 2009-11-27  Jim Meyering  <meyering@redhat.com>
19285
19286         test-xalloc-die: avoid spurious failure due to libtool argv difference
19287         In a libtool-enabled project, this test would fail due to a difference
19288         in the emitted program name, e.g.,
19289         -test-xalloc-die: memory exhausted
19290         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
19291         Use program to avoid that.
19292         * modules/xalloc-die-tests (Depends-on): Add progname.
19293         * tests/test-xalloc-die.c: Include progname.h".
19294         (program_name): Remove decl.
19295         (main): Call set_program_name.
19296         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
19297
19298 2009-11-26  Richard Jones  <rjones@redhat.com>
19299
19300         w32sock: leave win32 error in place.
19301         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
19302
19303 2009-11-26  Eric Blake  <ebb9@byu.net>
19304
19305         init.sh: suggest to use skip_ and fail_ functions in comments
19306         * tests/init.sh: Add a sentence.
19307
19308 2009-11-25  Bruno Haible  <bruno@clisp.org>
19309
19310         init.sh: add documentation in comments
19311         * tests/init.sh: Add some developer and user documentation.
19312
19313 2009-11-26  Jim Meyering  <meyering@redhat.com>
19314
19315         init.sh: accommodate even those who specify bogus srcdir manually
19316         * tests/init.sh: Normally, srcdir is guaranteed by automake and
19317         configure-time tests to be sanitized, so that there is no need to
19318         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
19319         (with no double quotes) suffices.  However, since tests may be
19320         invoked manually, and since you may explicitly set srcdir to the
19321         name of a directory containing spaces, do quote its uses here.
19322         * tests/test-pread.sh: Likewise.
19323         Suggested by Bruno Haible.
19324
19325         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
19326         * tests/test-pread.sh: Write no data into the pipe, because
19327         test-pread actually reads none.  This avoids a diagnostic,
19328         "bash: echo: write error: Broken pipe", that arises in the unusual
19329         event something is ignoring SIGPIPE, and might be interpreted
19330         as some sort of failure.  Reported by Bruno Haible.
19331
19332 2009-11-25  Jim Meyering  <meyering@redhat.com>
19333
19334         test-pread: cover failure with ESPIPE and EINVAL
19335         * tests/test-pread.c (main): Test for failure, too.
19336         * tests/test-pread.sh: Invoke with stdin on a pipe.
19337         Suggested by Eric Blake.
19338
19339         pread: improvement and fix
19340         * modules/pread (Depends-on): Depend on lseek, for portability to
19341         e.g., mingw.  Suggested by Eric Blake.
19342         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
19343
19344         unistd.in.h: correct declaration of pread
19345         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
19346         Reported by Richard W.M. Jones.
19347
19348         test-pread.sh: distribute the test script
19349         * modules/pread-tests (Files): Include test-pread.sh.
19350
19351         test-pread.sh: clean up
19352         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
19353         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
19354         That is unnecessary, since it's always ".".
19355         Suggestion from Eric Blake.
19356
19357         test-pread.sh: make executable
19358         * tests/test-pread.sh: Set executable bit.
19359         Reported by Eric Blake.
19360
19361         correct typo in test-pread.sh
19362         * tests/test-pread.sh: Add #! line.
19363
19364         test pread
19365         * tests/test-pread.c: New file.
19366         * tests/test-pread.sh: Likewise.
19367         * modules/pread-tests: Likewise.
19368
19369         pread: new module
19370         * modules/pread: New file.
19371         * lib/unistd.in.h (pread): Define/declare.
19372         * lib/pread.c (pread): New file.
19373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
19374         * modules/unistd (Makefile.am): Substitute witnesses.
19375         * doc/posix-functions/pread.texi (pread): Update.
19376         * MODULES.html.sh: Add pread.
19377
19378 2009-11-25  Jim Meyering  <meyering@redhat.com>
19379
19380         tests/init.sh: new file to be used via most *.sh tests
19381         * tests/init.sh: New file.
19382
19383 2009-11-25  Eric Blake  <ebb9@byu.net>
19384
19385         utimens: work around older Linux failure with symlinks
19386         * lib/utimens.c (lutimensat_works_really): New variable.
19387         (fdutimens, lutimens): Use it to manage kernels that support
19388         nanosecond times on files, but not on symlinks.
19389         Reported by Ondřej Vašík.
19390
19391         utimes: fix configure grammar
19392         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
19393
19394 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
19395
19396         regex: Fix fastmap for multibyte character ranges.
19397         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
19398         characters when a multibyte character range is included.
19399
19400 2009-11-22  Andy Wingo  <wingo@pobox.com>
19401
19402         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
19403         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
19404
19405 2009-11-24  Bruno Haible  <bruno@clisp.org>
19406
19407         doc: Most *_l functions exist in MacOS X 10.5.
19408         * doc/posix-functions/duplocale.texi: Update platforms list.
19409         * doc/posix-functions/freelocale.texi: Likewise.
19410         * doc/posix-functions/newlocale.texi: Likewise.
19411         * doc/posix-functions/uselocale.texi: Likewise.
19412         * doc/posix-functions/isalnum_l.texi: Likewise.
19413         * doc/posix-functions/isalpha_l.texi: Likewise.
19414         * doc/posix-functions/isblank_l.texi: Likewise.
19415         * doc/posix-functions/iscntrl_l.texi: Likewise.
19416         * doc/posix-functions/isdigit_l.texi: Likewise.
19417         * doc/posix-functions/isgraph_l.texi: Likewise.
19418         * doc/posix-functions/islower_l.texi: Likewise.
19419         * doc/posix-functions/isprint_l.texi: Likewise.
19420         * doc/posix-functions/ispunct_l.texi: Likewise.
19421         * doc/posix-functions/isspace_l.texi: Likewise.
19422         * doc/posix-functions/isupper_l.texi: Likewise.
19423         * doc/posix-functions/iswalnum_l.texi: Likewise.
19424         * doc/posix-functions/iswalpha_l.texi: Likewise.
19425         * doc/posix-functions/iswblank_l.texi: Likewise.
19426         * doc/posix-functions/iswcntrl_l.texi: Likewise.
19427         * doc/posix-functions/iswctype_l.texi: Likewise.
19428         * doc/posix-functions/iswdigit_l.texi: Likewise.
19429         * doc/posix-functions/iswgraph_l.texi: Likewise.
19430         * doc/posix-functions/iswlower_l.texi: Likewise.
19431         * doc/posix-functions/iswprint_l.texi: Likewise.
19432         * doc/posix-functions/iswpunct_l.texi: Likewise.
19433         * doc/posix-functions/iswspace_l.texi: Likewise.
19434         * doc/posix-functions/iswupper_l.texi: Likewise.
19435         * doc/posix-functions/iswxdigit_l.texi: Likewise.
19436         * doc/posix-functions/isxdigit_l.texi: Likewise.
19437         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
19438         * doc/posix-functions/strcasecmp_l.texi: Likewise.
19439         * doc/posix-functions/strcoll_l.texi: Likewise.
19440         * doc/posix-functions/strfmon_l.texi: Likewise.
19441         * doc/posix-functions/strftime_l.texi: Likewise.
19442         * doc/posix-functions/strncasecmp_l.texi: Likewise.
19443         * doc/posix-functions/strxfrm_l.texi: Likewise.
19444         * doc/posix-functions/tolower_l.texi: Likewise.
19445         * doc/posix-functions/toupper_l.texi: Likewise.
19446         * doc/posix-functions/towctrans_l.texi: Likewise.
19447         * doc/posix-functions/towlower_l.texi: Likewise.
19448         * doc/posix-functions/towupper_l.texi: Likewise.
19449         * doc/posix-functions/wcscoll_l.texi: Likewise.
19450         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
19451         * doc/posix-functions/wctrans_l.texi: Likewise.
19452         * doc/posix-functions/wctype_l.texi: Likewise.
19453         * doc/glibc-functions/strptime_l.texi: Likewise.
19454         * doc/glibc-functions/strtod_l.texi: Likewise.
19455         * doc/glibc-functions/strtof_l.texi: Likewise.
19456         * doc/glibc-functions/strtol_l.texi: Likewise.
19457         * doc/glibc-functions/strtold_l.texi: Likewise.
19458         * doc/glibc-functions/strtoll_l.texi: Likewise.
19459         * doc/glibc-functions/strtoul_l.texi: Likewise.
19460         * doc/glibc-functions/strtoull_l.texi: Likewise.
19461         * doc/glibc-functions/wcsftime_l.texi: Likewise.
19462         * doc/glibc-functions/wcstod_l.texi: Likewise.
19463         * doc/glibc-functions/wcstof_l.texi: Likewise.
19464         * doc/glibc-functions/wcstol_l.texi: Likewise.
19465         * doc/glibc-functions/wcstold_l.texi: Likewise.
19466         * doc/glibc-functions/wcstoll_l.texi: Likewise.
19467         * doc/glibc-functions/wcstoul_l.texi: Likewise.
19468         * doc/glibc-functions/wcstoull_l.texi: Likewise.
19469
19470 2009-11-24  Bruno Haible  <bruno@clisp.org>
19471
19472         duplocale: Fix logic bug.
19473         * lib/duplocale.c: Don't include <langinfo.h>.
19474         (_NL_LOCALE_NAME): Remove macro.
19475         (rpl_duplocale): Use setlocale instead of nl_langinfo.
19476         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
19477
19478 2009-11-23  Jim Meyering  <meyering@redhat.com>
19479
19480         test-update-copyright: don't hard-code /usr/bin/perl
19481         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
19482         perl to print the current year.  Gilles Espinasse reported that
19483         the replaced use of perl was hard-coded as /usr/bin/perl.
19484
19485 2009-11-23  Bruno Haible  <bruno@clisp.org>
19486
19487         duplocale: Add support for glibc 2.3.x.
19488         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
19489
19490 2009-11-22  Bruno Haible  <bruno@clisp.org>
19491
19492         vasnprintf: Tiny optimization.
19493         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
19494         MacOS X.
19495
19496 2009-11-22  Bruno Haible  <bruno@clisp.org>
19497
19498         Tests for module 'duplocale'.
19499         * modules/duplocale-tests: New file.
19500         * tests/test-duplocale.c: New file.
19501
19502         New module 'duplocale'.
19503         * m4/duplocale.m4: New file.
19504         * lib/locale.in.h (duplocale): New declaration.
19505         * lib/duplocale.c: New file.
19506         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
19507         gl_LOCALE_H_DEFAULTS): New macros.
19508         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
19509         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
19510         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
19511         REPLACE_DUPLOCALE.
19512         * modules/duplocale: New file.
19513         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
19514
19515 2009-11-22  Bruno Haible  <bruno@clisp.org>
19516
19517         * modules/locale-tests (configure.ac): Test for newlocale function.
19518         * tests/test-locale.c: When the system has extended locale functions,
19519         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
19520
19521         locale: Make locale_t available when possible.
19522         * lib/locale.in.h: Include <xlocale.h> when it exists.
19523         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
19524         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
19525         * modules/locale (Depends-on): Add extensions.
19526         (Makefile.am): Also substitute HAVE_XLOCALE_H.
19527         * doc/posix-headers/locale.texi: Document the problem with locale_t.
19528
19529 2009-11-22  Bruno Haible  <bruno@clisp.org>
19530
19531         Add comments.
19532         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
19533         invocation.
19534         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19535         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19536         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19537
19538 2009-11-22  Bruno Haible  <bruno@clisp.org>
19539
19540         error: account for the possibility of freopen (stdout).
19541         * lib/error.c: Include <unistd.h>.
19542         (flush_stdout): New function, extracted from error and error_at_line.
19543         Determine stdout's fd dynamically.
19544         (error, error_at_line): Invoke flush_stdout.
19545         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
19546         * modules/error (Depends-on): Add unistd.
19547
19548 2009-11-22  Bruno Haible  <bruno@clisp.org>
19549
19550         diffseq: Add comment.
19551         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
19552
19553 2009-11-22  Jim Meyering  <meyering@redhat.com>
19554
19555         c-stack: avoid defining an unused static function
19556         * lib/c-stack.c (find_stack_direction): Do not define this function
19557         when it will not be used.
19558
19559         diffseq: avoid spurious gcc warnings
19560         * lib/diffseq.h (IF_LINT2): Define.
19561         (compareseq): Use it to initialize two members of "part".
19562         This avoids two used-uninitialized warnings.
19563
19564 2009-11-21  Jim Meyering  <meyering@redhat.com>
19565
19566         c-stack: avoid "ignoring return value of `write'" warning
19567         * lib/c-stack.c: Include "ignore-value.h".
19568         (die): Explicitly ignore each write return value.
19569         * modules/c-stack (Depends-on): Add ignore-value.
19570
19571 2009-11-21  Bruno Haible  <bruno@clisp.org>
19572
19573         diffseq: reduce scope of variable 'best'.
19574         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
19575         variable, earlier used for two different purposes.
19576
19577 2009-11-21  Jim Meyering  <meyering@redhat.com>
19578
19579         diffseq: remove useless assignment to "best"
19580         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
19581         assignment.  At that point "best" is already guaranteed to be zero.
19582
19583 2009-11-20  Eric Blake  <ebb9@byu.net>
19584
19585         build: mention ftp redirector in release announcements
19586         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
19587         values that used to come from cfg.mk; mention FTP redirect URL.
19588         * build-aux/announce-gen: Mention the mirror list.
19589         Suggested by Karl Berry.
19590
19591         nanosleep: improve port to mingw
19592         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
19593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
19594         LIB_NANOSLEEP, but only when needed.
19595         * modules/select (Link): Document LIBSOCKET.
19596         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
19597         enough.
19598
19599         nanosleep: work around cygwin bug
19600         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
19601         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
19602         bug.
19603         (getnow): Delete, not needed.
19604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
19605         LIB_CLOCK_GETTIME.
19606         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
19607         clock-time, gettime.
19608         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
19609         bug.
19610         * modules/nanosleep-tests: New test.
19611         * tests/test-nanosleep.c: New file.
19612
19613         sleep: work around cygwin bug
19614         * lib/sleep.c (rpl_sleep): Work around the bug.
19615         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
19616         (gl_PREREQ_SLEEP): Delete unused macro.
19617         * modules/sleep (Depends-on): Add verify.
19618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19619         * modules/unistd (Makefile.am): Substitute witness.
19620         * lib/unistd.in.h (sleep): Update prototype.
19621         * doc/posix-functions/sleep.texi (sleep): Document the bug.
19622         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
19623         * modules/sleep-tests (Depends-on): Check for alarm.
19624
19625 2009-11-20  Jim Meyering  <meyering@redhat.com>
19626
19627         maint.mk: improve sc_prohibit_magic_number_exit
19628         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
19629         so it does not match uses like System.exit(1).
19630         Add comments showing how to correct all offenders.
19631
19632 2009-11-19  Eric Blake  <ebb9@byu.net>
19633
19634         xalloc-die-tests: add missing library
19635         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
19636
19637         test-xvasprintf: silence compiler warnings
19638         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
19639         empty string from gcc.
19640
19641 2009-11-19  Jim Meyering  <meyering@redhat.com>
19642
19643         xfreopen: new module, from coreutils
19644         * modules/xfreopen: New module.
19645         * lib/xfreopen.c: New file.
19646         * lib/xfreopen.h: New file.
19647         * MODULES.html.sh (File stream based Input/Output"): Add it.
19648
19649 2009-11-19  Eric Blake  <ebb9@byu.net>
19650
19651         manywarnings: depend on warnings
19652         * modules/manywarnings (Depends-on): Add warnings.
19653
19654         build: avoid compiler warnings
19655         * lib/select.c (rpl_select): Delete unused variable.
19656         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
19657
19658 2009-11-18  Eric Blake  <ebb9@byu.net>
19659
19660         tests: avoid false negative with --with-packager
19661         * tests/test-version-etc.sh: Discard packager information.
19662         * tests/test-argp-version-etc-1.sh: Likewise.
19663         Reported by Mike Frysinger.
19664
19665         utimens: fix regression on Solaris
19666         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
19667         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
19668         can only change fd timestamps via futimesat.  Instead, use an
19669         additional witness macro to avoid BSD bug.
19670         Reported by Jim Meyering.
19671
19672 2009-11-17  Eric Blake  <ebb9@byu.net>
19673
19674         usleep: use it to simplify tests
19675         * modules/stat-time-tests (Depends-on): Add usleep.
19676         (configure.ac): Drop usleep check.
19677         * modules/chown-tests (Depends-on, configure.ac): Likewise.
19678         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
19679         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
19680         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
19681         * modules/openat-tests (Depends-on, configure.ac): Likewise.
19682         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
19683         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
19684         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
19685         Likewise.
19686         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
19687         * tests/test-lchown.h (nap): Likewise.
19688         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
19689         * tests/test-stat-time.c (nap): Likewise.
19690         * tests/test-utimens-common.h (nap): Update comments.
19691
19692         usleep: new module
19693         * modules/usleep: New file.
19694         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19695         * lib/usleep.c (usleep): Likewise.
19696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19697         * modules/unistd (Makefile.am): Substitute witnesses.
19698         * lib/unistd.in.h (usleep): Add declaration.
19699         * doc/pastposix-functions/usleep.texi (usleep): Document this.
19700         * MODULES.html.sh (Date and time): Likewise.
19701         * modules/usleep-tests (Depends-on): New test.
19702         * tests/test-usleep.c: New file.
19703
19704         chown: work around OpenBSD bug
19705         * lib/chown.c (rpl_chown): Work around the bug.
19706         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
19707         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
19708         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
19709         * modules/chown (Depends-on): Add stdbool.
19710         * modules/lchown (Depends-on): Likewise.
19711         * doc/posix-functions/chown.texi (chown): Document the bug.
19712         * doc/posix-functions/lchown.texi (lchown): Likewise.
19713         * tests/test-lchown.h (test_chown): Relax test.
19714
19715         mkstemp: avoid conflict with C++ keyword template
19716         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
19717         * lib/mkostemp.c (mkostemp): Likewise.
19718         * lib/mkostemps.c (mkostemps): Likewise.
19719         * lib/mkstemp.c (mkstemp): Likewise.
19720         * lib/mkstemps.c (mkstemps): Likewise.
19721
19722         xalloc-die-tests: optimize
19723         * tests/test-xalloc-die.sh: Reduce number of processes.
19724
19725 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19726
19727         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
19728         patch from ludo@gnu.org (Ludovic Courtès).
19729
19730 2009-11-17  Jim Meyering  <meyering@redhat.com>
19731
19732         version-etc: use proper license string
19733         * modules/version-etc (License): Use LGPL, not LGPLv3+.
19734         * modules/version-etc-fsf: Likewise.
19735
19736 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19737
19738         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
19739         printed to stdout.  Deal with EOL differences.
19740
19741 2009-11-17  Eric Blake  <ebb9@byu.net>
19742
19743         unsetenv: work around Solaris bug
19744         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
19745         * lib/unsetenv.c (rpl_unsetenv): Work around it.
19746         Reported by Jim Meyering.
19747
19748         vasnprintf: avoid compiler warnings
19749         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
19750         variables.
19751         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
19752
19753 2009-11-17  Simon Josefsson  <simon@josefsson.org>
19754
19755         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
19756         settings since xalloc-die is no longer the self test,
19757         xalloc-die.sh is.
19758
19759 2009-11-17  Jim Meyering  <meyering@redhat.com>
19760
19761         test-xalloc-die.sh: make the code agree with the commit log
19762         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
19763         at the end, just in case you happen to have a test-xalloc-die
19764         program in some other PATH directory.
19765
19766         test-xalloc-die.sh: fix a portability bug
19767         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
19768         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
19769         Otherwise, argv[0] (as often seen in diagnostics) would be too
19770         system-dependent, sometimes with, and sometimes without the leading "./".
19771
19772         version-etc-fsf: relax license to LGPLv3+
19773         * modules/version-etc-fsf (License): Relax license.
19774
19775 2009-11-16  Eric Blake  <ebb9@byu.net>
19776
19777         xalloc-die-tests: avoid printing null pointer
19778         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
19779         shell script.
19780         * tests/test-xalloc-die.c (program_name): Declare.
19781         * tests/test-xalloc-die.sh (tmpfiles): New file.
19782
19783         setenv, unsetenv: work around various bugs
19784         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
19785         (setenv) [HAVE_SETENV]: Work around bugs.
19786         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
19787         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
19788         for bugs.
19789         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
19790         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
19791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
19792         * modules/stdlib (Makefile.am): Update substitutions.
19793         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
19794         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
19795         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
19796         * modules/setenv-tests: New test.
19797         * modules/unsetenv-tests: Likewise.
19798         * tests/test-setenv.c: New file.
19799         * tests/test-unsetenv.c: Likewise.
19800
19801 2009-11-16  Jim Meyering  <meyering@redhat.com>
19802
19803         version-etc: relax license to LGPLv3+
19804         * modules/version-etc (License): Relax license.
19805
19806         better AC_REQUIRE expanded-before-required-warning avoidance
19807         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
19808         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
19809         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
19810         which is no longer needed.
19811
19812 2009-11-16  Eric Blake  <ebb9@byu.net>
19813
19814         test-freading: clean up temporary file
19815         * tests/test-freading.c (main): Remove file on success, and use
19816         ASSERT more liberally.
19817         Reported by Jim Meyering.
19818
19819 2009-11-16  Jim Meyering  <meyering@redhat.com>
19820
19821         avoid new AC_REQUIRE expanded-before-required warnings
19822         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
19823         merely using it.
19824         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
19825         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
19826
19827 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19828
19829         * tests/test-xalloc-die.c: New file.
19830         * modules/xalloc-die-tests: New file.
19831         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
19832         XFAIL_TESTS so it can be appended by modules.
19833
19834 2009-11-15  Simon Josefsson  <simon@josefsson.org>
19835
19836         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
19837         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
19838
19839 2009-11-14  Eric Blake  <ebb9@byu.net>
19840
19841         fnmatch: avoid compiler warning
19842         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
19843         to silence compiler warning about mismatch signedness in ?:.
19844         Reported by Robert Millan.
19845
19846         intprops: add double-inclusion guard
19847         * lib/intprops.h: Allow idempotent includes.
19848         Suggested by Bruce Korb.
19849
19850         openat: detect Solaris fchownat bug
19851         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
19852         penalizing glibc chownat when only lchownat is broken.
19853         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
19854         trailing slash bugs.
19855         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
19856         * modules/openat-tests (Files): Include more files.
19857         (Depends-on): Add mgetgroups, sleep, stat-time.
19858         (configure.ac): Add additional checks.
19859         (Makefile.am): Build new test.
19860         * tests/test-fchownat.c: New file.
19861
19862         lchown: detect Solaris and FreeBSD bug
19863         * lib/lchown.c (rpl_lchown): Work around bug.
19864         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
19865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19866         * modules/unistd (Makefile.am): Populate it.
19867         * lib/unistd.in.h (lchown): Update declaration.
19868         * doc/posix-functions/lchown.texi (lchown): Document the bug.
19869         * modules/lchown-tests: New file.
19870         * tests/test-lchown.h (test_lchown): Likewise.
19871         * tests/test-lchown.c (main): Likewise.
19872
19873         chown: detect Solaris and FreeBSD bug
19874         * lib/chown.c (rpl_chown): Work around bug.
19875         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
19876         (gl_PREREQ_CHOWN): Delete.
19877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19878         * modules/unistd (Makefile.am): Populate it.
19879         * lib/unistd.in.h (chown): Update declaration.
19880         * lib/lchown.c (chown): Update client.
19881         * modules/lchown (Depends-on): Add lstat.
19882         * doc/posix-functions/chown.texi (chown): Document the bug.
19883         * doc/posix-functions/getgroups.texi (getgroups): Document
19884         getgroups pitfall.
19885         * modules/chown-tests: New file.
19886         * tests/test-chown.h (test_chown): Likewise.
19887         * tests/test-chown.c (main): Likewise.
19888
19889 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
19890
19891         gnulib-tool: correctly detect absence of m4 directories
19892         * gnulib-tool: Avoid extra newline on data passed to wc -l.
19893
19894 2009-11-14  Jim Meyering  <meyering@redhat.com>
19895
19896         maint.mk: Prohibit inclusion of "xalloc.h" without use.
19897         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19898
19899 2009-11-14  John W. Eaton  <jwe@gnu.org>
19900
19901         strftime.h: wrap funtion declaration in extern "C" block
19902         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
19903
19904 2009-11-13  Eric Blake  <ebb9@byu.net>
19905
19906         getgroups: avoid compiler warning
19907         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
19908
19909         getgroups: work around FreeBSD bug
19910         * lib/getgroups.c (rpl_getgroups): Work around the bug.
19911         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
19912         * doc/posix-functions/getgroups.texi (getgroups): Document it.
19913         * tests/test-getgroups.c (main): Fix buffer overrun.
19914
19915         getgroups: avoid compilation failure
19916         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
19917         * modules/getgroups (Depends-on): Add stdint.
19918
19919 2009-11-13  Jim Meyering  <meyering@redhat.com>
19920
19921         test-getgroups: avoid compilation failure
19922         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
19923
19924 2009-11-13  Eric Blake  <ebb9@byu.net>
19925
19926         mgetgroups: new module, taken from coreutils
19927         * modules/mgetgroups: New file.
19928         * lib/mgetgroups.h: Likewise.
19929         * lib/mgetgroups.c (mgetgroups): Likewise.
19930         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
19931         * MODULES.html.sh (Users and groups): Mention it.
19932
19933         getgroups: don't expose GETGROUPS_T to user
19934         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
19935         an element at a time if GETGROUPS_T is wrong size.
19936         * lib/getugroups.h (getugroups): Change signature.
19937         * lib/unistd.in.h (getgroups): Likewise.
19938         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
19939         signature needs fixing.
19940         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
19941         AC_TYPE_GETGROUPS.
19942         * modules/group-member (Depends-on): Add getgroups.
19943         * lib/group-member.c (group_info, get_group_info): Use gid_t.
19944         (group_member): Rely on getgroups replacement.
19945         * lib/getugroups.c (getugroups): Use gid_t.
19946         * tests/test-getgroups.c (main): Likewise.
19947         * NEWS: Mention the signature change.
19948         * doc/posix-functions/getgroups.texi (getgroups): Mention the
19949         problem with signature.
19950         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
19951         GETGROUPS_T is still useful for setgroups.
19952
19953         getgroups, getugroups: provide stubs for mingw
19954         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
19955         * lib/getugroups.c (getugroups): Likewise.
19956         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
19957         function.  Modernize replacement scheme.
19958         (gl_PREREQ_GETGROUPS): Delete.
19959         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
19960         * modules/getgroups (configure.ac): Declare witness.
19961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19962         * modules/unistd (Depends-on): Substitute witness.
19963         * lib/unistd.in.h (getgroups): Declare replacement.
19964
19965         getgroups: avoid calling exit
19966         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
19967         drop xalloc.
19968         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
19969         dependencies.
19970         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
19971         exiting, in the rare case of malloc failure.
19972
19973         getgroups: fix logic error
19974         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
19975         has more than 20 groups.
19976         * modules/getgroups-tests: New test.
19977         * tests/test-getgroups.c: New file.
19978
19979 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19980
19981         * tests/test-base64.c: Improve.
19982
19983 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19984
19985         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
19986         Blake <ebb9@byu.net>.
19987
19988 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19989
19990         * tests/test-xvasprintf.c: Add %s%s related checks.
19991
19992 2009-11-12  Eric Blake  <ebb9@byu.net>
19993
19994         version-etc: match standards.texi style
19995         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
19996         and use <> only for URLs.
19997
19998 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
19999
20000         fts: do not fail on a submount during traversal
20001         * lib/fts.c (fts_build): Read the stat info again after opening
20002         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
20003         Original report at http://bugzilla.redhat.com/501848.
20004
20005 2009-11-12  Jim Meyering  <meyering@redhat.com>
20006
20007         bootstrap: sync from coreutils
20008         * build-aux/bootstrap (bootstrap_epilogue): New function.
20009         Use git_modules_config in one more place.  This make bootstrap's
20010         --gnulib-srcdir option more useful for testing.
20011
20012         bootstrap: generalize autoheader check
20013         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
20014         AC_CONFIG_HEADERS.
20015
20016 2009-11-11  Eric Blake  <ebb9@byu.net>
20017
20018         mkfifoat: use new modules for Solaris and BSD bugs
20019         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
20020         * lib/mkfifoat.c (mknodat): Split...
20021         * lib/mknodat.c (mknodat): ...into new file.
20022         * modules/mkfifoat (Files): Ship new file.
20023         (Depends-on): Add mkfifo, mknod.
20024         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
20025         (Depends-on): Add symlink.
20026         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
20027         redundant with test_mkfifo.h.
20028         (do_mkfifoat, do_mknodat): New helpers.
20029
20030         mknod: new module
20031         * modules/mknod: New file.
20032         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20033         * lib/mknod.c (mknod): Likewise.
20034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20035         defaults.
20036         * modules/sys_stat (Makefile.am): Substitute them.
20037         * lib/sys_stat.in.h (mknod): Declare replacement.
20038         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20039         Document it.
20040         * doc/posix-functions/mknod.texi (mknod): Likewise.
20041         * modules/mknod-tests: New test.
20042         * tests/test-mknod.c: Likewise.
20043
20044         mkfifo: new module
20045         * modules/mkfifo: New file.
20046         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20047         * lib/mkfifo.c (mkfifo): Likewise.
20048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
20049         defaults.
20050         * modules/sys_stat (Makefile.am): Substitute them.
20051         * lib/sys_stat.in.h (mkfifo): Declare replacement.
20052         * MODULES.html.sh (Support for systems lacking POSIX:2008):
20053         Document it.
20054         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
20055         * modules/mkfifo-tests: New test.
20056         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
20057         from test-mkfifoat.c.
20058         * tests/test-mkfifo.c: New file.
20059
20060         readlink: detect FreeBSD bug
20061         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
20062         slash on symlink.
20063         * doc/posix-functions/readlink.texi (readlink): Document the bug.
20064         * tests/test-readlink.h (test_readlink): Enhance test.
20065
20066         symlink: detect FreeBSD bug
20067         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
20068         slash on symlink.
20069         * doc/posix-functions/symlink.texi (symlink): Document the bug.
20070         * tests/test-symlink.h (test_symlink): Enhance test.
20071
20072 2009-11-10  Eric Blake  <ebb9@byu.net>
20073
20074         link: detect FreeBSD bug
20075         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
20076         symlink.
20077         * doc/posix-functions/link.texi (link): Document the bug.
20078         * tests/test-link.h (test_link): Enhance test.
20079         * tests/test-linkat.c (main): Update caller.
20080
20081         unlink, remove: detect FreeBSD bug
20082         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
20083         slash on symlink.
20084         * doc/posix-functions/unlink.texi (unlink): Document the bug.
20085         * doc/posix-functions/remove.texi (remove): Likewise.
20086         * tests/test-unlink.h (test_unlink): Enhance test.
20087         * tests/test-remove.c (main): Likewise.
20088
20089 2009-11-09  Eric Blake  <ebb9@byu.net>
20090
20091         rename: detect FreeBSD bug
20092         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
20093         slash on symlink.
20094         * modules/renameat-tests (Depends-on): Add filenamecat.
20095         * tests/test-rename.h (test_rename): Allow one more errno.
20096         * tests/test-renameat.c (main): Likewise.
20097         * doc/posix-functions/rename.texi (rename): Document the bug.
20098
20099         open: detect FreeBSD bug
20100         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
20101         symlink.
20102         * doc/posix-functions/open.texi (open): Document the bug.
20103         * doc/posix-functions/utimes.texi (utimes): Likewise.
20104         * tests/test-open.h (test_open): Add parameters, and test symlink
20105         handling.
20106         * tests/test-open.c (main): Adjust caller.
20107         * tests/test-fcntl-safer.c (main): Likewise.
20108         * modules/open-tests (Depends-on): Add stdbool, symlink.
20109         * modules/fcntl-safer-tests (Depends-on): Likewise.
20110         * tests/test-openat.c (main): Add test-open tests.
20111
20112         stat: detect FreeBSD bug
20113         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
20114         symlink.
20115         * doc/posix-functions/stat.texi (stat): Document the bug.
20116         * tests/test-stat.h (test_stat_func): Add argument.
20117         * tests/test-stat.c (main): Adjust caller.
20118         * tests/test-fstatat.c (main): Likewise.
20119         * modules/stat-tests (Depends-on): Add stdbool, symlink.
20120         Reported by Jim Meyering.
20121
20122 2009-11-09  James Youngman  <jay@gnu.org>
20123
20124         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
20125         * lib/strftime.c: Correct placement of #include "ignore-value.h".
20126
20127 2009-11-08  Jim Meyering  <meyering@redhat.com>
20128
20129         utimens: remove invalid futimesat call
20130         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
20131         It used the file descriptor of the target file as the DIR_FD
20132         parameter and NULL as the file name.  That caused failure with
20133         errno == EFAULT on FreeBSD-8.0-rc2
20134
20135 2009-11-07  Eric Blake  <ebb9@byu.net>
20136
20137         fflush, freadseek: use fseeko, not fseek
20138         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20139         (clear_ungetc_buffer): Avoid potential problems on large files.
20140         * lib/freadseek.c (freadseek): Likewise.
20141         * modules/freadseek (Depends-on): Add fseeko.
20142         * modules/fseek (configure.ac): Set a witness.
20143         * tests/test-fflush.c (main): Use fseeko.
20144         * tests/test-fpurge.c (fseek): Disable link warning.
20145         * tests/test-freadable.c (fseek): Likewise.
20146         * tests/test-freading.c (fseek): Likewise.
20147         * tests/test-fseeko.c (fseek): Likewise.
20148         * tests/test-ftell.c (fseek): Likewise.
20149         * tests/test-ftello.c (fseek): Likewise.
20150         * tests/test-fwritable.c (fseek): Likewise.
20151         * tests/test-fwriting.c (fseek): Likewise.
20152
20153 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20154
20155         * modules/memchr (Depends-on): Drop getpagesize dependency.
20156
20157 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20158
20159         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
20160         Reported by Ludovic Courtès.
20161         * build-aux/pmccabe2html: Improve example usage.
20162         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
20163
20164 2009-11-06  Jim Meyering  <meyering@redhat.com>
20165
20166         do-release-commit-and-tag: New module.
20167         Automate the release-commit and tag process.
20168         * build-aux/do-release-commit-and-tag: New script, from coreutils.
20169         * modules/do-release-commit-and-tag: New file.
20170         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20171
20172 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20173
20174         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
20175         because test-select.c uses inet_pton.
20176
20177 2009-11-06  Simon Josefsson  <simon@josefsson.org>
20178
20179         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
20180         GETADDRINFO_LIB.  Bump serial number.
20181         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
20182         Suggested by Eric Blake <ebb9@byu.net>.
20183
20184 2009-11-05  Eric Blake  <ebb9@byu.net>
20185
20186         strtod: detect darwin bug
20187         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
20188         Reported by Leo Davis.
20189
20190         freopen-safer: new module
20191         * modules/freopen-safer: New module.
20192         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
20193         * lib/freopen-safer.c (freopen_safer): New file.
20194         * lib/stdio-safer.h (freopen_safer): New declaration.
20195         * lib/stdio--.h (freopen): New override.
20196         * MODULES.html.sh (File stream based Input/Output): Mention it.
20197         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
20198         freopen-safer module.
20199         * doc/posix-functions/stderr.texi (stderr): Likewise.
20200         * doc/posix-functions/stdin.texi (stdin): Likewise.
20201         * doc/posix-functions/stdout.texi (stdout): Likewise.
20202         * modules/freopen-safer-tests: New test.
20203         * tests/test-reopen-safer.c: New file.
20204
20205 2009-11-05  Jim Meyering  <meyering@redhat.com>
20206
20207         maint.mk: Prohibit inclusion of "close-stream.h" without use.
20208         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
20209
20210 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20211
20212         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
20213
20214 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20215
20216         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
20217
20218 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20219
20220         Fix link error.
20221         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20222         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20223
20224 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20225
20226         * tests/test-func.c: Also test value of __func__.
20227
20228 2009-11-05  Simon Josefsson  <simon@josefsson.org>
20229
20230         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
20231         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
20232
20233 2009-11-05  Bruno Haible  <bruno@clisp.org>
20234
20235         Fix link error.
20236         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
20237         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20238         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
20239
20240 2009-11-05  Bruno Haible  <bruno@clisp.org>
20241
20242         Tests for module 'inet_pton'.
20243         * modules/inet_pton-tests: New file.
20244         * tests/test-inet_pton.c: New file.
20245
20246 2009-11-05  Bruno Haible  <bruno@clisp.org>
20247
20248         Tests for module 'inet_ntop'.
20249         * modules/inet_ntop-tests: New file.
20250         * tests/test-inet_ntop.c: New file.
20251
20252 2009-11-04  Eric Blake  <ebb9@byu.net>
20253
20254         stdlib-safer: wrap all mkstemp variants
20255         * modules/mkostemp (configure.ac): Set witness.
20256         * modules/mkostemps (configure.ac): Likewise.
20257         * modules/mkstemps (configure.ac): Likewise.
20258         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
20259         (mkstemps_safer): Wrap more functions.
20260         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
20261         wrapping.
20262         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
20263         (mkstemps_safer): Implement the wrappers.
20264
20265         mkstemps, mkostemps: new modules
20266         * modules/mkostemps: New module.
20267         * modules/mkstemps: Likewise.
20268         * lib/mkostemps.c (mkostemps): New file.
20269         * lib/mkstemps.c (mkstemps): Likewise.
20270         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
20271         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
20272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
20273         * modules/stdlib (Makefile.am): Substitute them.
20274         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
20275         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
20276         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20277         * doc/gnulib.texi (Glibc stdlib.h): Include them.
20278         * MODULES.html.sh (File system functions): Mention them.
20279
20280         tempname: resync from glibc
20281         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
20282         same values for __GT_FILE as glibc.  Abort even when assertions
20283         are disabled.
20284         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
20285         match its value otherwise.  Allow idempotent inclusion.
20286         * lib/mkdtemp.c (mkdtemp): Adjust caller.
20287         * lib/mkostemp.c (mkostemp): Likewise.
20288         * lib/mkstemp.c (mkstemp): Likewise.
20289         * lib/tmpfile.c (tmpfile): Likewise.
20290         * NEWS: Document this.
20291
20292         utimens: fix use of futimens on older Linux
20293         * lib/utimens.c (fdutimens): Use updated, rather than original,
20294         timespec to avoid bug in older Linux kernel.
20295         Reported by Simon Josefsson.
20296
20297 2009-11-04  Bruno Haible  <bruno@clisp.org>
20298
20299         Make num_processors more flexible and consistent.
20300         * lib/nproc.h (enum nproc_query): New type.
20301         (num_processors): Add a 'query' argument.
20302         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
20303         (num_processors): Add a 'query' argument. Test the value of the
20304         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
20305         mingw, count the number of CPUs available for the current process.
20306         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
20307         Check for sched_getaffinity and sched_getaffinity_np.
20308         * modules/nproc (Depends-on): Add c-ctype, extensions.
20309         * NEWS: Mention the change.
20310
20311 2009-11-03  Bruno Haible  <bruno@clisp.org>
20312
20313         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
20314
20315 2009-11-03  Jim Meyering  <meyering@redhat.com>
20316
20317         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
20318         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
20319         if it is defined.
20320
20321 2009-11-02  Eric Blake  <ebb9@byu.net>
20322
20323         mktime, timegm: share common declaration
20324         * lib/mktime-internal.h: New file.
20325         * lib/mktime.c: Use it rather than open-coding a declaration.
20326         * lib/timegm.c: Likewise.
20327         * modules/mktime (Files): Ship it.
20328         * modules/timegm (Files): Likewise.
20329         Suggested by Bruno Haible.
20330
20331         test-update-copyright: update test to match script changes
20332         * tests/test-update-copyright.sh: Avoid hard-coding perl
20333         location.  Don't update *.bak created by earlier runs.
20334
20335 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
20336             Simon Josefsson  <simon@josefsson.org>
20337             Bruno Haible  <bruno@clisp.org>
20338
20339         Fix link error on Solaris 8.
20340         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
20341         also in libnsl. Define also INET_PTON_LIB.
20342         * modules/inet_pton (Link): New section.
20343
20344 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20345             Bruno Haible  <bruno@clisp.org>
20346
20347         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
20348         * modules/inet_ntop (Link): New section.
20349         Reported by Boyan Kasarov <bkasarov@gmail.com>.
20350
20351 2009-11-02  Eric Blake  <ebb9@byu.net>
20352
20353         maint: avoid compiler warnings in m4 macros
20354         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
20355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
20356
20357 2009-11-02  Simon Josefsson  <simon@josefsson.org>
20358
20359         * m4/pmccabe2html.m4: Remove file.
20360         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
20361         function.  Change maintainer.
20362         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
20363         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
20364         Courtès).
20365
20366 2009-10-31  Eric Blake  <ebb9@byu.net>
20367
20368         fseeko: fix m4 regression
20369         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
20370         regression from 2009-10-27.
20371         Reported by Ralf Wildenhues.
20372
20373 2009-10-31  Jim Meyering  <meyering@redhat.com>
20374
20375         inttostr: aesthetics and improved (compile-time) safety
20376         Define inttype_is_signed rather than inttype_is_unsigned,
20377         since the sole use is via "#if inttype_is_signed".
20378         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
20379         inttype_is_unsigned.
20380         * lib/offtostr.c (inttype_is_signed): Likewise.
20381         * lib/uinttostr.c (inttype_is_signed): Likewise.
20382         * lib/umaxtostr.c (inttype_is_signed): Likewise.
20383         * lib/inttostr.c (inttostr): Use verify to cross-check the
20384         inttype_is_signed value and the signedness of the actual type.
20385         * modules/inttostr (Depends-on): Add verify.
20386
20387 2009-10-30  Eric Blake  <ebb9@byu.net>
20388
20389         build: avoid compiler warnings
20390         * lib/fchmodat.c (lchmod): Mark unused variables.
20391         * lib/getopt.c (_getopt_initialize): Likewise.
20392         * lib/mktime.c (__mktime_internal): Provide prototype.
20393         * lib/inttostr.c (inttostr): Avoid compiler warning even with
20394         older gcc that do not understand #pragma GCC diagnostic.
20395         * lib/uinttostr.c (inttype_is_unsigned): Define.
20396         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
20397
20398 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
20399
20400         stat: fix compilation on AIX
20401         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
20402         only see struct stat64.
20403
20404 2009-10-30  Eric Blake  <ebb9@byu.net>
20405
20406         exclude: make more robust
20407         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
20408         rather than masking a coding bug.
20409         Suggested by Bruno Haible.
20410
20411 2009-10-30  Jim Meyering  <meyering@redhat.com>
20412
20413         perl scripts: remove #!/usr/bin/perl in favor of more portable...
20414         Rather than putting #!/usr/bin/perl on the first line,
20415         start with a variant of what's recommended by "man perlrun" that
20416         invokes the first "perl" program from your shell's search path.
20417         * build-aux/gitlog-to-changelog: Replace #!... as above.
20418         Add a "Local Variables" perl mode setting.
20419         Prompted by a patch from Ludovic Courtès.
20420         Improved by Eric Blake.
20421         * build-aux/useless-if-before-free: Likewise.
20422         * build-aux/announce-gen: Likewise.
20423         * build-aux/update-copyright: Likewise.
20424
20425 2009-10-29  Eric Blake  <ebb9@byu.net>
20426
20427         filenamecat-lgpl: adjust clients
20428         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
20429         filenamecat.
20430         * modules/renameat (Depends-on): Likewise.
20431
20432         filenamecat: split into filenamecat-lgpl
20433         * modules/filenamecat-lgpl: New module.
20434         * modules/filenamecat (Files): Move library-safe files into
20435         filenamecat-lgpl.
20436         (Depends-on): Add filenamecat-lgpl.
20437         (configure.ac): Declare witness.
20438         * lib/filenamecat.h (file_name_concat): Only declare when using
20439         GPL module.
20440         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
20441         Move...
20442         * lib/filenamecat-lgpl.c: ...into new file.
20443         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
20444         (gl_FILE_NAME_CONCAT): Use it.
20445         * MODULES.html.sh (File system functions): Mention new module.
20446
20447         argp: avoid memory leak
20448         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
20449         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
20450         base_name, since the latter malloc()s and can call exit().
20451         Leak introduced 2006-07-03.
20452
20453         dirname-lgpl: adjust clients that don't need full dirname
20454         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
20455         * modules/filenamecat (Depends-on): Likewise.
20456         * modules/linkat (Depends-on): Likewise.
20457         * modules/mkancesdirs (Depends-on): Likewise.
20458         * modules/mkdir (Depends-on): Likewise.
20459         * modules/openat (Depends-on): Likewise.
20460         * modules/savewd (Depends-on): Likewise.
20461         * modules/rename (Depends-on): Likewise.
20462         (License): Relax license.
20463         * modules/mkdir-tests (Depends-on): Drop progname.
20464         (Makefile.am): Delete unneeded LDADD.
20465         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
20466
20467         dirname: split into dirname-lgpl
20468         * modules/dirname-lgpl: New module.
20469         * modules/dirname (Files): Move library-safe files into
20470         dirname-lgpl.
20471         (Depends-on): Add dirname-lgpl.
20472         (configure.ac): Declare witness.
20473         * modules/double-slash-root (License): Relax license.
20474         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
20475         module.
20476         * lib/dirname.c (dir_len, mdir_name): Move...
20477         * lib/dirname-lgpl.c: ...into new file.
20478         * lib/basename.c (last_component, base_len): Move...
20479         * lib/basename-lgpl.c: ...into new file.
20480         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
20481         (gl_DIRNAME): Use it.
20482         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
20483         Mention new module.
20484         * modules/dirname-tests (Depends-on): Add progname.
20485         * tests/test-dirname.c (program_name): Delete.
20486
20487         mkdir: make safe for libraries
20488         * modules/mkdir (Depends-on): Drop xalloc.
20489         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
20490         exit.
20491
20492         tests: avoid some compiler warnings
20493         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
20494         literals.
20495         * tests/test-memchr.c (main): Avoid type mismatch.
20496         * tests/test-arpa_inet.c (main): Avoid unused parameters.
20497         * tests/test-base64.c (main): Likewise.
20498         * tests/test-getdelim.c (main): Likewise.
20499         * tests/test-gethostname.c (main): Likewise.
20500         * tests/test-getline.c (main): Likewise.
20501         * tests/test-netinet_in.c (main): Likewise.
20502         * tests/test-select.c (open_server_socket, main): Likewise.
20503         * tests/test-select-stdin.c (main): Likewise.
20504         * tests/test-sockets.c (main): Likewise.
20505         * tests/test-strsignal.c (main): Likewise.
20506         * tests/test-sys_select.c (main): Likewise.
20507         * tests/test-sys_socket.c (main): Likewise.
20508         * tests/test-u64.c (main): Likewise.
20509         * tests/test-xfprintf-posix.c (main): Likewise.
20510         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
20511
20512         sockets: avoid compiler warning
20513         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
20514
20515         maint: detect usage(1) and other suspicious exits
20516         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
20517
20518 2009-10-29  Jim Meyering  <meyering@redhat.com>
20519
20520         timespec: long-to-int truncation could make timespec_cmp malfunction
20521         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
20522         a multiple of 2^32 nanoseconds as no difference.
20523
20524 2009-10-28  Jim Meyering  <meyering@redhat.com>
20525
20526         fprintftime: wrap macro code argument in "do {...} while(0)"
20527         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
20528         cpy macro must be a statement that can be followed by a semicolon.
20529         Now that the else clause contains a comment and is hence longer
20530         than one line, I require curly braces.  That in turn requires
20531         that we wrap this code block in the standard do...while(0).
20532
20533         fprintftime: remove stray semicolon from previous change
20534         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
20535
20536         fprintftime: avoid a warning about ignored fwrite return value
20537         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
20538         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
20539         that is unsafe.
20540         * modules/fprintftime (Depends-on): Add ignore-value.
20541
20542         exclude: avoid an unwarranted warning
20543         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
20544
20545 2009-10-27  Eric Blake  <ebb9@byu.net>
20546
20547         fseek: avoid compilation failure when fflush is replaced
20548         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
20549         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
20550         module is in use.
20551         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
20552         module is not in use; since REPLACE_FSEEK worked otherwise.
20553         (GNULIB_FTELLO): Likewise for ftell.
20554         Reported by Ian Beckwith and others.
20555
20556 2009-10-27  Bruno Haible  <bruno@clisp.org>
20557
20558         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
20559         Reported by Jim Meyering.
20560
20561 2009-10-27  Jim Meyering  <jim@meyering.net>
20562             Bruno Haible  <bruno@clisp.org>
20563
20564         Avoid warning despite dropping the return value of fwrite.
20565         * lib/unicodeio.c: Include ignore-value.h.
20566         (fwrite_success_callback): Explicitly ignore fwrite's return value.
20567         * modules/unicodeio (Depends-on): Add ignore-value.
20568
20569 2009-10-26  Eric Blake  <ebb9@byu.net>
20570
20571         areadlinkat: fix fallback path
20572         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
20573         pointer and zero.
20574
20575 2009-10-22  Pádraig Brady  <P@draigBrady.com>
20576
20577         Use a better IO block size for modern systems
20578         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
20579         * lib/md2.c: Likewise.
20580         * lib/md4.c: Likewise.
20581         * lib/md5.c: Likewise.
20582         * lib/sha1.c: Likewise.
20583         * lib/sha256.c: Likewise.
20584         * lib/sha512.c: Likewise.
20585
20586 2009-10-22  Eric Blake  <ebb9@byu.net>
20587
20588         tests: avoid several compiler warnings
20589         * tests/test-getcwd.c (main): Avoid buffer underflow.
20590         * tests/test-getdate.c (main): String literals are not safe with
20591         putenv, so use setenv.  Declare unused argument.
20592         * modules/getdate-tests (Depends-on): Add setenv.
20593         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
20594         problems with string literals in char *.
20595         * tests/test-hash.c (main): Avoid shadowing declaration.
20596         (insert_new): Treat string literals as char const *.
20597         * tests/test-getopt.h (test_getopt): Likewise.
20598         (getopt_loop): Alter types to minimize casting elsewhere.
20599         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
20600         (test_getopt_long_posix): Likewise.
20601         (do_getopt_long): Add wrapper to minimize casting.
20602         * tests/test-atexit.c (clear_temp_file): Use void.
20603         * tests/test-areadlink-with-size.c (main): Declare unused
20604         arguments.
20605         * tests/test-areadlink.c (main): Likewise.
20606         * tests/test-areadlinkat-with-size.c (main): Likewise.
20607         * tests/test-areadlinkat.c (main): Likewise.
20608         * tests/test-canonicalize-lgpl.c (main): Likewise.
20609         * tests/test-canonicalize.c (main): Likewise.
20610         * tests/test-dirent-safer.c (main): Likewise.
20611         * tests/test-dirname.c (main): Likewise.
20612         * tests/test-dup2.c (main): Likewise.
20613         * tests/test-fchdir.c (main): Likewise.
20614         * tests/test-fcntl-h.c (main): Likewise.
20615         * tests/test-fcntl-safer.c (main): Likewise.
20616         * tests/test-fdopendir.c (main): Likewise.
20617         * tests/test-fdutimensat.c (main): Likewise.
20618         * tests/test-fflush.c (main): Likewise.
20619         * tests/test-filenamecat.c (main): Likewise.
20620         * tests/test-filevercmp.c (main): Likewise.
20621         * tests/test-fopen-safer.c (main): Likewise.
20622         * tests/test-fopen.c (main): Likewise.
20623         * tests/test-fpending.c (main): Likewise.
20624         * tests/test-fpurge.c (main): Likewise.
20625         * tests/test-freading.c (main): Likewise.
20626         * tests/test-fstatat.c (main): Likewise.
20627         * tests/test-fsync.c (main): Likewise.
20628         * tests/test-futimens.c (main): Likewise.
20629         * tests/test-getndelim2.c (main): Likewise.
20630         * tests/test-gettimeofday.c (main): Likewise.
20631         * tests/test-getopt.c (main): Likewise.
20632         * tests/test-i-ring.c (main): Likewise.
20633         * tests/test-inttypes.c (main): Likewise.
20634         * tests/test-link.c (main): Likewise.
20635         * tests/test-lstat.c (main): Likewise.
20636         * tests/test-math.c (main): Likewise.
20637         * tests/test-md5.c (main): Likewise.
20638         * tests/test-memchr2.c (main): Likewise.
20639         * tests/test-memrchr.c (main): Likewise.
20640         * tests/test-mkdir.c (main): Likewise.
20641         * tests/test-mkdirat.c (main): Likewise.
20642         * tests/test-mkfifoat.c (main): Likewise.
20643         * tests/test-open.c (main): Likewise.
20644         * tests/test-openat-safer.c (main): Likewise.
20645         * tests/test-openat.c (main): Likewise.
20646         * tests/test-quotearg.c (main): Likewise.
20647         * tests/test-rawmemchr.c (main): Likewise.
20648         * tests/test-readlink.c (main): Likewise.
20649         * tests/test-remove.c (main): Likewise.
20650         * tests/test-rename.c (main): Likewise.
20651         * tests/test-renameat.c (main): Likewise.
20652         * tests/test-rmdir.c (main): Likewise.
20653         * tests/test-sha1.c (main): Likewise.
20654         * tests/test-signal.c (main): Likewise.
20655         * tests/test-sigaction.c (main): Likewise.
20656         * tests/test-stat.c (main): Likewise.
20657         * tests/test-stat-time.c (main): Likewise.
20658         * tests/test-stddef.c (main): Likewise.
20659         * tests/test-stdint.c (main): Likewise.
20660         * tests/test-stdio.c (main): Likewise.
20661         * tests/test-stdlib.c (main): Likewise.
20662         * tests/test-strchrnul.c (main): Likewise.
20663         * tests/test-strerror.c (main): Likewise.
20664         * tests/test-string.c (main): Likewise.
20665         * tests/test-strtod.c (main): Likewise.
20666         * tests/test-strverscmp.c (main): Likewise.
20667         * tests/test-symlink.c (main): Likewise.
20668         * tests/test-symlinkat.c (main): Likewise.
20669         * tests/test-sys_stat.c (main): Likewise.
20670         * tests/test-sys_time.c (main): Likewise.
20671         * tests/test-time.c (main): Likewise.
20672         * tests/test-unistd.c (main): Likewise.
20673         * tests/test-unlink.c (main): Likewise.
20674         * tests/test-unlinkat.c (main): Likewise.
20675         * tests/test-utimens.c (main): Likewise.
20676         * tests/test-utimensat.c (main): Likewise.
20677         * tests/test-version-etc.c (main): Likewise.
20678         * tests/test-wchar.c (main): Likewise.
20679         * tests/test-wctype.c (main): Likewise.
20680         * tests/test-xprintf-posix.c (main): Likewise.
20681         * tests/test-posixtm.c (main): Likewise.
20682         (STREQ): Delete unused macro.
20683         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
20684         shadowed variables.
20685         * tests/test-memchr.c (main): Likewise.
20686
20687 2009-10-21  Eric Blake  <ebb9@byu.net>
20688
20689         areadlinkat: avoid failure on older glibc
20690         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
20691         rather than mis-comparing 0 against FUNC_RESULT of char*.
20692
20693 2009-10-21  Bruno Haible  <bruno@clisp.org>
20694
20695         * modules/stpncpy (License): Relicense under LGPLv2+.
20696         Reported by David Lutterkort <lutter@redhat.com>.
20697
20698 2009-10-20  Eric Blake  <ebb9@byu.net>
20699
20700         utimensat: work around Solaris 9 bug
20701         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
20702         has trailing slash bugs.
20703         * tests/test-lutimens.h (test_lutimens): Enhance test.
20704         * tests/test-utimens.h (test_utimens): Likewise.
20705         * doc/posix-functions/utime.texi (utime): Enhance documentation.
20706         * doc/posix-functions/utimes.texi (utimes): Likewise.
20707         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20708         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
20709         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
20710         * doc/posix-functions/futimens.texi (futimens): Likewise.
20711
20712         fdutimensat: new module
20713         * modules/fdutimensat: New file.
20714         * lib/fdutimensat.c (fdutimensat): Likewise.
20715         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
20716         * MODULES.html.sh (File system functions): Mention module.
20717         * modules/fdutimensat-tests: New test.
20718         * tests/test-fdutimensat.c: Likewise.
20719
20720         doc: regenerate INSTALL
20721         * doc/INSTALL: Reflect recent autoconf update.
20722         * doc/INSTALL.ISO: Likewise.
20723         * doc/INSTALL.UTF-8: Likewise.
20724
20725 2009-10-20  Pádraig Brady  <P@draigBrady.com>
20726
20727         acl: warn if ACL support is not detected
20728         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
20729
20730 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
20731
20732         * lib/nproc.h: Add extern "C" block for C++.
20733
20734 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
20735             Bruno Haible  <bruno@clisp.org>
20736
20737         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
20738         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
20739         * doc/posix-functions/isalpha.texi: Likewise.
20740         * doc/posix-functions/isblank.texi: Likewise.
20741         * doc/posix-functions/iscntrl.texi: Likewise.
20742         * doc/posix-functions/isdigit.texi: Likewise.
20743         * doc/posix-functions/isgraph.texi: Likewise.
20744         * doc/posix-functions/islower.texi: Likewise.
20745         * doc/posix-functions/isprint.texi: Likewise.
20746         * doc/posix-functions/ispunct.texi: Likewise.
20747         * doc/posix-functions/isspace.texi: Likewise.
20748         * doc/posix-functions/isupper.texi: Likewise.
20749         * doc/posix-functions/isxdigit.texi: Likewise.
20750
20751 2009-10-18  Bruno Haible  <bruno@clisp.org>
20752
20753         Tests for module 'isblank'.
20754         * modules/isblank-tests: New file.
20755         * tests/test-isblank.c: New file.
20756
20757         New module 'isblank'.
20758         * lib/isblank.c: New file.
20759         * m4/isblank.m4: New file.
20760         * modules/isblank: New file.
20761         * doc/posix-functions/isblank.texi: Mention the new module.
20762
20763 2009-10-18  Bruno Haible  <bruno@clisp.org>
20764
20765         New module 'ctype'.
20766         * lib/ctype.in.h: New file.
20767         * m4/ctype.m4: New file.
20768         * modules/ctype: New file.
20769         * doc/posix-headers/ctype.texi: Mention the new module.
20770
20771 2009-10-18  Jim Meyering  <meyering@redhat.com>
20772
20773         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
20774         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
20775         right after its initialization, rather than farther down.
20776         Keeping these in close proximity makes it easier to ensure
20777         that each such variable is initialized.  E.g.,
20778
20779             LIB_CLOCK_GETTIME=
20780             AC_SUBST([LIB_CLOCK_GETTIME])
20781
20782         This change also increments these serial numbers.
20783         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
20784         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20786
20787 2009-10-18  Bruno Haible  <bruno@clisp.org>
20788
20789         Don't let environment variables perturb build.
20790         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
20791         (gl_PREREQ_GETHRXTIME): ... not here.
20792
20793 2009-10-18  Bruno Haible  <bruno@clisp.org>
20794
20795         Avoid symlink attack in localcharset module.
20796         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
20797         (O_NOFOLLOW): Define fallback.
20798         (get_charset_aliases): Don't open the file if it is a symbolic link.
20799         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
20800         gl_FCNTL_H.
20801         (gl_FCNTL_H): Require it.
20802         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
20803         * modules/localcharset (Files): Add m4/fcntl_h.m4.
20804         Reported by Fergal Glynn <fglynn@veracode.com>.
20805
20806 2009-10-18  Bruno Haible  <bruno@clisp.org>
20807
20808         Implement nproc for mingw.
20809         * lib/nproc.c: Include <windows.h>
20810         (num_processors): On native Windows platforms, try GetSystemInfo.
20811
20812 2009-10-18  Bruno Haible  <bruno@clisp.org>
20813
20814         Implement nproc for IRIX.
20815         * lib/nproc.c: Include <sys/sysmp.h>.
20816         (num_processors): On IRIX systems, try sysmp.
20817         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
20818
20819 2009-10-18  Bruno Haible  <bruno@clisp.org>
20820
20821         Implement nproc for HP-UX.
20822         * lib/nproc.c: Include <sys/pstat.h>
20823         (num_processors): On HP-UX systems, try pstat_getdynamic.
20824         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
20825         pstat_getdynamic.
20826
20827 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
20828             Bruno Haible  <bruno@clisp.org>
20829
20830         Implement nproc for NetBSD, OpenBSD.
20831         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
20832         (ARRAY_SIZE): New macro.
20833         (num_processors): On BSD systems, try sysctl of HW_NCPU.
20834         * m4/nproc.m4: New file.
20835         * modules/nproc (Files): Add m4/nproc.m4.
20836         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
20837         (Makefile.am): Instead, augment lib_SOURCES.
20838
20839 2009-10-18  Bruno Haible  <bruno@clisp.org>
20840
20841         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
20842         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
20843         sys/param.h.
20844
20845 2009-10-16  Eric Blake  <ebb9@byu.net>
20846
20847         utimensat: new module
20848         * modules/utimensat: New file.
20849         * lib/utimensat.c (utimensat): Likewise.
20850         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20851         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
20852         so we can work around Linux bugs.
20853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20854         * modules/sys_stat (Makefile.am): Substitute them.
20855         * lib/sys_stat.in.h (utimensat): Declare it.
20856         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20857         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20858         * modules/utimensat-tests: New test.
20859         * tests/test-utimensat.c: Likewise.
20860
20861         utimens: let lutimens work on non-symlinks
20862         * lib/utimens.c (lutimens): Fall back to utimens rather than
20863         failing with ENOSYS, when file is not a symlink.
20864         (utimens): Reduce redirection.
20865         * tests/test-lutimens.h (test_lutimens): Update test to cover
20866         non-symlinks.
20867         * tests/test-utimens.h (test_utimens): Update test to cover
20868         symlinks.
20869         * tests/test-utimens.c (main): Update caller.
20870
20871         utimens: cache whether utimensat syscall works
20872         * lib/utimens.c (utimensat_works_really): New cache variable.
20873         (fdutimens, lutimens): Use it to avoid failing syscall.
20874
20875         test-stat-time, test-utimens: improve portability
20876         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
20877         ext4 on alpha, and for cygwin.
20878         * tests/test-utimens-common.h: New file.
20879         (nap): Factor delays into single function.
20880         * tests/test-lutimens.h (test_lutimens): Use new header.
20881         * tests/test-futimens.h (test_futimens): Likewise.
20882         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
20883         timestamps to occur from same machine, as was done previously for
20884         test_utimens.
20885         * modules/utimens-tests (Files): Ship new file.
20886         * modules/futimens-tests (Files): Likewise.
20887         Reported in part by Jim Meyering.
20888
20889         sys_stat: sort replacement declarations
20890         * lib/sys_stat.in.h: Sort declarations.
20891         * lib/futimens.c (futimens): Fix typo.
20892
20893 2009-10-15  Jim Meyering  <meyering@redhat.com>
20894
20895         don't let environment settings perturb build
20896         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
20897         could cause a configure-time and/or build-time malfunction.
20898         Typically, a configure-time function-in-library test is performed
20899         via code like this:
20900
20901           LIB_VAR=
20902           AC_SUBST([LIB_VAR])
20903           prefix_saved_LIBS=$LIBS
20904             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
20905                        [test "$ac_cv_search_FUNC" = "none required" ||
20906                         LIB_VAR=$ac_cv_search_FUNC])
20907           LIBS=$prefix_saved_LIBS
20908
20909         However, in each of the files affected by this change, the LIB_VAR=
20910         initialization was omitted.  Thus, when set in the environment, its
20911         value would propagate into generated Makefiles when FUNC is not found
20912         in LIB_NAME.
20913         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
20914         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
20915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20916
20917 2009-10-14  Eric Blake  <ebb9@byu.net>
20918
20919         fchdir: avoid infinite recursion in mingw
20920         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
20921         recursing.
20922
20923         test-stat-time: port to mingw
20924         * tests/test-stat-time.c (force_unlink): Return a value.
20925         (test_ctime) [W32]: Fix compilation error.
20926         (nap): Don't call usleep with too large an argument.  Use
20927         force_unlink.
20928         * doc/pastposix-functions/usleep.texi (usleep): Document the
20929         portability issue.
20930
20931 2009-10-13  Jim Meyering  <meyering@redhat.com>
20932
20933         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
20934         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
20935         * modules/pipe-filter-ii: Likewise.
20936         * modules/sys_socket-tests: Likewise.
20937         * modules/tsearch-tests: Likewise.
20938         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
20939         (check): Depend on it.
20940
20941 2009-10-12  Eric Blake  <ebb9@byu.net>
20942
20943         utimens-tests: port to NFS file systems
20944         * tests/test-utimens.h (test_utimens): Refactor utimecmp
20945         comparisons to avoid spurious failures from timestamp drift
20946         between NFS machines.
20947
20948 2009-10-12  Eric Blake  <ebb9@byu.net>
20949
20950         stat-time-tests: minor cleanups
20951         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
20952         * tests/test-stat-time.c (nap): Separate assignment from call.
20953         Suggested by Paolo Bonzini and Bruno Haible.
20954
20955         sys_stat: guarantee struct timespec
20956         * lib/sys_stat.in.h (includes): Always include <time.h>
20957         * modules/sys_stat (Depends-on): Add time.
20958         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
20959         mode_t permission values.
20960         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
20961         get at subsecond timestamps.
20962
20963 2009-10-10  Eric Blake  <ebb9@byu.net>
20964
20965         futimens: new module
20966         * modules/futimens: New file.
20967         * lib/futimens.c (futimens): Likewise.
20968         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20969         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
20970         we can work around Linux bugs.
20971         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20972         * modules/sys_stat (Makefile.am): Substitute them.
20973         * lib/sys_stat.in.h (futimens): Declare it.
20974         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20975         * doc/posix-functions/futimens.texi (futimens): Likewise.
20976         * modules/futimens-tests: New test.
20977         * tests/test-futimens.c: Likewise.
20978
20979         utimens: introduce fdutimens
20980         * lib/utimens.h (fdutimens): New prototype.
20981         * lib/utimens.c (gl_futimens): Move guts...
20982         (fdutimens): ...to new interface.
20983         * tests/test-utimens.c (do_fdutimens): Use it.
20984
20985         utimens: add UTIME_NOW and UTIME_OMIT support
20986         * lib/utimens.c (validate_timespec, update_timespec): New helper
20987         functions.
20988         (gl_futimens, lutimens): Use them.
20989         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
20990         stdbool, sys_stat.
20991         (Link): Mention resulting library dependency.
20992         * modules/utimecmp (Link): Likewise.
20993         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
20994         (Makefile.am): Pick up library dependency.
20995         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
20996         definition.
20997         * tests/test-sys_stat.c: Test the definitions.
20998         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
20999         * NEWS: Document library dependency.
21000
21001         utimecmp: support symlink timestamps
21002         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
21003         hashing when possible.  Use pathconf when available.
21004         (SYSCALL_RESOLUTION): Recognize tighter resolution.
21005         * modules/utimecmp (Depends-on): Add lstat.
21006
21007         utimens: add lutimens interface
21008         * lib/utimens.c (lutimens): New function.
21009         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
21010         * lib/utimens.h (lutimens): Declare new interface.
21011         * tests/test-utimens.c (main): Enhance test.
21012         * tests/test-lutimens.h (test_lutimens): New file.
21013         * modules/utimens-tests (Files): Distribute it.
21014         (Depends-on): Add symlink.
21015         (configure.ac): Check for usleep.
21016
21017         utimens: validate futimens usage
21018         * lib/utimens.c (gl_futimens): Require valid fd up front, using
21019         fewer syscalls on failure later on.  Avoid compiler warning on
21020         mingw.
21021         * modules/utimens (Depends-on): Add dup2.
21022
21023         utimens: add test
21024         * modules/utimens-tests: New test.
21025         * tests/test-utimens.h: New file.
21026         * tests/test-futimens.h: Likewise.
21027         * tests/test-utimens.c: Likewise.
21028
21029         doc: mention timestamp portability issues
21030         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
21031         instead.
21032         * doc/posix-functions/utime.texi (utime): Likewise.
21033         * doc/posix-functions/utimes.texi (utimes): Likewise.
21034         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
21035         instead.
21036         * doc/posix-functions/futimens.texi (futimens): Mention utimens
21037         module.
21038         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21039         Mention weakness with symlink timestamps.
21040         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
21041         to utimensat/futimens instead.
21042         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
21043
21044         test-dup2: enhance test
21045         * tests/test-dup2.c (main): Also check AT_FDCWD.
21046
21047         test-stat-time: avoid more spurious failures
21048         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
21049         xfs; and avoid race if the two timestamps cross quantization edge.
21050
21051         relocatable: prefer 'file system' over 'filesystem'
21052         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
21053         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
21054         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
21055         * doc/relocatable.texi (Enabling Relocatability): Likewise.
21056         * lib/relocatable.c (compute_curr_prefix): Likewise.
21057
21058 2009-10-10  Jim Meyering  <meyering@redhat.com>
21059
21060         stat-time-tests: check for the usleep function
21061         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
21062
21063 2009-10-10  Bruno Haible  <bruno@clisp.org>
21064
21065         * modules/xnanosleep: Put the Link section after the Include section.
21066
21067 2009-10-09  Eric Blake  <ebb9@byu.net>
21068
21069         dup2: work around FreeBSD 6.1 bug
21070         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
21071         * doc/posix-functions/dup2.texi (dup2): Document it.
21072         Reported by Nelson H. F. Beebe and Jim Meyering.
21073
21074         test-stat-time: port to buggy NFS clients
21075         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
21076         (test_ctime): Also skip test if mtime and ctime are skewed.
21077
21078         maint: prefer 'file system' over 'filesystem'
21079         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21080         * doc/posix-functions/lstat.texi (lstat): Likewise.
21081         * lib/file-has-acl.c (file_has_acl): Likewise.
21082         * lib/fwriteerror.c [TEST]: Likewise.
21083         * tests/test-areadlink.h (test_areadlink): Likewise.
21084         * tests/test-areadlinkat-with-size.c (main): Likewise.
21085         * tests/test-areadlinkat.c (main): Likewise.
21086         * tests/test-canonicalize-lgpl.c (main): Likewise.
21087         * tests/test-canonicalize.c (main): Likewise.
21088         * tests/test-fstatat.c (main): Likewise.
21089         * tests/test-linkat.c (main): Likewise.
21090         * tests/test-lstat.h (test_lstat_func): Likewise.
21091         * tests/test-mkdir.h (test_mkdir): Likewise.
21092         * tests/test-readlink.h (test_readlink): Likewise.
21093         * tests/test-remove.c (main): Likewise.
21094         * tests/test-rename.h (test_rename): Likewise.
21095         * tests/test-renameat.c (main): Likewise.
21096         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21097         * tests/test-symlink.h (test_symlink): Likewise.
21098         * tests/test-symlinkat.c (main): Likewise.
21099         * tests/test-unlink.h (test_unlink_func): Likewise.
21100         * tests/test-unlinkat.c (main): Likewise.
21101
21102         maint: make realtime library usage explicit
21103         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
21104         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
21105         * modules/settime (Link): Likewise.
21106         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
21107
21108         test-stat-time: speed up execution
21109         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
21110         warning on mingw.
21111         (nap): New helper function.
21112         (prepare_test): Use it to reduce sleep time.
21113         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
21114         execution.
21115         * modules/stat-time-tests (configure.ac): Check for usleep.
21116
21117 2009-10-09  Jim Meyering  <meyering@redhat.com>
21118
21119         selinux-h: always use getfilecon wrappers
21120         * lib/getfilecon.c: New file.
21121         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
21122         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
21123         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
21124         (fgetfilecon): Provide a stub.
21125         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
21126         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
21127         file unconditionally.
21128         When <selinux/selinux.h> is found, arrange to use wrappers.
21129         * modules/selinux-h (Files): Add getfilecon.c.
21130         (Makefile.am): Substitute include-next-related bits
21131         into the now-always-generated selinux/selinux.h file.
21132         * doc/glibc-functions/lgetfilecon.texi: New file.
21133         * doc/glibc-functions/fgetfilecon.texi: New file.
21134         * doc/glibc-functions/getfilecon.texi: New file.
21135         * doc/glibc-functions/getfilecon-desc.texi: New file.
21136         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
21137         which to pull in the new files.
21138         * MODULES.html.sh (Misc): Add selinux-h.
21139
21140 2009-10-08  Jim Meyering  <meyering@redhat.com>
21141
21142         unistd: fix comment typo
21143         * lib/unistd.in.h (euidaccess): Fix a comment typo.
21144
21145 2009-10-08  Eric Blake  <ebb9@byu.net>
21146
21147         areadlink: use SIZE_MAX consistently
21148         * modules/areadlink (Depends-on): Add stdint.
21149         * modules/areadlink-with-size (Depends-on): Likewise.
21150         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
21151         gives NULL; drop sys/types, since unistd gives size_t; and add
21152         stdint for SIZE_MAX.
21153         (SIZE_MAX): Rely on headers.
21154         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
21155         and add stdint.
21156         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
21157         (SIZE_MAX): Likewise.
21158         (INITIAL_BUF_SIZE): Turn into enum.
21159         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
21160
21161 2009-10-08  Jim Meyering  <meyering@redhat.com>
21162
21163         areadlinkat: avoid compilation failure
21164         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
21165         Fix typo in comment.
21166
21167 2009-10-07  Eric Blake  <ebb9@byu.net>
21168
21169         areadlinkat-with-size: new module
21170         * modules/areadlinkat-with-size: New module.
21171         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
21172         * lib/areadlink.h (areadlinkat): Declare it.
21173         * MODULES.html.sh (File system functions): Mention it.
21174         * modules/areadlinkat-with-size-tests: New test.
21175         * tests/test-areadlinkat-with-size.c: New file.
21176
21177         xreadlinkat: new module
21178         * modules/xreadlinkat: New module.
21179         * lib/xreadlinkat.c (xreadlinkat): New file.
21180         * lib/xreadlink.h (xreadlinkat): Declare it.
21181         * MODULES.html.sh (File system functions): Mention it.
21182
21183         areadlinkat: new module
21184         * lib/at-func.c (FUNC_FAIL): New define.
21185         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
21186         * modules/areadlinkat: New module.
21187         * lib/linkat.c (areadlinkat): Move...
21188         * lib/areadlinkat.c (areadlinkat): ...to new file.
21189         * lib/areadlink.h (areadlinkat): Declare it.
21190         * modules/linkat (Depends-on): Add areadlinkat.
21191         * MODULES.html.sh (File system functions): Mention it.
21192         * modules/areadlinkat-tests: New test.
21193         * tests/test-areadlinkat.c: New file.
21194
21195         areadlink, areadlink-with-size: add tests
21196         * modules/areadlink-tests: New test.
21197         * modules/areadlink-with-size-tests: Likewise.
21198         * tests/test-areadlink.h: New file.
21199         * tests/test-areadlink.c: Likewise.
21200         * tests/test-areadlink-with-size.c: Likewise.
21201
21202         maint: minor cleanups
21203         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
21204         _UNUSED_PARAMETER_ instead.
21205         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
21206         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
21207         * modules/linkat-tests (Files): Distribute test-link.h.
21208
21209         openat, utimens: whitespace cleanup
21210         * lib/openat.c: Prefer space throughout, rather than mix of 8
21211         spaces vs. tabs.
21212         * lib/at-func.c: Likewise.
21213         * lib/utimens.c: Likewise.
21214
21215         openat: avoid using wrong fd
21216         * lib/openat.c (openat_permissive): Reject user's fd if saving the
21217         working directory chooses same fd.
21218         * lib/at-func.c (AT_FUNC_NAME): Likewise.
21219
21220         mkdir, mkdirat: fix cygwin 1.5.x bug
21221         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
21222         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
21223         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
21224         bug.
21225         (gl_PREREQ_MKDIR): Delete unused macro.
21226         * modules/mkdir (Files): Track file rename.
21227         (configure.ac): Update macro name.
21228         * modules/openat (Depends-on): Add mkdir.
21229         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
21230
21231         mkdir, mkdirat: add tests
21232         * modules/mkdir-tests: New test.
21233         * tests/test-mkdir.h: New file.
21234         * tests/test-mkdir.c: Likewise.
21235         * tests/test-mkdirat.c: Likewise.
21236         * modules/openat-tests (Files): Add new files.
21237         (Makefile.am): Run new test.
21238
21239 2009-10-06  Eric Blake  <ebb9@byu.net>
21240
21241         doc: tweak *at function documentation
21242         * doc/posix-functions/faccessat.texi (faccessat): Mention
21243         known issue with replacement.
21244         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
21245         * doc/posix-functions/linkat.texi (linkat): Likewise.
21246         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21247         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21248         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21249         * doc/posix-functions/renameat.texi (renameat): Likewise.
21250         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21251
21252         openat: fix GNU/Hurd bug in unlinkat
21253         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
21254         broken.
21255         * doc/posix-functions/unlink.texi (unlink): Document this.
21256         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
21257
21258         fdopendir: fix GNU/Hurd bug
21259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
21260         allowing non-directory fds.
21261         * lib/fdopendir.c (rpl_fdopendir): Work around it.
21262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21263         * modules/dirent (Makefile.am): Substitute it.
21264         * lib/dirent.in.h (fdopendir): Declare replacement.
21265         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
21266         * tests/test-fdopendir.c (main): Test something other than
21267         /dev/null, since on Hurd that behaves like a directory.
21268
21269         test-symlink: port to GNU/Hurd
21270         * tests/test-symlink.h (test_symlink): Relax expected errno.
21271
21272         doc: tweak more cygwin information
21273         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
21274         now compatible with glibc.
21275         * doc/posix-functions/getopt.texi (getopt): Likewise.
21276
21277         getopt-gnu: add another test
21278         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
21279         guarantee behavior relied on by m4.
21280         * tests/test-getopt.c (main): Use it.
21281         * modules/getopt-posix-tests (Depends-on): Add setenv.
21282         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
21283
21284         getopt: fix compilation on darwin
21285         * lib/getopt.in.h (includes): Leave breadcrumbs during system
21286         include.
21287         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
21288         Reported by Ludovic Courtès.
21289
21290 2009-10-06  Bruno Haible  <bruno@clisp.org>
21291
21292         * modules/size_max (Description): Discourage its use.
21293         Reported by Simon Josefsson.
21294
21295 2009-10-06  Jim Meyering  <meyering@redhat.com>
21296
21297         linkat: avoid compilation failure
21298         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
21299
21300 2009-10-05  Eric Blake  <ebb9@byu.net>
21301
21302         linkat: support Linux 2.6.17
21303         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
21304         linkat on Linux, but allow cache variable override.
21305         * lib/linkat.c (rpl_linkat): Define override.
21306         * modules/linkat (Depends-on): Add symlinkat.
21307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
21308         * modules/unistd (Makefile.am): Substitute it.
21309         * lib/unistd.in.h (linkat): Declare replacement.
21310         Reported by Pádraig Brady.
21311
21312         quotearg: port test to systems with C.UTF-8 locale
21313         * tests/test-quotearg.c (struct result_strings): Add another
21314         member, differentiating between C.ASCII and C.UTF-8 handling.
21315         (compare_strings): Add parameter.
21316         (main): Adjust all callers.
21317
21318         getopt: avoid clash with FreeBSD _getopt_internal
21319         * lib/getopt.in.h (_getopt_internal): Override the name.
21320         * lib/getopt_int.h (includes): Pick up any overrides.
21321         Reported by Reuben Thomas.
21322
21323         hash: allow C89 compilation
21324         * lib/hash.c (check_tuning): Move declaration before statement.
21325         Reported by Reuben Thomas.
21326
21327 2009-10-05  Karl Berry  <karl@gnu.org>
21328
21329         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
21330
21331 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
21332             Bruno Haible  <bruno@clisp.org>
21333
21334         * lib/uname.c (uname): Use a table-driven algorithm to compute
21335         Windows NT versions.
21336
21337 2009-10-04  Bruno Haible  <bruno@clisp.org>
21338
21339         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
21340         program_invocation_short_name.
21341         * modules/progname (configure.ac): Test for presence of
21342         program_invocation_short_name.
21343         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21344
21345 2009-10-04  Bruno Haible  <bruno@clisp.org>
21346
21347         * lib/progname.c (set_program_name): Fix comment.
21348         Reported by Jim Meyering.
21349
21350 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21351             Bruno Haible  <bruno@clisp.org>
21352
21353         * lib/uname.c: Include <string.h>.
21354         (uname): Do only one call to GetVersionEx in the common case.
21355
21356 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
21357             Bruno Haible  <bruno@clisp.org>
21358
21359         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
21360         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
21361         (uname): Add support for Windows CE and various non-x86 CPU types.
21362
21363 2009-10-03  Bruno Haible  <bruno@clisp.org>
21364
21365         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
21366         invocation to tests/configure.ac.
21367         Reported by Ian Beckwith <ianb@erislabs.net>.
21368
21369 2009-10-02  Eric Blake  <ebb9@byu.net>
21370
21371         fchdir: avoid compiler warning
21372         * lib/fchdir.c (canonicalize_file_name)
21373         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
21374
21375         test-open: support mingw errno values
21376         * tests/test-open.h (test_open): Relax test.
21377         * tests/test-fopen.h (test_fopen): Likewise.
21378         * tests/test-openat-safer.c (main): Likewise.
21379
21380         open: fix opening directory on mingw
21381         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
21382
21383         test-open: on GNU/Hurd, /dev/null is a directory
21384         * tests/test-fopen.h (main): Rename...
21385         (test_fopen): ...to this.  Use a guaranteed non-directory when
21386         confirming open behavior on trailing slash.
21387         * tests/test-openat-safer.c (main): Likewise.
21388         * tests/test-open.h (main): Likewise....
21389         (test_open): ...to this.
21390         * tests/test-fopen.c (main): Adjust caller.
21391         * tests/test-fopen-safer.c (main): Likewise.
21392         * tests/test-open.c (main): Likewise.
21393         * tests/test-fcntl-safer.c (main): Likewise.
21394         Reported by Samuel Thibault.
21395
21396         rename, fchdir: don't ignore chdir failure
21397         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
21398         * lib/rename.c (rpl_rename) [W32]: Likewise.
21399         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
21400         an empty destination directory if source cannot be renamed,
21401         although there is still possibility for failure.
21402         * doc/posix-functions/rename.texi (rename): Document the race.
21403         Reported by Jim Meyering.
21404
21405         maint: cleanup whitespace in recent commits
21406         * lib/rename.c (rpl_rename): Remove tabs.
21407         * tests/test-link.h (test_link): Likewise.
21408         * lib/fchdir.c (get_name): Likewise.
21409         Reported by Jim Meyering.
21410
21411 2009-10-02  Ben Pfaff  <blp@gnu.org>
21412
21413         relocatable-prog-wrapper: Add missing dependency on
21414         double-slash-root.
21415         * modules/relocatable-prog-wrapper: Add dependency.
21416         Reported by Ian Beckwith <ianb@erislabs.net>.
21417
21418 2009-10-02  Eric Blake  <ebb9@byu.net>
21419
21420         renameat: fix Solaris bugs
21421         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
21422         needed fixing.
21423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
21424         * modules/stdio (Makefile.am): Substitute it.
21425         * lib/stdio.in.h (renameat): Declare replacement.
21426         * lib/renameat.c (rpl_renameat): Implement fix.
21427
21428         renameat: new module
21429         * modules/renameat: New file.
21430         * lib/renameat.c (renameat): Likewise.
21431         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
21432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21433         * modules/stdio (Makefile.am): Substitute them.
21434         * lib/stdio.in.h (renameat): Declare it.
21435         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21436         * doc/posix-functions/renameat.texi (renameat): Likewise.
21437         * modules/renameat-tests: New test.
21438         * tests/test-renameat.c: Likewise.
21439
21440         rename: fix mingw bugs
21441         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
21442         directory overwrite bugs.
21443
21444         rename: fix another cygwin 1.5 bug
21445         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
21446         checks.
21447         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
21448         unnecessary cygwin workarounds.  Also work around bug with moving
21449         full directory onto an empty one.
21450         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
21451
21452         rename-dest-slash: merge into rename module
21453         * modules/rename-dest-slash (Status): Mark obsolete.
21454         (Depends-on): Add rename.
21455         (Files): Let rename do it all.
21456         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
21457         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
21458         * m4/rename-dest-slash.m4: ...so this file can be deleted.
21459         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
21460         * lib/rename.c (rpl_rename): Update comments.
21461
21462         rename: fix cygwin 1.5.x bugs
21463         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
21464         * lib/rename.c (rpl_rename): Work around them.
21465         * modules/rename (Depends-on): Add same-inode.
21466
21467         rename: fix Solaris 10 bug
21468         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21469         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
21470         was the only bug.
21471
21472         rename: fix Solaris 9 bug
21473         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
21474         on non-directory.  Avoid calling exit.
21475         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
21476         strdup.
21477         * modules/rename-tests (Depends-on): Drop lstat.
21478         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
21479         (gl_PREREQ_RENAME): Delete unused macro.
21480
21481         rename-dest-slash: fix NetBSD bug
21482         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
21483         links.
21484         * modules/rename-dest-slash (Depends-on): Add same-inode.
21485
21486         rename-tests: new test, exposes several platform bugs
21487         * modules/rename-tests: New file.
21488         * tests/test-rename.h: Likewise.
21489         * tests/test-rename.c: Likewise.
21490         * doc/posix-functions/rename.texi (rename): Improve documentation,
21491         including bugs that will eventually be fixed in gnulib.
21492
21493 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
21494
21495         * lib/uname.c: Include <stdlib.h>
21496         (uname): Assume version info is available.
21497
21498 2009-10-02  Jim Meyering  <meyering@redhat.com>
21499
21500         gnu-web-doc-update: correct --help output
21501         * build-aux/gnu-web-doc-update: Make --help output relevant.
21502
21503         gnu-web-doc-update: add standard options
21504         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
21505
21506         gnu-web-doc-update: New module.
21507         Use this script to automatically update the on-line web documentation
21508         for your GNU project at http://www.gnu.org/software/$pkg/manual/
21509         * modules/gnu-web-doc-update: New file, from coreutils.
21510         * build-aux/gnu-web-doc-update: New script.
21511
21512 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
21513
21514         link: LoadLibrary is not needed.
21515         * lib/link.c: Use GetModuleHandle.
21516
21517 2009-10-01  Eric Blake  <ebb9@byu.net>
21518
21519         getopt: bump serial number
21520         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
21521         change.
21522
21523         tests: tighten link, rmdir, and remove tests
21524         * tests/test-link.h (includes): No need to use <config.h> here.
21525         Clean up if directory hard link was created, otherwise test for
21526         trailing '.'.
21527         * tests/test-linkat.c (main): Simplify.
21528         * tests/test-remove.c (main): Enhance test for trailing '.'.
21529         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21530
21531 2009-10-01  Jim Meyering  <meyering@redhat.com>
21532
21533         maint.mk: requiring "make major" was annoying, for a "minor" release.
21534         What is intended is "stable", to contrast with alpha and beta,
21535         so require "make stable", not "make major".
21536         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
21537         (get_tool_versions): Likewise.
21538         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
21539
21540 2009-09-30  Ben Pfaff  <blp@gnu.org>
21541
21542         Fix broken build of replacement for Windows tmpfile().
21543         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
21544         flags argument added along with the 'mkostemp' module.
21545
21546 2009-09-28  Bruno Haible  <bruno@clisp.org>
21547
21548         Avoid identifier clash with POSIX function 'remove' defined as a macro.
21549         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
21550         to 'remove_elt'.
21551         (gl_list_remove): Update.
21552         * lib/gl_list.c (gl_list_remove): Update.
21553         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
21554         to 'remove_elt'.
21555         (gl_oset_remove): Update.
21556         * lib/gl_list.c (gl_oset_remove): Update.
21557         Reported by Eric Blake.
21558
21559 2009-09-28  Eric Blake  <ebb9@byu.net>
21560
21561         doc: mention yet more cygwin 1.7 status
21562         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
21563         cygwin.
21564         * doc/glibc-functions/execvpe.texi (execvpe): New file.
21565         * doc/gnulib.texi (Glibc unistd.h): Mention it.
21566
21567         argp: fix test failure
21568         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
21569         that are not upper-case.  Pass correct range to tolower.
21570
21571 2009-09-27  Jim Meyering  <meyering@redhat.com>
21572
21573         test-yesno: work around sparc-dash here-document infelicity
21574         Without this change, the literal \177 byte in a here document
21575         would make dash 0.5.5.1-3 access uninitialized memory.
21576         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
21577         Instead, use a marker, "@", and filter through tr to create the desired
21578         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
21579
21580 2009-09-27  Bruno Haible  <bruno@clisp.org>
21581
21582         Disable untested support for new flavours of ACLs on AIX.
21583         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
21584         progress.
21585         * lib/set-mode-acl.c (qset_acl): Likewise.
21586
21587 2008-12-07  Bruno Haible  <bruno@clisp.org>
21588
21589         Add support for new flavours of ACLs on AIX. (Untested.)
21590         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
21591         (file_has_acl): Add support for newer AIX.
21592         * lib/set-mode-acl.c (qset_acl): Likewise.
21593         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
21594         Rainer Tammer <tammer@tammer.net>.
21595
21596 2009-09-26  Eric Blake  <ebb9@byu.net>
21597
21598         argp: fix compilation of getopt
21599         * lib/getopt.in.h (includes): Use different guard than glibc.
21600         Reported by Sergey Poznyakoff.
21601
21602         doc: mention more cygwin 1.7 status
21603         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
21604         bug.
21605         * doc/posix-functions/execl.texi (execl): Likewise.
21606         * doc/posix-functions/execle.texi (execle): Likewise.
21607         * doc/posix-functions/execlp.texi (execlp): Likewise.
21608         * doc/posix-functions/execv.texi (execv): Likewise.
21609         * doc/posix-functions/execve.texi (execve): Likewise.
21610         * doc/posix-functions/execvp.texi (execvp): Likewise.
21611         * doc/glibc-functions/canonicalize_file_name.texi
21612         (canonicalize_file_name): Cygwin 1.7 now provides this.
21613         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
21614         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
21615         on AT_SYMLINK_NOFOLLOW.
21616
21617 2009-09-24  Eric Blake  <ebb9@byu.net>
21618
21619         test-linkat: make test more robust
21620         * tests/test-linkat.c (main): Avoid collision with EEXIST.
21621
21622         getopt: fix inclusion guards for cygwin
21623         * modules/getopt-posix (Depends-on): Add include-next.
21624         (Makefile.am): Substitute more items in replacement header.
21625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
21626         <getopt.h>.
21627         * lib/getopt.in.h (includes): Use split inclusion guard, and
21628         prefer <getopt.h> over include <unistd.h> when one is present.
21629         (option): Also override name of 'struct option'.
21630
21631         same-inode: revert prior change; it is not yet ready
21632         * NEWS: Undo mention of this change.
21633         * lib/same-inode.h (same-inode.h): Undo tri-state change.
21634         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21635         * lib/cycle-check.c (cycle_check): Likewise.
21636         * lib/same.c (same_name): Likewise.
21637         * lib/at-func2.c (at_func2): Likewise.
21638
21639 2009-09-23  Eric Blake  <ebb9@byu.net>
21640
21641         linkat: new module
21642         * modules/linkat: New file.
21643         * lib/at-func2.c (at_func2): Likewise.
21644         * lib/linkat.c (linkat): Likewise.
21645         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21646         * lib/openat-priv.h (at_func2): Add declaration.
21647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21648         * modules/unistd (Makefile.am): Substitute them.
21649         * lib/unistd.in.h (linkat): Declare it.
21650         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21651         * doc/posix-functions/linkat.texi (linkat): Likewise.
21652         * doc/posix-functions/link.texi (link): Tweak wording.
21653         * tests/test-link.c (main): Move guts...
21654         * tests/test-link.h (test_link): ...into new file.
21655         * modules/linkat-tests: New test.
21656         * tests/test-linkat.c: Likewise.
21657         * modules/link-tests (Files): Ship new file.
21658         (Depends-on): Add stdbool.
21659
21660         dirname: add library-safe mdir_name
21661         * lib/dirname.h (mdir_name): New prototype.
21662         * lib/dirname.c (dir_name): Move guts...
21663         (mdir_name): ...to new function that avoids xalloc_die.
21664
21665         fchdir: another mingw fix
21666         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
21667         * lib/fchdir.c (get_name): New helper method; skips canonicalize
21668         on mingw (where it has not yet been ported), and make it optional
21669         elsewhere.
21670         (_gl_register_fd): Use it.
21671
21672         same-inode: make SAME_INODE tri-state, to port to mingw
21673         * NEWS: Mention this change.
21674         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
21675         st_ino always being 0.
21676         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
21677         * lib/cycle-check.c (cycle_check): Likewise.
21678         * lib/same.c (same_name): Likewise.
21679
21680         lstat: avoid mingw compilation error
21681         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
21682         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
21683         lstat ourselves.
21684         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
21685         was adequate.
21686         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
21687         the checks for lstat.
21688         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
21689
21690         link: fix test failure on Solaris 9
21691         * lib/link.c (rpl_link): Don't assume link will catch bogus
21692         trailing slash on source.
21693
21694         test-symlinkat: enhance test
21695         * tests/test-readlink.c (main): Move guts...
21696         * tests/test-readlink.h (test_readlink): ...into new file.
21697         * tests/test-symlink.c (main): Move guts...
21698         * tests/test-symlink.h (test_symlink): ...into new file.
21699         * tests/test-symlinkat.c (main): Use new files for further
21700         coverage.
21701         (do_symlink, do_readlink): New helper functions.
21702         * modules/symlink-tests (Files): Ship new file.
21703         (Depends-on): Add stdbool.
21704         * modules/readlink-tests (Files): Ship new file.
21705         (Depends-on): Add stdbool.
21706         * modules/symlinkat-tests (Files): Use new files.
21707
21708 2009-09-23  Eric Blake  <ebb9@byu.net>
21709
21710         readlink: document portability issue with symlink length
21711         * doc/posix-functions/lstat.texi (lstat): Mention that some file
21712         systems have bogus st_size on symlinks, and mention the
21713         areadlink-with-size module.
21714         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
21715         * doc/posix-functions/readlink.texi (readlink): Mention the
21716         areadlink module, and ERANGE failure.
21717         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21718         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
21719
21720         readlink: fix Solaris 9 bug with trailing slash
21721         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
21722         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
21723         * doc/posix-functions/readlink.texi (readlink): Document this.
21724         * modules/readlink-tests: New test.
21725         * tests/test-readlink.c: Likewise.
21726
21727         readlink: fix cygwin 1.5.x bug with return type
21728         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
21729         * lib/unistd.in.h (readlink): Use ssize_t.
21730         * lib/readlink.c (readlink): Likewise.
21731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21732         * modules/unistd (Makefile.am): Substitute it.
21733         * lib/unistd.in.h (readlink): Declare replacement.
21734         * doc/posix-functions/readlink.texi (readlink): Document this.
21735
21736         symlink: use throughout gnulib
21737         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
21738         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
21739         symlink is not used.
21740         * modules/symlinkat (Depends-on): Add symlink.
21741         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21742         * modules/canonicalize-tests (Depends-on): Likewise.
21743         * modules/lstat-tests (Depends-on): Likewise.
21744         * modules/openat-tests (Depends-on): Likewise.
21745         * modules/remove-tests (Depends-on): Likewise.
21746         * modules/rmdir-tests (Depends-on): Likewise.
21747         * modules/unlink-tests (Depends-on): Likewise.
21748         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
21749         * tests/test-canonicalize.c (symlink): Likewise.
21750         * tests/test-fstatat.c (symlink): Likewise.
21751         * tests/test-lstat.c (symlink): Likewise.
21752         * tests/test-remove.c (symlink): Likewise.
21753         * tests/test-rmdir.c (symlink): Likewise.
21754         * tests/test-unlink.c (symlink): Likewise.
21755         * tests/test-unlinkat.c (symlink): Likewise.
21756
21757         symlink: new module, for Solaris 9 bug
21758         * modules/symlink: New file.
21759         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21760         * lib/symlink.c: Likewise.
21761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21762         * modules/unistd (Makefile.am): Substitute them.
21763         * lib/unistd.in.h (symlink): Declare replacement.
21764         * MODULES.html.sh (File system functions): Mention it.
21765         * doc/posix-functions/symlink.texi (symlink): Likewise.
21766         * modules/symlink-tests: New test.
21767         * tests/test-symlink.c: Likewise.
21768
21769 2009-09-23  Bruno Haible  <bruno@clisp.org>
21770
21771         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
21772         when needed.
21773         Test case: gnulib-tool --import --with-tests atexit inttypes.
21774         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
21775
21776 2009-09-23  Bruno Haible  <bruno@clisp.org>
21777
21778         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
21779         subcommand, not in a subshell.
21780
21781 2009-09-22  Eric Blake  <ebb9@byu.net>
21782
21783         unistd: sort replacement declarations
21784         * lib/unistd.in.h: Sort declarations.
21785
21786         open, openat: minor optimization
21787         * lib/open.c (open): If open succeeded, len is non-zero.
21788         * lib/openat.c (rpl_openat): Likewise.
21789
21790         link-follow: ensure correct result
21791         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
21792         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
21793         distinguish between possible failures.
21794
21795 2009-09-21  Eric Blake  <ebb9@byu.net>
21796
21797         fts: avoid compiler warning
21798         * lib/fts.c (dirent_inode_sort_may_be_useful)
21799         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
21800
21801 2009-09-19  Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/progreloc.c (canonicalize_file_name): New declaration.
21804
21805 2009-09-19  Eric Blake  <ebb9@byu.net>
21806
21807         link: fix quoting
21808         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
21809
21810         openat: fix openat bugs on Solaris 9
21811         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
21812         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
21813         * modules/openat (Depends-on): Add open.
21814         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
21815         * modules/fcntl-h (Makefile.am): Substitute it.
21816         * lib/fcntl.in.h (openat): Declare replacement.
21817         * doc/posix-functions/openat.texi (openat): Document this.
21818
21819         openat: move fstatat and unlinkat into correct files
21820         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
21821         compiled.
21822         * lib/openat.c (fstatat, unlinkat): Move...
21823         * lib/fstatat.c (fstatat): ...into correct files.
21824         * lib/unlinkat.c (unlinkat): Likewise.
21825
21826         openat: fix unlinkat bugs on Solaris 9
21827         * lib/unlinkat.c (unlinkat): New file.
21828         * modules/openat (Depends-on): Add unlink.
21829         (Files): Distribute it.
21830         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
21831         trailing slash behavior is broken.
21832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21833         * modules/unistd (Makefile.am): Substitute it.
21834         * lib/unistd.in.h (unlinkat): Declare replacement.
21835         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
21836
21837         openat: fix fstatat bugs on Solaris 9
21838         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
21839         stat.
21840         * doc/posix-functions/fstatat.texi (fstatat): Document this.
21841
21842         test-unlinkat: enhance test, to expose Solaris 9 bug
21843         * tests/test-unlink.c (main): Factor guts...
21844         * tests/test-unlink.h (test_rmdir_func): ...into new file.
21845         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
21846         * tests/test-rmdir.c (main): Adjust caller.
21847         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
21848         (unlinker): New helper function.
21849         (rmdirat): Enhance check.
21850         * modules/rmdir-tests (Depends-on): Add stdbool.
21851         * modules/unlink-tests (Depends-on): Likewise.
21852         (Files): Add test-unlink.h.
21853         * modules/openat-tests (Files): Likewise.
21854         (Depends-on): Add unlinkdir.
21855
21856         test-fstatat: new test, to expose Solaris 9 bugs
21857         * tests/test-stat.c (main): Factor guts...
21858         * tests/test-stat.h (test_stat_func): ...into new file.
21859         * tests/test-lstat.c (main): Factor guts...
21860         * tests/test-lstat.h (test_lstat_func): ...into new file.
21861         * tests/test-fstatat.c: New file.
21862         * modules/stat-tests (Files): Add test-stat.h.
21863         * modules/lstat-tests (Files): Add test-lstat.h.
21864         (Depends-on): Add stdbool.
21865         * modules/openat-tests (Depends-on): Add pathmax.
21866         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
21867         (Makefile.am): Run new test.
21868
21869         remove: new module, for mingw and Solaris 9 bugs
21870         * modules/remove: New file.
21871         * lib/remove.c: Likewise.
21872         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
21873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
21874         * modules/stdio (Makefile.am): Use them.
21875         * lib/stdio.in.h (remove): Declare replacement.
21876         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21877         * doc/posix-functions/remove.texi (remove): Likewise.
21878         * modules/remove-tests: New test.
21879         * tests/test-remove.c: Likewise.
21880
21881         unlink: new module, for Solaris 9 bug
21882         * modules/unlink: New file.
21883         * lib/unlink.c: Likewise.
21884         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21886         * modules/unistd (Makefile.am): Use them.
21887         * lib/unistd.in.h (stat): Declare replacement.
21888         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21889         * doc/posix-functions/unlink.texi (unlink): Likewise.
21890         * modules/unlink-tests: New test.
21891         * tests/test-unlink.c: Likewise.
21892
21893         lstat: fix Solaris 9 bug
21894         * lib/lstat.c (lstat): Also check for trailing slash on
21895         non-symlink, non-directories.  Use stat module to simplify logic.
21896         * doc/posix-functions/lstat.texi (lstat): Document it.
21897         * modules/lstat-tests (Depends-on): Add errno, same-inode.
21898         (configure.ac): Check for symlink.
21899         * tests/test-lstat.c (main): Add more tests.
21900
21901         stat: add as dependency to other modules
21902         * modules/chown (Depends-on): Add stat.
21903         * modules/euidaccess (Depends-on): Likewise.
21904         * modules/fchdir (Depends-on): Likewise.
21905         * modules/isdir (Depends-on): Likewise.
21906         * modules/link (Depends-on): Likewise.
21907         * modules/lstat (Depends-on): Likewise.
21908         * modules/mkdir-p (Depends-on): Likewise.
21909         * modules/modechange (Depends-on): Likewise.
21910         * modules/open (Depends-on): Likewise.
21911         * modules/readlink (Depends-on): Likewise.
21912         * modules/same (Depends-on): Likewise.
21913
21914         stat: fix Solaris 9 bug
21915         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
21916         slash.
21917         * lib/stat.c (rpl_stat): Work around it.
21918         * doc/posix-functions/stat.texi (stat): Update documentation.
21919
21920         stat: new module, for mingw bug
21921         * modules/stat: New file.
21922         * lib/stat.c: Likewise.
21923         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21925         * modules/sys_stat (Makefile.am): Use them.
21926         * lib/sys_stat.in.h (stat): Declare replacement.
21927         * lib/openat.c (fstatat): Deal with lstat and stat being function
21928         macros.
21929         * modules/openat (Depends-on): Add inline.
21930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21931         * doc/posix-functions/stat.texi (stat): Likewise.
21932         * modules/stat-tests: New test.
21933         * tests/test-stat.c: Likewise.
21934
21935 2009-09-19  Jim Meyering  <meyering@redhat.com>
21936
21937         syntax-check: detect unnecessary inclusion of canonicalize.h
21938         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
21939
21940 2009-09-19  Eric Blake  <ebb9@byu.net>
21941
21942         canonicalize-lgpl: adjust clients to use correct header
21943         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21944         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
21945         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
21946         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
21947         * lib/progreloc.c (includes): Likewise.
21948
21949 2009-09-19  Jim Meyering  <meyering@redhat.com>
21950
21951         test-posixtm.c: correct a comment
21952         * tests/test-posixtm.c: Correct first-line comment.
21953         Spotted by Eric Blake.
21954
21955 2009-09-16  Jim Meyering  <meyering@redhat.com>
21956
21957         posixtm-tests: make T const-correct; add a test case
21958         * tests/test-posixtm.c (T): Declare const.
21959         Add a test for -(2^31+1).
21960         Remove useless can-succeed-only-in-2002 test.
21961
21962         posixtm-tests: adjust the sole failing test
21963         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
21964         expected output matches what mktime now produces.  Cross-checked via
21965         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
21966
21967         posixtm: move #ifdef'd tests into a new module
21968         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
21969         * tests/test-posixtm.c: ... this new file.
21970         * modules/posixtm-tests: New module.
21971
21972 2009-09-19  Eric Blake  <ebb9@byu.net>
21973
21974         openat: simplify use of at-func.c
21975         * lib/at-func.c (includes): Include prerequisites here, to
21976         simplify requirements on client files.
21977         * lib/openat-priv.h: Add double-inclusion guard.
21978         * lib/faccessat.c (includes): Simplify.
21979         * lib/fchmodat.c (includes): Likewise.
21980         * lib/fchownat.c (includes): Likewise.
21981         * lib/mkdirat.c (includes): Likewise.
21982         * lib/mkfifoat.c (includes): Likewise.
21983         * lib/symlinkat.c (includes): Likewise.
21984
21985         openat: allow return of fd 0
21986         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
21987         * modules/save-cwd (Depends-on): Replace fcntl-safer with
21988         unistd-safer.
21989         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
21990         <fcntl.h>; this module does not leak fds.
21991         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
21992         must be allowed to return 0, leaving openat_safer to add the
21993         safety.
21994         (openat_permissive): Avoid writing to just-opened fd 2 if
21995         restoring the current directory fails.
21996         * lib/openat-die.c (openat_restore_fail): Add comment.
21997         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
21998         (save_cwd): Guarantee safe fd, but without use of open_safer.
21999         * tests/test-openat.c: New test.
22000         * modules/openat-tests (Files, Makefile.am): Distribute and build
22001         new file.
22002
22003         relocatable-prog-wrapper: fix build
22004         * modules/relocatable-prog-wrapper (Files): Update name of
22005         canonicalize m4 file, broken on 2009-09-17.
22006         Reported by emad hajjar <aleppos@hotmail.com>.
22007
22008 2009-09-19  Bruno Haible  <bruno@clisp.org>
22009
22010         * lib/safe-alloc.h: Use the standard header with GPL copyright.
22011         * lib/safe-alloc.c: Likewise.
22012         Reported by Ian Beckwith <ianb@erislabs.net>.
22013
22014 2009-09-18  Bruno Haible  <bruno@clisp.org>
22015
22016         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
22017         Reported by <erobles@sensacd.com.mx>.
22018
22019 2009-09-17  Eric Blake  <ebb9@byu.net>
22020
22021         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
22022         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
22023         slashes when checking if last component is missing.
22024         * tests/test-canonicalize.c (main): Test this.
22025
22026         canonicalize, canonicalize-lgpl: honor // if distinct from /
22027         * modules/canonicalize (Files): Add double-slash-root.m4.
22028         * modules/canonicalize-lgpl (Files): Likewise.
22029         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22030         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
22031         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
22032         fallback definition.
22033         (canonicalize_filename_mode): Use it to protect //.
22034         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
22035         (__realpath): Likewise.
22036         * tests/test-canonicalize.c (main): Test this.
22037         * tests/test-canonicalize-lgpl.c (main): Likewise.
22038         * modules/canonicalize-tests (Depends-on): Add same-inode.
22039         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
22040
22041         canonicalize-lgpl: fix glibc bug with trailing slash
22042         * m4/canonicalize-lgpl.m4: Move contents...
22043         * m4/canonicalize.m4: ...here.
22044         (gl_CANONICALIZE_LGPL): Factor realpath check...
22045         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
22046         glibc 2.3.5 bug, fixed 2005-04-27.
22047         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
22048         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
22049         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
22050         * modules/canonicalize-lgpl (Files): Manage file rename.
22051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22052         * modules/stdlib (Makefile.am): Substitute witness.
22053         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
22054         is needed.
22055         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
22056         replacement is required.
22057         * lib/canonicalize.c (canonicalize_file_name): Likewise.
22058         * doc/glibc-functions/canonicalize_file_name.texi
22059         (canonicalize_file_name): Document this.
22060         * doc/posix-functions/realpath.texi (realpath): Likewise.
22061
22062         canonicalize-lgpl: reject non-directory with trailing slash
22063         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
22064         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
22065         catches failures in glibc 2.3.5.
22066         * tests/test-canonicalize.c (main): Likewise.
22067
22068         canonicalize-lgpl: use native realpath if it works
22069         * lib/canonicalize-lgpl.c (realpath): Guard with
22070         FUNC_REALPATH_WORKS.
22071         * lib/stdlib.in.h (realpath): Make declaration optional based on
22072         HAVE_REALPATH.
22073         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
22074         native realpath works.
22075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
22076         * modules/stdlib (Makefile.am): Substitute witness.
22077
22078         canonicalize, canonicalize-lgpl: use <stdlib.h>
22079         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
22080         (Include): Mention <stdlib.h>.
22081         (configure.ac): Mention functions we provide.
22082         * modules/canonicalize (configure.ac): Likewise.
22083         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
22084         realpath if canonicalize_file_name is missing.
22085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
22086         * modules/stdlib (Makefile.am): Substitute witnesses.
22087         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
22088         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
22089         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
22090         * NEWS: Document this.
22091         * doc/glibc-functions/canonicalize_file_name.texi
22092         (canonicalize_file_name): Likewise.
22093         * doc/posix-functions/realpath.texi (realpath): Likewise.
22094         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
22095
22096         test-canonicalize: consolidate into single C program
22097         * tests/test-canonicalize.sh: Delete; move setup into...
22098         * tests/test-canonicalize.c (main): ...the program, making it
22099         easier to run in debugger.  Add some tests.
22100         * modules/canonicalize-tests (Files): Remove unused file.
22101         (Depends-on): Add progname.
22102         (configure.ac, Makefile.am): Simplify.
22103
22104         test-canonicalize-lgpl: consolidate into single C program
22105         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
22106         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
22107         easier to run in debugger.  Add some tests.
22108         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
22109         (configure.ac, Makefile.am): Simplify.
22110
22111         canonicalize: avoid resolvepath
22112         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
22113         unnecessary checks.
22114         * lib/canonicalize.c (includes): Simplify.
22115         (canonicalize_file_name): Drop resolvepath implementation.
22116         * modules/canonicalize (Depends-on): Drop filenamecat.
22117
22118         canonicalize: don't lose errno
22119         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
22120         over calls to free.
22121
22122         canonicalize: simplify errno handling
22123         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
22124         assignment.
22125
22126         canonicalize, canonicalize-lgpl: update module dependencies
22127         * modules/canonicalize (Depends-on): Add extensions, lstat,
22128         pathmax, stdlib.
22129         (Files): Drop pathmax.h.
22130         (configure.ac): Adjust macro name.
22131         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
22132         lstat, stdlib, sys_stat.
22133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
22134         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
22135         extensions.
22136         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
22137         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
22138         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
22139         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
22140         declaration, if available.
22141         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
22142         we can rely on the readlink module.
22143         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
22144         (includes): Use <unistd.h> unconditionally.
22145
22146 2009-09-17  Eric Blake  <ebb9@byu.net>
22147
22148         maint: make Include sections of modules consistent
22149         * modules/alloca: Use only header name; no need to list #include.
22150         * modules/alloca-opt: Likewise.
22151         * modules/arpa_inet: Likewise.
22152         * modules/canon-host: Likewise.
22153         * modules/configmake: Likewise.
22154         * modules/dirent: Likewise.
22155         * modules/eealloc: Likewise.
22156         * modules/environ: Likewise.
22157         * modules/fchdir: Likewise.
22158         * modules/fcntl: Likewise.
22159         * modules/fcntl-h: Likewise.
22160         * modules/gethrxtime: Likewise.
22161         * modules/gettime: Likewise.
22162         * modules/ignore-value: Likewise.
22163         * modules/inet_ntop: Likewise.
22164         * modules/inet_pton: Likewise.
22165         * modules/inttypes: Likewise.
22166         * modules/isnand-nolibm: Likewise.
22167         * modules/isnanf-nolibm: Likewise.
22168         * modules/mbchar: Likewise.
22169         * modules/mbfile: Likewise.
22170         * modules/mbiter: Likewise.
22171         * modules/mbuiter: Likewise.
22172         * modules/netdb: Likewise.
22173         * modules/netinet_in: Likewise.
22174         * modules/nproc: Likewise.
22175         * modules/pagealign_alloc: Likewise.
22176         * modules/poll: Likewise.
22177         * modules/printf-frexp: Likewise.
22178         * modules/pthread: Likewise.
22179         * modules/putenv: Likewise.
22180         * modules/random_r: Likewise.
22181         * modules/relocatable-prog: Likewise.
22182         * modules/search: Likewise.
22183         * modules/select: Likewise.
22184         * modules/selinux-h: Likewise.
22185         * modules/settime: Likewise.
22186         * modules/signal: Likewise.
22187         * modules/size_max: Likewise.
22188         * modules/socklen: Likewise.
22189         * modules/ssize_t: Likewise.
22190         * modules/stdarg: Likewise.
22191         * modules/stdbool: Likewise.
22192         * modules/stddef: Likewise.
22193         * modules/stdint: Likewise.
22194         * modules/stdio: Likewise.
22195         * modules/stdlib: Likewise.
22196         * modules/string: Likewise.
22197         * modules/strings: Likewise.
22198         * modules/sys_file: Likewise.
22199         * modules/sys_ioctl: Likewise.
22200         * modules/sys_select: Likewise.
22201         * modules/sys_socket: Likewise.
22202         * modules/sys_stat: Likewise.
22203         * modules/sys_time: Likewise.
22204         * modules/sys_times: Likewise.
22205         * modules/sys_utsname: Likewise.
22206         * modules/sys_wait: Likewise.
22207         * modules/sysexits: Likewise.
22208         * modules/time: Likewise.
22209         * modules/times: Likewise.
22210         * modules/tmpfile: Likewise.
22211         * modules/trim: Likewise.
22212         * modules/unistd: Likewise.
22213         * modules/wchar: Likewise.
22214         * modules/wctype: Likewise.
22215
22216 2009-09-17  Bruno Haible  <bruno@clisp.org>
22217
22218         Make getdate.y compile on QNX and NetBSD 5 / i386.
22219         * m4/getdate.m4 (gl_GETDATE): Conditionally define
22220         TIME_T_FITS_IN_LONG_INT.
22221         * lib/getdate.y (long_time_t): New type.
22222         (relative_time): Change type of 'seconds' field to long_time_t.
22223         (get_date): Update types of local variables. Check against overflow
22224         during conversion from long_time_t to time_t.
22225         Reported by Matt Kraai <kraai@ftbfs.org>
22226         and Hasso Tepper <hasso@netbsd.org>.
22227
22228 2009-09-17  Bruno Haible  <bruno@clisp.org>
22229
22230         * modules/COPYING: Update copyright years.
22231         * modules/README: Likeiwse.
22232         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
22233         Reported by Ian Beckwith <ianb@erislabs.net>.
22234
22235 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22236
22237         * users.txt: Update references for gnuit package.
22238
22239 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
22240
22241         * m4/getdelim.m4: Fix typo in copyright line.
22242
22243 2009-09-17  Bruno Haible  <bruno@clisp.org>
22244
22245         * lib/atoll.c: Use the standard header with GPL copyright.
22246         * lib/argz.in.h: Likewise.
22247         * lib/glob.c: Likewise.
22248         * lib/glob-libc.h: Likewise.
22249         * lib/random_r.c: Likewise.
22250         * lib/siglist.h: Likewise.
22251         * lib/strsignal.c: Likewise.
22252         Reported by Ian Beckwith <ianb@erislabs.net>.
22253
22254 2009-09-17  Eric Blake  <ebb9@byu.net>
22255
22256         rmdir: ensure correct dependency order
22257         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
22258
22259 2009-09-17  Bruno Haible  <bruno@clisp.org>
22260
22261         Disable assertion that fails on NetBSD 5 / i386.
22262         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
22263         Reported by Sam Steingold <sds@gnu.org>
22264         and Hasso Tepper <hasso@netbsd.org>.
22265
22266 2009-09-16  Eric Blake  <ebb9@byu.net>
22267
22268         unlinkdir: port to mingw
22269         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
22270         on which no one can unlink a directory.
22271
22272         stdlib: sort witness names
22273         * modules/stdlib (Makefile.am): Sort replacements.
22274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22275         * lib/stdlib.in.h: Likewise.
22276
22277         parse-duration-tests: avoid link failure
22278         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
22279         LIBINTL.
22280         Reported by Tom G. Christensen.
22281
22282         openat-tests: ensure unlinkat behaves like rmdir
22283         * tests/test-rmdir.c (main): Factor guts...
22284         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
22285         * modules/rmdir-tests (Files): Ship new file.
22286         * modules/openat-tests: New test.
22287         * tests/test-unlinkat.c: Likewise.
22288
22289         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
22290         * modules/rmdir-errno (Status, Notice): Now obsolete.
22291
22292         rmdir: work around cygwin 1.5.x and mingw bugs
22293         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
22294         * lib/rmdir.c (rmdir): Work around it.
22295         * modules/rmdir (Status, Notice): No longer obsolete.
22296         (Files): Add dos.m4.
22297         (Depends-on): Add unistd.
22298         (configure.ac): Set witnesses.
22299         (License): Relax to LGPLv2+.
22300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
22301         * modules/unistd (Makefile.am): Substitute witnesses.
22302         * lib/unistd.in.h (rmdir): Declare replacement.
22303         * doc/posix-functions/rmdir.texi (rmdir): Document this.
22304         * modules/rmdir-tests: New tests.
22305         * tests/test-rmdir.c: Likewise.
22306
22307 2009-09-15  Eric Blake  <ebb9@byu.net>
22308
22309         fchdir: improve use of replacement functions
22310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
22311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
22312         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
22313         REPLACE_CLOSEDIR.
22314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
22315         * modules/sys_stat (Makefile.am): Substitute correct witness.
22316         * modules/dirent (Makefile.am): Likewise.
22317         * modules/unistd (Makefile.am): Likewise.
22318         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
22319         * lib/unistd.in.h (dup): Likewise.
22320         * lib/sys_stat.in.h (fstat): Likewise.
22321
22322         maint: ignore gnulib-tool temp files
22323         * .gitignore: Ignore files created during gnulib-tool --test.
22324
22325 2009-09-13  Jim Meyering  <meyering@redhat.com>
22326
22327         posixtm: don't reject a time that specify "60" as the number of seconds
22328         * lib/posixtm.c (posixtime): The code to reject invalid dates
22329         would also reject a time specified with the .60 suffix.
22330         But POSIX allows that, in order to accommodate leap seconds.
22331         So don't reject it.
22332         (main): Adjust tests accordingly.
22333         * modules/posixtm (Depends-on): Add stpcpy.
22334
22335 2009-09-11  Jim Meyering  <meyering@redhat.com>
22336
22337         announce-gen: include [$release_type] in emitted Subject:
22338         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
22339         e.g., [stable] in the emitted Subject: line.
22340
22341 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22342
22343         Remove obsolete macros from several modules.
22344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
22345         obsolete Autoconf macros with their modern counterparts.
22346         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
22347         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
22348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22349         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
22350         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
22351         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22353         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22354         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22355         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
22356         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22358         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
22359         * m4/sockets.m4 (gl_SOCKETS): Likewise.
22360         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
22361         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
22362         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22363         * m4/time_r.m4 (gl_TIME_R): Likewise.
22364         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22365         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
22366         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22367
22368         Fix copyright header in build-aux scripts.
22369         * build-aux/git-version-gen: Fix copyright header to match GPLv3
22370         recommendation.
22371         * build-aux/ncftpput-ftp: Likewise.
22372         * build-aux/update-copyright: Likewise.
22373
22374 2009-09-09  Eric Blake  <ebb9@byu.net>
22375
22376         test-link: allow Linux choice of errno
22377         * tests/test-link.c (main): Relax test for alternate error.
22378
22379         strndup: fix improper m4 caching
22380         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
22381         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
22382         (gl_PREREQ_STRNDUP): Delete.
22383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
22384         * modules/string (Makefile.am): Substitute it.
22385         * lib/string.in.h (strndup): Modernize prototype.
22386
22387         getcwd: port to mingw
22388         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
22389         different from the POSIX assumptions made throughout the getcwd
22390         module; fortunately, the mingw getcwd does not need replacement.
22391         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
22392         * modules/getcwd-tests: New test.
22393         * tests/test-getcwd.c: Likewise.
22394
22395         link: fix platform bugs
22396         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
22397         * lib/link.c (link): Work around them.  Fix related mingw bug.
22398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
22399         * modules/unistd (Makefile.am): Substitute it.
22400         * lib/unistd.in.h (link): Declare replacement.
22401         * doc/posix-functions/link.texi (link): Document this.
22402         * modules/link (Depends-on): Add strdup-posix, sys_stat.
22403
22404         test-link: consolidate into single C program, test more cases
22405         * tests/test-link.sh: Delete.
22406         * tests/test-link.c: Test more error conditions.  Exposes bugs on
22407         at least Cygwin and Solaris.
22408         * modules/link-tests (Files): Remove unused file.
22409         (Depends-on): Add errno, sys_stat.
22410         (Makefile.am): Simplify.
22411
22412 2009-09-08  Bruno Haible  <bruno@clisp.org>
22413
22414         Work around towlower, towupper bug on mingw.
22415         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
22416         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
22417         * doc/posix-functions/towlower.texi: Mention the mingw bug.
22418         * doc/posix-functions/towupper.texi: Likewise.
22419         Reported by Eric Blake.
22420
22421 2009-09-08  Jim Meyering  <meyering@redhat.com>
22422
22423         build: don't try to run autoheader if we don't use it
22424         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
22425         is not used in configure.ac.
22426
22427 2009-09-08  Eric Blake  <ebb9@byu.net>
22428
22429         euidaccess: fix compilation error
22430         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
22431
22432         rawmemchr: relax license
22433         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
22434         okay.
22435         Reported by Jim Meyering.
22436
22437         mkfifoat: new module
22438         * modules/mkfifoat: New file.
22439         * lib/mkfifoat.c: Likewise.
22440         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
22441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22442         * modules/sys_stat (Makefile.am): Use them.
22443         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
22444         * MODULES.html.sh (File system functions): Mention module.
22445         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22446         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22447         * modules/mkfifoat-tests: New test.
22448         * tests/test-mkfifoat.c: Likewise.
22449
22450         strchrnul: relax license
22451         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
22452         okay.
22453         Reported by Jim Meyering.
22454
22455 2009-09-08  Eric Blake  <ebb9@byu.net>
22456
22457         fstatat: fix compilation on Solaris
22458         * lib/fstatat.c (includes): Add fcntl.h.
22459         Reported by Pádraig Brady.
22460
22461 2009-09-07  Eric Blake  <ebb9@byu.net>
22462
22463         rename: modernize replacement
22464         * modules/rename (Depends-on): Add stdio.
22465         (configure.ac): Declare witness.
22466         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
22467         stdio take care of replacement.
22468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22469         * modules/stdio (Makefile.am): Substitute them.
22470         * lib/stdio.in.h (rename): Declare replacement.
22471         * lib/rename.c (includes): Allow cross-compilation to non-windows
22472         machines.
22473         * doc/posix-functions/rename.texi (rename): Improve
22474         documentation.
22475
22476         stdio: sort witness names
22477         * modules/stdio (Makefile.am): Sort replacements.
22478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22479         * lib/stdio.in.h: Likewise.
22480
22481         getcwd: minor cleanups
22482         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
22483         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
22484
22485         openat: provide more convenience names
22486         * modules/faccessat (configure.ac): Add C witness.
22487         * lib/unistd.in.h (readlinkat): Fix typo.
22488         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
22489         convenience wrappers.
22490         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
22491         wrappers in syntax checks.
22492
22493 2009-09-06  Eric Blake  <ebb9@byu.net>
22494
22495         doc: fix comments in recent patches
22496         * lib/faccessat.c: Mention correct function.
22497         * lib/fchmodat.c: Likewise.
22498         * lib/fchownat.c: Likewise.
22499         * lib/symlinkat.c: Likewise.
22500         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
22501         constants.
22502
22503         faccessat, symlinkat: continue cleanup of previous patch
22504         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
22505         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22506         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
22507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
22508         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
22509         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
22510         set.
22511
22512 2009-09-06  Bruno Haible  <bruno@clisp.org>
22513
22514         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
22515         (fstatat): Declare if GNULIB_FSTATAT is set.
22516         (mkdirat): Declare if GNULIB_MKDIRAT is set.
22517         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
22518         (unlinkat): Declare if GNULIB_UNLINKAT is set.
22519         * modules/fcntl-h (Files): Remove m4/openat.m4.
22520         * modules/sys_stat (Files): Remove m4/openat.m4.
22521         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
22522         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
22523         * modules/unistd (Files): Remove m4/openat.m4.
22524         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
22525         GNULIB_OPENAT.
22526         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
22527         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
22528         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22529         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
22530         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
22531         gl_OPENAT_DEFAULTS.
22532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
22533         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
22534         Don't require gl_OPENAT_DEFAULTS.
22535         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
22536         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
22537         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
22538         (gl_OPENAT_DEFAULTS): Remove macro.
22539
22540 2009-09-06  Bruno Haible  <bruno@clisp.org>
22541
22542         * modules/openat (configure.ac): Remove unneeded witness.
22543
22544 2009-09-06  Bruno Haible  <bruno@clisp.org>
22545
22546         Set errno to ENOSYS when a function is entirely unsupported.
22547         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
22548         EOPNOTSUPP.
22549         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22550         * modules/chown (Depends-on): Remove errno.
22551
22552 2009-09-06  Bruno Haible  <bruno@clisp.org>
22553
22554         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
22555
22556 2009-09-06  Bruno Haible  <bruno@clisp.org>
22557
22558         * lib/sys_stat.in.h: Fix preprocessor command indentation.
22559
22560 2009-09-06  Ben Pfaff  <blp@gnu.org>
22561             Bruno Haible  <bruno@clisp.org>
22562
22563         Work around a glibc bug in strtok_r.
22564         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
22565         Undefine if UNDEFINE_STRTOK_R is set.
22566         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
22567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22568         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
22569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
22570         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
22571         UNDEFINE_STRTOK_R.
22572         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
22573
22574 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22575
22576         exclude: minor fix
22577         * lib/exclude.c: Include wctype.h
22578
22579 2009-09-06  Akim Demaille  <demaille@gostai.com>
22580
22581         bootstrap: improve error message
22582         * build-aux/bootstrap (find_tool): Upon failure, report the list
22583         of candidates.
22584         Honor the initial value of the envvar.
22585
22586 2009-09-05  Eric Blake  <ebb9@byu.net>
22587
22588         symlinkat: new module
22589         * modules/symlinkat: New file.
22590         * lib/symlinkat.c: Likewise.
22591         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
22593         * modules/unistd (Makefile.am): Use them.
22594         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
22595         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
22596         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
22597         * MODULES.html.sh (File system functions): Mention module.
22598         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22599         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22600         * modules/symlinkat-tests: New test.
22601         * tests/test-symlinkat.c: Likewise.
22602
22603         test-openat-safer: add more checks
22604         * tests/test-openat-safer.c (main): Check more code paths.
22605
22606 2009-09-05  Jim Meyering  <meyering@redhat.com>
22607
22608         syntax-check: detect unnecessary inclusion of openat.h
22609         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
22610
22611 2009-09-05  Bruno Haible  <bruno@clisp.org>
22612
22613         Support towlower, towupper.
22614         * doc/posix-functions/towlower.texi: Mention module wctype.
22615         * doc/posix-functions/towupper.texi: Likewise.
22616         * lib/wctype.in.h (towlower, towupper): New functions.
22617         * tests/test-wctype.c: Include stdio.h, stdlib.h.
22618         (ASSERT): New macro.
22619         (e): New variable.
22620         (main): Test also towlower, towupper. Test WEOF argument.
22621         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22622
22623 2009-09-05  Bruno Haible  <bruno@clisp.org>
22624
22625         Fix conversion behaviour when the input is invalid.
22626         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
22627         mark occurring in first pass of indirect conversion.
22628         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
22629         input.
22630         Found by clang's static analyzer.
22631
22632 2009-09-05  Bruno Haible  <bruno@clisp.org>
22633
22634         * tests/test-striconveh.c (main): Test indirect conversion on platforms
22635         where direct conversion is possible.
22636
22637 2009-09-04  Eric Blake  <ebb9@byu.net>
22638
22639         openat: fail with ENOENT on empty name
22640         * lib/openat-proc.c (openat_proc_name): Special-case the empty
22641         buffer.
22642
22643         link-follow: fix logic bug in prior patch
22644         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
22645         reversed sense of yes and no in prior patch.  Avoid confusing
22646         compilation failure with desired semantics.
22647
22648         link-follow: accomodate mingw and cross-compilation
22649         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
22650         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
22651         cross-compilation results to -1, to make linkat easier to
22652         implement when cross-compiling.  Trivially support mingw.
22653         * modules/link-follow (configure.ac): Call new name.
22654         * NEWS: Mention this.
22655
22656 2009-09-03  Eric Blake  <ebb9@byu.net>
22657
22658         faccessat: compile replacement
22659         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
22660         needed.
22661
22662         fts: fix compilation error
22663         * lib/fts.c (includes): Re-add "openat.h", for
22664         openat_needs_fchdir.
22665
22666         faccessat: new module
22667         * modules/faccessat: New file.
22668         * lib/faccessat.c: Likewise.
22669         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
22670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22671         * modules/unistd (Makefile.am): Use it.
22672         * lib/unistd.in.h (faccessat): Declare it.
22673         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
22674         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
22675         * MODULES.html.sh (File system functions): Mention it.
22676         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
22677         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22678
22679         euidaccess: prefer POSIX over non-standard implementation
22680         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
22681         * lib/euidaccess.c (euidaccess): Use it if available.
22682
22683         openat: make template easier to use
22684         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
22685         AT_FUNC_F2 to be undefined.
22686         (VALIDATE_FLAG): New macro; use it to reject bad flags.
22687         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
22688         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
22689         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
22690         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
22691         Likewise.
22692         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
22693         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
22694         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
22695         Likewise.
22696
22697         openat: declare in POSIX headers
22698         * NEWS: Mention this.
22699         * modules/openat (configure.ac): Declare witnesses.
22700         (Depends-on): Add fcntl-h, sys_stat, unistd.
22701         (Include): Mention correct headers.
22702         * modules/fcntl-h (Depends-on): Add link-warning.
22703         (Files): Add openat.m4.
22704         (Makefile.am): Substitute witnesses.
22705         * modules/sys_stat (Files, Makefile.am): Likewise.
22706         * modules/unistd (Files, Makefile.am): Likewise.
22707         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
22708         (gl_OPENAT_DEFAULTS): New macro.
22709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
22710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
22711         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
22712         (SYS_STAT_H): Remove unused variable.
22713         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
22714         * lib/fcntl--.h (includes): Remove unneeded header.
22715         * lib/openat-safer.c (includes): Likewise.
22716         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
22717         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
22718         appropriate headers.
22719         (__OPENAT_PREFIX): Delete.
22720         * lib/fcntl.in.h (openat): Provide declaration.
22721         (AT_FDCWD): Fix Solaris bug.
22722         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
22723         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
22724         * lib/fchmodat.c (includes):  Adjust to find declaration.
22725         * lib/fchownat.c (includes): Likewise.
22726         * lib/mkdirat.c (includes): Likewise.
22727         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
22728         still visible.
22729
22730 2009-09-02  Eric Blake  <ebb9@byu.net>
22731
22732         errno: use consistently
22733         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
22734         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
22735         * lib/canonicalize.c (ELOOP): Likewise.
22736         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
22737         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
22738         * lib/lchown.c (EOPNOTSUPP): Likewise.
22739         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
22740         * lib/savewd.c (ESTALE): Likewise.
22741         * lib/settime.c (ENOSYS): Likewise.
22742         * lib/utimens.c (ENOSYS): Likewise.
22743         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
22744         * lib/chdir-safer.c (ELOOP): Likewise.
22745         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
22746         * modules/c-stack (Depends-on): Add errno.
22747         * modules/canonicalize (Depends-on): Likewise.
22748         * modules/chdir-safer (Depends-on): Likewise.
22749         * modules/fdopendir (Depends-on): Likewise.
22750         * modules/inet_ntop (Depends-on): Likewise.
22751         * modules/inet_pton (Depends-on): Likewise.
22752         * modules/lchown (Depends-on): Likewise.
22753         * modules/openat (Depends-on): Likewise.
22754         * modules/savewd (Depends-on): Likewise.
22755         * modules/settime (Depends-on): Likewise.
22756         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
22757
22758         fts: avoid leaking fds
22759         * modules/fts (Depends-on): Add cloexec.
22760         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
22761         flag.
22762
22763         fts: make directory fds more robust
22764         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
22765         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
22766
22767         backupfile, chdir-long, fts, savedir: make safer
22768         * lib/backupfile.c (includes): Use "dirent--.h", since
22769         numbered_backup can write to stderr during readdir.
22770         * lib/savedir.c (includes): Likewise.
22771         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
22772         emulation can write to stderr on failure.
22773         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
22774         * lib/getcwd.c: Document why opendir_safer is unused.
22775         * lib/glob.c: Likewise.
22776         * lib/scandir.c: Likewise.
22777         * lib/openat-proc.c: Likewise, for open_safer.
22778         * modules/backupfile (Depends-on): Add dirent-safer.
22779         * modules/savedir (Depends-on): Likewise.
22780         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
22781         * modules/chdir-long (Depends-on): Add openat-safer.
22782
22783         openat-safer: new module
22784         * modules/openat-safer: New file.
22785         * lib/openat-safer.c: Likewise.
22786         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
22787         * lib/fcntl-safer.h (openat_safer): Declare.
22788         * lib/fcntl--.h (openat): Override.
22789         * MODULES.html.sh (File descriptor based I/O): Mention it.
22790         * lib/openat.h: Add double-inclusion guards.
22791         * lib/openat.c (includes): Only include "fcntl-safer.h", not
22792         "fcntl--.h", so we can implement openat.
22793         * modules/openat-safer-tests: New test.
22794         * tests/test-openat-safer.c: New file.
22795
22796         dirent-safer: new module
22797         * modules/dirent-safer: New file.
22798         * lib/dirent--.h: Likewise.
22799         * lib/dirent-safer.h: Likewise.
22800         * lib/opendir-safer.c: Likewise.
22801         * m4/dirent-safer.m4: Likewise.
22802         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
22803         * modules/dirent-safer-tests: New test.
22804         * tests/test-dirent-safer.c: New file.
22805         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
22806
22807         fdopendir: optimize on mingw
22808         * lib/unistd.in.h (_gl_directory_name): New prototype.
22809         * lib/fchdir.c (_gl_directory_name): Implement it.
22810         (fchdir): Use it to simplify implementation.
22811         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
22812         fchdir, when available, to avoid calling [f]chdir().
22813
22814         fdopendir: split into its own module
22815         * lib/openat.c (fdopendir): Move...
22816         * lib/fdopendir.c: ...into new file.
22817         * modules/fdopendir: New module.
22818         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
22819         * modules/openat (Depends-on): Add fdopendir.
22820         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
22821         fdopendir here.
22822         * modules/savedir (Depends-on): Only need fdopendir, not full
22823         openat.
22824         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
22825         * lib/openat.h (fdopendir): Drop prototype.
22826         * lib/dirent.in.h (fdopendir): Provide prototype.
22827         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
22828         * modules/dirent (Makefile.am): Substitute them.
22829         * MODULES.html.sh (File system functions): Mention it.
22830         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
22831         * modules/fdopendir-tests: New file.
22832         * tests/test-fdopendir.c: Likewise.
22833
22834         fchdir: use more consistent macro convention
22835         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
22836         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
22837         REPLACE_FCHDIR, rather than relying on config.h macros.
22838         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
22839         inside a single make-time REPLACE_FCHDIR block, rather than using
22840         the config.h FCHDIR_REPLACEMENT.
22841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
22842         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
22843         Manage fstat replacement.
22844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
22845         REPLACE_FCHDIR.
22846         * modules/sys_stat (Files): Add m4/unistd_h.m4.
22847         (Makefile.am): Substitute REPLACE_FCHDIR.
22848         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
22849         FCHDIR_REPLACEMENT.
22850         * lib/dup-safer.c (dup_safer): Likewise.
22851         * lib/dup2.c (rpl_dup2): Likewise.
22852         * lib/dup3.c (rpl_dup3): Likewise.
22853         * lib/open.c (rpl_open): Likewise.
22854
22855         fchdir: simplify error handling, and support dup3
22856         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
22857         stdbool, malloc-posix, realloc-posix.
22858         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
22859         (ensure_dirs_slot): Return false on allocation failure.
22860         (rpl_dup2): Delete.
22861         (_gl_register_dup): New function.
22862         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
22863         (_gl_register_fd): Close fd on allocation failure.
22864         * lib/fcntl.in.h (_gl_register_fd): Update signature.
22865         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
22866         prototype.
22867         (rpl_dup2_fchdir): Delete prototype.
22868         * lib/open.c (open): Update caller.
22869         * lib/dup2.c (dup2): Track fchdir metadata.
22870         * lib/dup3.c (dup3): Likewise.
22871         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
22872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
22873
22874 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22875
22876         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
22877         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
22878         don't pass arguments to AC_OUTPUT.
22879
22880 2009-09-02  Bruno Haible  <bruno@clisp.org>
22881
22882         * modules/mkdtemp (License): Relicense under LGPLv2+.
22883         Reported by Paolo Bonzini.
22884
22885 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22886
22887         Replace uses of obsolete autoconf macros in Jim's modules.
22888         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
22889         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
22890         can evoke a warning from autoconf when run with -Wobsolete
22891         enabled.  They were declared obsolete for good reasons (see
22892         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
22893         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
22894         should not continue using the deprecated macros.
22895         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
22896         obsolete Autoconf macros with modern counterparts.
22897         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22898         * m4/dos.m4 (gl_AC_DOS): Likewise.
22899         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
22900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22901         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
22902         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
22903         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
22904         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22905         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
22906         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
22907         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
22908         Likewise.
22909         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22910         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22911         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
22912         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
22913         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
22914         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
22915
22916 2009-09-01  Eric Blake  <ebb9@byu.net>
22917
22918         fchdir: fix off-by-one bug in previous patch
22919         * lib/fchdir.c (rpl_fstat): Use correct bounds.
22920         (_gl_unregister_fd): Delete useless if.
22921
22922 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
22923
22924         maint.mk: sort the list of syntax-check rules
22925         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
22926         easier to get a sense of progress when the rules are run sequentially
22927         and take a long time.
22928
22929 2009-09-01  Simon Josefsson  <simon@josefsson.org>
22930
22931         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
22932         * modules/netinet_in: Likewise.
22933         * modules/sys_file: Likewise.
22934         * modules/sys_ioctl: Likewise.
22935         * modules/sys_select: Likewise.
22936         * modules/sys_socket: Likewise.
22937         * modules/sys_stat: Likewise.
22938         * modules/sys_time: Likewise.
22939         * modules/sys_times: Likewise.
22940         * modules/sys_utsname: Likewise.
22941         * modules/sys_wait: Likewise.
22942
22943 2009-09-01  Jim Meyering  <meyering@redhat.com>
22944
22945         fts: help ensure that return values are not ignored
22946         * lib/fts_.h (__GNUC_PREREQ): Define.
22947         (__attribute_warn_unused_result__): Define.
22948         (fts_children, fts_close, fts_open, fts_read): Declare with
22949         __attribute_warn_unused_result__.
22950
22951         fts: fts_close now fails also when closing a dir file descriptor fails
22952         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
22953         and propagate to caller, along with errno.
22954
22955         announce-gen: correct formatting in --help output
22956         * build-aux/announce-gen (usage): Move the one-line description in
22957         --help output "up", to where it belongs, just after Usage:.
22958
22959 2009-08-31  Eric Blake  <ebb9@byu.net>
22960
22961         fchdir: port to mingw
22962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
22963         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
22964         opened, then use a substitute.
22965         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
22966         replacement.
22967         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
22968         (_gl_register_fd): No need to check stat if open already filters
22969         all directories.
22970         (fchdir): Fix error condition to match POSIX.
22971         * modules/fchdir (Depends-on): Add sys_stat.
22972         * doc/posix-functions/open.texi (open): Document the limitation.
22973         * modules/fchdir-tests: New file.
22974         * tests/test-fchdir.c: Likewise.
22975
22976         canonicalize: allow cross-testing from cygwin to mingw
22977         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
22978         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
22979         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
22980         Likewise.
22981         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
22982         target does not support symlinks.
22983         * tests/test-canonicalize-lgpl.sh: Likewise.
22984
22985         chown: avoid compilation warning on mingw
22986         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
22987         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
22988         mingw.
22989         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22990         * modules/chown (Depends-on): Add errno.
22991
22992 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22993
22994         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
22995         command.
22996
22997 2009-08-31  Jim Meyering  <meyering@redhat.com>
22998
22999         canonicalize: remove useless initialization
23000         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
23001         initialization of local, "end".
23002
23003 2009-08-30  Bruno Haible  <bruno@clisp.org>
23004
23005         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
23006         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
23007         ENOSYS.
23008
23009 2009-08-30  Bruno Haible  <bruno@clisp.org>
23010
23011         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
23012         /usr/xpg4/bin/tr when it exists.
23013         * tests/test-pipe-filter-gi1.sh: Likewise.
23014
23015 2009-08-30  Bruno Haible  <bruno@clisp.org>
23016
23017         Work around deficient /usr/bin/id program on Solaris.
23018         * tests/test-file-has-acl.sh (ID): New variable.
23019         * tests/test-set-mode-acl.sh (ID): Likewise.
23020         * tests/test-copy-acl.sh (ID): Likewise.
23021         * tests/test-copy-file.sh (ID): Likewise.
23022
23023 2009-08-30  Bruno Haible  <bruno@clisp.org>
23024
23025         New module 'xstriconveh'.
23026         * lib/xstriconveh.h: New file.
23027         * lib/xstriconveh.c: New file.
23028         * modules/xstriconveh: New file.
23029
23030 2009-08-30  Bruno Haible  <bruno@clisp.org>
23031
23032         Make it easier to use mem_cd_iconveh.
23033         * lib/striconveh.h (iconveh_t): New type.
23034         (iconveh_open, iconveh_close): New declarations.
23035         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23036         with a single 'const iconveh_t *' argument.
23037         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
23038         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
23039         with a single 'const iconveh_t *' argument.
23040         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
23041         * tests/test-striconveh.c (main): Update.
23042         * NEWS: Mention the change.
23043
23044 2009-08-30  Bruno Haible  <bruno@clisp.org>
23045
23046         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
23047         problem.
23048
23049 2009-08-30  Bruno Haible  <bruno@clisp.org>
23050
23051         Work around iconv_open problem on Solaris.
23052         * lib/iconv_open-solaris.gperf: New file.
23053         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
23054         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
23055         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
23056         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
23057         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
23058         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
23059
23060 2009-08-29  Jim Meyering  <meyering@redhat.com>
23061
23062         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
23063         * top/maint.mk (cvs-check): Remove target; it was just an alias
23064         to the better-named vc-diff-check.
23065         (maintainer-distcheck): Remove rule.  It was used only from
23066         the (alpha/beta/major) target, and all of its commands but one
23067         were coreutils-specific.
23068         (vc-dist): Remove rule.
23069         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
23070         Run vc-diff-check, not vc-dist.
23071         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
23072
23073 2009-08-27  Bruno Haible  <bruno@clisp.org>
23074
23075         * tests/test-bitrotate.c (main): Remove test that uses a shift count
23076         of 0.
23077
23078 2009-08-27  Bruno Haible  <bruno@clisp.org>
23079
23080         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
23081         compilers.
23082         * doc/func.texi: Document the SunPRO C bug.
23083
23084 2009-08-27  Bruno Haible  <bruno@clisp.org>
23085
23086         Fix link error on Solaris.
23087         * tests/test-parse-duration.c (xstrdup): Remove function.
23088
23089 2009-08-26  Pádraig Brady  <P@draigbrady.com>
23090
23091         ignore-value: handle pointer types, too
23092         * lib/ignore-value.h (__attribute__): Remove definition.
23093         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
23094         of a more concise and more-often effective "(void) i" statement.
23095         (ignore_ptr): New function to suppress warnings from functions that
23096         return pointers, and to make it explicit that one function doesn't
23097         handle all cases.
23098
23099 2009-08-25  Bruno Haible  <bruno@clisp.org>
23100
23101         dup2: work around a Linux bug.
23102         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
23103         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
23104         * doc/posix-functions/dup2.texi: Mention the Linux bug.
23105         Reported by Simon Josefsson.
23106
23107 2009-08-25  Jim Meyering  <meyering@redhat.com>
23108
23109         libguestfs uses gnulib
23110         * users.txt: Add libguestfs.
23111
23112 2009-08-24  Eric Blake  <ebb9@byu.net>
23113
23114         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
23115         * lib/pipe2.c (includes): Add binary-io.h.
23116         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
23117
23118 2009-08-24  Bruno Haible  <bruno@clisp.org>
23119
23120         Tolerate declared but missing accept4 syscall.
23121         * lib/accept4.c (accept4): Invoke original accept4 function first, if
23122         available.
23123         * lib/sys_socket.in.h (accept4): If the function is already present,
23124         override it.
23125         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
23126         * modules/accept4 (Makefile.am): Compile accept4.c always.
23127         Reported by Paolo Bonzini and Eric Blake.
23128
23129 2009-08-23  Bruno Haible  <bruno@clisp.org>
23130
23131         New module 'accept4'.
23132         * lib/sys_socket.in.h (accept4): New declaration.
23133         * lib/accept4.c: New file.
23134         * m4/accept4.m4: New file.
23135         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23136         GNULIB_ACCEPT4, HAVE_ACCEPT4.
23137         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
23138         HAVE_ACCEPT4.
23139         * modules/accept4: New file.
23140         * doc/glibc-functions/accept4.texi: Mention the new module.
23141
23142 2009-08-24  Jim Meyering  <meyering@redhat.com>
23143
23144         progname: also set global program_invocation_name, when possible
23145         Before this change, a libtool-enabled program that calls glibc's
23146         error function would report the program name as
23147         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
23148         * modules/progname (configure.ac): Check for a declaration of
23149         program_invocation_name.
23150         * lib/progname.c:  Include <errno.h>.
23151         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
23152         Set program_invocation_name.
23153
23154 2009-08-23  Bruno Haible  <bruno@clisp.org>
23155
23156         * lib/dup3.c: Include <string.h>.
23157
23158 2009-08-23  Bruno Haible  <bruno@clisp.org>
23159
23160         * lib/dup3.c (dup3): Test only once whether the system actually exists.
23161         * lib/pipe2.c (pipe2): Likewise.
23162         Suggested by Eric Blake.
23163
23164 2009-08-23  Bruno Haible  <bruno@clisp.org>
23165
23166         Tolerate declared but missing dup3 syscall.
23167         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
23168         * lib/unistd.in.h (dup3): If the function is already present,
23169         override it.
23170         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
23171         * modules/dup3 (Makefile.am): Compile dup3.c always.
23172         Reported by Paolo Bonzini.
23173
23174 2009-08-23  Bruno Haible  <bruno@clisp.org>
23175
23176         Tolerate declared but missing pipe2 syscall.
23177         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
23178         available.
23179         * lib/unistd.in.h (pipe2): If the function is already present,
23180         override it.
23181         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
23182         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
23183         Reported by Paolo Bonzini.
23184
23185 2009-08-23  Bruno Haible  <bruno@clisp.org>
23186
23187         * lib/pipe2.c (pipe2): Move #ifs inside function.
23188
23189 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23190
23191         quotearg: document limitations of quote_these_too
23192         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
23193         those limitations are created.
23194         * lib/quotearg.h (set_char_quoting): Document that digits and
23195         letters that are special after backslash are not permitted.
23196         (quotearg_char): Cross-reference set_char_quoting documentation.
23197
23198 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
23199
23200         quotearg: implement custom_quoting_style
23201         * lib/quotearg.c: (struct quoting_options): Add left_quote and
23202         right_quote fields.
23203         (set_custom_quoting): New public function.
23204         (quotearg_buffer_restyled): Add left_quote and right_quote
23205         arguments, handle them very much like locale quoting, and update
23206         all uses.
23207         (quotearg_n_custom): New public function.
23208         (quotearg_n_custom_mem): New public function.
23209         (quotearg_custom): New public function.
23210         (quotearg_custom_mem): New public function.
23211         * lib/quotearg.h: Prototype and document new public functions.
23212         (enum quoting_style): For escape_quoting_style and
23213         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
23214         ignored even though they're otherwise like c_quoting_style.
23215         Add custom_quoting_style member and document with comparison to
23216         clocale_quoting_style.
23217         * tests/test-quotearg.c (custom_quotes): New array.
23218         (custom_results): New array.
23219         (main): Extend to test custom quoting.
23220
23221 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23222
23223         quotearg: fix right quote escaping when it's in quote_these_too
23224         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
23225         quote, be sure to prepend only one backslash.
23226         * tests/test-quotearg.c (use_quote_double_quotes): New function.
23227         (main): Test it.
23228
23229 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
23230
23231         quotearg-tests: test escaping of embedded locale quotes
23232         * tests/test-quotearg.c (struct result_strings): Add member for
23233         new input.
23234         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
23235         (inputs): Add new input.
23236         (results_g): Add expected results.
23237         (flag_results): Likewise.
23238         (locale_results): Likewise.
23239         (compare_strings): Check those.
23240
23241 2009-08-23  Bruno Haible  <bruno@clisp.org>
23242
23243         Tests for module 'dup3'.
23244         * modules/dup3-tests: New file.
23245         * tests/test-dup3.c: New file.
23246
23247         New module 'dup3'.
23248         * lib/unistd.in.h (dup3): New declaration.
23249         * lib/dup3.c: New file.
23250         * m4/dup3.m4: New file.
23251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
23252         HAVE_DUP3.
23253         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
23254         * modules/dup3: New file.
23255         * doc/glibc-functions/dup3.texi: Mention the new module.
23256
23257 2009-08-23  Bruno Haible  <bruno@clisp.org>
23258
23259         Tweak the dup2 test.
23260         * tests/test-dup2.c (main): Create the test file empty. Verify that an
23261         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
23262         the test file is still empty. Fix argument order of lseek.
23263
23264 2009-08-23  Bruno Haible  <bruno@clisp.org>
23265
23266         Avoid test link errors when the modules getopt-gnu, gettext are used.
23267         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
23268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23269
23270 2009-08-23  Bruno Haible  <bruno@clisp.org>
23271
23272         Fix getdtablesize() on mingw.
23273         * lib/getdtablesize.c (getdtablesize): Implement differently.
23274         * lib/unistd.in.h (getdtablesize): Improve comment.
23275
23276 2009-08-23  Bruno Haible  <bruno@clisp.org>
23277
23278         New module 'mkostemp'.
23279         Based on Ulrich Drepper's 2007-08-10 change in glibc.
23280         * lib/stdlib.in.h (mksotemp): New declaration.
23281         * lib/mkostemp.c: New file, from glibc with modifications.
23282         * lib/tempname.h (GT_FILE): Remove outdated comment.
23283         (gen_tempname): Add flags argument.
23284         * lib/tempname.c (__GT_BIGFILE): Remove macro.
23285         (__GT_FILE): Map to 1.
23286         (small_open, large_open): Remove macros.
23287         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
23288         * lib/mkstemp.c (mkstemp): Update.
23289         * lib/mkdtemp.c (mkdtemp): Likewise.
23290         * m4/mkostemp.m4: New file.
23291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
23292         HAVE_MKOSTEMP.
23293         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
23294         HAVE_MKOSTEMP.
23295         * modules/mkostemp: New file, based on modules/mkstemp.
23296         * doc/glibc-functions/mkostemp.texi: Mention the new module.
23297         * NEWS: Mention the change.
23298
23299 2009-08-23  Bruno Haible  <bruno@clisp.org>
23300
23301         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
23302         Reported by Eric Blake.
23303
23304 2009-08-23  Bruno Haible  <bruno@clisp.org>
23305
23306         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
23307         Reported by Eric Blake.
23308
23309 2009-08-23  Bruno Haible  <bruno@clisp.org>
23310
23311         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
23312         * modules/pipe2 (Depends-on): Likewise.
23313
23314 2009-08-23  Eric Blake  <ebb9@byu.net>
23315
23316         fcntl-h: add O_TTY_INIT support
23317         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
23318         * tests/test-fcntl-h.c (o): Test it.
23319         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23320
23321         fcntl-h: rename from fcntl, in preparation for fcntl(2)
23322         * modules/fcntl: Move <fcntl.h> header replacement...
23323         * modules/fcntl-h: ...to new name, so as not to collide with
23324         like-named function.
23325         * tests/test-fcntl.c: Rename...
23326         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
23327         * modules/fcntl-tests: Rename...
23328         * modules/fcntl-h-tests: ...to this.  Update test file name.
23329         * modules/chdir-long (Depends-on): Update clients.
23330         * modules/chdir-safer (Depends-on): Likewise.
23331         * modules/fcntl-safer (Depends-on): Likewise.
23332         * modules/fts (Depends-on): Likewise.
23333         * modules/mkancesdirs (Depends-on): Likewise.
23334         * modules/mkdir-p (Depends-on): Likewise.
23335         * modules/open (Depends-on): Likewise.
23336         * modules/savewd (Depends-on): Likewise.
23337         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
23338         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23339
23340 2009-08-22  Bruno Haible  <bruno@clisp.org>
23341
23342         * modules/binary-io (License): Relicense under LGPL.
23343         * modules/pipe2 (License): Likewise.
23344
23345 2009-08-22  Bruno Haible  <bruno@clisp.org>
23346
23347         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
23348         return value.
23349         * lib/pipe-filter-gi.c (filter_init): Likewise.
23350         Reported by Eric Blake.
23351
23352 2009-08-22  Bruno Haible  <bruno@clisp.org>
23353
23354         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
23355         * modules/pipe (Depends-on): Add pipe2.
23356
23357 2009-08-22  Bruno Haible  <bruno@clisp.org>
23358
23359         Tests for module 'pipe2'.
23360         * modules/pipe2-tests: New file.
23361         * tests/test-pipe2.c: New file.
23362
23363         New module 'pipe2'.
23364         * lib/unistd.in.h (pipe2): New declaration.
23365         * lib/pipe2.c: New file.
23366         * m4/pipe2.m4: New file.
23367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
23368         HAVE_PIPE2.
23369         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
23370         * modules/pipe2: New file.
23371         * doc/glibc-functions/pipe2.texi: Mention the new module.
23372
23373 2009-08-22  Bruno Haible  <bruno@clisp.org>
23374
23375         Reference some new glibc functions.
23376         * doc/glibc-functions/accept4.texi: New file.
23377         * doc/glibc-functions/dup3.texi: New file.
23378         * doc/glibc-functions/mkostemp.texi: New file.
23379         * doc/glibc-functions/pipe2.texi: New file.
23380         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
23381         (Glibc sys/socket.h): Refer to accept4.
23382         (Glibc unistd.h): Refer to dup3, pipe2.
23383         Reported by Eric Blake.
23384
23385 2009-08-22  Jim Meyering  <meyering@redhat.com>
23386             Bruno Haible  <bruno@clisp.org>
23387
23388         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
23389         This makes it so packages using automake-1.11's silent-rules option
23390         can print e.g., a single "GEN    configmake.h" line, rather than
23391         the 30+ statements that perform the job.  If you want to see the
23392         actual commands, you can still run "make V=1".
23393         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
23394         so that make output is abbreviated when those variables are defined
23395         appropriately.
23396         * modules/argz: Likewise.
23397         * modules/arpa_inet: Likewise.
23398         * modules/byteswap: Likewise.
23399         * modules/configmake: Likewise.
23400         * modules/dirent: Likewise.
23401         * modules/errno: Likewise.
23402         * modules/fcntl: Likewise.
23403         * modules/float: Likewise.
23404         * modules/fnmatch: Likewise.
23405         * modules/getopt-posix: Likewise.
23406         * modules/glob: Likewise.
23407         * modules/iconv_open: Likewise.
23408         * modules/inttypes: Likewise.
23409         * modules/localcharset: Likewise.
23410         * modules/locale: Likewise.
23411         * modules/math: Likewise.
23412         * modules/netdb: Likewise.
23413         * modules/netinet_in: Likewise.
23414         * modules/poll: Likewise.
23415         * modules/posix_spawnp-tests: Likewise.
23416         * modules/sched: Likewise.
23417         * modules/search: Likewise.
23418         * modules/selinux-h: Likewise.
23419         * modules/signal: Likewise.
23420         * modules/spawn: Likewise.
23421         * modules/stdarg: Likewise.
23422         * modules/stdbool: Likewise.
23423         * modules/stddef: Likewise.
23424         * modules/stdint: Likewise.
23425         * modules/stdio: Likewise.
23426         * modules/stdlib: Likewise.
23427         * modules/string: Likewise.
23428         * modules/strings: Likewise.
23429         * modules/sys_file: Likewise.
23430         * modules/sys_ioctl: Likewise.
23431         * modules/sys_select: Likewise.
23432         * modules/sys_socket: Likewise.
23433         * modules/sys_stat: Likewise.
23434         * modules/sys_time: Likewise.
23435         * modules/sys_times: Likewise.
23436         * modules/sys_utsname: Likewise.
23437         * modules/sys_wait: Likewise.
23438         * modules/sysexits: Likewise.
23439         * modules/time: Likewise.
23440         * modules/unistd: Likewise.
23441         * modules/wchar: Likewise.
23442         * modules/wctype: Likewise.
23443
23444 2009-08-22  Jim Meyering  <meyering@redhat.com>
23445
23446         announce-gen: detect write failure
23447         * build-aux/announce-gen: Add Coda at end.
23448         Remove equivalent-but-more-verbose block at top.
23449
23450 2009-08-19  Akim Demaille  <demaille@gostai.com>
23451
23452         bootstrap: --help to stdout.
23453         * bootstrap (usage): Don't send --help to stderr.
23454         Use a here doc instead of a long string.
23455
23456 2009-08-21  Eric Blake  <ebb9@byu.net>
23457
23458         test-popen-safer: split from test-popen
23459         * tests/test-popen.c (main): Move...
23460         * tests/test-popen.h: ...into new file.
23461         * tests/test-popen-safer2.c: New file.
23462         * modules/popen-tests (Files): Add test-popen.h.
23463         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
23464         Suggested by Bruno Haible.
23465
23466         test-fcntl-safer: split from test-open
23467         * tests/test-open.c (main): Move...
23468         * tests/test-open.h: ...into new file.
23469         * tests/test-fcntl-safer.c: New file.
23470         * modules/open-tests (Files): Add test-open.h.
23471         * modules/fcntl-safer-tests: New file.
23472         Suggested by Bruno Haible.
23473
23474         test-fopen-safer: split from test-fopen
23475         * tests/test-fopen.c (main): Move...
23476         * tests/test-fopen.h: ...into new file.
23477         * tests/test-fopen-safer.c: New file.
23478         * modules/fopen-tests (Files): Add test-fopen.h.
23479         * modules/fopen-safer-tests: New file.
23480         Suggested by Bruno Haible.
23481
23482 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23483
23484         popen-safer: test O_CLOEXEC at run-time.
23485         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
23486
23487 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
23488
23489         fcntl: move more flags to the header
23490         * lib/cloexec.c: Do not define FD_CLOEXEC here.
23491         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
23492         * lib/fcntl.in.h: Do both things here.
23493
23494 2009-08-21  Jim Meyering  <meyering@redhat.com>
23495
23496         consistently remove $@-t before redirecting to it
23497         * modules/argz: Remove $@-t and $@ before redirecting to the former.
23498         * modules/alloca-opt: Likewise.
23499         * modules/byteswap: Likewise.
23500         * modules/fnmatch: Likewise.
23501         * modules/getopt-posix: Likewise.
23502         * modules/glob: Likewise.
23503         * modules/poll: Likewise.
23504         * modules/posix_spawnp-tests: Likewise.
23505         * modules/sys_socket: Likewise.
23506         * modules/sysexits: Likewise.
23507
23508 2009-08-21  Eric Blake  <ebb9@byu.net>
23509
23510         popen: simplify access to original popen
23511         * lib/popen.c (rpl_popen): No need to worry about popen being a
23512         macro.
23513         Reported by Bruno Haible.
23514
23515 2009-08-20  Eric Blake  <ebb9@byu.net>
23516
23517         build: avoid some compiler warnings
23518         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
23519         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
23520         type.
23521         (new_exclude_segment, excluded_file_pattern_p)
23522         (excluded_file_name_p): Reduce scope.
23523         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
23524         old-style declaration.
23525
23526 2009-08-20  Simon Josefsson  <simon@josefsson.org>
23527
23528         * tests/test-exclude1.sh: Handle Windows EOL.
23529         * tests/test-exclude2.sh: Likewise.
23530         * tests/test-exclude3.sh: Likewise.
23531         * tests/test-exclude4.sh: Likewise.
23532         * tests/test-exclude5.sh: Likewise.
23533         * tests/test-exclude6.sh: Likewise.
23534         * tests/test-exclude7.sh: Likewise.
23535
23536 2009-08-19  Akim Demaille  <demaille@gostai.com>
23537
23538         bootstrap: find sha1sum when named gsha1sum.
23539         * bootstrap (find_tool): New.
23540         ($SHA1SUM): New.
23541         Use it.
23542
23543 2009-08-20  Jim Meyering  <meyering@redhat.com>
23544
23545         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
23546         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
23547         expression that converts "." in a file name to "\." in the resulting
23548         regexp.  Start with a dummy statement, so that prior shell variable
23549         definitions are expanded portably.  Reported by Simon Josefsson.
23550
23551 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
23552
23553         Fix polling for writeability of a screen buffer.
23554         * lib/poll.c: Distinguish input and screen buffers for the
23555         Win32 implementation.
23556         * lib/select.c: Likewise.
23557
23558 2009-08-19  Eric Blake  <ebb9@byu.net>
23559
23560         popen-safer: prevent popen from clobbering std descriptors
23561         * modules/popen-safer: New file.
23562         * lib/popen-safer.c: Likewise.
23563         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
23564         * lib/stdio--.h (popen): Provide override.
23565         * lib/stdio-safer.h (popen_safer): Provide declaration.
23566         * tests/test-popen.c (includes): Partially test this.
23567         * modules/popen-safer-tests: New file, for more tests.
23568         * tests/test-popen-safer.c: Likewise.
23569         * MODULES.html.sh (file stream based Input/Output): Mention it.
23570
23571         tests: test some of the *-safer modules
23572         * modules/fopen-safer (Depends-on): Add fopen.
23573         * modules/fcntl-safer (Depends-on): Add fcntl.
23574         * modules/stdlib-safer (Depends-on): Add stdlib.
23575         (configure.ac): Set indicator.
23576         * modules/unistd-safer (configure.ac): Likewise.
23577         * modules/tmpfile-safer (configure.ac): Likewise.
23578         (Depends-on): Add tmpfile.
23579         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
23580         active.
23581         * tests/test-fopen.c (includes): Test safer versions when they are
23582         in use.
23583         * tests/test-open.c (includes): Likewise.
23584
23585         popen: fix cygwin 1.5 bug when stdin closed
23586         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
23587         * modules/popen: New file.
23588         * modules/popen-tests: Likewise.
23589         * tests/test-popen.c: Likewise.
23590         * m4/popen.m4: Likewise.
23591         * lib/popen.c: Likewise.
23592         * lib/stdio.in.h (popen): New declaration.
23593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
23594         * modules/stdio (Makefile.am): Likewise.
23595         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
23596
23597 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
23598
23599         maint.mk: give full control over update-copyright exclusions
23600         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
23601         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
23602         (update-copyright): Don't force inclusion of top-level
23603         ChangeLog.  Don't force exclusion of all COPYING files, but make
23604         them the default exclusion instead.
23605
23606 2009-08-16  Bruno Haible  <bruno@clisp.org>
23607
23608         Fix test failures on Solaris 10.
23609         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
23610         tests when Solaris iconv() is used.
23611         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
23612         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
23613         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
23614         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
23615         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
23616
23617 2009-08-16  Bruno Haible  <bruno@clisp.org>
23618
23619         Fix test failures on Solaris 10.
23620         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
23621         'tr' program and pass it as first argument.
23622         * tests/test-pipe-filter-gi1.sh: Likewise.
23623         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
23624         program as first argument.
23625         * tests/test-pipe-filter-gi1.c (main): Likewise.
23626
23627 2009-08-16  Eric Blake  <ebb9@byu.net>
23628
23629         fpurge: fix previous commits
23630         * modules/fpurge (Makefile.am): Make replacement conditional,
23631         partially reverting 2007-04-29 change; missed in previous
23632         attempt.
23633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
23634         is missing.
23635
23636 2009-08-16  Bruno Haible  <bruno@clisp.org>
23637
23638         Clarify fpurge's effect on the file position.
23639         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
23640         * tests/test-fpurge.c (main): Make a second pass for checking the file
23641         position.
23642
23643 2009-08-16  Bruno Haible  <bruno@clisp.org>
23644
23645         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
23646         declaration of fpurge is missing.
23647         * tests/test-fpurge.c (main): Check that the file has not more contents
23648         than expected. Close the file before removing it.
23649
23650 2009-08-15  Eric Blake  <ebb9@byu.net>
23651
23652         fpurge: don't wrap working cygwin implementation
23653         * lib/fpurge.c (fpurge): Fix comment typo.
23654         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
23655         1.7 to avoid replacement.
23656         * tests/test-fpurge.c (main): Enhance test.
23657
23658 2009-08-15  Eric Blake  <ebb9@byu.net>
23659         and Jim Meyering  <meyering@redhat.com>
23660
23661         test-update-copyright: skip if perl is insufficient
23662         * tests/test-update-copyright.sh: Failure to run maintainer tool
23663         should not cause testsuite failure on cygwin 1.5.
23664
23665 2009-08-14  Eric Blake  <ebb9@byu.net>
23666
23667         doc: mention more functions added in cygwin 1.7.0
23668         * doc/posix-headers/limits.texi (limits.h): Update for recent
23669         cygwin additions.
23670         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
23671         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
23672         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
23673         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
23674         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
23675
23676 2009-08-14  Eric Blake  <ebb9@byu.net>
23677
23678         maint.mk: simplify update-copyright rule
23679         * top/maint.mk (update-copyright-local): Delete, and document how
23680         to do it in cfg.mk instead.
23681         (update-copyright-exclude-regexp): Delete, and document how to do
23682         it in .x-update-copyright instead.
23683         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
23684         exclude ChangeLog.
23685
23686 2009-08-14  Bruno Haible  <bruno@clisp.org>
23687
23688         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
23689
23690 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23691
23692         maint.mk: support update-copyright-env
23693         * top/maint.mk (update-copyright-env): Define place-holder.
23694         (update-copyright): Expand $(update-copyright-env) before
23695         invoking update-copyright.
23696
23697 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23698
23699         update-copyright: implement forced reformatting
23700         * build-aux/update-copyright: Implement and document
23701         UPDATE_COPYRIGHT_FORCE.
23702         * tests/test-update-copyright.sh: Test it.
23703
23704 2009-08-14  Eric Blake  <ebb9@byu.net>
23705         and Bruno Haible  <bruno@clisp.org>
23706
23707         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
23708         * tests/test-locale.c: Revert previous patch related to NULL.
23709         * tests/test-stdio.c: Likewise.
23710         * tests/test-stdlib.c: Likewise.
23711         * tests/test-string.c: Likewise.
23712         * tests/test-unistd.c: Likewise.
23713         * modules/time-tests (Depends-on): Add verify.
23714         * modules/wchar-tests (Depends-on): Likewise.
23715         * tests/test-time.c: Test for NULL compliance.
23716         * tests/test-wchar.c: Likewise.
23717         * modules/locale (Depends-on): Add stddef.
23718         * modules/stdio (Depends-on): Likewise.
23719         * modules/stdlib (Depends-on): Likewise.
23720         * modules/string (Depends-on): Likewise.
23721         * modules/time (Depends-on): Likewise.
23722         * modules/unistd (Depends-on): Likewise.
23723         * modules/wchar (Depends-on): Likewise.
23724         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
23725         * lib/stdlib.in.h (includes): Likewise.
23726         * lib/string.in.h (includes): Likewise.
23727         * lib/time.in.h (includes): Likewise.
23728         * lib/unistd.in.h (includes): Likewise.
23729         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
23730         replaced.
23731         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23732         * m4/stddef_h.m4: New file.
23733         * modules/stddef: Likewise.
23734         * lib/stddef.in.h: Likewise.
23735         * modules/stddef-tests: Likewise.
23736         * tests/test-stddef.c: Likewise.
23737         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
23738         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
23739         * doc/posix-headers/locale.texi (locale.h): Likewise.
23740         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
23741         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23742         * doc/posix-headers/string.texi (string.h): Likewise.
23743         * doc/posix-headers/time.texi (time.h): Likewise.
23744         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
23745         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
23746
23747 2009-08-14  Eric Blake  <ebb9@byu.net>
23748
23749         doc: improve git diff of texinfo files
23750         * .gitattributes: Add rule for *.texi files, with hint on how to
23751         use it.
23752         Copied from m4, and based on a report by Bruno Haible.
23753
23754 2009-08-14  Bruno Haible  <bruno@clisp.org>
23755
23756         Disable multithread support by default on Cygwin 1.5.x for real.
23757         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
23758
23759 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
23760
23761         update-copyright: much ado about intervals
23762         * build-aux/update-copyright: Implement and document
23763         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
23764         of copyright year intervals.
23765         Also, document UPDATE_COPYRIGHT_YEAR.
23766         * tests/test-update-copyright.sh: Test it.
23767
23768         update-copyright: convert 2-digit to 4-digit years
23769         * build-aux/update-copyright: Implement and document.
23770         * tests/test-update-copyright.sh: Update.
23771
23772 2009-08-14  Jim Meyering  <meyering@redhat.com>
23773
23774         test-exclude: avoid coreutils "make check" failure
23775         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
23776         just as in test-argmatch.c.
23777
23778 2009-08-13  Eric Blake  <ebb9@byu.net>
23779
23780         test-dup2: fix bad assumption
23781         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
23782         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
23783
23784         test-version-etc: fix CRLF portability issue
23785         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
23786         recognize \r.
23787         * tests/test-argp-version-etc-1.sh: Likewise.
23788
23789         getopt: update client modules
23790         * modules/argp (Depends-on): Use getopt-gnu.
23791         * modules/git-merge-changelog (Depends-on): Likewise.
23792         * modules/long-options (Depends-on): Likewise.
23793         * modules/xstrtol (Depends-on): Likewise.
23794
23795 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23796
23797         * tests/test-version-etc.sh: Don't fail on different
23798         project/version.  Don't fail on CRLF differences.  Rewrite to use
23799         multiple -e instead of multiple sed forks, suggested by Eric Blake
23800         <ebb9@byu.net>.
23801         * tests/test-argp-version-etc-1.sh: Likewise.
23802
23803 2009-08-13  Simon Josefsson  <simon@josefsson.org>
23804
23805         * tests/test-version-etc.sh: Don't fail on different
23806         project/version.
23807
23808 2009-08-12  Bruno Haible  <bruno@clisp.org>
23809
23810         Tests for modules 'getopt-posix', 'getopt-gnu'.
23811         * modules/getopt-posix-tests: New file.
23812         * tests/test-getopt.c: New file.
23813         * tests/test-getopt.h: New file.
23814         * tests/test-getopt_long.h: New file.
23815
23816         New modules 'getopt-posix', 'getopt-gnu'.
23817         * modules/getopt-gnu: New file, renamed from modules/getopt.
23818         * modules/getopt-posix: New file.
23819         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
23820         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
23821         (gl_GETOPT): Remove macro.
23822         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
23823         Disable the test against BSD systems that declare optreset. Test
23824         against mingw bug. Test against lack of support of optional arguments
23825         on many platforms.
23826         * doc/glibc-headers/getopt.texi: Update module name and list of
23827         relevant platforms.
23828         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
23829         'getopt-gnu' and more portability problems.
23830         * NEWS: Mention the changes.
23831
23832 2009-08-12  Bruno Haible  <bruno@clisp.org>
23833
23834         Ensure that optarg etc. get declared by <unistd.h>.
23835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
23836         AC_USE_SYSTEM_EXTENSIONS.
23837         * modules/getopt (Depends-on): Add 'extensions'.
23838
23839 2009-08-12  Bruno Haible  <bruno@clisp.org>
23840
23841         Avoid test link errors.
23842         * modules/pipe-filter-ii-tests (Makefile.am): Define
23843         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
23844         * modules/pipe-filter-gi-tests (Makefile.am): Define
23845         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
23846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23847
23848 2009-08-12  Bruno Haible  <bruno@clisp.org>
23849
23850         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
23851         gl_GETOPT_SUBSTITUTE before.
23852         (gl_GETOPT): Use it.
23853         * m4/argp.m4 (gl_ARGP): Update.
23854         Reported by Sergey Poznyakoff.
23855
23856         * m4/getopt.m4: Reorder macros.
23857         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
23858         (gl_GETOPT_SUBSTITUTE): Remove macro.
23859
23860 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23861
23862         Minor improvement in gitlog-to-changelog
23863
23864         * build-aux/gitlog-to-changelog: New option `--format' makes
23865         output format string configurable.
23866
23867 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23868
23869         Optimize exclude: use hash tables for non-wildcard patterns.
23870
23871         * lib/exclude.c: Include hash.h and mbuiter.h
23872         (struct exclude_pattern, exclude_segment): New data types.
23873         (struct exclude): Rewrite.
23874         (fnmatch_pattern_has_wildcards): New function.
23875         (new_exclude_segment, free_exclude_segment): New functions.
23876         (excluded_file_pattern_p, excluded_file_name_p): New functions.
23877         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
23878         * lib/exclude.h (is_fnmatch_pattern): New prototype.
23879         * modules/exclude: Depend on hash and mbuiter.
23880
23881         * modules/exclude-tests: New file.
23882         * tests/test-exclude.c: New file.
23883         * tests/test-exclude1.sh: New file.
23884         * tests/test-exclude2.sh: New file.
23885         * tests/test-exclude3.sh: New file.
23886         * tests/test-exclude4.sh: New file.
23887         * tests/test-exclude5.sh: New file.
23888         * tests/test-exclude6.sh: New file.
23889         * tests/test-exclude7.sh: New file.
23890
23891 2009-08-12  Bruno Haible  <bruno@clisp.org>
23892
23893         Ensure that getopt() gets declared by <unistd.h>.
23894         * lib/unistd.in.h: Conditionally include getopt.h.
23895         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
23896         Set GNULIB_UNISTD_H_GETOPT.
23897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23898         GNULIB_UNISTD_H_GETOPT.
23899         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
23900
23901 2009-08-12  Bruno Haible  <bruno@clisp.org>
23902
23903         Clarify logic.
23904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
23905         gl_replace_getopt instead of GETOPT_H.
23906
23907 2009-08-12  Bruno Haible  <bruno@clisp.org>
23908
23909         * m4/getopt.m4: Add comments.
23910
23911 2009-08-12  Bruno Haible  <bruno@clisp.org>
23912
23913         Disable multithread support by default on Cygwin 1.5.x.
23914         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
23915         set gl_use_threads=no if not specified otherwise.
23916
23917 2009-08-11  Bruno Haible  <bruno@clisp.org>
23918
23919         Avoid compilation error on NetBSD 5.0.
23920         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
23921         * tests/test-stdio.c: Likewise.
23922         * tests/test-stdlib.c: Likewise.
23923         * tests/test-string.c: Likewise.
23924         * tests/test-unistd.c: Likewise.
23925         Reported by Greg Troxel <gdt@ir.bbn.com>
23926         at <https://savannah.gnu.org/support/?106973>.
23927
23928 2009-08-11  Bruno Haible  <bruno@clisp.org>
23929
23930         * modules/dup2-tests (Depends-on): Remove close.
23931
23932         Undo 2009-07-19 commit.
23933         * modules/acl-tests (Depends-on): Remove close.
23934         * modules/binary-io-tests (Depends-on): Likewise.
23935         * modules/closein-tests (Depends-on): Likewise.
23936         * modules/flock-tests (Depends-on): Likewise.
23937         * modules/fsync-tests (Depends-on): Likewise.
23938         * modules/lseek-tests (Depends-on): Likewise.
23939         * modules/pipe-tests (Depends-on): Likewise.
23940         * modules/posix_spawn-tests (Depends-on): Likewise.
23941         * modules/posix_spawnp-tests (Depends-on): Likewise.
23942         * modules/stat-time-tests (Depends-on): Likewise.
23943         * modules/yesno-tests (Depends-on): Likewise.
23944
23945 2009-08-10  Bruno Haible  <bruno@clisp.org>
23946
23947         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
23948
23949 2009-08-10  Bruno Haible  <bruno@clisp.org>
23950
23951         Fix a gcc warning.
23952         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
23953
23954 2009-08-10  Bruno Haible  <bruno@clisp.org>
23955
23956         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
23957         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
23958         not only the first time.
23959         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
23960         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
23961         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
23962         is 1, not only the the first time.
23963
23964 2009-08-10  Bruno Haible  <bruno@clisp.org>
23965
23966         Make it possible to use module 'gethostname' without module 'close'.
23967         * lib/unistd.in.h (close): Evoke a link error only if
23968         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23970         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23971         * modules/unistd (Makefile.am): Substitute
23972         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23973         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
23974         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23975         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23976         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23977         * modules/sys_ioctl (Makefile.am): Substitute
23978         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23979         * modules/socket (configure.ac): On native Windows, set
23980         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
23981         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23982         Reported by Sam Steingold <sds@gnu.org>.
23983
23984 2009-08-10  Bruno Haible  <bruno@clisp.org>
23985
23986         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
23987         * modules/ioctl (configure.ac): Likewise.
23988
23989 2009-08-10  Bruno Haible  <bruno@clisp.org>
23990
23991         Avoid collision between gnulib wrapper and libintl wrapper.
23992         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
23993         already defined in intl/printf.c.
23994         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
23995         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
23996
23997 2009-08-09  Bruno Haible  <bruno@clisp.org>
23998
23999         Make <sys/select.h> really self-contained, also on Solaris 10.
24000         * lib/sys_select.in.h: Include <string.h>.
24001         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
24002         Solaris 10 problem.
24003         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
24004         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
24005         Reported by Jim Meyering.
24006
24007 2009-08-09  Bruno Haible  <bruno@clisp.org>
24008
24009         Avoid warnings from 'aclocal' that are due to a use of macro name
24010         AM_XGETTEXT_OPTION that is not defined in automake.
24011         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
24012         automake.
24013         * modules/error (configure.ac): Likewise.
24014         * modules/propername (configure.ac): Likewise.
24015         * modules/vasprintf (configure.ac): Likewise.
24016         * modules/verror (configure.ac): Likewise.
24017         * modules/xprintf (configure.ac): Likewise.
24018         * modules/xvasprintf (configure.ac): Likewise.
24019
24020 2009-08-08  Bruno Haible  <bruno@clisp.org>
24021
24022         Avoid compilation error in C++ mode.
24023         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
24024         Reported by Sam Steingold <sds@gnu.org>.
24025
24026 2009-08-08  Bruno Haible  <bruno@clisp.org>
24027
24028         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
24029         for the various Unix platforms.
24030         * doc/posix-headers/limits.texi: Update platforms list regarding
24031         HOST_NAME_MAX.
24032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24033
24034 2009-08-07  Jim Meyering  <meyering@redhat.com>
24035
24036         selinux-at: fix typo in a comment
24037         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
24038         Spotted by Paolo Bonzini.
24039
24040         selinux-at: remove redundant m4 code, add documentation
24041         * modules/selinux-at (configure.ac): Remove redundant code.
24042         LIB_SELINUX is already set via the dependent module, selinux-h.
24043         (Include): Add quotes around selinux-at.h.
24044         * lib/selinux-at.h: Add documentation.
24045         Reported by Bruno Haible in
24046         http://marc.info/?l=gnulib-bug&m=124958988300749
24047
24048 2009-08-07  Bruno Haible  <bruno@clisp.org>
24049
24050         Avoid link error on MacOS X 10.3 and 10.4.
24051         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
24052         on non-ELF systems.
24053         * lib/argp-pv.c (argp_program_version): Likewise.
24054         Reported by Simon Josefsson.
24055
24056 2009-08-07  Simon Josefsson  <simon@josefsson.org>
24057
24058         * tests/test-version-etc.sh: Use $EXEEXT.
24059
24060 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
24061
24062         update-copyright: update documentation to point to maint.mk
24063         * build-aux/update-copyright: Here.
24064
24065 2009-08-06  Jim Meyering  <meyering@redhat.com>
24066
24067         maint.mk: support update-copyright-local
24068         * top/maint.mk (update-copyright-local): Define place-holder.
24069         (update-copyright): Depend on $(update-copyright-local).
24070
24071 2009-08-06  Jim Meyering  <meyering@redhat.com>
24072
24073         selinux-at: new module
24074         Initially written for coreutils, this module will soon be
24075         used by findutils, too.
24076         * MODULES.html.sh [Misc]: Add selinux-at.
24077         * lib/selinux-at.h: New file, from coreutils.
24078         * lib/selinux-at.c: Likewise.
24079         * modules/selinux-at: Likewise.
24080         (License): Change from LGPL to GPL, since it depends
24081         on the GPL'd openat module.
24082
24083         doc: update README
24084         * README: Remove references to cogito.
24085         Remove cvs-repo-updating instructions from 2007.
24086         Don't imply that CVS is better if you have limited disk space.
24087
24088 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24089
24090         update-copyright: support C-style comments
24091         * build-aux/update-copyright: Implement and document.
24092         * tests/test-update-copyright.sh: Test.
24093
24094 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24095
24096         update-copyright: support omitted "(C)"
24097         * build-aux/update-copyright: Implement and document.  Also,
24098         allow variable whitespace before "(C)".
24099         * tests/test-update-copyright.sh: Test.
24100
24101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24102
24103         update-copyright: don't trip on non-FSF copyright statements
24104         * build-aux/update-copyright: Fix so that the first correctly
24105         formatted FSF copyright statement is recognized no matter what
24106         appears before it.  Update documentation.
24107         * tests/test-update-copyright.sh: Test that.
24108
24109 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24110
24111         update-copyright: clean up code a little
24112         * build-aux/update-copyright: Append "_re" to the name of any
24113         variable holding a regular expression.
24114         Replace "old" and "new" with "stmt" in variable names.
24115         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
24116         handled correctly.
24117         Format code more consistently.
24118
24119 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
24120
24121         update-copyright-tests: improve portability
24122         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
24123         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
24124
24125 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24126
24127         update-copyright: support @copyright{} and &copy;
24128         * build-aux/update-copyright: Implement and document.
24129         * tests/test-update-copyright.sh: Test.
24130
24131 2009-08-04  Jim Meyering  <meyering@redhat.com>
24132
24133         update-copyright-tests: correctly test EOL=\r\n handling
24134         * tests/test-update-copyright.sh: Put \r at the end of some lines
24135         for the dos-eol tests.  Based on a patch by Joel E. Denny.
24136
24137         maint.mk: make update-copyright exclusion list more configurable
24138         * top/maint.mk (update-copyright): Default to excluding COPYING,
24139         but allow an override, in case someone does want to update that file.
24140
24141         maint.mk: don't update copyright date in COPYING
24142         * top/maint.mk (update-copyright): Exclude COPYING.
24143
24144         maint.mk: add a copyright-updating rule
24145         * top/maint.mk (update-copyright): New rule.
24146         Derived from coreutils/Makefile.am.
24147
24148         update-copyright: rename some variables
24149         * build-aux/update-copyright: Rename a few variables for clarity.
24150         Tweak syntax.  List Joel E. Denny as coauthor.
24151
24152 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
24153
24154         update-copyright: fix bug for 2-digit last year and add tests
24155         * build-aux/update-copyright: Fix bug.
24156         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
24157         specified.
24158         * modules/update-copyright-tests: New
24159         * tests/test-update-copyright.sh: New.
24160
24161 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24162
24163         update-copyright: handle leading tabs in line prefix
24164         * build-aux/update-copyright: Count leading tabs as 8 spaces
24165         when computing margin.  This helps with the formatting of
24166         ChangeLogs, for example.
24167         Fix documentation a little.
24168
24169 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24170
24171         update-copyright: support EOL=\r\n
24172         * build-aux/update-copyright: Implement that.
24173
24174 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
24175
24176         update-copyright: automatically format copyright statements
24177         * build-aux/update-copyright: Implement that.
24178         Also, be a little more predictable and safer by always failing
24179         when the full copyright format is not perfectly recognized as an
24180         unbroken whole.  Discussed at
24181         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
24182         Rewrite documentation.
24183
24184 2009-08-03  Bruno Haible  <bruno@clisp.org>
24185
24186         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
24187
24188 2009-08-02  Bruno Haible  <bruno@clisp.org>
24189
24190         Tests for module 'uname'.
24191         * modules/uname-tests: New file.
24192         * tests/test-uname.c: New file.
24193
24194         New module 'uname'.
24195         * lib/uname.c: New file.
24196         * m4/uname.m4: New file.
24197         * modules/uname: New file.
24198         * doc/posix-functions/uname.texi: Mention the new module.
24199
24200 2009-08-02  Bruno Haible  <bruno@clisp.org>
24201
24202         Tests for module 'sys_utsname'.
24203         * modules/sys_utsname-tests: New file.
24204         * tests/test-sys_utsname.c: New file.
24205
24206         New module 'sys_utsname'.
24207         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
24208         * m4/sys_utsname_h.m4: New file.
24209         * modules/sys_utsname: New file.
24210         * doc/posix-headers/sys_utsname.texi: Mention the new module.
24211
24212 2009-08-02  Bruno Haible  <bruno@clisp.org>
24213
24214         Implicitly initialize the sockets library.
24215         * lib/gethostname.c: Include sockets.h.
24216         (rpl_gethostname): Invoke gl_sockets_startup.
24217         * lib/socket.c: Include sockets.h.
24218         (rpl_socket): Invoke gl_sockets_startup.
24219         * modules/gethostname (Depends-on): Add sockets.
24220         * modules/socket (Depends-on): Likewise.
24221         * tests/test-poll.c: Don't include sockets.h.
24222         (main): Don't invoke gl_sockets_startup.
24223         * tests/test-select.c: Don't include sockets.h.
24224         (main): Don't invoke gl_sockets_startup.
24225
24226 2009-08-02  Bruno Haible  <bruno@clisp.org>
24227
24228         Allow multiple calls to gl_sockets_startup.
24229         * lib/sockets.c (initialized_sockets_version): New variable.
24230         (gl_sockets_startup): Do nothing if already called for this or a higher
24231         version.
24232         (gl_sockets_cleanup): Reset initialized_sockets_version.
24233
24234 2009-08-03  Simon Josefsson  <simon@josefsson.org>
24235
24236         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
24237         different project/version.
24238
24239 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
24240             Bruno Haible  <bruno@clisp.org>
24241
24242         Tests for module 'pipe-filter-gi'.
24243         * modules/pipe-filter-gi-tests: New file.
24244         * tests/test-pipe-filter-gi1.sh: New file.
24245         * tests/test-pipe-filter-gi1.c: New file.
24246         * tests/test-pipe-filter-gi2.sh: New file.
24247         * tests/test-pipe-filter-gi2-main.c: New file.
24248         * tests/test-pipe-filter-gi2-child.c: New file.
24249
24250         New module 'pipe-filter-gi'.
24251         * lib/pipe-filter-gi.c: New file.
24252         * modules/pipe-filter-gi: New file.
24253
24254 2009-08-02  Bruno Haible  <bruno@clisp.org>
24255             Paolo Bonzini  <bonzini@gnu.org>
24256
24257         Tests for module 'pipe-filter-ii'.
24258         * modules/pipe-filter-ii-tests: New file.
24259         * tests/test-pipe-filter-ii1.sh: New file.
24260         * tests/test-pipe-filter-ii1.c: New file.
24261         * tests/test-pipe-filter-ii2.sh: New file.
24262         * tests/test-pipe-filter-ii2-main.c: New file.
24263         * tests/test-pipe-filter-ii2-child.c: New file.
24264
24265         New module 'pipe-filter-ii'.
24266         * lib/pipe-filter.h: New file.
24267         * lib/pipe-filter-ii.c: New file.
24268         * lib/pipe-filter-aux.h: New file.
24269         * modules/pipe-filter-ii: New file.
24270
24271 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24272
24273         * lib/gc-libgcrypt.c: Change copyright to FSF.
24274         * lib/gc-gnulib.c: Likewise.
24275
24276 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
24277
24278         * lib/gethostname.c: Include limits.h.
24279
24280 2009-08-02  Simon Josefsson  <simon@josefsson.org>
24281             Bruno Haible  <bruno@clisp.org>
24282
24283         Ensure HOST_NAME_MAX as part of the gethostname module.
24284         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
24285         define also HOST_NAME_MAX.
24286         * tests/test-gethostname.c: Include <limits.h>.
24287         (main): Check also HOST_NAME_MAX.
24288         * doc/posix-headers/limits.texi: Document the mingw problem.
24289
24290 2009-08-02  Bruno Haible  <bruno@clisp.org>
24291
24292         * lib/gethostname.c (gethostname): Fix handling of large len argument.
24293         Add comments.
24294
24295 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24296
24297         * lib/gethostname.c: Add Windows wrapper.
24298         * m4/gethostname.m4: Look for gethostname in -lws2_32.
24299         * modules/gethostname: Depend on sys_socket & errno, for also
24300         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
24301         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
24302
24303 2009-07-31  Jim Meyering  <meyering@redhat.com>
24304
24305         getloadavg: fix symbol name in comment
24306         * lib/getloadavg.c: Correct a typo I introduced when adding
24307         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
24308         Matt Kraai spotted the problem.
24309
24310 2009-07-29  Matt Kraai  <mkraai@beckman.com>
24311
24312         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
24313         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
24314         code also if ! defined N_NAME_POINTER.
24315         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
24316         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
24317         but the n_name member is a 12-byte array.
24318
24319 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
24320
24321         update-copyright: generalize comment handling
24322         * build-aux/update-copyright: Handle copyright statements
24323         within more comment styles.
24324         Document usage.
24325         Report any file with an external copyright holder or parse failure.
24326
24327 2009-07-29  Jim Meyering  <meyering@redhat.com>
24328
24329         mktime: correct setting of REPLACE_MKTIME
24330         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
24331
24332         update-copyright: new module
24333         * modules/update-copyright: New file.
24334         * build-aux/update-copyright: New file.
24335         * MODULES.html.sh (maint+release support): Add update-copyright.
24336
24337 2009-07-27  Bruno Haible  <bruno@clisp.org>
24338
24339         Fix compilation error when <ctime> is used and mktime is replaced.
24340         * lib/time.in.h (mktime): New declaration.
24341         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
24342         REPLACE_MKTIME instead of defining mktime in config.h.
24343         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
24344         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
24345         Reported by Ross McFarland <rwmcfa1@neces.com>.
24346
24347 2009-07-27  Bruno Haible  <bruno@clisp.org>
24348
24349         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
24350         Reported by Matt Kraai <mkraai@beckman.com>.
24351
24352 2009-07-25  Jim Meyering  <meyering@redhat.com>
24353
24354         maint.mk: avoid warnings about missing files
24355         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
24356         diagnostic when .prev-version does not exist.
24357         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
24358         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
24359         nonexistent cfg.mk.
24360         Suggestions from Simon Josefsson.
24361
24362 2009-07-25  Bruno Haible  <bruno@clisp.org>
24363
24364         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
24365         defined as macros. Needed on QNX 6.4.1.
24366         Reported by Matt Kraai <mkraai@beckman.com>.
24367
24368 2009-07-23  Jim Meyering  <meyering@redhat.com>
24369
24370         maint.mk: invoke "make dist" with a working value of XZ_OPT
24371         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
24372
24373 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
24374
24375         Make fseeko.c compile on QNX.
24376         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
24377
24378 2009-07-22  Peter Simons  <simons@cryp.to>
24379
24380         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
24381         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
24382         * lib/md4.h: Likewise.
24383         * lib/md5.h: Likewise.
24384         * lib/sha1.h: Likewise.
24385         * lib/sha256.h: Likewise.
24386         * lib/sha512.h: Likewise.
24387
24388         tests-sha1: don't assign literal string to 'char *' variable
24389         * tests/test-sha1.c (main): Declare locals with "const" to match
24390         attributes of the right hand side.
24391
24392 2009-07-21  Eric Blake  <ebb9@byu.net>
24393
24394         dup2: fix more mingw problems
24395         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
24396         fd to itself.
24397         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24398         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
24399         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
24400         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
24401         care of mingw bugs.
24402
24403 2009-07-21  Jim Meyering  <meyering@redhat.com>
24404
24405         vc-list-files: avoid failure when /bin/sh is dash
24406         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
24407         On some Debian based systems, /bin/sh is a symlink to dash, and running
24408         this command would omit the "/" following each 'tests' prefix:
24409           dash -x build-aux/vc-list-files -C . tests
24410         That is because bash and dash work differently:
24411           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
24412           bash ok
24413           dash odd
24414
24415 2009-07-21  Eric Blake  <ebb9@byu.net>
24416
24417         dup2-tests: test previous patch
24418         * modules/dup2-tests: New file.
24419         * tests/test-dup2.c: Likewise.
24420         * tests/test-open.c (main): Avoid unspecified behavior.
24421         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
24422         test.
24423
24424         dup2: work around mingw and cygwin 1.5 bug
24425         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
24426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24427         * modules/unistd (Makefile.am): Substitute it.
24428         * lib/unistd.in.h (dup2): Declare the replacement.
24429         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
24430         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
24431         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
24432         * modules/execute (Depends-on): Add dup2.
24433         * modules/fseterr (Depends-on): Likewise.
24434         * modules/pipe (Depends-on): Likewise.
24435         * modules/posix_spawn-internal (Depends-on): Likewise.
24436
24437 2009-07-21  Bruno Haible  <bruno@clisp.org>
24438
24439         * modules/.gitattributes: New file.
24440
24441 2009-07-20  Bruno Haible  <bruno@clisp.org>
24442
24443         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
24444         (main): Use it.
24445
24446 2009-07-20  Eric Blake  <ebb9@byu.net>
24447
24448         test-pipe: make a bit more robust.
24449         * tests/test-pipe.c (myerr): Allow error messages regardless of
24450         what we do to stderr.
24451         (test_pipe): Rearrange to avoid deadlock.
24452         (child_main): Try a larger read, to ensure we avoided deadlock.
24453         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
24454         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
24455         if misused.
24456
24457 2009-07-19  Jim Meyering  <meyering@redhat.com>
24458
24459         fts: avoid false-positive cycle-detection
24460         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
24461         for each new command line argument.
24462
24463 2009-07-19  Bruno Haible  <bruno@clisp.org>
24464
24465         Fix build error on mingw with the modules sys_select and unistd.
24466         * modules/acl-tests (Depends-on): Add close.
24467         * modules/binary-io-tests (Depends-on): Likewise.
24468         * modules/closein-tests (Depends-on): Likewise.
24469         * modules/flock-tests (Depends-on): Likewise.
24470         * modules/fsync-tests (Depends-on): Likewise.
24471         * modules/lseek-tests (Depends-on): Likewise.
24472         * modules/pipe-tests (Depends-on): Likewise.
24473         * modules/posix_spawn-tests (Depends-on): Likewise.
24474         * modules/posix_spawnp-tests (Depends-on): Likewise.
24475         * modules/stat-time-tests (Depends-on): Likewise.
24476         * modules/yesno-tests (Depends-on): Likewise.
24477
24478 2009-07-19  Bruno Haible  <bruno@clisp.org>
24479
24480         Unify conditionals.
24481         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
24482         macros, not at the compiler macros.
24483         * lib/pipe.c: Likewise.
24484         * lib/execute.c: Likewise.
24485         * lib/spawni.c: Likewise.
24486
24487 2009-07-19  Bruno Haible  <bruno@clisp.org>
24488
24489         Fix handling of closed stdin/stdout/stderr on mingw.
24490         * lib/w32spawn.h: Include unistd.h.
24491         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
24492         file descriptor with O_NOINHERIT flag.
24493         (fd_safer_noinherit): New function, based on fd-safer.c.
24494         (dup_safer_noinherit): New function, based on dup-safer.c.
24495         (undup_safer_noinherit): New function.
24496         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
24497         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
24498         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
24499         instead of fd_safer.
24500         * tests/test-pipe.c: Include <windows.h>.
24501         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
24502
24503         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
24504         from main.
24505         (test_pipe): Pass an extra argument for disambiguation.
24506         (main): Invoke parent_main or child_main.
24507
24508         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
24509         consistently.
24510
24511 2009-07-18  Eric Blake  <ebb9@byu.net>
24512
24513         test-pipe: fix mingw build
24514         * tests/test-pipe.c (main): Avoid fcntl on mingw.
24515
24516 2009-07-18  Bruno Haible  <bruno@clisp.org>
24517
24518         * modules/pipe-tests (Makefile.am): Fix typo.
24519
24520 2009-07-18  Eric Blake  <ebb9@byu.net>
24521
24522         error: fix mingw build
24523         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
24524         Reported by Bruno Haible.
24525
24526         error: avoid undefined use of stdout
24527         * lib/error.c (error, error_at_line): Check that fd 1 is open
24528         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
24529         is handling faults and the close_stdout module wants to report the
24530         detection of closed stdout as an error.
24531
24532 2009-07-17  Eric Blake  <ebb9@byu.net>
24533
24534         pipe: be robust in face of closed fds
24535         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
24536         should cause child to misbehave.
24537         * modules/pipe-tests: New module.
24538         * tests/test-pipe.c: New file.
24539         * tests/test-pipe.sh: New file.
24540         Reported by Akim Demaille.
24541
24542 2009-07-14  Bruno Haible  <bruno@clisp.org>
24543
24544         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
24545         Reported by anonymous kc.
24546
24547 2009-07-07  Jim Meyering  <meyering@redhat.com>
24548
24549         maint.mk: don't look for translatable strings in *.m4 or *.mk
24550         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
24551         when searching for translatable strings.
24552
24553 2009-07-05  Jim Meyering  <meyering@redhat.com>
24554
24555         remove superfluous parentheses in STREQ definition
24556         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
24557         * lib/getugroups.c (STREQ): Likewise.
24558         * lib/fnmatch.c (STREQ): Likewise.
24559         Spotted by Bruno Haible.
24560
24561 2009-07-04  Jim Meyering  <meyering@redhat.com>
24562
24563         argv-iter: new module
24564         * MODULES.html.sh: Add argv-iter.
24565         * lib/argv-iter.c, lib/argv-iter.h: New files.
24566         * modules/argv-iter: New file.
24567         * modules/argv-iter-tests: New file.
24568         * tests/test-argv-iter.c: Test it.
24569
24570 2009-07-04  Bruno Haible  <bruno@clisp.org>
24571
24572         Fix assertion.
24573         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
24574         contains more exact copies of a given entry than file2, leave the extra
24575         copies unpaired rather than aborting.
24576         Reported by Eric Blake.
24577
24578 2009-07-02  Bruno Haible  <bruno@clisp.org>
24579
24580         Speedup git-merge-changelog for git cherry-pick.
24581         * lib/git-merge-changelog.c (struct entries_mapping): New type.
24582         (entries_mapping_get): New function, extracted from compute_mapping.
24583         (entries_mapping_reverse_get): New function.
24584         (compute_mapping): Add a 'full' argument. Return the result in a
24585         'struct entries_mapping'.
24586         (main): Update. Access the mappings through entries_mapping_get.
24587         Reported by Eric Blake.
24588
24589 2009-07-02  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
24592         best_i.
24593
24594 2009-07-02  Bruno Haible  <bruno@clisp.org>
24595
24596         Speed up approximate search for matching ChangeLog entries.
24597         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
24598         argument. Call fstrcmp_bounded instead of fstrcmp.
24599         (compute_mapping, try_split_merged_entry, main): Update callers.
24600
24601 2009-07-02  Bruno Haible  <bruno@clisp.org>
24602
24603         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
24604
24605 2009-06-30  Bruno Haible  <bruno@clisp.org>
24606
24607         Reduce the number of uc_is_cased calls.
24608         * lib/unicase.h (casing_suffix_context_t): Add
24609         'first_char_except_ignorable' field.
24610         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
24611         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
24612         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
24613         Update initializer.
24614         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
24615         case-ignorable characters.
24616         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
24617         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
24618         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
24619         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
24620         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
24621
24622 2009-06-30  Bruno Haible  <bruno@clisp.org>
24623
24624         Tests for module 'unicase/ignorable'.
24625         * modules/unicase/ignorable-tests: New file.
24626         * tests/unicase/test-ignorable.c: New file, generated by
24627         gen-uni-tables.
24628
24629         Tests for module 'unicase/cased'.
24630         * modules/unicase/cased-tests: New file.
24631         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
24632         * tests/unicase/test-predicate-part1.h: New file, derived from
24633         tests/unictype/test-predicate-part1.h.
24634         * tests/unicase/test-predicate-part2.h: New file, same as
24635         tests/unictype/test-predicate-part2.h.
24636
24637         Fix evaluation of "Before C" condition of FINAL_SIGMA.
24638         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
24639         (output_casing_properties): New function.
24640         (main): Call it.
24641         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
24642         * lib/unicase/cased.c: Include unictype/bitmap.h.
24643         (uc_is_cased): Define through a bitmap lookup.
24644         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
24645         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
24646         (uc_is_case_ignorable): Define through a bitmap lookup.
24647         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
24648         lib/unictype/bitmap.h.
24649         (Depends-on): Add inline. Clean up.
24650         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
24651         lib/unictype/bitmap.h.
24652         (Depends-on): Add inline. Clean up.
24653         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
24654         recognition.
24655         * tests/unicase/test-u16-tolower.c (main): Likewise.
24656         * tests/unicase/test-u32-tolower.c (main): Likewise.
24657
24658 2009-06-30  Bruno Haible  <bruno@clisp.org>
24659
24660         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
24661         * lib/unicase/u16-casemap.c: Likewise.
24662         * lib/unicase/u32-casemap.c: Likewise.
24663
24664 2009-06-29  Bruno Haible  <bruno@clisp.org>
24665
24666         Define u32_casefold as a wrapper around u32_ct_casefold.
24667         * lib/unicase/u32-casefold.c: Update.
24668         * modules/unicase/u32-casefold (Depends-on): Add
24669         unicase/u32-ct-casefold, unicase/empty-prefix-context,
24670         unicase/empty-suffix-context. Clean up.
24671
24672         Define u16_casefold as a wrapper around u16_ct_casefold.
24673         * lib/unicase/u16-casefold.c: Update.
24674         * modules/unicase/u16-casefold (Depends-on): Add
24675         unicase/u16-ct-casefold, unicase/empty-prefix-context,
24676         unicase/empty-suffix-context. Clean up.
24677
24678         Define u8_casefold as a wrapper around u8_ct_casefold.
24679         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
24680         * lib/unicase/u8-casefold.c: Update.
24681         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
24682         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24683
24684         Define u32_totitle as a wrapper around u32_ct_totitle.
24685         * lib/unicase/u32-totitle.c: Update.
24686         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
24687         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24688
24689         Define u16_totitle as a wrapper around u16_ct_totitle.
24690         * lib/unicase/u16-totitle.c: Update.
24691         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
24692         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24693
24694         Define u8_totitle as a wrapper around u8_ct_totitle.
24695         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
24696         functions.
24697         (FUNC): Delegate to U_CT_TOTITLE.
24698         * lib/unicase/u8-totitle.c: Update.
24699         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
24700         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
24701
24702         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
24703         invocation.
24704         * modules/unicase/u32-tolower (Depends-on): Add
24705         unicase/empty-prefix-context, unicase/empty-suffix-context.
24706
24707         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
24708         invocation.
24709         * modules/unicase/u16-tolower (Depends-on): Add
24710         unicase/empty-prefix-context, unicase/empty-suffix-context.
24711
24712         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
24713         * modules/unicase/u8-tolower (Depends-on): Add
24714         unicase/empty-prefix-context, unicase/empty-suffix-context.
24715
24716         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
24717         invocation.
24718         * modules/unicase/u32-toupper (Depends-on): Add
24719         unicase/empty-prefix-context, unicase/empty-suffix-context.
24720
24721         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
24722         invocation.
24723         * modules/unicase/u16-toupper (Depends-on): Add
24724         unicase/empty-prefix-context, unicase/empty-suffix-context.
24725
24726         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
24727         * modules/unicase/u8-toupper (Depends-on): Add
24728         unicase/empty-prefix-context, unicase/empty-suffix-context.
24729
24730         New module 'unicase/u32-ct-casefold'.
24731         * lib/unicase/u32-ct-casefold.c: New file.
24732         * modules/unicase/u32-ct-casefold: New file.
24733
24734         New module 'unicase/u16-ct-casefold'.
24735         * lib/unicase/u16-ct-casefold.c: New file.
24736         * modules/unicase/u16-ct-casefold: New file.
24737
24738         New module 'unicase/u8-ct-casefold'.
24739         * lib/unicase/u8-ct-casefold.c: New file.
24740         * lib/unicase/u-ct-casefold.h: New file, derived from
24741         lib/unicase/u-casefold.h.
24742         * modules/unicase/u8-ct-casefold: New file.
24743
24744         New module 'unicase/u32-ct-totitle'.
24745         * lib/unicase/u32-ct-totitle.c: New file.
24746         * modules/unicase/u32-ct-totitle: New file.
24747
24748         New module 'unicase/u16-ct-totitle'.
24749         * lib/unicase/u16-ct-totitle.c: New file.
24750         * modules/unicase/u16-ct-totitle: New file.
24751
24752         New module 'unicase/u8-ct-totitle'.
24753         * lib/unicase/u8-ct-totitle.c: New file.
24754         * lib/unicase/u-ct-totitle.h: New file, derived from
24755         lib/unicase/u-totitle.h.
24756         * modules/unicase/u8-ct-totitle: New file.
24757
24758         New module 'unicase/u32-ct-tolower'.
24759         * lib/unicase/u32-ct-tolower.c: New file.
24760         * modules/unicase/u32-ct-tolower: New file.
24761
24762         New module 'unicase/u16-ct-tolower'.
24763         * lib/unicase/u16-ct-tolower.c: New file.
24764         * modules/unicase/u16-ct-tolower: New file.
24765
24766         New module 'unicase/u8-ct-tolower'.
24767         * lib/unicase/u8-ct-tolower.c: New file.
24768         * modules/unicase/u8-ct-tolower: New file.
24769
24770         New module 'unicase/u32-ct-toupper'.
24771         * lib/unicase/u32-ct-toupper.c: New file.
24772         * modules/unicase/u32-ct-toupper: New file.
24773
24774         New module 'unicase/u16-ct-toupper'.
24775         * lib/unicase/u16-ct-toupper.c: New file.
24776         * modules/unicase/u16-ct-toupper: New file.
24777
24778         New module 'unicase/u8-ct-toupper'.
24779         * lib/unicase/u8-ct-toupper.c: New file.
24780         * modules/unicase/u8-ct-toupper: New file.
24781
24782         Add context arguments to u*_casemap functions.
24783         * lib/unicase/unicasemap.h: Include unicase.h.
24784         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
24785         suffix_context arguments.
24786         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
24787         functions.
24788         (FUNC): Add prefix_context and suffix_context arguments. Use
24789         uc_is_cased and uc_is_case_ignorable.
24790         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
24791         * lib/unicase/u16-casemap.c: Likewise.
24792         * lib/unicase/u32-casemap.c: Likewise.
24793         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
24794         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24795         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
24796         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24797         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
24798         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
24799
24800         New module 'unicase/u32-suffix-context'.
24801         * lib/unicase/u32-suffix-context.c: New file.
24802         * modules/unicase/u32-suffix-context: New file.
24803
24804         New module 'unicase/u16-suffix-context'.
24805         * lib/unicase/u16-suffix-context.c: New file.
24806         * modules/unicase/u16-suffix-context: New file.
24807
24808         New module 'unicase/u8-suffix-context'.
24809         * lib/unicase/u8-suffix-context.c: New file.
24810         * lib/unicase/u-suffix-context.h: New file.
24811         * modules/unicase/u8-suffix-context: New file.
24812
24813         New module 'unicase/empty-suffix-context'.
24814         * lib/unicase/empty-suffix-context.c: New file.
24815         * modules/unicase/empty-suffix-context: New file.
24816
24817         New module 'unicase/u32-prefix-context'.
24818         * lib/unicase/u32-prefix-context.c: New file.
24819         * modules/unicase/u32-prefix-context: New file.
24820
24821         New module 'unicase/u16-prefix-context'.
24822         * lib/unicase/u16-prefix-context.c: New file.
24823         * modules/unicase/u16-prefix-context: New file.
24824
24825         New module 'unicase/u8-prefix-context'.
24826         * lib/unicase/u8-prefix-context.c: New file.
24827         * lib/unicase/u-prefix-context.h: New file.
24828         * lib/unicase/context.h: New file.
24829         * modules/unicase/u8-prefix-context: New file.
24830
24831         New module 'unicase/empty-prefix-context'.
24832         * lib/unicase/empty-prefix-context.c: New file.
24833         * modules/unicase/empty-prefix-context: New file.
24834
24835         New module 'unicase/ignorable'.
24836         * lib/unicase/ignorable.c: New file.
24837         * modules/unicase/ignorable: New file.
24838
24839         New module 'unicase/cased'.
24840         * lib/unicase/caseprop.h: New file.
24841         * lib/unicase/cased.c: New file.
24842         * modules/unicase/cased: New file.
24843
24844         New functions for case mapping of substrings.
24845         * lib/unicase.h (casing_prefix_context_t): New type.
24846         (unicase_empty_prefix_context): New variable.
24847         (u8_casing_prefix_context, u16_casing_prefix_context,
24848         u32_casing_prefix_context, u8_casing_prefixes_context,
24849         u16_casing_prefixes_context, u32_casing_prefixes_context): New
24850         declarations.
24851         (casing_suffix_context_t): New type.
24852         (unicase_empty_suffix_context): New variable.
24853         (u8_casing_suffix_context, u16_casing_suffix_context,
24854         u32_casing_suffix_context, u8_casing_suffixes_context,
24855         u16_casing_suffixes_context, u32_casing_suffixes_context,
24856         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
24857         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
24858         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
24859         declarations.
24860
24861 2009-06-28  Jim Meyering  <meyering@redhat.com>
24862
24863         boostrap: indent only with spaces
24864         * build-aux/bootstrap: Indent only with spaces, never TABs.
24865
24866         bootstrap: split long lines
24867         * build-aux/bootstrap: Keep line length < 80.
24868
24869         bootstrap: sync from coreutils
24870         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
24871         just as autoreconf does.  Verify a list of prerequisite
24872         package-name,version-number pairs if defined in bootstrap.conf.
24873         Refer to README-prereq, if prerequisites are not satisfied.
24874
24875 2009-06-27  Eric Blake  <ebb9@byu.net>
24876
24877         tests: add test for bogus NULL definition
24878         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
24879         * tests/test-stdlib.c: Likewise.
24880         * tests/test-string.c: Likewise.
24881         * tests/test-locale.c: Likewise.
24882         * tests/test-unistd.c: Likewise.
24883         * modules/stdio-tests (Depends-on): Add verify.
24884         * modules/stdlib-tests (Depends-on): Likewise.
24885         * modules/string-tests (Depends-on): Likewise.
24886         * modules/locale-tests (Depends-on): Likewise.
24887         * modules/unistd-tests (Depends-on): Likewise.
24888
24889 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
24890
24891         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
24892         self-explaining comment.
24893         * m4/selinux-selinux-h: Update serial.
24894         (gl_LIBSELINUX): New macro, adding a warning for missing development
24895         packages to code extracted from...
24896         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
24897         Add warning for missing development packages here, too.
24898
24899 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
24900
24901         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
24902
24903 2009-06-25  Eric Blake  <ebb9@byu.net>
24904
24905         version-etc: fix regression
24906         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
24907         gcc.
24908         (version_etc): Use it, to catch bugs with trailing NULL.
24909         * lib/version-etc.c (version_etc_arn): Delete unused argument.
24910         (version_etc_va): Fix logic bug.
24911         * modules/version-etc-tests: Add test.
24912         * tests/test-version-etc.c: New file.
24913         * tests/test-version-etc.sh: Likewise.
24914
24915 2009-06-25  Sam Steingold  <sds@gnu.org>
24916
24917         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
24918         mbtowc declaration.
24919
24920 2009-06-25  Eric Blake  <ebb9@byu.net>
24921
24922         fpurge: migrate into <stdio.h>
24923         * lib/fpurge.h: Delete...
24924         * lib/stdio.in.h (fpurge): ...and declare here, instead.
24925         * lib/fpurge.c (fpurge): Change declaring header.
24926         * modules/fpurge (Files): Drop deleted file.
24927         (Depends-on): Add stdio.
24928         (configure.ac): Set witness.
24929         * modules/stdio (Makefile.am): Support fpurge macros.
24930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24931         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
24932         * lib/fflush.c: Update client.
24933         * tests/test-fpurge.c: Likewise.
24934         * NEWS: Mention the change.
24935
24936 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24937
24938         * lib/argp-version-etc.c (program_authors): Add const
24939         qualifier.
24940         * lib/version-etc.c: Fix typos in the comments.
24941         * modules/argp-version-etc: Depends on version-etc.
24942
24943 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24944
24945         argp-version-etc: new module.
24946
24947         * lib/argp-version-etc.c: New file.
24948         * lib/argp-version-etc.h: New file.
24949         * modules/argp-version-etc: New file.
24950         * modules/argp-version-etc-tests: New file.
24951         * tests/test-argp-version-etc.c: New test.
24952         * tests/test-argp-version-etc-1.sh: New test.
24953
24954 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24955
24956         Provide additional interfaces and documentation for version-etc
24957         module.
24958
24959         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
24960         interfaces.
24961         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
24962         prototypes.
24963
24964 2009-06-24  Bruno Haible  <bruno@clisp.org>
24965
24966         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
24967         HAVE_LIB${NAME} macro.
24968         Reported by Sam Steingold <sds@gnu.org>.
24969
24970 2009-06-23  Simon Josefsson  <simon@josefsson.org>
24971
24972         * modules/hash-tests (test_hash_LDADD): Link to libintl when
24973         needed.
24974
24975 2009-06-21  Bruno Haible  <bruno@clisp.org>
24976
24977         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
24978         work.
24979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
24980         together with LIB${NAME}, LTLIB${NAME}.
24981         Reported by Sam Steingold <sds@gnu.org>.
24982
24983 2009-06-20  Jim Meyering  <meyering@redhat.com>
24984
24985         tests: make sc_require_test_exit_idiom more generic
24986         * top/maint.mk (Exit_witness_file): New overridable variable.
24987         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
24988         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
24989
24990 2009-06-19  Jim Meyering  <meyering@redhat.com>
24991
24992         hash: reverse order of src/dst parameters in an internal interface
24993         * lib/hash.c (transfer_entries): Reverse order of parameters to
24994         put DST before SRC.  Adjust callers.
24995
24996         tests: test-hash: avoid wholesale duplication
24997         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
24998         Instead, use a loop and add a single conditional.
24999
25000         tests: test-hash: allow seed selection via a command line argument
25001         * tests/test-hash.c (get_seed): New function.
25002         (main): Use it.
25003
25004 2009-06-19  Eric Blake  <ebb9@byu.net>
25005
25006         hash: avoid memory leak on allocation failure
25007         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
25008         failure.  Factor repeated algorithm...
25009         (transfer_entries): ...into new helper routine.
25010         (hash_delete): React to hash_rehash return value.
25011
25012         hash: reduce memory pressure in hash_rehash no-op case
25013         * lib/hash.c (next_prime): Avoid overflow.
25014         (hash_initialize): Factor bucket size computation...
25015         (compute_bucket_size): ...into new helper function.
25016         (hash_rehash): Use new function and open coding to reduce memory
25017         pressure, and avoid a memory leak in USE_OBSTACK code.
25018         Reported by Jim Meyering.
25019
25020 2009-06-18  Eric Blake  <ebb9@byu.net>
25021
25022         hash: make rotation more obvious
25023         * modules/hash (Depends-on): Add bitrotate and stdint.
25024         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
25025         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
25026         (SIZE_MAX): Rely on headers for definition.
25027         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
25028         (raw_hasher): Use rotr_sz.
25029         Suggested by Jim Meyering.
25030
25031         hash: fix memory leak in last patch
25032         * lib/hash.c (hash_rehash): Avoid memory leak.
25033
25034         hash: avoid no-op rehashing
25035         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
25036
25037         hash: provide default callback functions
25038         * lib/hash.c (raw_hasher, raw_comparator): New functions.
25039         (hash_initialize): Use them as defaults.
25040         * tests/test-hash.c (main): Test this.
25041
25042         hash: minor optimization
25043         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
25044         when possible.
25045         (hash_initialize): Document this promise.
25046         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
25047         * tests/test-hash.c (hash_compare_strings): Test this.
25048
25049 2009-06-18  Bruno Haible  <bruno@clisp.org>
25050
25051         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
25052         going to be replaced anyway.
25053
25054 2009-06-18  Bruno Haible  <bruno@clisp.org>
25055
25056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
25057         in one place.
25058         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
25059         be replaced anyway.
25060
25061 2009-06-18  Eric Blake  <ebb9@byu.net>
25062
25063         hash: check for resize before insertion
25064         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
25065         threshold before insertion, so that a pathological hash_rehash
25066         that fills every bucket can still trigger another rehash.
25067
25068 2009-06-18  Jim Meyering  <meyering@redhat.com>
25069
25070         hash-tests: add a loop around the small tests
25071         * tests/test-hash.c (main): Repeat small tests with selected
25072         small initial table sizes.
25073
25074 2009-06-17  Eric Blake  <ebb9@byu.net>
25075
25076         hash: minor cleanups
25077         * lib/hash.h (hash_entry): Make opaque, by moving...
25078         * lib/hash.c (hash_entry): ...here.
25079         (hash_insert): Clarify restrictions on what can be inserted.
25080         (hash_get_next): Clarify when it is safe to remove an element
25081         during traversal.
25082         (check_tuning): Skip verification when tuning is known safe.
25083         (hash_initialize): Clarify restrictions on tuning.
25084
25085 2009-06-17  Jim Meyering  <jim@meyering.net>
25086         and Eric Blake  <ebb9@byu.net>
25087
25088         hash-tests: new module
25089         * modules/hash-tests: New file.
25090         * tests/test-hash.c: New file.
25091
25092 2009-06-17  Eric Blake  <ebb9@byu.net>
25093
25094         strstr-simple: document new module
25095         * MODULES.html.sh: Document new module.
25096
25097         strstr, strcasestr: replace on platforms with broken memchr
25098         * modules/strstr: Split into...
25099         * modules/strstr-simple: ...new module that does not care about
25100         performance, but does care about glibc bug.
25101         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
25102         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
25103         if platform memchr is broken, per Debian bug 521737.
25104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
25105         memchr.
25106         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
25107         * doc/posix-functions/strstr.texi (strstr): Document the fix.
25108         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25109         * modules/mountlist (Depends-on): Add strstr-simple.
25110         * modules/gen-uni-tables (Depends-on): Likewise.
25111         * modules/argz (Depends-on): Add strstr.
25112
25113 2009-06-17  Bruno Haible  <bruno@clisp.org>
25114
25115         * modules/posix_spawn-internal (Depends-on): Add errno.
25116
25117 2009-06-17  Bruno Haible  <bruno@clisp.org>
25118
25119         Define missing ESTALE on Interix 3.5.
25120         * lib/errno.in.h (ESTALE): Assign a value if missing.
25121         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
25122         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
25123         missing.
25124         * doc/posix-headers/errno.texi: Mention the Interix bug.
25125         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
25126
25127 2009-06-15  Eric Blake  <ebb9@byu.net>
25128
25129         memchr, memchr2: add valgrind exception
25130         * lib/memchr.valgrind: New file.
25131         * lib/memchr2.valgrind: New file.
25132         * modules/memchr (Files): Distribute valgrind file.
25133         * modules/memchr2 (Files): Likewise.
25134
25135         docs: memchr is no longer obsolete
25136         * MODULES.html.sh: Move memchr from obsolete to string.h section.
25137         * lib/string.in.h (memchr): Simplify logic.
25138
25139 2009-06-14  Jim Meyering  <meyering@redhat.com>
25140
25141         link-follow: fix the "checking..." message to not mention trailing slash
25142         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
25143         never considered trailing slashes.
25144
25145 2009-06-14  Bruno Haible  <bruno@clisp.org>
25146
25147         * m4/memchr.m4: Mention also the bug on IA-64.
25148         * doc/posix-functions/memchr.texi: Likewise.
25149
25150 2009-06-12  Eric Blake  <ebb9@byu.net>
25151
25152         memchr: detect broken x86_64 and alpha implementations
25153         * modules/memchr-tests (Depends-on): Move mmap detection...
25154         * modules/memchr (Depends-on): ...here.
25155         (configure.ac): Set indicator.
25156         * lib/string.in.h (memchr): Declare replacement.
25157         * modules/string (Makefile.am): Trigger replacement.
25158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25159         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
25160         bugs.
25161         * doc/posix-functions/memchr.texi (memchr): Document the bug.
25162         * modules/getpagesize (License): Relax license.
25163
25164 2009-06-11  Bruno Haible  <bruno@clisp.org>
25165
25166         * lib/idpriv.h: Add more references.
25167
25168 2009-06-08  Bruno Haible  <bruno@clisp.org>
25169
25170         Tests for module 'idpriv-droptemp'.
25171         * modules/idpriv-droptemp-tests: New file.
25172         * tests/test-idpriv-droptemp.sh: New file.
25173         * tests/test-idpriv-droptemp.su.sh: New file.
25174         * tests/test-idpriv-droptemp.c: New file.
25175
25176         New module 'idpriv-droptemp'.
25177         * lib/idpriv-droptemp.c: New file.
25178         * modules/idpriv-droptemp: New file.
25179
25180 2009-06-08  Bruno Haible  <bruno@clisp.org>
25181
25182         Tests for module 'idpriv-drop'.
25183         * modules/idpriv-drop-tests: New file.
25184         * tests/test-idpriv-drop.sh: New file.
25185         * tests/test-idpriv-drop.su.sh: New file.
25186         * tests/test-idpriv-drop.c: New file.
25187
25188         New module 'idpriv-drop'.
25189         * lib/idpriv.h: New file.
25190         * lib-idpriv-drop.c: New file.
25191         * m4/idpriv.m4: New file.
25192         * modules/idpriv-drop: New file.
25193
25194 2009-06-08  Bruno Haible  <bruno@clisp.org>
25195
25196         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
25197         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25198         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25199         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25200         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25203
25204 2009-06-08  Eric Blake  <ebb9@byu.net>
25205
25206         test-strstr: use memory fence, when possible
25207         * tests/test-strstr.c (main): Use memory fence, in order to be
25208         more likely to trigger Debian bug 521737.
25209         * modules/strstr-tests (Files): Pull in additional files.
25210
25211         memchr: no longer obsolete, for wider field testing
25212         * modules/memchr (Status, Notice): Delete, this module is no
25213         longer obsolete.
25214         * modules/vasnprintf (Depends-on): Add memchr.
25215
25216 2009-06-07  Jim Meyering  <meyering@redhat.com>
25217
25218         hash: declare some functions with the warn_unused_result attribute
25219         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
25220
25221 2009-06-07  Bruno Haible  <bruno@clisp.org>
25222
25223         * tests/test-alignof.c: Don't test int64_t if it does not exist.
25224         Reported by Eric Blake.
25225
25226 2009-06-06  Eric Blake  <ebb9@byu.net>
25227
25228         test-alignof: fix typo with long double
25229         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
25230         compiler error.
25231
25232 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
25233
25234         Escape non-texinfo { and }s.
25235         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
25236         markup error.
25237
25238 2009-06-04  Jim Meyering  <meyering@redhat.com>
25239
25240         gitlog-to-changelog: don't infloop on an empty commit log
25241         * build-aux/gitlog-to-changelog: Warn about an empty log message.
25242         Reported by Boris Petersen <transacid@centerim.org>.
25243
25244 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
25245
25246         version-etc: extend for packagers
25247         Add three new configure options, intended for packagers:
25248           --with-packager="packager name"
25249           --with-packager-version="packager-specific version"
25250           --with-packager-bug-reports="packager bug reporting"
25251         An example with coreutils:
25252           $ ./configure \
25253             --with-packager=Gentoo \
25254             --with-packager-bug-report=http://bugs.gentoo.org/ \
25255             --with-packager-version="patchset 1.6"
25256           $ ./src/ls --version | head -n2
25257           ls (GNU coreutils) 7.1-dirty
25258           Packaged by Gentoo (patchset 1.6)
25259         Note that the bug reporting info via --help doesn't show up because
25260         coreutils uses its own custom emit_bug_reporting_address() implementation
25261         in src/system.h.  If it didn't, it'd look like:
25262           $ ./src/ls --help | tail -n4
25263           Report bugs to <bug-coreutils@gnu.org>.
25264           Report Gentoo bugs to <http://bugs.gentoo.org/>.
25265           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
25266           General help using GNU software: <http://www.gnu.org/gethelp/>.
25267         * lib/version-etc.c: Print new information, if provided.
25268         * m4/version-etc.m4: New file.
25269         * modules/version-etc (Files): Add m4/version-etc.m4.
25270         (configure.ac): Add gl_VERSION_ETC.
25271
25272 2009-05-31  Bruno Haible  <bruno@clisp.org>
25273
25274         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
25275         and 'int64_t'.
25276         * modules/alignof-tests (Dependencies): Add stdint.
25277         Reported by Eric Blake.
25278
25279 2009-05-31  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
25282         restriction due to compiler bugs.
25283         Reported by Eric Blake.
25284
25285 2009-05-31  Simon Josefsson  <simon@josefsson.org>
25286             Bruno Haible  <bruno@clisp.org>
25287
25288         Fix test-alignof failure.
25289         * lib/alignof.h (alignof_slot): New macro.
25290         (alignof_type): New macro, with the same semantics as the previous
25291         'alignof'.
25292         (alignof): Alias to alignof_slot.
25293         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
25294         check that the results are usable as constant expressions.
25295
25296 2009-05-31  Bruno Haible  <bruno@clisp.org>
25297
25298         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
25299         * tests/test-memchr.c (main): Check that memchr does not read past the
25300         first occurrence of the byte.
25301         * tests/test-strstr.c (main): Update comment.
25302         Suggested by Eric Blake.
25303
25304 2009-05-30  Bruno Haible  <bruno@clisp.org>
25305
25306         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
25307         detail how to use dumpbin.
25308         Reported by David Byron <dbyron@dbyron.com>.
25309
25310 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25311
25312         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
25313
25314 2009-06-02  Simon Josefsson  <simon@josefsson.org>
25315
25316         * m4/manywarnings.m4: Add GCC 4.4 warnings.
25317
25318 2009-05-28  Bruno Haible  <bruno@clisp.org>
25319
25320         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
25321         build-aux/ files.
25322
25323 2009-05-28  Simon Josefsson  <simon@josefsson.org>
25324
25325         * gnulib-tool (func_import): Transform license on build-aux/ files too.
25326
25327 2009-05-27  Simon Josefsson  <simon@josefsson.org>
25328
25329         * gnulib-tool (sed_transform_main_lib_file)
25330         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
25331         regexps.
25332
25333 2009-05-26  Simon Josefsson  <simon@josefsson.org>
25334
25335         * tests/test-strstr.c: Add another self-test.
25336         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
25337         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
25338
25339 2009-05-23  Bruno Haible  <bruno@clisp.org>
25340
25341         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
25342         change.
25343
25344 2009-05-21  Bruno Haible  <bruno@clisp.org>
25345
25346         Simplify use of mode_t varargs.
25347         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
25348         uses 'mode_t' or 'int'.
25349         * lib/openat.c (openat): Likewise.
25350         * lib/open-safer.c (open_safer): Likewise.
25351         * m4/mode_t.m4: New file.
25352         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
25353         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
25354         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
25355         * modules/open (Files): Add m4/mode_t.m4.
25356         * modules/openat (Files): Likewise.
25357         * modules/fcntl-safer (Files): Likewise.
25358         Suggested by Eric Blake.
25359
25360 2009-05-21  Pádraig Brady  <P@draigbrady.com>
25361
25362         * doc/glibc-functions/fallocate.texi: New file.
25363         * doc/gnulib.texi: Include it.
25364
25365 2009-05-21  Eric Blake  <ebb9@byu.net>
25366             Bruno Haible  <bruno@clisp.org>
25367
25368         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
25369         invocations.
25370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25371
25372 2009-05-21  Eric Blake  <ebb9@byu.net>
25373             Bruno Haible  <bruno@clisp.org>
25374
25375         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
25376         include_next. Fix of 2008-11-20 commit.
25377         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
25378         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
25379         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
25380         NEXT_MATH_H.
25381         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
25382         instead of NEXT_MATH_H.
25383
25384 2009-05-21  Bruno Haible  <bruno@clisp.org>
25385
25386         Avoid redefinition warnings for SIZE_MAX.
25387         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
25388         Reported by Simon Josefsson.
25389
25390 2009-05-21  Bruno Haible  <bruno@clisp.org>
25391
25392         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
25393         AC_CACHE_VAL.
25394
25395 2009-05-20  Bruno Haible  <bruno@clisp.org>
25396
25397         Make zeroptr.h work on mingw.
25398         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
25399         mprotect.
25400         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
25401         * modules/memchr2-tests (configure.ac): Likewise.
25402         * modules/memcmp-tests (configure.ac): Likewise.
25403         * modules/memmem-tests (configure.ac): Likewise.
25404         * modules/memrchr-tests (configure.ac): Likewise.
25405         Reported by Simon Josefsson.
25406
25407 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25408
25409         * tests/test-glob.c: Include string.h for strcmp prototype.
25410
25411 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25412
25413         * modules/getdelim (Depends-on): Add explicit stdint, although it
25414         was implicitly already pulled in via realloc-posix.
25415         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
25416
25417 2009-05-20  Simon Josefsson  <simon@josefsson.org>
25418
25419         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
25420         G. Christensen" <tgc@jupiterrise.com>.
25421         * m4/sys_socket_h.m4: Check for sa_family_t.
25422         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
25423         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
25424         * tests/test-sys_socket.c: Check that sa_family_t works.
25425
25426 2009-05-18  Eric Blake  <ebb9@byu.net>
25427
25428         maint.mk: allow gnulib_dir in VPATH build
25429         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
25430
25431 2009-05-15  Jim Meyering  <meyering@redhat.com>
25432
25433         maint.mk: Give gnulib_dir a default definition.
25434         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
25435         Thus, most packages no longer need to specify this variable in cfg.mk
25436
25437 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
25438
25439         rename.m4: fix typos that would make non-mingw cross-configure fail
25440         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
25441
25442 2009-05-13  Eric Blake  <ebb9@byu.net>
25443
25444         mmap-anon: avoid out-of-order autoconf expansion
25445         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
25446         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
25447         * modules/memchr-tests (Depends-on): Add extensions.
25448         * modules/memchr2-tests (Depends-on): Add extensions.
25449         * modules/memcmp-tests (Depends-on): Add extensions.
25450         * modules/memmem-tests (Depends-on): Add extensions.
25451         * modules/memrchr-tests (Depends-on): Add extensions.
25452
25453 2009-05-13  Bruno Haible  <bruno@clisp.org>
25454
25455         Make some tests ISO C 99 compliant.
25456         * tests/zerosize-ptr.h: New file.
25457         * tests/test-memchr.c: Include zerosize-ptr.h.
25458         (main): Use a zero-size object pointer instead of NULL.
25459         * tests/test-memchr2.c: Include zerosize-ptr.h.
25460         (main): Use a zero-size object pointer instead of NULL.
25461         * tests/test-memcmp.c: Include zerosize-ptr.h.
25462         (main): Use a zero-size object pointer instead of NULL.
25463         * tests/test-memmem.c: Include zerosize-ptr.h.
25464         (main): Use a zero-size object pointer instead of NULL.
25465         * tests/test-memrchr.c: Include zerosize-ptr.h.
25466         (main): Use a zero-size object pointer instead of NULL.
25467         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
25468         m4/mmap-anon.m4.
25469         (Depends-on): Add getpagesize.
25470         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25471         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
25472         m4/mmap-anon.m4.
25473         (Depends-on): Add getpagesize.
25474         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25475         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
25476         m4/mmap-anon.m4.
25477         (Depends-on): Add getpagesize.
25478         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25479         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
25480         m4/mmap-anon.m4.
25481         (Depends-on): Add getpagesize.
25482         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25483         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
25484         m4/mmap-anon.m4.
25485         (Depends-on): Add getpagesize.
25486         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
25487
25488 2009-05-12  Bruno Haible  <bruno@clisp.org>
25489
25490         Tests for module 'alignof'.
25491         * modules/alignof-tests: New file.
25492         * tests/test-alignof.c: New file.
25493
25494 2009-05-12  Bruno Haible  <bruno@clisp.org>
25495
25496         Fix alignof macro.
25497         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
25498         vendor compilers that are always correct.
25499
25500 2009-05-12  Bruno Haible  <bruno@clisp.org>
25501
25502         Make the MAP_ANONYMOUS detection work on HP-UX 11.
25503         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
25504         not whether its fully works.
25505
25506 2009-05-12  Bruno Haible  <bruno@clisp.org>
25507
25508         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
25509
25510 2009-05-12  Jim Meyering  <meyering@redhat.com>
25511
25512         * top/maint.mk: Adjust backslash alignment.
25513
25514 2009-05-11  Simon Josefsson  <simon@josefsson.org>
25515
25516         * top/maint.mk: Make $(srcdir)/build-aux configurable.
25517
25518 2009-05-11  Eric Blake  <ebb9@byu.net>
25519
25520         argp: avoid undefined behavior
25521         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
25522         macros.
25523
25524 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25525
25526         * tests/test-vc-list-files-git.sh: Do git config of user.email and
25527         user.name to prevent git commit from complaining.
25528
25529 2009-05-10  Bruno Haible  <bruno@clisp.org>
25530
25531         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
25532         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
25533         it rewrites every file name only once.
25534         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
25535
25536 2009-05-08  Bruno Haible  <bruno@clisp.org>
25537
25538         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
25539         instead of 'max'.
25540
25541 2009-05-08  Simon Josefsson  <simon@josefsson.org>
25542
25543         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
25544         sockaddr_storage test.
25545
25546 2009-05-07  Simon Josefsson  <simon@josefsson.org>
25547
25548         * modules/sys_socket (Makefile.am): Substitute
25549         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
25550         * m4/sys_socket_h.m4: Check for sockaddr_storage.
25551         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
25552         * tests/test-sys_socket.c: Check sockaddr_storage.
25553
25554 2009-05-08  Bruno Haible  <bruno@clisp.org>
25555
25556         New module 'alignof'.
25557         * lib/alignof.h: New file.
25558         * modules/alignof: New file.
25559
25560 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25561             Bruno Haible  <bruno@clisp.org>
25562
25563         Fix test-file-has-acl on FreeBSD.
25564         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
25565         mask is implicitly added.
25566         * tests/test-file-has-acl.c: Include <signal.h>.
25567         (main): Terminate the test after 5 seconds.
25568         * modules/acl-tests (configure.ac): Check for alarm function.
25569
25570 2009-05-04  Bruno Haible  <bruno@clisp.org>
25571
25572         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
25573         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
25574         * modules/errno (configure.ac): Drop AC_REQUIRE.
25575         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
25576         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
25577
25578 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25579
25580         * modules/glob-tests: New module.
25581         * tests/test-glob.c: Add.
25582
25583 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25584
25585         * modules/fnmatch-tests: New module.
25586         * tests/test-fnmatch.c: Add.
25587
25588 2009-05-04  Eric Blake  <ebb9@byu.net>
25589
25590         maint: make the new no-submodule-changes rule VPATH-safe
25591         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
25592
25593 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25594             Bruno Haible  <bruno@clisp.org>
25595
25596         acl: Fix infinite loop on FreeBSD.
25597         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
25598         of return value from acl_get_entry.
25599         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
25600         Likewise.
25601
25602 2009-05-03  Bruno Haible  <bruno@clisp.org>
25603
25604         * lib/acl-internal.h (acl_entries): Clarify return value.
25605         * lib/acl_entries.c (acl_entries): Likewise.
25606
25607 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25608
25609         Bug fix in acl module.
25610         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
25611
25612 2009-05-03  Bruno Haible  <bruno@clisp.org>
25613
25614         Create gperf-generated file in the source dir, not in the build dir.
25615         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
25616         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
25617         * modules/unicase/locale-language (unicase/locale-languages.h):
25618         Likewise.
25619         * modules/unicase/special-casing (unicase/special-casing-table.h):
25620         Likewise.
25621         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
25622         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
25623         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
25624         Reported by Ralf Wildenhues.
25625
25626 2009-05-03  Bruno Haible  <bruno@clisp.org>
25627
25628         * modules/fnmatch (Description, configure.ac): Taken from
25629         fnmatch-posix.
25630         * modules/fnmatch-posix: Turn into a symbolic reference to the
25631         'fnmatch' module, and deprecate.
25632         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
25633
25634 2009-05-03  Bruno Haible  <bruno@clisp.org>
25635
25636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
25637         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
25638         Reported by Ralf Wildenhues.
25639
25640 2009-05-04  Simon Josefsson  <simon@josefsson.org>
25641
25642         * m4/fnmatch.m4: Fix fnmatch re-define.
25643
25644 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
25645
25646         priv-set: new module and tests; adapt write-any-file
25647         * lib/priv-set.c: New file.
25648         * lib/priv-set.h: New file.
25649         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
25650         * lib/write-any-file.c: Simplify by using priv-set module.
25651         * m4/priv-set.m4: New file.
25652         * modules/priv-set: New file.
25653         * modules/unlinkdir: Add dependency on priv-set module.
25654         * modules/write-any-file: Likewise.
25655
25656         Tests for module 'priv-set'.
25657         * modules/priv-set-tests: New file.
25658         * tests/test-priv-set.c: New file.
25659
25660 2009-05-03  Jim Meyering  <meyering@redhat.com>
25661             Bruno Haible  <bruno@clisp.org>
25662
25663         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
25664         use the converted UTF-8 variant of the name instead.
25665
25666 2009-05-03  Jim Meyering  <meyering@redhat.com>
25667
25668         tests: tighten some getdate tests
25669         * tests/test-getdate.c (main): Tighten tests: require equality,
25670         not just greater than.  Set TZ envvar to UTC0.
25671
25672 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25673
25674         getdate: correctly interpret "next monday" when run on a Monday
25675         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
25676         that e.g., "next tues" (when run on a tuesday) results in a date
25677         that is one week in the future, and not today's date.
25678         I.e., add a week when the wday is the same as the current one.
25679         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
25680         and earlier by Martin Bernreuther and Jan Minář.
25681         * tests/test-getdate.c (main): Check that "next DAY" is always in
25682         the future and that "last DAY" is always in the past.
25683
25684 2009-05-02  Jim Meyering  <meyering@redhat.com>
25685
25686         build: ensure that a release build fails when a submodule is unclean
25687         * top/maint.mk (no-submodule-changes): New rule.
25688         (alpha beta major): Depend on it.
25689
25690 2009-05-02  Bruno Haible  <bruno@clisp.org>
25691
25692         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
25693         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
25694         shell variable gl_fnmatch_required to detect which variant is
25695         requested.
25696         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
25697         gl_FUNC_FNMATCH_POSIX.
25698         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
25699         exclude fnmatch-posix.
25700
25701 2009-05-02  Bruno Haible  <bruno@clisp.org>
25702
25703         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
25704         * modules/mbsrtowcs (License): Change to LGPLv2+.
25705         * modules/strnlen1 (License): Likewise.
25706         Reported by Simon Josefsson.
25707
25708 2009-05-02  Bruno Haible  <bruno@clisp.org>
25709
25710         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
25711         "cross".
25712         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
25713         gnulib-tool was called with option --source-base=lib.
25714
25715 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25716
25717         Use automake *-local hooks without commands, for extensibility.
25718         * modules/localcharset (Makefile.am): Rename install-exec-local
25719         rule to install-exec-localcharset, and make it a prerequisite of
25720         install-exec-local.  Likewise, rename the uninstall-local rule to
25721         uninstall-localcharset, and make it a prerequisite of the former.
25722
25723 2009-05-01  Bruno Haible  <bruno@clisp.org>
25724
25725         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
25726         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25727         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
25728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
25729         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
25730         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25731         m4/locale-zh.m4, m4/codeset.m4.
25732
25733         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
25734         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
25735         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
25736         m4/locale-zh.m4.
25737
25738         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
25739         REPLACE_WCRTOMB if mbstate_t must be replaced.
25740         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
25741         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
25742
25743 2009-05-01  Bruno Haible  <bruno@clisp.org>
25744
25745         Avoid compiler warnings when redefining macros defined by <libintl.h>.
25746         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
25747         dngettext, dcngettext, textdomain, bindtextdomain,
25748         bind_textdomain_codeset): Undefine before redefining.
25749
25750 2009-04-30  Bruno Haible  <bruno@clisp.org>
25751
25752         Fix bug introduced on 2009-04-25.
25753         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
25754         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
25755         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
25756         is defined.
25757         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
25758         is defined.
25759         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
25760         is defined.
25761         Reported by Elbert_Pol <elbert.pol@gmail.com>.
25762
25763 2009-04-28  Bruno Haible  <bruno@clisp.org>
25764
25765         Comment tweaks.
25766         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
25767         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
25768         * lib/unicase.h (u*_casexfrm): Likewise.
25769         Reported by Paolo Bonzini.
25770
25771 2009-04-28  Bruno Haible  <bruno@clisp.org>
25772
25773         Fix a compilation error.
25774         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
25775         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25776         Reported by Jim Meyering.
25777
25778 2009-04-27  Bruno Haible  <bruno@clisp.org>
25779
25780         New module 'libunistring'.
25781         * modules/libunistring: New file.
25782         * m4/libunistring.m4: New file.
25783         * MODULES.html.sh (Unicode string functions): Add it.
25784
25785 2009-04-27  Eric Blake  <ebb9@byu.net>
25786
25787         maint.mk: allow package-specific header to provide <config.h>
25788         * top/maint.mk (sc_require_config_h): New variable.
25789         (sc_require_config_h, sc_require_config_h_first): Use it.
25790
25791 2009-04-27  Simon Josefsson  <simon@josefsson.org>
25792
25793         * top/maint.mk (sc_avoid_if_before_free): Except
25794         useless-if-before-free script.
25795
25796 2009-04-27  Eric Blake  <ebb9@byu.net>
25797
25798         maintainer-makefile: depend on all required helper scripts
25799         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
25800         useless-if-before-free.
25801         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
25802         version, rather than assuming gnulib checkout is available.
25803         Reported by Simen Josefsson.
25804
25805 2009-04-26  Bruno Haible  <bruno@clisp.org>
25806
25807         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
25808         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
25809         "../" or "..".
25810
25811 2009-04-26  Bruno Haible  <bruno@clisp.org>
25812
25813         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
25814         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
25815         AC_LIB_HAVE_LINKFLAGS.
25816
25817 2009-04-26  Bruno Haible  <bruno@clisp.org>
25818
25819         Simplify calling convention of u*_conv_from_encoding.
25820         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
25821         u32_conv_from_encoding): Expect a resultbuf argument and return the
25822         result directly as a pointer.
25823         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
25824         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
25825         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
25826         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
25827         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
25828         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25829         Update.
25830         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
25831         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
25832         * lib/vasnprintf.c (VASNPRINTF): Update.
25833         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
25834         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
25835         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
25836         * NEWS: Mention the change.
25837
25838 2009-04-26  Bruno Haible  <bruno@clisp.org>
25839
25840         Simplify calling convention of u*_conv_to_encoding.
25841         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25842         u32_conv_to_encoding): Expect a resultbuf argument and return the
25843         result directly as a pointer.
25844         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25845         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
25846         freeing scaled_offsets if mem_iconveha failed.
25847         * lib/unicase/u-casexfrm.h (FUNC): Update.
25848         * lib/uninorm/u-normxfrm.h (FUNC): Update.
25849         * lib/vasnprintf.c (VASNPRINTF): Update.
25850         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
25851         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
25852         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
25853         * NEWS: Mention the change.
25854
25855 2009-04-26  Bruno Haible  <bruno@clisp.org>
25856
25857         Avoid test failures on AIX and OSF/1.
25858         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
25859         malloc(0).
25860         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25861         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
25862         Likewise.
25863         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
25864         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
25865         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
25866         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
25867         * doc/posix-functions/malloc.texi: Document the portability problem
25868         related to malloc(0).
25869
25870 2009-04-26  Bruno Haible  <bruno@clisp.org>
25871
25872         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
25873         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
25874         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
25875
25876 2009-04-25  Bruno Haible  <bruno@clisp.org>
25877
25878         Avoid link error when creating a namespace clean library.
25879         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
25880         as macro with arguments if already defined as an alias.
25881         * lib/signbitf.c (gl_signbitf): Don't undefine.
25882         * lib/signbitd.c (gl_signbitd): Don't undefine.
25883         * lib/signbitl.c (gl_signbitl): Don't undefine.
25884
25885 2009-04-25  Jim Meyering  <meyering@redhat.com>
25886
25887         vc-list-files: fix another quoting bug
25888         * build-aux/vc-list-files: Avoid sed backslash expansion
25889         of pathological directory names.
25890
25891 2009-04-25  Eric Blake  <ebb9@byu.net>
25892
25893         vc-list-files: fix shell quoting error
25894         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
25895         timestamp.
25896
25897 2009-04-25  Jim Meyering  <meyering@redhat.com>
25898
25899         vc-list-files: restore lost functionality with subdir argument
25900         * build-aux/vc-list-files: When given a non-"." sub-directory
25901         argument, substitute the $dir/ prefix back onto each resulting name.
25902         Otherwise, coreutils' root_tests check would fail.
25903
25904 2009-04-24  Eric Blake  <ebb9@byu.net>
25905
25906         vc-list-files: ignore git symlinks
25907         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
25908         than ls-files, to ignore git symlinks.
25909
25910         maint.mk: import improvements from m4
25911         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
25912         (move_if_change): Delete unused macro.
25913         (news-date-check, vc-diff-check): Support VPATH builds.
25914         (announcement): Likewise.  Split --bootstrap-tools list...
25915         (boostrap-tools): ...into separate list, which can be overridden
25916         in cfg.mk.
25917         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
25918         requiring dependency on useless-if-before-free module.
25919         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
25920         Support VPATH builds.
25921
25922 2009-04-24  Jim Meyering  <meyering@redhat.com>
25923
25924         maint.mk: remove coreutils-specific rules and variables
25925         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
25926         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
25927         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
25928
25929         maint.mk: remove obsolete rule
25930         * top/maint.mk (rel-check): Remove rule.
25931         (WGET, WGETFLAGS): Remove now-unused variables.
25932
25933 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25934
25935         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
25936         consistency.
25937
25938         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
25939         '$(PATH_SEPARATOR)' instead of ':'.
25940
25941 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25942
25943         * lib/getopt1.c (main): Use 'const' for static array.
25944
25945 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25946
25947         * top/maint.mk: Sync with coreutils.
25948         * NEWS: Explain incompatibilities.
25949
25950 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25951             Bruno Haible  <bruno@clisp.org>
25952
25953         Fix cross-compilation results.
25954         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
25955         statement, as third argument of AC_TRY_RUN.
25956         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25957         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25958         Likewise.
25959         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25960         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25961         Likewise.
25962         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25963         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
25964         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
25965
25966 2009-04-20  Bruno Haible  <bruno@clisp.org>
25967
25968         Avoid test failure on mingw.
25969         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
25970
25971 2009-04-20  Bruno Haible  <bruno@clisp.org>
25972
25973         Avoid compilation error on mingw.
25974         * modules/localename-tests (Depends-on): Add locale.
25975
25976 2009-04-19  Bruno Haible  <bruno@clisp.org>
25977
25978         Support for building a shared library on Windows platforms.
25979         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
25980         (main): Test the presence of UNINORM_NFC here.
25981         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
25982         (main): Test the presence of UNINORM_NFD here.
25983         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
25984         (main): Test the presence of UNINORM_NFKC here.
25985         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
25986         (main): Test the presence of UNINORM_NFKD here.
25987
25988 2009-04-19  Bruno Haible  <bruno@clisp.org>
25989
25990         Avoid a compiler warning.
25991         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
25992         Change type of variable 'sequence'.
25993
25994 2009-04-19  Bruno Haible  <bruno@clisp.org>
25995
25996         * modules/configmake (Makefile.am): When the contents of configmake.h
25997         does not change, arrange to preserve its modification time.
25998
25999 2009-04-17  Simon Josefsson  <simon@josefsson.org>
26000
26001         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
26002         gettext domain.
26003
26004 2009-04-16  Jim Meyering  <meyering@redhat.com>
26005
26006         useless-if-before-free: improve conversion code
26007         * build-aux/useless-if-before-free: Adjust code-in-comment to match
26008         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
26009
26010 2009-04-14  Bruno Haible  <bruno@clisp.org>
26011
26012         * modules/fcntl (Depends-on): Add extensions.
26013         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
26014
26015 2009-04-12  Ben Pfaff  <blp@gnu.org>
26016
26017         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
26018         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
26019
26020 2009-03-20  Ben Pfaff  <blp@gnu.org>
26021
26022         Make rename replace existing destinations on Windows.
26023         * m4/rename.m4: Add test for Mingw.
26024         * lib/rename.c: Add rename replacement that uses MoveFileEx with
26025         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
26026         * doc/posix-functions/rename.texi: Document.
26027
26028 2009-04-10  Bruno Haible  <bruno@clisp.org>
26029
26030         New include file "iconveh.h".
26031         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
26032         * lib/striconveh.h: Include it.
26033         (enum iconv_ilseq_handler): Remove definition.
26034         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26035         striconveh.h.
26036         * lib/striconveha.c: Include striconveh.h.
26037         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
26038         * modules/striconveh (Files): Add lib/iconveh.h.
26039         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
26040         lib/striconveh.h.
26041
26042 2009-04-10  Bruno Haible  <bruno@clisp.org>
26043
26044         * lib/uniconv.h: Update comment.
26045
26046 2009-04-10  Bruno Haible  <bruno@clisp.org>
26047
26048         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
26049         always.
26050         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26051         * lib/unistr/u16-mbtouc-aux.c: Likewise.
26052         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26053         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
26054         "unistring-notinline.h", so that the function gets defined always.
26055         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26056         * lib/unistr/u8-uctomb.c: Likewise.
26057         * lib/unistr/u16-mbtouc.c: Likewise.
26058         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26059         * lib/unistr/u16-uctomb.c: Likewise.
26060         * lib/unistr/u32-mbtouc.c: Likewise.
26061         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26062         * lib/unistr/u32-uctomb.c: Likewise.
26063
26064 2009-04-10  Bruno Haible  <bruno@clisp.org>
26065
26066         Mark 'utime' obsolete.
26067         * modules/utime (Status, Notice): New sections.
26068         Suggested by Jim Meyering.
26069
26070         Fix cross-compile guess for utime test.
26071         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
26072         autoconf.
26073         * doc/posix-functions/utime.texi: Give more precisions.
26074         Reported by Jan <ipif@ymail.com>.
26075
26076 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
26077
26078         filevercmp: correct today's change
26079         * lib/filevercmp.c: Also handle coreutils' test inputs.
26080         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
26081
26082         Fix regression in 'filevercmp' module. Thanks Sven Joachim
26083         for reporting it.
26084         * lib/filevercmp.c: Special handle for "", "." and "..".
26085         * tests/test-filevercmp.c: Enlarge the set suite.
26086
26087 2009-04-07  Jim Meyering  <meyering@redhat.com>
26088
26089         useless-if-before-free: show how to remove braced useless free, too
26090         * build-aux/useless-if-before-free: still only in a comment, though.
26091
26092 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
26093
26094         maint.mk: import changes to syntax-check macros from coreutils
26095         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
26096         Use them in the relevant macros.
26097
26098 2009-04-06  Bruno Haible  <bruno@clisp.org>
26099
26100         Fix unportable use of bit-fields.
26101         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
26102         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
26103         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
26104
26105 2009-04-06  Bruno Haible  <bruno@clisp.org>
26106
26107         Avoid test failures on AIX and OSF/1.
26108         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
26109         that malloc(0) = NULL.
26110         * tests/unicase/test-u8-tolower.c (check): Likewise.
26111         * tests/unicase/test-u8-totitle.c (check): Likewise.
26112         * tests/unicase/test-u8-toupper.c (check): Likewise.
26113         * tests/unicase/test-u16-casefold.c (check): Likewise.
26114         * tests/unicase/test-u16-tolower.c (check): Likewise.
26115         * tests/unicase/test-u16-totitle.c (check): Likewise.
26116         * tests/unicase/test-u16-toupper.c (check): Likewise.
26117         * tests/unicase/test-u32-casefold.c (check): Likewise.
26118         * tests/unicase/test-u32-tolower.c (check): Likewise.
26119         * tests/unicase/test-u32-totitle.c (check): Likewise.
26120         * tests/unicase/test-u32-toupper.c (check): Likewise.
26121         * tests/uninorm/test-u8-nfc.c (check): Likewise.
26122         * tests/uninorm/test-u8-nfd.c (check): Likewise.
26123         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
26124         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
26125         * tests/uninorm/test-u16-nfc.c (check): Likewise.
26126         * tests/uninorm/test-u16-nfd.c (check): Likewise.
26127         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
26128         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
26129         * tests/uninorm/test-u32-nfc.c (check): Likewise.
26130         * tests/uninorm/test-u32-nfd.c (check): Likewise.
26131         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
26132         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
26133
26134 2009-04-05  Bruno Haible  <bruno@clisp.org>
26135
26136         Work around an autoconf limitation.
26137         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
26138         comment line if it would be longer than 3 KB.
26139
26140 2009-04-05  Bruno Haible  <bruno@clisp.org>
26141
26142         Avoid test failure with libiconv-1.13.
26143         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
26144         of the expected test results.
26145
26146 2009-04-05  Bruno Haible  <bruno@clisp.org>
26147
26148         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
26149         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
26150         that it should be installed.
26151
26152 2009-04-05  Bruno Haible  <bruno@clisp.org>
26153
26154         * gnulib-tool: New option --copy-file.
26155         (func_usage): Document it.
26156         (func_dest_tmpfilename): Moved out of func_import.
26157         (func_add_file, func_update_file): New functions, extracted from
26158         func_import.
26159         (func_import): Update.
26160
26161 2009-04-05  Karl Berry  <karl@gnu.org>
26162
26163         * README: prominently mention gnulib-tool.
26164         Rearrange sections so getting the code is near the top.
26165
26166 2009-04-05  Bruno Haible  <bruno@clisp.org>
26167
26168         * lib/unicase.h: Mention u*_cmp2.
26169         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26170         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
26171         * lib/unicase/ulc-casecmp.c: Likewise.
26172         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
26173         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
26174         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
26175         unistr/u8-cmp.
26176         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
26177         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
26178         unistr/u16-cmp.
26179         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
26180         unistr/u32-cmp.
26181
26182         * lib/uninorm.h: Mention u*_cmp2.
26183         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
26184         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
26185         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
26186         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
26187         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
26188         unistr/u8-cmp.
26189         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
26190         unistr/u16-cmp.
26191         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
26192         unistr/u32-cmp.
26193
26194         New module 'unistr/u32-cmp2'.
26195         * lib/unistr/u32-cmp2.c: New file.
26196         * modules/unistr/u32-cmp2: New file.
26197
26198         New module 'unistr/u16-cmp2'.
26199         * lib/unistr/u16-cmp2.c: New file.
26200         * modules/unistr/u16-cmp2: New file.
26201
26202         New module 'unistr/u8-cmp2'.
26203         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
26204         * lib/unistr/u8-cmp2.c: New file.
26205         * lib/unistr/u-cmp2.h: New file.
26206         * modules/unistr/u8-cmp2: New file.
26207
26208 2009-04-05  Bruno Haible  <bruno@clisp.org>
26209
26210         * lib/unictype.h (uc_property_is_valid): New macro.
26211         * tests/unictype/test-pr_byname.c (main): Use it.
26212
26213         * lib/unistr.h: Doc fixes.
26214         * lib/uniconv.h: Doc fixes.
26215         * lib/unictype.h: Doc fixes.
26216
26217 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
26218
26219         Port coreutils 7.2 to Solaris 8.
26220
26221         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
26222         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
26223         for Solaris 8.  This is a bit of a hack, as it means it's the
26224         caller's responsibility to add -lnsl if needed, but most likely it
26225         won't be needed since only getaddrinfo uses this and getaddrinfo
26226         isn't needed on Solaris 8.
26227
26228         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
26229         problem to Solaris 8 encountered with coreutils 7.2, which
26230         resulted in a message "fnmatch.c:292: warning: passing argument 4
26231         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
26232         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
26233
26234 2009-04-03  Simon Josefsson  <simon@josefsson.org>
26235
26236         * m4/ld-version-script.m4: Add FIXME comment.
26237
26238 2009-04-02  Simon Josefsson  <simon@josefsson.org>
26239
26240         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
26241         SOVERSION variable.
26242
26243 2009-04-02  Bruno Haible  <bruno@clisp.org>
26244
26245         * Makefile (info, html, dvi, pdf): Combine the rules.
26246         Suggested by Jim Meyering.
26247
26248 2009-04-01  Bruno Haible  <bruno@clisp.org>
26249
26250         * Makefile (info, html, dvi, pdf): New targets.
26251         Reported by Reuben Thomas <rrt@sc3d.org>.
26252
26253 2009-04-01  Bruno Haible  <bruno@clisp.org>
26254
26255         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
26256         can be put into PATH.
26257         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
26258
26259 2009-04-01  Bruno Haible  <bruno@clisp.org>
26260
26261         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
26262
26263 2009-04-01  Bruno Haible  <bruno@clisp.org>
26264
26265         Rename module 'visibility'.
26266         * modules/lib-symbol-visibility: Renamed from modules/visibility.
26267         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
26268         * doc/gnulib.texi: Update.
26269         * MODULES.html.sh (Misc): Update.
26270         * NEWS: Mention the change.
26271
26272 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26273
26274         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
26275         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
26276         Eric Blake <ebb9@byu.net> for review.
26277         * MODULES.html.sh: Add lib-msvc-compat.
26278         * doc/gnulib.texi: Link to new section.
26279         * m4/ld-output-def.m4: New file.
26280         * doc/ld-output-def.texi: New file.
26281
26282 2009-04-01  Simon Josefsson  <simon@josefsson.org>
26283
26284         Rename ld-version-script to lib-symbol-versions.  Suggested by
26285         Bruno Haible <bruno@clisp.org>.
26286         * modules/ld-version-script: Renamed to lib-symbol-versions.
26287         * doc/ld-version-script.texi: Fix module name.
26288         * MODULES.html.sh: Add lib-symbol-versions.
26289
26290 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26291
26292         * modules/u64-tests: New file.
26293         * tests/test-u64.c: New file.
26294
26295 2009-03-04  Simon Josefsson  <simon@josefsson.org>
26296
26297         * MODULES.html.sh: Mention u64.
26298         * modules/u64: New module.
26299         * modules/crypto/sha512: Depend on u64 module instead of providing
26300         u64.h.
26301
26302 2009-03-27  Eric Blake  <ebb9@byu.net>
26303
26304         test-strerror: make debugging EAI_SYSTEM easier
26305         * modules/getaddrinfo-tests (Depends-on): Add strerror.
26306         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
26307         failure was EAI_SYSTEM.
26308
26309 2009-03-25  Bruno Haible  <bruno@clisp.org>
26310
26311         Fix a problem with --enable-relocatable on Solaris 7.
26312         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
26313         since 2008-02-24.
26314
26315 2009-03-25  Eric Blake  <ebb9@byu.net>
26316
26317         test-sockets: avoid gcc warning
26318         * tests/test-sockets.c (main): Silence compiler warning.
26319
26320 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
26321
26322         New modules nproc, pthread, contributed by Glen Lenker.
26323
26324         * MODULES.html.sh: Add pthread, nproc.
26325         * lib/nproc.c: New file.
26326         * lib/nproc.h: New file.
26327         * lib/pthread.in.h: New file.
26328         * m4/pthread.m4: New file.
26329         * modules/nproc: New file.
26330         * modules/pthread: New file.
26331
26332 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26333
26334         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
26335         New variable.
26336
26337 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
26338
26339         filevercmp: handle simple~ and numbered.~3~ backup suffixes
26340         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
26341         * tests/test-filevercmp.c: Add tests for backup suffixes.
26342
26343 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26344
26345         * modules/stdlib (Depends-on): Add stdint, needed when defining
26346         struct random_data on, for example, HP-UX 10.20.  Reported by
26347         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26348
26349 2009-03-24  Simon Josefsson  <simon@josefsson.org>
26350
26351         * lib/readline.c (readline): Call fflush on stdout after printing
26352         prompt.
26353
26354 2009-03-20  Bruno Haible  <bruno@clisp.org>
26355
26356         Remove dependency from 'close' module to -lws2_32 on native Windows.
26357         * lib/close-hook.h: New file.
26358         * lib/close-hook.c: New file.
26359         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
26360         w32sock.h.
26361         (_gl_close_fd_maybe_socket): Remove function.
26362         (rpl_close): Invoke execute_all_close_hooks instead of
26363         _gl_close_fd_maybe_socket.
26364         * lib/sockets.c: Include close-hook.h, w32sock.h.
26365         (close_fd_maybe_socket): New function, essentially from lib/close.c.
26366         (close_sockets_hook): New variable.
26367         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
26368         (gl_sockets_cleanup): Unregister it.
26369         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
26370         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
26371         * modules/close-hook: New file.
26372         * modules/close (Files): Remove lib/w32sock.h.
26373         (Depends-on): Add close-hook.
26374         (Link): Remove section.
26375         * modules/sockets (Files): Add lib/w32sock.h.
26376         (Depends-on): Add close-hook.
26377         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
26378         invocation.
26379         * NEWS: Mention that LIB_CLOSE is gone.
26380
26381 2009-03-23  Eric Blake  <ebb9@byu.net>
26382
26383         signal-tests: test previous patch
26384         * tests/test-signal.c: New file.
26385         * modules/signal-tests: Likewise.
26386
26387         signal.h: always support 'volatile sig_atomic_t'
26388         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
26389         (gl_SIGNAL_H_DEFAULTS): Add a default.
26390         * modules/signal (Makefile.am): Substitute if needed.
26391         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
26392         users can blindly add volatile.
26393         * doc/posix-headers/signal.texi (signal.h): Document it.
26394         Reported by Matthew Woehlke.
26395
26396 2009-03-23  Jim Meyering  <meyering@redhat.com>
26397
26398         pathmax: PATH_MAX: use pathconf only when available
26399         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
26400         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
26401         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
26402         This avoids a link failure in a PSP cross-compilation environment
26403         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
26404
26405         * lib/vasnprintf.c (divide): Fix typo in comment.
26406
26407 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26408
26409         * gnulib-tool (func_filter_filelist): Fix comment.
26410
26411 2009-03-20  Bruno Haible  <bruno@clisp.org>
26412
26413         Make sockets.h self-contained.
26414         * lib/sockets.c: Include sockets.h first.
26415         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
26416
26417 2009-03-19  Eric Blake  <ebb9@byu.net>
26418
26419         doc: mention more functions added in cygwin 1.7.0
26420         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
26421         addition.
26422         * doc/posix-functions/log2f.texi: Likewise.
26423
26424 2009-03-19  Jim Meyering  <meyering@redhat.com>
26425
26426         fsusage: avoid syntax error due to statement-before-declaration
26427         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
26428         after all declarations.  Reported by Matthew Woehlke in
26429         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
26430
26431 2009-03-18  Eric Blake  <ebb9@byu.net>
26432
26433         build-aux/compile: sync from automake
26434         * build-aux/compile: New file, from automake.
26435         * config/srclist.txt: Mention build-aux/compile.
26436
26437 2009-03-17  Bruno Haible  <bruno@clisp.org>
26438
26439         * lib/git-merge-changelog.c: Fix typo in comment.
26440         Reported by Reuben Thomas <rrt@sc3d.org>.
26441
26442 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
26443
26444         * m4/regex.m4: update and improve help for
26445         --without-included-regex.
26446
26447 2009-03-17  Simon Josefsson  <simon@josefsson.org>
26448
26449         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
26450         failure on missing include files.
26451
26452 2009-03-17  Eric Blake  <ebb9@byu.net>
26453
26454         doc: mention more functions added in cygwin 1.7.0
26455         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
26456         addition.
26457         * doc/posix-functions/fwscanf.texi: Likewise.
26458         * doc/posix-functions/swprintf.texi: Likewise.
26459         * doc/posix-functions/swscanf.texi: Likewise.
26460         * doc/posix-functions/vfwprintf.texi: Likewise.
26461         * doc/posix-functions/vfwscanf.texi: Likewise.
26462         * doc/posix-functions/vswprintf.texi: Likewise.
26463         * doc/posix-functions/vswscanf.texi: Likewise.
26464         * doc/posix-functions/vwprintf.texi: Likewise.
26465         * doc/posix-functions/vwscanf.texi: Likewise.
26466         * doc/posix-functions/wcscasecmp.texi: Likewise.
26467         * doc/posix-functions/wcsdup.texi: Likewise.
26468         * doc/posix-functions/wcsftime.texi: Likewise.
26469         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26470         * doc/posix-functions/wprintf.texi: Likewise.
26471         * doc/posix-functions/wscanf.texi: Likewise.
26472         * doc/glibc-functions/gethostbyname2.texi: Likewise.
26473
26474 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26475
26476         maint.mk: really add $(AM_MAKEFLAGS)
26477         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
26478         was inadvertently omitted in the last commit.
26479         Spotted by Bruno Haible.
26480
26481         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
26482         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
26483         $(AM_MAKEFLAGS)' rather than plain `make'.
26484
26485         gnulib-tool: execute $MAKE not make
26486         * gnulib-tool: Default $MAKE to 'make'.
26487         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
26488         than make.  Initialize $MAKE in the do-autobuild script.
26489
26490         gnulib-tool: use $MAKE not make in generated files
26491         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
26492         make, in generated files.  Initialize $MAKE in the do-autobuild
26493         script.
26494
26495         * top/GNUmakefile (_have-git-version-gen): Fix typo.
26496
26497         GNUmakefile: disable parallelism only for multiple, recursive targets
26498         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
26499         additions in the Makefile.
26500         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
26501         by Automake.
26502         (.NOTPARALLEL): Only disable parallel builds if multiple targets
26503         are listed on the command line and at least one of them is
26504         listed in $(ALL_RECURSIVE_TARGETS).
26505
26506 2009-03-14  Bruno Haible  <bruno@clisp.org>
26507
26508         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
26509         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
26510         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
26511         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
26512         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
26513         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
26514         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
26515         unistr/u8-uctomb.
26516         * modules/unistr/u8-strchr (Depends-on): Likewise.
26517         * modules/unistr/u8-strrchr (Depends-on): Likewise.
26518         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
26519         unistr/u16-uctomb.
26520         * modules/unistr/u16-strchr (Depends-on): Likewise.
26521         * modules/unistr/u16-strrchr (Depends-on): Likewise.
26522
26523 2009-03-12  Bruno Haible  <bruno@clisp.org>
26524
26525         Work around select() bug on Interix 3.5.
26526         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
26527         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
26528         * m4/select.m4: New file.
26529         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
26530         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
26531         * modules/select (Files): Add m4/select.m4.
26532         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
26533         * modules/nanosleep (Depends-on): Add select.
26534         * modules/poll (Depends-on): Likewise.
26535         * doc/posix-functions/select.texi: Mention the Interix bug.
26536         Reported by Markus Duft <mduft@gentoo.org>.
26537
26538         * lib/select.c: Renamed from lib/winsock-select.c.
26539         * modules/select (Files): Add lib/select.c, remove
26540         lib/winsock-select.c.
26541         (configure.ac): Update.
26542
26543 2009-03-12  Jim Meyering  <meyering@redhat.com>
26544
26545         avoid gcc warnings about unused macro definitions
26546         * lib/readtokens.c (STREQ): Remove unused definition.
26547         * lib/xmalloc.c (SIZE_MAX): Likewise.
26548         * lib/openat-die.c (N_): Likewise.
26549         * lib/mountlist.c (SIZE_MAX): Remove definition.
26550         Instead, include <stdint.h>.
26551         * lib/readutmp.c: Likewise.
26552         * modules/readutmp (Depends-on): Add stdint.
26553         * modules/mountlist (Depends-on): Add stdint.
26554         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
26555
26556 2009-03-10  Bruno Haible  <bruno@clisp.org>
26557
26558         Tests for module 'mbmemcasecoll'.
26559         * modules/mbmemcasecoll-tests: New file.
26560         * tests/test-mbmemcasecoll1.sh: New file.
26561         * tests/test-mbmemcasecoll2.sh: New file.
26562         * tests/test-mbmemcasecoll3.sh: New file.
26563         * tests/test-mbmemcasecoll.c: New file.
26564
26565         New module 'mbmemcasecoll'.
26566         * lib/mbmemcasecoll.h: New file.
26567         * lib/mbmemcasecoll.c: New file.
26568         * modules/mbmemcasecoll: New file.
26569
26570         * tests/test-mbmemcasecmp.h: New file, extracted from
26571         tests/test-mbmemcasecmp.c.
26572         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
26573         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
26574         (main): Update.
26575         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
26576
26577 2009-03-09  Bruno Haible  <bruno@clisp.org>
26578
26579         Tests for module 'mbmemcasecmp'.
26580         * modules/mbmemcasecmp-tests: New file.
26581         * tests/test-mbmemcasecmp1.sh: New file.
26582         * tests/test-mbmemcasecmp2.sh: New file.
26583         * tests/test-mbmemcasecmp3.sh: New file.
26584         * tests/test-mbmemcasecmp.c: New file.
26585
26586         New module 'mbmemcasecmp'.
26587         * lib/mbmemcasecmp.h: New file.
26588         * lib/mbmemcasecmp.c: New file.
26589         * modules/mbmemcasecmp: New file.
26590
26591 2009-03-09  Bruno Haible  <bruno@clisp.org>
26592
26593         Tests for module 'unicase/ulc-casecoll'.
26594         * modules/unicase/ulc-casecoll-tests: New file.
26595         * tests/unicase/test-ulc-casecoll1.sh: New file.
26596         * tests/unicase/test-ulc-casecoll2.sh: New file.
26597         * tests/unicase/test-ulc-casecoll.c: New file.
26598
26599         New module 'unicase/ulc-casecoll'.
26600         * lib/unicase.h (ulc_casecoll): New declaration.
26601         * lib/unicase/ulc-casecoll.c: New file.
26602         * modules/unicase/ulc-casecoll: New file.
26603
26604         New module 'unicase/ulc-casexfrm'.
26605         * lib/unicase.h (ulc_casexfrm): New declaration.
26606         * lib/unicase/ulc-casexfrm.c: New file.
26607         * modules/unicase/ulc-casexfrm: New file.
26608
26609 2009-03-09  Bruno Haible  <bruno@clisp.org>
26610
26611         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
26612         invocations.
26613
26614         * m4/mbscasecmp.m4: Remove file.
26615         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
26616         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
26617
26618         * m4/mbscasestr.m4: Remove file.
26619         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
26620         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
26621
26622         * m4/mbschr.m4: Remove file.
26623         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
26624         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
26625
26626         * m4/mbscspn.m4: Remove file.
26627         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
26628         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
26629
26630         * m4/mbslen.m4: Remove file.
26631         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
26632         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
26633
26634         * m4/mbsncasecmp.m4: Remove file.
26635         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
26636         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
26637
26638         * m4/mbsnlen.m4: Remove file.
26639         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
26640         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
26641
26642         * m4/mbspbrk.m4: Remove file.
26643         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
26644         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
26645
26646         * m4/mbspcasecmp.m4: Remove file.
26647         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
26648         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
26649
26650         * m4/mbsrchr.m4: Remove file.
26651         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
26652         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
26653
26654         * m4/mbssep.m4: Remove file.
26655         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
26656         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
26657
26658         * m4/mbsspn.m4: Remove file.
26659         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
26660         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
26661
26662         * m4/mbsstr.m4: Remove file.
26663         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
26664         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
26665
26666         * m4/mbstok_r.m4: Remove file.
26667         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
26668         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
26669
26670         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
26671
26672         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
26673         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
26674
26675         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
26676
26677 2009-03-08  Bruno Haible  <bruno@clisp.org>
26678
26679         Tests for module 'unicase/ulc-casecmp'.
26680         * modules/unicase/ulc-casecmp-tests: New file.
26681         * tests/unicase/test-ulc-casecmp1.sh: New file.
26682         * tests/unicase/test-ulc-casecmp2.sh: New file.
26683         * tests/unicase/test-ulc-casecmp.c: New file.
26684
26685         New module 'unicase/ulc-casecmp'.
26686         * lib/unicase.h (ulc_casecmp): New declaration.
26687         * lib/unicase/ulc-casecmp.c: New file.
26688         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
26689         'const SRC_UNIT *'.
26690         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
26691         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
26692         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
26693         * modules/unicase/ulc-casecmp: New file.
26694
26695         Tests for module 'unicase/u32-is-cased'.
26696         * modules/unicase/u32-is-cased-tests: New file.
26697         * tests/unicase/test-u32-is-cased.c: New file.
26698
26699         Tests for module 'unicase/u16-is-cased'.
26700         * modules/unicase/u16-is-cased-tests: New file.
26701         * tests/unicase/test-u16-is-cased.c: New file.
26702
26703         Tests for module 'unicase/u8-is-cased'.
26704         * modules/unicase/u8-is-cased-tests: New file.
26705         * tests/unicase/test-u8-is-cased.c: New file.
26706         * tests/unicase/test-is-cased.h: New file.
26707
26708         New module 'unicase/u32-is-cased'.
26709         * lib/unicase/u32-is-cased.c: New file.
26710         * modules/unicase/u32-is-cased: New file.
26711
26712         New module 'unicase/u16-is-cased'.
26713         * lib/unicase/u16-is-cased.c: New file.
26714         * modules/unicase/u16-is-cased: New file.
26715
26716         New module 'unicase/u8-is-cased'.
26717         * lib/unicase/u8-is-cased.c: New file.
26718         * lib/unicase/u-is-cased.h: New file.
26719         * modules/unicase/u8-is-cased: New file.
26720
26721         Tests for module 'unicase/u32-is-casefolded'.
26722         * modules/unicase/u32-is-casefolded-tests: New file.
26723         * tests/unicase/test-u32-is-casefolded.c: New file.
26724
26725         Tests for module 'unicase/u16-is-casefolded'.
26726         * modules/unicase/u16-is-casefolded-tests: New file.
26727         * tests/unicase/test-u16-is-casefolded.c: New file.
26728
26729         Tests for module 'unicase/u8-is-casefolded'.
26730         * modules/unicase/u8-is-casefolded-tests: New file.
26731         * tests/unicase/test-u8-is-casefolded.c: New file.
26732         * tests/unicase/test-is-casefolded.h: New file.
26733
26734         New module 'unicase/u32-is-casefolded'.
26735         * lib/unicase/u32-is-casefolded.c: New file.
26736         * modules/unicase/u32-is-casefolded: New file.
26737
26738         New module 'unicase/u16-is-casefolded'.
26739         * lib/unicase/u16-is-casefolded.c: New file.
26740         * modules/unicase/u16-is-casefolded: New file.
26741
26742         New module 'unicase/u8-is-casefolded'.
26743         * lib/unicase/u8-is-casefolded.c: New file.
26744         * modules/unicase/u8-is-casefolded: New file.
26745
26746         Tests for module 'unicase/u32-is-titlecase'.
26747         * modules/unicase/u32-is-titlecase-tests: New file.
26748         * tests/unicase/test-u32-is-titlecase.c: New file.
26749
26750         Tests for module 'unicase/u16-is-titlecase'.
26751         * modules/unicase/u16-is-titlecase-tests: New file.
26752         * tests/unicase/test-u16-is-titlecase.c: New file.
26753
26754         Tests for module 'unicase/u8-is-titlecase'.
26755         * modules/unicase/u8-is-titlecase-tests: New file.
26756         * tests/unicase/test-u8-is-titlecase.c: New file.
26757         * tests/unicase/test-is-titlecase.h: New file.
26758
26759         New module 'unicase/u32-is-titlecase'.
26760         * lib/unicase/u32-is-titlecase.c: New file.
26761         * modules/unicase/u32-is-titlecase: New file.
26762
26763         New module 'unicase/u16-is-titlecase'.
26764         * lib/unicase/u16-is-titlecase.c: New file.
26765         * modules/unicase/u16-is-titlecase: New file.
26766
26767         New module 'unicase/u8-is-titlecase'.
26768         * lib/unicase/u8-is-titlecase.c: New file.
26769         * modules/unicase/u8-is-titlecase: New file.
26770
26771         Tests for module 'unicase/u32-is-lowercase'.
26772         * modules/unicase/u32-is-lowercase-tests: New file.
26773         * tests/unicase/test-u32-is-lowercase.c: New file.
26774
26775         Tests for module 'unicase/u16-is-lowercase'.
26776         * modules/unicase/u16-is-lowercase-tests: New file.
26777         * tests/unicase/test-u16-is-lowercase.c: New file.
26778
26779         Tests for module 'unicase/u8-is-lowercase'.
26780         * modules/unicase/u8-is-lowercase-tests: New file.
26781         * tests/unicase/test-u8-is-lowercase.c: New file.
26782         * tests/unicase/test-is-lowercase.h: New file.
26783
26784         New module 'unicase/u32-is-lowercase'.
26785         * lib/unicase/u32-is-lowercase.c: New file.
26786         * modules/unicase/u32-is-lowercase: New file.
26787
26788         New module 'unicase/u16-is-lowercase'.
26789         * lib/unicase/u16-is-lowercase.c: New file.
26790         * modules/unicase/u16-is-lowercase: New file.
26791
26792         New module 'unicase/u8-is-lowercase'.
26793         * lib/unicase/u8-is-lowercase.c: New file.
26794         * modules/unicase/u8-is-lowercase: New file.
26795
26796         Tests for module 'unicase/u32-is-uppercase'.
26797         * modules/unicase/u32-is-uppercase-tests: New file.
26798         * tests/unicase/test-u32-is-uppercase.c: New file.
26799
26800         Tests for module 'unicase/u16-is-uppercase'.
26801         * modules/unicase/u16-is-uppercase-tests: New file.
26802         * tests/unicase/test-u16-is-uppercase.c: New file.
26803
26804         Tests for module 'unicase/u8-is-uppercase'.
26805         * modules/unicase/u8-is-uppercase-tests: New file.
26806         * tests/unicase/test-u8-is-uppercase.c: New file.
26807         * tests/unicase/test-is-uppercase.h: New file.
26808
26809         New module 'unicase/u32-is-uppercase'.
26810         * lib/unicase/u32-is-uppercase.c: New file.
26811         * modules/unicase/u32-is-uppercase: New file.
26812
26813         New module 'unicase/u16-is-uppercase'.
26814         * lib/unicase/u16-is-uppercase.c: New file.
26815         * modules/unicase/u16-is-uppercase: New file.
26816
26817         New module 'unicase/u8-is-uppercase'.
26818         * lib/unicase/u8-is-uppercase.c: New file.
26819         * modules/unicase/u8-is-uppercase: New file.
26820
26821         New module 'unicase/u32-is-invariant'.
26822         * lib/unicase/u32-is-invariant.c: New file.
26823         * modules/unicase/u32-is-invariant: New file.
26824
26825         New module 'unicase/u16-is-invariant'.
26826         * lib/unicase/u16-is-invariant.c: New file.
26827         * modules/unicase/u16-is-invariant: New file.
26828
26829         New module 'unicase/u8-is-invariant'.
26830         * lib/unicase/u8-is-invariant.c: New file.
26831         * lib/unicase/invariant.h: New file.
26832         * lib/unicase/u-is-invariant.h: New file.
26833         * modules/unicase/u8-is-invariant: New file.
26834
26835         Tests for module 'unicase/u32-casecoll'.
26836         * modules/unicase/u32-casecoll-tests: New file.
26837         * tests/unicase/test-u32-casecoll.c: New file.
26838
26839         Tests for module 'unicase/u16-casecoll'.
26840         * modules/unicase/u16-casecoll-tests: New file.
26841         * tests/unicase/test-u16-casecoll.c: New file.
26842
26843         Tests for module 'unicase/u8-casecoll'.
26844         * modules/unicase/u8-casecoll-tests: New file.
26845         * tests/unicase/test-u8-casecoll.c: New file.
26846
26847         New module 'unicase/u32-casecoll'.
26848         * lib/unicase/u32-casecoll.c: New file.
26849         * modules/unicase/u32-casecoll: New file.
26850
26851         New module 'unicase/u16-casecoll'.
26852         * lib/unicase/u16-casecoll.c: New file.
26853         * modules/unicase/u16-casecoll: New file.
26854
26855         New module 'unicase/u8-casecoll'.
26856         * lib/unicase/u8-casecoll.c: New file.
26857         * lib/unicase/u-casecoll.h: New file.
26858         * modules/unicase/u8-casecoll: New file.
26859
26860         New module 'unicase/u32-casexfrm'.
26861         * lib/unicase/u32-casexfrm.c: New file.
26862         * modules/unicase/u32-casexfrm: New file.
26863
26864         New module 'unicase/u16-casexfrm'.
26865         * lib/unicase/u16-casexfrm.c: New file.
26866         * modules/unicase/u16-casexfrm: New file.
26867
26868         New module 'unicase/u8-casexfrm'.
26869         * lib/unicase/u8-casexfrm.c: New file.
26870         * lib/unicase/u-casexfrm.h: New file.
26871         * modules/unicase/u8-casexfrm: New file.
26872
26873         Tests for module 'unicase/u32-casecmp'.
26874         * modules/unicase/u32-casecmp-tests: New file.
26875         * tests/unicase/test-u32-casecmp.c: New file.
26876
26877         Tests for module 'unicase/u16-casecmp'.
26878         * modules/unicase/u16-casecmp-tests: New file.
26879         * tests/unicase/test-u16-casecmp.c: New file.
26880
26881         Tests for module 'unicase/u8-casecmp'.
26882         * modules/unicase/u8-casecmp-tests: New file.
26883         * tests/unicase/test-u8-casecmp.c: New file.
26884         * tests/unicase/test-casecmp.h: New file.
26885
26886         New module 'unicase/u32-casecmp'.
26887         * lib/unicase/u32-casecmp.c: New file.
26888         * modules/unicase/u32-casecmp: New file.
26889
26890         New module 'unicase/u16-casecmp'.
26891         * lib/unicase/u16-casecmp.c: New file.
26892         * modules/unicase/u16-casecmp: New file.
26893
26894         New module 'unicase/u8-casecmp'.
26895         * lib/unicase/u8-casecmp.c: New file.
26896         * lib/unicase/u-casecmp.h: New file.
26897         * modules/unicase/u8-casecmp: New file.
26898
26899         Tests for module 'unicase/u32-casefold'.
26900         * modules/unicase/u32-casefold-tests: New file.
26901         * tests/unicase/test-u32-casefold.c: New file.
26902
26903         Tests for module 'unicase/u16-casefold'.
26904         * modules/unicase/u16-casefold-tests: New file.
26905         * tests/unicase/test-u16-casefold.c: New file.
26906
26907         Tests for module 'unicase/u8-casefold'.
26908         * modules/unicase/u8-casefold-tests: New file.
26909         * tests/unicase/test-u8-casefold.c: New file.
26910
26911         New module 'unicase/u32-casefold'.
26912         * lib/unicase/u32-casefold.c: New file.
26913         * modules/unicase/u32-casefold: New file.
26914
26915         New module 'unicase/u16-casefold'.
26916         * lib/unicase/u16-casefold.c: New file.
26917         * modules/unicase/u16-casefold: New file.
26918
26919         New module 'unicase/u8-casefold'.
26920         * lib/unicase/u8-casefold.c: New file.
26921         * lib/unicase/u-casefold.h: New file.
26922         * modules/unicase/u8-casefold: New file.
26923
26924         New module 'unicase/tocasefold'.
26925         * lib/unicase/casefold.h: New file.
26926         * lib/unicase/tocasefold.c: New file.
26927         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
26928         * modules/unicase/tocasefold: New file.
26929
26930         Tests for module 'unicase/u32-totitle'.
26931         * modules/unicase/u32-totitle-tests: New file.
26932         * tests/unicase/test-u32-totitle.c: New file.
26933
26934         Tests for module 'unicase/u16-totitle'.
26935         * modules/unicase/u16-totitle-tests: New file.
26936         * tests/unicase/test-u16-totitle.c: New file.
26937
26938         Tests for module 'unicase/u8-totitle'.
26939         * modules/unicase/u8-totitle-tests: New file.
26940         * tests/unicase/test-u8-totitle.c: New file.
26941
26942         New module 'unicase/u32-totitle'.
26943         * lib/unicase/u32-totitle.c: New file.
26944         * modules/unicase/u32-totitle: New file.
26945
26946         New module 'unicase/u16-totitle'.
26947         * lib/unicase/u16-totitle.c: New file.
26948         * modules/unicase/u16-totitle: New file.
26949
26950         New module 'unicase/u8-totitle'.
26951         * lib/unicase/u8-totitle.c: New file.
26952         * lib/unicase/u-totitle.h: New file.
26953         * modules/unicase/u8-totitle: New file.
26954
26955         Tests for module 'unicase/u32-tolower'.
26956         * modules/unicase/u32-tolower-tests: New file.
26957         * tests/unicase/test-u32-tolower.c: New file.
26958
26959         Tests for module 'unicase/u16-tolower'.
26960         * modules/unicase/u16-tolower-tests: New file.
26961         * tests/unicase/test-u16-tolower.c: New file.
26962
26963         Tests for module 'unicase/u8-tolower'.
26964         * modules/unicase/u8-tolower-tests: New file.
26965         * tests/unicase/test-u8-tolower.c: New file.
26966
26967         New module 'unicase/u32-tolower'.
26968         * lib/unicase/u32-tolower.c: New file.
26969         * modules/unicase/u32-tolower: New file.
26970
26971         New module 'unicase/u16-tolower'.
26972         * lib/unicase/u16-tolower.c: New file.
26973         * modules/unicase/u16-tolower: New file.
26974
26975         New module 'unicase/u8-tolower'.
26976         * lib/unicase/u8-tolower.c: New file.
26977         * modules/unicase/u8-tolower: New file.
26978
26979         Tests for module 'unicase/u32-toupper'.
26980         * modules/unicase/u32-toupper-tests: New file.
26981         * tests/unicase/test-u32-toupper.c: New file.
26982
26983         Tests for module 'unicase/u16-toupper'.
26984         * modules/unicase/u16-toupper-tests: New file.
26985         * tests/unicase/test-u16-toupper.c: New file.
26986
26987         Tests for module 'unicase/u8-toupper'.
26988         * modules/unicase/u8-toupper-tests: New file.
26989         * tests/unicase/test-u8-toupper.c: New file.
26990
26991         New module 'unicase/u32-toupper'.
26992         * lib/unicase/u32-toupper.c: New file.
26993         * modules/unicase/u32-toupper: New file.
26994
26995         New module 'unicase/u16-toupper'.
26996         * lib/unicase/u16-toupper.c: New file.
26997         * modules/unicase/u16-toupper: New file.
26998
26999         New module 'unicase/u8-toupper'.
27000         * lib/unicase/u8-toupper.c: New file.
27001         * modules/unicase/u8-toupper: New file.
27002
27003         New module 'unicase/u32-casemap'.
27004         * lib/unicase/u32-casemap.c: New file.
27005         * modules/unicase/u32-casemap: New file.
27006
27007         New module 'unicase/u16-casemap'.
27008         * lib/unicase/u16-casemap.c: New file.
27009         * modules/unicase/u16-casemap: New file.
27010
27011         New module 'unicase/u8-casemap'.
27012         * lib/unicase/unicasemap.h: New file.
27013         * lib/unicase/u8-casemap.c: New file.
27014         * lib/unicase/u-casemap.h: New file.
27015         * modules/unicase/u8-casemap: New file.
27016
27017         New module 'unicase/special-casing'.
27018         * lib/unicase/special-casing.h: New file.
27019         * lib/unicase/special-casing.c: New file.
27020         * lib/unicase/special-casing-table.gperf: New file, generated by
27021         gen-uni-tables.c.
27022         * modules/unicase/special-casing: New file.
27023
27024         Tests for module 'unicase/locale-language'.
27025         * modules/unicase/locale-language-tests: New file.
27026         * tests/unicase/test-locale-language.sh: New file.
27027         * tests/unicase/test-locale-language.c: New file.
27028
27029         New module 'unicase/locale-language'.
27030         * lib/unicase/locale-language.c: New file.
27031         * lib/unicase/locale-languages.gperf: New file.
27032         * modules/unicase/locale-language: New file.
27033
27034         Generate more tables for case conversion and case folding.
27035         * lib/gen-uni-tables.c (SCC_*): New enum items.
27036         (struct special_casing_rule): New type.
27037         (casing_rules, num_casing_rules, allocated_casing_rules): New
27038         variables.
27039         (add_casing_rule, fill_casing_rules): New functions.
27040         (struct casefold_rule): New type.
27041         (casefolding_rules, num_casefolding_rules,
27042         allocated_casefolding_rules): New variables.
27043         (fill_casefolding_rules): New function.
27044         (unicode_casefold): New variable.
27045         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
27046         sort_casing_rules, output_casing_rules): New functions.
27047         (main): Accept to more arguments: SpecialCasing.txt and
27048         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
27049         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
27050         Output mapping for casefolding.
27051
27052         * lib/unicase.h: Include stdbool.h, uninorm.h.
27053         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
27054         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
27055         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
27056         arguments.
27057         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
27058         resultp arguments.
27059         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
27060         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
27061         resultp arguments.
27062         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
27063         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
27064         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
27065         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
27066         declarations.
27067         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
27068
27069 2009-03-08  Bruno Haible  <bruno@clisp.org>
27070
27071         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27072         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
27073         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
27074         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27075
27076 2009-03-07  Bruno Haible  <bruno@clisp.org>
27077
27078         Adjust u*_normcmp, u*_normcoll API.
27079         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
27080         u16_normcoll, u32_normcoll): Change failure conventions.
27081         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
27082         errno and return -1.
27083         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
27084
27085 2009-03-07  Bruno Haible  <bruno@clisp.org>
27086
27087         Tests for module 'uninorm/u32-normcoll'.
27088         * modules/uninorm/u32-normcoll-tests: New file.
27089         * tests/uninorm/test-u32-normcoll.c: New file.
27090
27091         Tests for module 'uninorm/u16-normcoll'.
27092         * modules/uninorm/u16-normcoll-tests: New file.
27093         * tests/uninorm/test-u16-normcoll.c: New file.
27094
27095         Tests for module 'uninorm/u8-normcoll'.
27096         * modules/uninorm/u8-normcoll-tests: New file.
27097         * tests/uninorm/test-u8-normcoll.c: New file.
27098
27099 2009-03-07  Bruno Haible  <bruno@clisp.org>
27100
27101         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
27102         tests/uninorm/test-u32-normcmp.c.
27103         * tests/uninorm/test-u32-normcmp.c: Include it.
27104         (test_nonascii): New function, extracted from main. Add some more
27105         tests.
27106         (main): Invoke test_ascii and test_nonascii.
27107         * modules/uninorm/u32-normcmp-tests (Files): Add
27108         tests/uninorm/test-u32-normcmp.h.
27109         (Depends-on): Remove uninorm/u32-normcmp.
27110
27111         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
27112         tests/uninorm/test-u16-normcmp.c.
27113         * tests/uninorm/test-u16-normcmp.c: Include it.
27114         (test_nonascii): New function, extracted from main. Add some more
27115         tests.
27116         (main): Invoke test_ascii and test_nonascii.
27117         * modules/uninorm/u16-normcmp-tests (Files): Add
27118         tests/uninorm/test-u16-normcmp.h.
27119         (Depends-on): Remove uninorm/u16-normcmp.
27120
27121         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
27122         tests/uninorm/test-u8-normcmp.c.
27123         * tests/uninorm/test-u8-normcmp.c: Include it.
27124         (test_nonascii): New function, extracted from main. Add some more
27125         tests.
27126         (main): Invoke test_ascii and test_nonascii.
27127         * modules/uninorm/u8-normcmp-tests (Files): Add
27128         tests/uninorm/test-u8-normcmp.h.
27129         (Depends-on): Remove uninorm/u8-normcmp.
27130
27131 2009-03-07  Bruno Haible  <bruno@clisp.org>
27132
27133         New module 'uninorm/u32-normcoll'.
27134         * lib/uninorm/u32-normcoll.c: New file.
27135         * modules/uninorm/u32-normcoll: New file.
27136
27137         New module 'uninorm/u16-normcoll'.
27138         * lib/uninorm/u16-normcoll.c: New file.
27139         * modules/uninorm/u16-normcoll: New file.
27140
27141         New module 'uninorm/u8-normcoll'.
27142         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
27143         declarations.
27144         * lib/uninorm/u8-normcoll.c: New file.
27145         * lib/uninorm/u-normcoll.h: New file.
27146         * modules/uninorm/u8-normcoll: New file.
27147
27148         New module 'uninorm/u32-normxfrm'.
27149         * lib/uninorm/u32-normxfrm.c: New file.
27150         * modules/uninorm/u32-normxfrm: New file.
27151
27152         New module 'uninorm/u16-normxfrm'.
27153         * lib/uninorm/u16-normxfrm.c: New file.
27154         * modules/uninorm/u16-normxfrm: New file.
27155
27156         New module 'uninorm/u8-normxfrm'.
27157         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
27158         declarations.
27159         * lib/uninorm/u8-normxfrm.c: New file.
27160         * lib/uninorm/u-normxfrm.h: New file.
27161         * modules/uninorm/u8-normxfrm: New file.
27162
27163 2009-03-07  Bruno Haible  <bruno@clisp.org>
27164
27165         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
27166         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
27167         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
27168
27169 2009-03-07  Bruno Haible  <bruno@clisp.org>
27170
27171         New module 'memxfrm'.
27172         * lib/memxfrm.h: New file.
27173         * lib/memxfrm.c: New file.
27174         * modules/memxfrm: New file.
27175
27176 2009-03-07  Bruno Haible  <bruno@clisp.org>
27177
27178         New module 'memcmp2'.
27179         * lib/memcmp2.h: New file.
27180         * lib/memcmp2.c: New file.
27181         * modules/memcmp2: New file.
27182
27183 2009-03-07  Bruno Haible  <bruno@clisp.org>
27184
27185         Tests for module 'uninorm/decomposing-form'.
27186         * modules/uninorm/decomposing-form-tests: New file.
27187         * tests/uninorm/test-decomposing-form.c: New file.
27188
27189         New module 'uninorm/decomposing-form'.
27190         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
27191         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
27192         Add 'decomposing_variant' field.
27193         * lib/uninorm/decomposing-form.c: New file.
27194         * lib/uninorm/nfc.c (uninorm_nfc): Update.
27195         * lib/uninorm/nfd.c (uninorm_nfd): Update.
27196         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
27197         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
27198         * modules/uninorm/decomposing-form: New file.
27199         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
27200         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
27201
27202 2009-03-07  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
27205         strings.
27206
27207 2009-03-06  Bruno Haible  <bruno@clisp.org>
27208
27209         Tests for module 'uninorm/u32-normcmp'.
27210         * tests/uninorm/test-u32-normcmp.c: New file.
27211         * modules/uninorm/u32-normcmp-tests: New file.
27212
27213         Tests for module 'uninorm/u16-normcmp'.
27214         * tests/uninorm/test-u16-normcmp.c: New file.
27215         * modules/uninorm/u16-normcmp-tests: New file.
27216
27217         Tests for module 'uninorm/u8-normcmp'.
27218         * tests/uninorm/test-u8-normcmp.c: New file.
27219         * modules/uninorm/u8-normcmp-tests: New file.
27220
27221         New module 'uninorm/u32-normcmp'.
27222         * lib/uninorm/u32-normcmp.c: New file.
27223         * modules/uninorm/u32-normcmp: New file.
27224
27225         New module 'uninorm/u16-normcmp'.
27226         * lib/uninorm/u16-normcmp.c: New file.
27227         * modules/uninorm/u16-normcmp: New file.
27228
27229         New module 'uninorm/u8-normcmp'.
27230         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
27231         declarations.
27232         * lib/uninorm/u8-normcmp.c: New file.
27233         * lib/uninorm/u-normcmp.h: New file.
27234         * modules/uninorm/u8-normcmp: New file.
27235
27236 2009-03-06  Bruno Haible  <bruno@clisp.org>
27237
27238         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
27239         Reported by Eric Blake.
27240
27241 2009-03-06  Eric Blake  <ebb9@byu.net>
27242             Bruno Haible  <bruno@clisp.org>
27243
27244         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
27245         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
27246         condition.
27247         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27248         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
27249         condition.
27250         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
27251
27252 2009-03-06  Eric Blake  <ebb9@byu.net>
27253
27254         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
27255         to avoid compiler warnings.
27256         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
27257
27258 2009-03-05  Bruno Haible  <bruno@clisp.org>
27259
27260         * tests/test-ftell.c (main): Disable test beyond end of file on
27261         FreeMiNT.
27262         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27263
27264 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
27265
27266         * lib/filevercmp.c: Move hidden files up in ordering.
27267         * tests/test-filevercmp.c: Add tests for hidden files.
27268
27269 2009-03-04  Bruno Haible  <bruno@clisp.org>
27270
27271         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
27272         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
27273         AM_CFLAGS.
27274         Reported by Simon Josefsson.
27275
27276 2009-03-03  Bruno Haible  <bruno@clisp.org>
27277
27278         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
27279         Reported by Simon Josefsson.
27280
27281         * doc/ld-version-script.texi: Update node reference.
27282
27283 2009-03-03  Bruno Haible  <bruno@clisp.org>
27284
27285         * modules/visibility (License): Change to 'unlimited'.
27286         Suggested by Simon Josefsson.
27287
27288 2009-03-03  Jim Meyering  <meyering@redhat.com>
27289
27290         unlinkdir: cannot_unlink_dir may modify process state
27291         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
27292         it's neither thread-safe nor appropriate for use in a library.
27293
27294 2009-03-03  Eric Blake  <ebb9@byu.net>
27295
27296         test-closein: silence test under Darwin
27297         * tests/test-closein.sh: Ignore stderr from cat, since we don't
27298         care if it dies from EPIPE or EBADF.
27299
27300 2009-03-03  Bruno Haible  <bruno@clisp.org>
27301
27302         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
27303         earlier.
27304         * doc/visibility.texi: Fix @node and @section.
27305
27306 2009-03-03  Simon Josefsson  <simon@josefsson.org>
27307
27308         * doc/gnulib.texi: Link to sections for ld version script and
27309         visibility.
27310         * doc/visibility.texi: Add @node and @section.
27311         * modules/ld-version-script: New module.
27312         * m4/ld-version-script.m4: New file.
27313         * doc/ld-version-script.texi: New file.
27314
27315 2009-03-02  David Lutterkort  <lutter@redhat.com>
27316
27317         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
27318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27319
27320 2009-03-02  Bruno Haible  <bruno@clisp.org>
27321
27322         * doc/visibility.texi: Mention libtool's -export-symbols option.
27323
27324 2009-03-02  Jim Meyering  <meyering@redhat.com>
27325
27326         announce-gen: new option: --no-print-checksums
27327         * build-aux/announce-gen (usage): Describe it.
27328         (print_checksums): Print a newline here, not in the [*] footnote.
27329         (main): Honor it.
27330
27331 2009-03-01  Bruno Haible  <bruno@clisp.org>
27332
27333         Use socklen_t in the native Windows replacements prototypes.
27334         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
27335         instead of 'int'.
27336         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27337         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27338         * modules/getsockopt (Depends-on): Add socklen.
27339         * modules/setsockopt (Depends-on): Add socklen.
27340
27341 2009-03-01  Bruno Haible  <bruno@clisp.org>
27342
27343         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
27344         least 4.2.
27345
27346 2009-03-01  Eric Blake  <ebb9@byu.net>
27347             Bruno Haible  <bruno@clisp.org>
27348
27349         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
27350         error messages.
27351         * lib/wait-process.c (wait_subprocess): Omit error message about
27352         deadly signal sent to the child of termsigp != NULL.
27353
27354 2009-03-01  Eric Blake  <ebb9@byu.net>
27355
27356         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
27357
27358 2009-03-01  Bruno Haible  <bruno@clisp.org>
27359
27360         Avoid a gcc warning.
27361         * tests/test-sched.c (b): Make global.
27362         Reported by Eric Blake.
27363
27364 2009-01-19  Martin Lambers  <marlam@marlam.de>
27365
27366         Provide POSIX semantics for socket timeout options on W32.
27367         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
27368         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
27369         * modules/setsockopt: Depend on sys_time module for struct timeval.
27370         * modules/getsockopt: Depend on sys_time module for struct timeval.
27371
27372 2009-03-01  Simon Josefsson  <simon@josefsson.org>
27373
27374         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
27375         __USE_GNU, for consistency with netdb.in.h.
27376         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27377
27378 2009-03-01  Bruno Haible  <bruno@clisp.org>
27379
27380         More support for FreeMiNT.
27381         * lib/fseeko.c (rpl_fseeko): Complete last commit.
27382         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27383
27384 2009-03-01  Bruno Haible  <bruno@clisp.org>
27385
27386         More support for FreeMiNT.
27387         * lib/fpurge.c (fpurge): Correct last commit.
27388         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27389
27390 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27391
27392         Fix unportable awk script in vc-list-files.
27393         * build-aux/vc-list-files: In the replacement awk script, use
27394         substr with a second argument of 1, not zero.
27395         Report by Simon Josefsson.
27396
27397 2009-02-28  Bruno Haible  <bruno@clisp.org>
27398
27399         More support for FreeMiNT.
27400         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
27401         to FreeMiNT today.
27402         * lib/fwriting.c (fwriting): Likewise.
27403         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
27404
27405 2009-02-28  Bruno Haible  <bruno@clisp.org>
27406
27407         * tests/test-freadseek.c (main): Disable test beyond end of file on
27408         FreeMiNT.
27409         * tests/test-ftello.c (main): Likewise.
27410         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
27411
27412 2009-02-28  Bruno Haible  <bruno@clisp.org>
27413
27414         Add tentative support for FreeMiNT.
27415         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
27416         * lib/fpurge.c (fpurge): Likewise.
27417         * lib/freadable.c (freadable): Likewise.
27418         * lib/freading.c (freading): Likewise.
27419         * lib/freadptr.c (freadptr): Likewise.
27420         * lib/freadseek.c (freadptrinc): Likewise.
27421         * lib/fseeko.c (rpl_fseeko): Likewise.
27422         * lib/fseterr.c (fseterr): Likewise.
27423         * lib/fwritable.c (fwritable): Likewise.
27424         * lib/fwriting.c (fwriting): Likewise.
27425         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
27426         Hourihane.
27427         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27428
27429 2009-02-28  Bruno Haible  <bruno@clisp.org>
27430
27431         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
27432         SIGCHLD.
27433         Reported by Jim Meyering.
27434
27435 2009-02-28  Bruno Haible  <bruno@clisp.org>
27436
27437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
27438         Mention the results of these tests on various platforms.
27439         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
27440         order.
27441         * doc/posix-functions/printf.texi: Likewise.
27442         * doc/posix-functions/snprintf.texi: Likewise.
27443         * doc/posix-functions/sprintf.texi: Likewise.
27444         * doc/posix-functions/vfprintf.texi: Likewise.
27445         * doc/posix-functions/vprintf.texi: Likewise.
27446         * doc/posix-functions/vsnprintf.texi: Likewise.
27447         * doc/posix-functions/vsprintf.texi: Likewise.
27448         * doc/glibc-functions/obstack_printf.texi: Likewise.
27449         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27450
27451 2009-02-28  Bruno Haible  <bruno@clisp.org>
27452
27453         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
27454         Reported by Loïc Minier <lool@dooz.org>.
27455
27456 2009-02-27  Bruno Haible  <bruno@clisp.org>
27457
27458         * gnulib-tool (func_import): Make the sed expression used to create the
27459         sed script for updating the .gitignore file POSIX compliant.
27460         Reported by Eric Blake.
27461
27462 2009-02-27  Bruno Haible  <bruno@clisp.org>
27463
27464         * gnulib-tool (sed): Don't alias as "sed --posix".
27465         Reported by Eric Blake.
27466
27467 2009-02-27  Bruno Haible  <bruno@clisp.org>
27468
27469         Avoid test link errors.
27470         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
27471         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
27472         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
27473         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
27474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27475
27476 2009-02-27  Bruno Haible  <bruno@clisp.org>
27477
27478         Avoid spurious "(cached)" in configure output.
27479         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
27480         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
27481         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27482         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27483         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27484         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27485         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27486         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27487         Reported by Eric Blake.
27488
27489 2009-02-27  Eric Blake  <ebb9@byu.net>
27490
27491         printf: fix regression in previous patch
27492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
27493
27494 2009-02-27  Bruno Haible  <bruno@clisp.org>
27495
27496         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
27497         value.
27498         * lib/stdint.in.h: Likewise.
27499         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
27500
27501 2009-02-27  Eric Blake  <ebb9@byu.net>
27502
27503         doc: mention more functions added in cygwin 1.7.0
27504         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
27505         addition.
27506         * doc/posix-functions/open_wmemstream.texi: Likewise.
27507         * doc/posix-functions/wcsnlen.texi: Likewise.
27508         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27509         * doc/posix-functions/wcstod.texi: Likewise.
27510         * doc/posix-functions/wcstof.texi: Likewise.
27511         * doc/posix-functions/wcstoimax.texi: Likewise.
27512         * doc/posix-functions/wcstok.texi: Likewise.
27513         * doc/posix-functions/wcstoumax.texi: Likewise.
27514
27515         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
27516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
27517         * doc/posix-functions/fprintf.texi: Update.
27518         * doc/posix-functions/printf.texi: Update.
27519         * doc/posix-functions/snprintf.texi: Update.
27520         * doc/posix-functions/sprintf.texi: Update.
27521         * doc/posix-functions/vfprintf.texi: Update.
27522         * doc/posix-functions/vprintf.texi: Update.
27523         * doc/posix-functions/vsnprintf.texi: Update.
27524         * doc/posix-functions/vsprintf.texi: Update.
27525         * doc/glibc-functions/obstack_printf.texi: Update.
27526         * doc/glibc-functions/obstack_vprintf.texi: Update.
27527
27528 2009-02-26  Eric Blake  <ebb9@byu.net>
27529
27530         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
27531         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
27532         compilation bug by using runtime conversion.
27533         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27534         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
27535         * modules/ceill-tests (Files): Use nan.h.
27536         * modules/floorl-tests (Files): Likewise.
27537         * modules/frexpl-tests (Files): Likewise.
27538         * modules/isnanl-tests (Files): Likewise.
27539         * modules/ldexpl-tests (Files): Likewise.
27540         * modules/roundl-tests (Files): Likewise.
27541         * modules/truncl-tests (Files): Likewise.
27542         * tests/test-ceill.c (main): Use a working NaN.
27543         * tests/test-floorl.c (main): Likewise.
27544         * tests/test-frexpl.c (main): Likewise.
27545         * tests/test-isnan.c (test_long_double): Likewise.
27546         * tests/test-isnanl.h (main): Likewise.
27547         * tests/test-ldexpl.h (main): Likewise.
27548         * tests/test-roundl.h (main): Likewise.
27549         * tests/test-truncl.h (main): Likewise.
27550         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
27551
27552 2009-02-26  Eric Blake  <ebb9@byu.net>
27553             Bruno Haible  <bruno@clisp.org>
27554
27555         Work around a *printf bug with %ls on Solaris.
27556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
27557         precision is specified, sprintf stops converting the wide string
27558         argument when the number of bytes that have been produced by this
27559         conversion equals or exceeds the precision.
27560         * doc/posix-functions/fprintf.texi: Update.
27561         * doc/posix-functions/printf.texi: Update.
27562         * doc/posix-functions/snprintf.texi: Update.
27563         * doc/posix-functions/sprintf.texi: Update.
27564         * doc/posix-functions/vfprintf.texi: Update.
27565         * doc/posix-functions/vprintf.texi: Update.
27566         * doc/posix-functions/vsnprintf.texi: Update.
27567         * doc/posix-functions/vsprintf.texi: Update.
27568         * doc/glibc-functions/obstack_printf.texi: Update.
27569         * doc/glibc-functions/obstack_vprintf.texi: Update.
27570
27571 2009-02-26  Eric Blake  <ebb9@byu.net>
27572
27573         stdlib: favor compiler check of random.h
27574         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
27575         to avoid an ObjC random.h installed by Swarm.
27576
27577 2009-02-26  Bruno Haible  <bruno@clisp.org>
27578
27579         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
27580         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
27581         Reported by Gary V. Vaughan <gary@gnu.org>.
27582
27583 2009-02-26  Bruno Haible  <bruno@clisp.org>
27584
27585         Fix *printf behaviour regarding the %ls directive.
27586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
27587         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
27588         NEED_PRINTF_DIRECTIVE_LS.
27589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
27590         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27592         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
27593         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
27594         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
27595         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27597         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27599         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27600         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
27601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27603         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27604         * doc/posix-functions/fprintf.texi: Update.
27605         * doc/posix-functions/printf.texi: Update.
27606         * doc/posix-functions/snprintf.texi: Update.
27607         * doc/posix-functions/sprintf.texi: Update.
27608         * doc/posix-functions/vfprintf.texi: Update.
27609         * doc/posix-functions/vprintf.texi: Update.
27610         * doc/posix-functions/vsnprintf.texi: Update.
27611         * doc/posix-functions/vsprintf.texi: Update.
27612         * doc/glibc-functions/obstack_printf.texi: Update.
27613         * doc/glibc-functions/obstack_vprintf.texi: Update.
27614         Reported by Eric Blake.
27615
27616 2009-02-25  Bruno Haible  <bruno@clisp.org>
27617
27618         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
27619         with known value.
27620         Reported by Gary V. Vaughan <gary@gnu.org>.
27621
27622 2009-02-25  Bruno Haible  <bruno@clisp.org>
27623
27624         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
27625         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
27626         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
27627         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
27628         Reported by Gary V. Vaughan <gary@gnu.org>.
27629
27630 2009-02-25  Bruno Haible  <bruno@clisp.org>
27631
27632         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
27633         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
27634         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
27635         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
27636         Reported by Gary V. Vaughan <gary@gnu.org>.
27637
27638 2009-02-25  Eric Blake  <ebb9@byu.net>
27639
27640         tests: skip fseek/ftell tests if ungetc is broken
27641         * m4/ungetc.m4: New file.
27642         * modules/fseek-tests: Split test, so ungetc dependency is
27643         separate from rest of test.
27644         * modules/fseeko-tests: Likewise.
27645         * modules/ftell-tests: Likewise.
27646         * modules/ftello-tests: Likewise.
27647         * tests/test-fseek.c (main): Isolate ungetc dependency.
27648         * tests/test-fseeko.c (main): Likewise.
27649         * tests/test-ftell.c (main): Likewise.
27650         * tests/test-ftello.c (main): Likewise.
27651         * tests/test-fseek2.sh: New file.
27652         * tests/test-fseeko2.sh: Likewise.
27653         * tests/test-ftell2.sh: Likewise.
27654         * tests/test-ftello2.sh: Likewise.
27655
27656 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
27657
27658         test-getaddrinfo: fix usage of skip return code 77
27659         * tests/test-gettaddrinfo.c: Return skip code 77 only
27660         for first occurance of skip (4x77 is not 77)
27661
27662 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
27663
27664         strtod: avoid C99 decl-after-statement
27665         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
27666
27667 2009-02-24  Eric Blake  <ebb9@byu.net>
27668
27669         strtod: detect HP-UX 11.31 bug
27670         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
27671         Reported by Gary V. Vaughan.
27672
27673 2009-02-23  Bruno Haible  <bruno@clisp.org>
27674
27675         Fix invalid read past end of memory block.
27676         * lib/vasnprintf.c (DCHAR_SET): Define.
27677         (local_wcslen): Define only when needed.
27678         (local_strnlen, local_wcsnlen): New functions.
27679         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
27680         directives that involve a conversion ourselves.
27681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
27682         wcsnlen, mbrtowc, wcrtomb.
27683         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
27684         * tests/test-vasprintf-posix.c (test_function): Likewise.
27685         * tests/test-snprintf-posix.h (test_function): Likewise.
27686         * tests/test-sprintf-posix.h (test_function): Likewise.
27687         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27688
27689 2009-02-22  Bruno Haible  <bruno@clisp.org>
27690
27691         Implement new clarified decomposition of Hangul syllables.
27692         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
27693         of type LTV, return only a pairwise decomposition.
27694         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
27695         Likewise.
27696         * tests/uninorm/test-decomposition.c (main): Updated expected result.
27697         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
27698         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
27699
27700 2009-02-22  Bruno Haible  <bruno@clisp.org>
27701
27702         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
27703         zero-length results and shrink excess allocated memory.
27704         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
27705         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
27706         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
27707         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
27708         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
27709         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
27710         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
27711         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
27712         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
27713         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
27714         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
27715         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
27716
27717 2009-02-21  Bruno Haible  <bruno@clisp.org>
27718
27719         * doc/gnulib.texi: Include safe-alloc.texi earlier.
27720         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
27721         spaces after a period. Put a space between a macro name and its
27722         argument list. Trivial rewordings.
27723         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
27724         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
27725         (main): Return 0 explicitly.
27726
27727 2009-02-21  Bruno Haible  <bruno@clisp.org>
27728
27729         Tests for module 'uninorm/filter'.
27730         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
27731         * modules/uninorm/filter-tests: New file.
27732
27733         New module 'uninorm/filter'.
27734         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
27735         uninorm_filter_flush, uninorm_filter_free): New declarations.
27736         * lib/uninorm/uninorm-filter.c: New file.
27737         * modules/uninorm/filter: New file.
27738
27739 2009-02-21  Bruno Haible  <bruno@clisp.org>
27740
27741         Tests for module 'uninorm/nfkc'.
27742         * tests/uninorm/test-nfkc.c: New file.
27743         * tests/uninorm/test-u8-nfkc.c: New file.
27744         * tests/uninorm/test-u16-nfkc.c: New file.
27745         * tests/uninorm/test-u32-nfkc.c: New file.
27746         * tests/uninorm/test-u32-nfkc-big.sh: New file.
27747         * tests/uninorm/test-u32-nfkc-big.c: New file.
27748         * modules/uninorm/nfkc-tests: New file.
27749
27750         New module 'uninorm/nfkc'.
27751         * lib/uninorm/nfkc.c: New file.
27752         * modules/uninorm/nfkc: New file.
27753
27754         Tests for module 'uninorm/nfkd'.
27755         * tests/uninorm/test-nfkd.c: New file.
27756         * tests/uninorm/test-u8-nfkd.c: New file.
27757         * tests/uninorm/test-u16-nfkd.c: New file.
27758         * tests/uninorm/test-u32-nfkd.c: New file.
27759         * tests/uninorm/test-u32-nfkd-big.sh: New file.
27760         * tests/uninorm/test-u32-nfkd-big.c: New file.
27761         * modules/uninorm/nfkd-tests: New file.
27762
27763         New module 'uninorm/nfkd'.
27764         * lib/uninorm/nfkd.c: New file.
27765         * modules/uninorm/nfkd: New file.
27766
27767         Tests for module 'uninorm/nfc'.
27768         * tests/uninorm/test-nfc.c: New file.
27769         * tests/uninorm/test-u8-nfc.c: New file.
27770         * tests/uninorm/test-u16-nfc.c: New file.
27771         * tests/uninorm/test-u32-nfc.c: New file.
27772         * tests/uninorm/test-u32-nfc-big.sh: New file.
27773         * tests/uninorm/test-u32-nfc-big.c: New file.
27774         * modules/uninorm/nfc-tests: New file.
27775
27776         New module 'uninorm/nfc'.
27777         * lib/uninorm/nfc.c: New file.
27778         * modules/uninorm/nfc: New file.
27779
27780         Tests for module 'uninorm/nfd'.
27781         * tests/uninorm/test-nfd.c: New file.
27782         * tests/uninorm/test-u8-nfd.c: New file.
27783         * tests/uninorm/test-u16-nfd.c: New file.
27784         * tests/uninorm/test-u32-nfd.c: New file.
27785         * tests/uninorm/test-u32-nfd-big.sh: New file.
27786         * tests/uninorm/test-u32-nfd-big.c: New file.
27787         * tests/uninorm/test-u32-normalize-big.h: New file.
27788         * tests/uninorm/test-u32-normalize-big.c: New file.
27789         * tests/uninorm/NormalizationTest.txt: New file, created from
27790         Unicode 5.1.0 NormalizationTest.txt.
27791         * modules/uninorm/nfd-tests: New file.
27792
27793         New module 'uninorm/nfd'.
27794         * lib/uninorm/nfd.c: New file.
27795         * modules/uninorm/nfd: New file.
27796
27797         New module 'uninorm/u32-normalize'.
27798         * lib/uninorm/u32-normalize.c: New file.
27799         * modules/uninorm/u32-normalize: New file.
27800
27801         New module 'uninorm/u16-normalize'.
27802         * lib/uninorm/u16-normalize.c: New file.
27803         * modules/uninorm/u16-normalize: New file.
27804
27805         New module 'uninorm/u8-normalize'.
27806         * lib/uninorm/u8-normalize.c: New file.
27807         * lib/uninorm/normalize-internal.h: New file.
27808         * lib/uninorm/u-normalize-internal.h: New file.
27809         * modules/uninorm/u8-normalize: New file.
27810
27811         New module 'uninorm/decompose-internal'.
27812         * lib/uninorm/decompose-internal.c: New file.
27813         * modules/uninorm/decompose-internal: New file.
27814
27815         Tests for module 'uninorm/composition'.
27816         * tests/uninorm/test-composition.c: New file.
27817         * modules/uninorm/composition-tests: New file.
27818
27819         New module 'uninorm/composition'.
27820         * lib/uninorm/composition.c: New file.
27821         * lib/uninorm/composition-table.gperf: New file, generated by
27822         gen-uni-tables.
27823         * modules/uninorm/composition: New file.
27824
27825         Tests for module 'uninorm/compat-decomposition'.
27826         * tests/uninorm/test-compat-decomposition.c: New file.
27827         * modules/uninorm/compat-decomposition-tests: New file.
27828
27829         New module 'uninorm/compat-decomposition'.
27830         * lib/uninorm/decompose-internal.h: New file.
27831         * lib/uninorm/compat-decomposition.c: New file.
27832         * modules/uninorm/compat-decomposition: New file.
27833
27834         Tests for module 'uninorm/canonical-decomposition'.
27835         * tests/uninorm/test-canonical-decomposition.c: New file.
27836         * modules/uninorm/canonical-decomposition-tests: New file.
27837
27838         New module 'uninorm/canonical-decomposition'.
27839         * lib/uninorm/canonical-decomposition.c: New file.
27840         * modules/uninorm/canonical-decomposition: New file.
27841
27842         Tests for module 'uninorm/decomposition'.
27843         * tests/uninorm/test-decomposition.c: New file.
27844         * modules/uninorm/decomposition-tests: New file.
27845
27846         New module 'uninorm/decomposition'.
27847         * lib/uninorm/decomposition.c: New file.
27848         * modules/uninorm/decomposition: New file.
27849
27850         New module 'uninorm/decomposition-table'.
27851         * lib/uninorm/decomposition-table.h: New file.
27852         * lib/uninorm/decomposition-table.c: New file.
27853         * lib/uninorm/decomposition-table1.h: New file, generated by
27854         gen-uni-tables.
27855         * lib/uninorm/decomposition-table2.h: New file, generated by
27856         gen-uni-tables.
27857         * modules/uninorm/decomposition-table: New file.
27858
27859         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
27860         (UC_DECOMP_*): New enumeration items.
27861         (get_decomposition): New function.
27862         (struct decomp_table): New type.
27863         (output_decomposition, output_decomposition_tables): New functions.
27864         (unicode_composition_exclusions): New variable.
27865         (fill_composition_exclusions, debug_output_composition_tables): New
27866         functions.
27867         (main): Accept one more argument. Invoke fill_composition_exclusions.
27868         Output decomposition and composition tables.
27869
27870         New module 'uninorm/base'.
27871         * lib/uninorm.h: New file.
27872         * lib/unictype.h: Update comment.
27873         * modules/uninorm/base: New file.
27874
27875 2009-02-21  David Lutterkort  <lutter@redhat.com>
27876
27877         Tests for module 'safe-alloc'.
27878         * tests/test-safe-alloc.c: New file.
27879         * modules/safe-alloc-tests: New file.
27880
27881         New module 'safe-alloc'.
27882         * lib/safe-alloc.h: New file.
27883         * lib/safe-alloc.c: New file.
27884         * m4/safe-alloc.m4: New file.
27885         * modules/safe-alloc: New file.
27886         * doc/safe-alloc.texi: New file.
27887         * doc/gnulib.texi: Include it.
27888         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27889         safe-alloc.
27890
27891 2009-02-18  Bruno Haible  <bruno@clisp.org>
27892
27893         Fix link error on non-glibc systems.
27894         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
27895         variable.
27896         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27897
27898 2009-02-18  Jim Meyering  <meyering@redhat.com>
27899
27900         fts: avoid used-uninitialized error due to recent change
27901         * lib/fts.c (fts_read): Guard uses of the new member,
27902         parent->fts_n_dirs_remaining, since it's not relevant for
27903         the parent of a directory specified on the command-line.
27904
27905 2009-02-17  James Youngman  <jay@gnu.org>
27906             Bruno Haible  <bruno@clisp.org>
27907
27908         * m4/include_next.m4: Reformulate comment.
27909
27910 2009-02-16  Jim Meyering  <meyering@redhat.com>
27911
27912         fts: add #if guards so that the fts_lgpl module still builds
27913         * lib/fts.c: Guard just-added hash-table-using parts with
27914         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
27915         Reported by Simon Josefsson.
27916
27917 2009-02-15  Bruno Haible  <bruno@clisp.org>
27918
27919         * modules/array-mergesort-tests: New file.
27920         * tests/test-array-mergesort.c: New file.
27921
27922         New module 'array-mergesort'.
27923         * modules/array-mergesort: New file.
27924         * lib/array-mergesort.h: New file.
27925
27926 2009-02-15  Bruno Haible  <bruno@clisp.org>
27927
27928         Fix 2009-02-07 commit.
27929         * lib/gen-uni-tables.c (output_predicate, output_category,
27930         output_combclass, output_bidi_category, output_decimal_digit,
27931         output_digit, output_numeric, output_mirror, output_scripts,
27932         output_ident_category, output_simple_mapping): Fix format directives.
27933         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
27934
27935 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
27936
27937         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
27938         fixes are available from IBM.
27939
27940 2009-02-13  Jim Meyering  <meyering@redhat.com>
27941
27942         fts: arrange not to stat non-directories in more cases
27943         This makes GNU find (when it doesn't need to stat each file)
27944         *much* more efficient at traversing reiserfs file systems.
27945         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
27946         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
27947         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
27948         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
27949         (leaf_optimization_applies): New function.
27950         (LCO_hash, LCO_compare): New helper functions.
27951         (link_count_optimize_ok): New function.
27952         (fts_stat): Initialize new member (if dir).
27953         (fts_read): Decrement parent's fts_n_dirs_remaining count if
27954         we've just stat'ed a directory.  Skip the stat call when possible.
27955         ---
27956         Note this AFS-related exchange:
27957         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
27958         and note find's pioctl call in find/fstype.c.
27959         But that is necessary only if you want to enable the
27960         optimization for AFS, and for now, I don't.
27961
27962         fts: move a function definition "up" (no semantic change)
27963         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
27964         "up" to precede upcoming use of a related function.
27965
27966 2009-02-11  Jim Meyering  <meyering@redhat.com>
27967
27968         fts: correct internal computation of nlinks (optimization-related)
27969         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
27970         whether the current entry is a directory, so don't test it.
27971
27972 2009-02-10  Bruno Haible  <bruno@clisp.org>
27973
27974         Tests for module 'uniwbrk/ulc-wordbreaks'.
27975         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
27976         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
27977         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
27978
27979         Tests for module 'uniwbrk/u32-wordbreaks'.
27980         * modules/uniwbrk/u32-wordbreaks-tests: New file.
27981         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
27982
27983         Tests for module 'uniwbrk/u16-wordbreaks'.
27984         * modules/uniwbrk/u16-wordbreaks-tests: New file.
27985         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
27986
27987         Tests for module 'uniwbrk/u8-wordbreaks'.
27988         * modules/uniwbrk/u8-wordbreaks-tests: New file.
27989         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
27990
27991 2009-02-10  Bruno Haible  <bruno@clisp.org>
27992
27993         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
27994         property.
27995         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
27996         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
27997         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
27998
27999 2009-02-10  Simon Josefsson  <simon@josefsson.org>
28000
28001         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
28002         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
28003
28004 2009-02-10  Bruno Haible  <bruno@clisp.org>
28005
28006         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
28007         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
28008         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
28009         * lib/unilbrk/u8-possible-linebreaks.c: Update.
28010         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
28011         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
28012
28013 2009-02-09  Simon Josefsson  <simon@josefsson.org>
28014
28015         * lib/sockets.h (gl_fd_to_handle): New function.
28016
28017         * tests/test-sockets.c: Call gl_fd_to_handle.
28018
28019 2009-02-09  Bruno Haible  <bruno@clisp.org>
28020
28021         * doc/havelib.texi: Document the conventions on bi-arch systems.
28022
28023 2009-02-08  Bruno Haible  <bruno@clisp.org>
28024
28025         Document the AC_LIB_LINKFLAGS macro.
28026         * doc/havelib.texi: New file, mostly written on 2005-05-24.
28027         * doc/gnulib.texi: Include it.
28028
28029 2009-02-08  Bruno Haible  <bruno@clisp.org>
28030
28031         Fix wrong order of sections, compared to TOC.
28032         * doc/gnulib.texi: Include relocatable-maint.texi after the
28033         "Regular expressions" node, not before.
28034
28035 2009-02-08  Bruno Haible  <bruno@clisp.org>
28036
28037         Tests for module 'unicase/totitle'.
28038         * modules/unicase/totitle-tests: New file.
28039
28040         Tests for module 'unicase/tolower'.
28041         * modules/unicase/tolower-tests: New file.
28042
28043         Tests for module 'unicase/toupper'.
28044         * modules/unicase/toupper-tests: New file.
28045         * tests/unicase/test-mapping-part1.h: New file.
28046         * tests/unicase/test-mapping-part2.h: New file.
28047
28048         New module 'unicase/totitle'.
28049         * modules/unicase/totitle: New file.
28050         * lib/unicase/totitle.c: New file.
28051
28052         New module 'unicase/tolower'.
28053         * modules/unicase/tolower: New file.
28054         * lib/unicase/tolower.c: New file.
28055
28056         New module 'unicase/toupper'.
28057         * modules/unicase/toupper: New file.
28058         * lib/unicase/toupper.c: New file.
28059         * lib/unicase/simple-mapping.h: New file.
28060
28061         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
28062         (mapping_table): New structure.
28063         (output_simple_mapping): New function.
28064         (main): Invoke output_simple_mapping_test and output_simple_mapping.
28065         * modules/gen-uni-tables (Description): Update.
28066         * lib/unicase/toupper.h: New file, automatically generated by
28067         gen-uni-tables.
28068         * lib/unicase/tolower.h: New file, automatically generated by
28069         gen-uni-tables.
28070         * lib/unicase/totitle.h: New file, automatically generated by
28071         gen-uni-tables.
28072         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
28073         gen-uni-tables.
28074         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
28075         gen-uni-tables.
28076         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
28077         gen-uni-tables.
28078
28079         New module 'unicase/base'.
28080         * modules/unicase/base: New file.
28081         * lib/unicase.h: New file.
28082
28083 2009-02-08  Bruno Haible  <bruno@clisp.org>
28084
28085         New module 'uniwbrk/ulc-wordbreaks'.
28086         * modules/uniwbrk/ulc-wordbreaks: New file.
28087         * lib/uniwbrk/ulc-wordbreaks.c: New file.
28088
28089         New module 'uniwbrk/u32-wordbreaks'.
28090         * modules/uniwbrk/u32-wordbreaks: New file.
28091         * lib/uniwbrk/u32-wordbreaks.c: New file.
28092
28093         New module 'uniwbrk/u16-wordbreaks'.
28094         * modules/uniwbrk/u16-wordbreaks: New file.
28095         * lib/uniwbrk/u16-wordbreaks.c: New file.
28096
28097         New module 'uniwbrk/u8-wordbreaks'.
28098         * modules/uniwbrk/u8-wordbreaks: New file.
28099         * lib/uniwbrk/u8-wordbreaks.c: New file.
28100         * lib/uniwbrk/u-wordbreaks.h: New file.
28101
28102         New module 'uniwbrk/table'.
28103         * modules/uniwbrk/table: New file.
28104         * lib/uniwbrk/wbrktable.h: New file.
28105         * lib/uniwbrk/wbrktable.c: New file.
28106
28107         New module 'uniwbrk/wordbreak-property'.
28108         * modules/uniwbrk/wordbreak-property: New file.
28109         * lib/uniwbrk/wordbreak-property.c: New file.
28110
28111         * lib/gen-uni-tables.c (WBP_*): New enum items.
28112         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
28113         (unicode_org_wbp): New variable.
28114         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
28115         New functions.
28116         (wbp_table): New structure.
28117         (output_wbp, output_wbrk_tables): New functions.
28118         (main): Accept additional argument. Invoke fill_org_wbp,
28119         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
28120         output_wbrk_tables.
28121         * modules/gen-uni-tables (Description): Update.
28122         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
28123         gen-uni-tables.
28124
28125         New module 'uniwbrk/base'.
28126         * modules/uniwbrk/base: New file.
28127         * lib/uniwbrk.h: New file.
28128
28129 2009-02-08  Bruno Haible  <bruno@clisp.org>
28130
28131         Update to Unicode 5.1.0.
28132         * lib/gen-uni-tables.c (is_property_alphabetic): Include
28133         U+2185..U+2188.
28134         (is_property_default_ignorable_code_point): Don't include characters
28135         of category Cc or Cs and not-a-characters.
28136         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
28137         U+0D79, U+109E, U+109F, U+A60C.
28138         * lib/unictype/bidi_of.h: Regenerated.
28139         * lib/unictype/blocks.h: Regenerated.
28140         * lib/unictype/categ_C.h: Regenerated.
28141         * lib/unictype/categ_Cf.h: Regenerated.
28142         * lib/unictype/categ_Cn.h: Regenerated.
28143         * lib/unictype/categ_L.h: Regenerated.
28144         * lib/unictype/categ_Ll.h: Regenerated.
28145         * lib/unictype/categ_Lm.h: Regenerated.
28146         * lib/unictype/categ_Lo.h: Regenerated.
28147         * lib/unictype/categ_Lu.h: Regenerated.
28148         * lib/unictype/categ_M.h: Regenerated.
28149         * lib/unictype/categ_Mc.h: Regenerated.
28150         * lib/unictype/categ_Me.h: Regenerated.
28151         * lib/unictype/categ_Mn.h: Regenerated.
28152         * lib/unictype/categ_N.h: Regenerated.
28153         * lib/unictype/categ_Nd.h: Regenerated.
28154         * lib/unictype/categ_Nl.h: Regenerated.
28155         * lib/unictype/categ_No.h: Regenerated.
28156         * lib/unictype/categ_P.h: Regenerated.
28157         * lib/unictype/categ_Pd.h: Regenerated.
28158         * lib/unictype/categ_Pe.h: Regenerated.
28159         * lib/unictype/categ_Pf.h: Regenerated.
28160         * lib/unictype/categ_Pi.h: Regenerated.
28161         * lib/unictype/categ_Po.h: Regenerated.
28162         * lib/unictype/categ_Ps.h: Regenerated.
28163         * lib/unictype/categ_S.h: Regenerated.
28164         * lib/unictype/categ_Sk.h: Regenerated.
28165         * lib/unictype/categ_Sm.h: Regenerated.
28166         * lib/unictype/categ_So.h: Regenerated.
28167         * lib/unictype/categ_of.h: Regenerated.
28168         * lib/unictype/combining.h: Regenerated.
28169         * lib/unictype/ctype_alnum.h: Regenerated.
28170         * lib/unictype/ctype_alpha.h: Regenerated.
28171         * lib/unictype/ctype_graph.h: Regenerated.
28172         * lib/unictype/ctype_lower.h: Regenerated.
28173         * lib/unictype/ctype_print.h: Regenerated.
28174         * lib/unictype/ctype_punct.h: Regenerated.
28175         * lib/unictype/ctype_upper.h: Regenerated.
28176         * lib/unictype/decdigit.h: Regenerated.
28177         * lib/unictype/digit.h: Regenerated.
28178         * lib/unictype/mirror.h: Regenerated.
28179         * lib/unictype/numeric.h: Regenerated.
28180         * lib/unictype/pr_alphabetic.h: Regenerated.
28181         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
28182         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
28183         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
28184         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
28185         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
28186         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
28187         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
28188         * lib/unictype/pr_combining.h: Regenerated.
28189         * lib/unictype/pr_dash.h: Regenerated.
28190         * lib/unictype/pr_decimal_digit.h: Regenerated.
28191         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
28192         * lib/unictype/pr_deprecated.h: Regenerated.
28193         * lib/unictype/pr_diacritic.h: Regenerated.
28194         * lib/unictype/pr_extender.h: Regenerated.
28195         * lib/unictype/pr_format_control.h: Regenerated.
28196         * lib/unictype/pr_grapheme_base.h: Regenerated.
28197         * lib/unictype/pr_grapheme_extend.h: Regenerated.
28198         * lib/unictype/pr_grapheme_link.h: Regenerated.
28199         * lib/unictype/pr_id_continue.h: Regenerated.
28200         * lib/unictype/pr_id_start.h: Regenerated.
28201         * lib/unictype/pr_ideographic.h: Regenerated.
28202         * lib/unictype/pr_ignorable_control.h: Regenerated.
28203         * lib/unictype/pr_lowercase.h: Regenerated.
28204         * lib/unictype/pr_math.h: Regenerated.
28205         * lib/unictype/pr_numeric.h: Regenerated.
28206         * lib/unictype/pr_other_alphabetic.h: Regenerated.
28207         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
28208         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
28209         * lib/unictype/pr_other_id_continue.h: Regenerated.
28210         * lib/unictype/pr_other_lowercase.h: Regenerated.
28211         * lib/unictype/pr_other_math.h: Regenerated.
28212         * lib/unictype/pr_punctuation.h: Regenerated.
28213         * lib/unictype/pr_sentence_terminal.h: Regenerated.
28214         * lib/unictype/pr_soft_dotted.h: Regenerated.
28215         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
28216         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
28217         * lib/unictype/pr_unified_ideograph.h: Regenerated.
28218         * lib/unictype/pr_uppercase.h: Regenerated.
28219         * lib/unictype/pr_xid_continue.h: Regenerated.
28220         * lib/unictype/pr_xid_start.h: Regenerated.
28221         * lib/unictype/pr_zero_width.h: Regenerated.
28222         * lib/unictype/scripts.h: Regenerated.
28223         * lib/unictype/scripts_byname.gperf: Regenerated.
28224         * lib/unictype/sy_java_ident.h: Regenerated.
28225         * lib/unilbrk/lbrkprop1.h: Regenerated.
28226         * lib/unilbrk/lbrkprop2.h: Regenerated.
28227         * tests/unictype/test-categ_C.c: Regenerated.
28228         * tests/unictype/test-categ_Cf.c: Regenerated.
28229         * tests/unictype/test-categ_Cn.c: Regenerated.
28230         * tests/unictype/test-categ_L.c: Regenerated.
28231         * tests/unictype/test-categ_Ll.c: Regenerated.
28232         * tests/unictype/test-categ_Lm.c: Regenerated.
28233         * tests/unictype/test-categ_Lo.c: Regenerated.
28234         * tests/unictype/test-categ_Lu.c: Regenerated.
28235         * tests/unictype/test-categ_M.c: Regenerated.
28236         * tests/unictype/test-categ_Mc.c: Regenerated.
28237         * tests/unictype/test-categ_Me.c: Regenerated.
28238         * tests/unictype/test-categ_Mn.c: Regenerated.
28239         * tests/unictype/test-categ_N.c: Regenerated.
28240         * tests/unictype/test-categ_Nd.c: Regenerated.
28241         * tests/unictype/test-categ_Nl.c: Regenerated.
28242         * tests/unictype/test-categ_No.c: Regenerated.
28243         * tests/unictype/test-categ_P.c: Regenerated.
28244         * tests/unictype/test-categ_Pd.c: Regenerated.
28245         * tests/unictype/test-categ_Pe.c: Regenerated.
28246         * tests/unictype/test-categ_Pf.c: Regenerated.
28247         * tests/unictype/test-categ_Pi.c: Regenerated.
28248         * tests/unictype/test-categ_Po.c: Regenerated.
28249         * tests/unictype/test-categ_Ps.c: Regenerated.
28250         * tests/unictype/test-categ_S.c: Regenerated.
28251         * tests/unictype/test-categ_Sk.c: Regenerated.
28252         * tests/unictype/test-categ_Sm.c: Regenerated.
28253         * tests/unictype/test-categ_So.c: Regenerated.
28254         * tests/unictype/test-ctype_alnum.c: Regenerated.
28255         * tests/unictype/test-ctype_alpha.c: Regenerated.
28256         * tests/unictype/test-ctype_graph.c: Regenerated.
28257         * tests/unictype/test-ctype_lower.c: Regenerated.
28258         * tests/unictype/test-ctype_print.c: Regenerated.
28259         * tests/unictype/test-ctype_punct.c: Regenerated.
28260         * tests/unictype/test-ctype_upper.c: Regenerated.
28261         * tests/unictype/test-decdigit.h: Regenerated.
28262         * tests/unictype/test-digit.h: Regenerated.
28263         * tests/unictype/test-numeric.h: Regenerated.
28264         * tests/unictype/test-pr_alphabetic.c: Regenerated.
28265         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
28266         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
28267         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
28268         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
28269         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
28270         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
28271         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
28272         * tests/unictype/test-pr_combining.c: Regenerated.
28273         * tests/unictype/test-pr_dash.c: Regenerated.
28274         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
28275         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
28276         * tests/unictype/test-pr_deprecated.c: Regenerated.
28277         * tests/unictype/test-pr_diacritic.c: Regenerated.
28278         * tests/unictype/test-pr_extender.c: Regenerated.
28279         * tests/unictype/test-pr_format_control.c: Regenerated.
28280         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
28281         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
28282         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
28283         * tests/unictype/test-pr_id_continue.c: Regenerated.
28284         * tests/unictype/test-pr_id_start.c: Regenerated.
28285         * tests/unictype/test-pr_ideographic.c: Regenerated.
28286         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
28287         * tests/unictype/test-pr_lowercase.c: Regenerated.
28288         * tests/unictype/test-pr_math.c: Regenerated.
28289         * tests/unictype/test-pr_numeric.c: Regenerated.
28290         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
28291         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
28292         Regenerated.
28293         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
28294         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
28295         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
28296         * tests/unictype/test-pr_other_math.c: Regenerated.
28297         * tests/unictype/test-pr_punctuation.c: Regenerated.
28298         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
28299         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
28300         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
28301         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
28302         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
28303         * tests/unictype/test-pr_uppercase.c: Regenerated.
28304         * tests/unictype/test-pr_xid_continue.c: Regenerated.
28305         * tests/unictype/test-pr_xid_start.c: Regenerated.
28306         * tests/unictype/test-pr_zero_width.c: Regenerated.
28307
28308         Update to Unicode 5.1.0.
28309         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
28310         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
28311         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
28312         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
28313         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
28314         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
28315         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
28316         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
28317         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
28318         (nonspacing_table_ind): Update.
28319         * tests/uniwidth/test-uc_width2.sh: Update expected result.
28320
28321         Update to Unicode 5.1.0.
28322         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
28323         code transform.
28324         * lib/uniname/uniname.c (unicode_character_name,
28325         unicode_name_character): Add the range 0x1Fxxx to the code transform.
28326         * lib/uniname/uninames.h: Regenerated.
28327         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
28328
28329 2009-02-07  Bruno Haible  <bruno@clisp.org>
28330
28331         Merge gen-ctype and gen-lbrk into a single program.
28332         * lib/gen-uni-tables.c: New file, incorporating
28333         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
28334         Add directory prefixes to the names of the generated files.
28335         * lib/unictype/gen-ctype.c: Remove file.
28336         * lib/unilbrk/gen-lbrk.c: Remove file.
28337         * modules/gen-uni-tables: New file.
28338         * modules/unictype/gen-ctype: Remove file.
28339         * modules/unilbrk/gen-lbrk: Remove file.
28340
28341 2009-02-07  Bruno Haible  <bruno@clisp.org>
28342
28343         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
28344
28345         New module 'unistr/u32-strcoll'.
28346         * modules/unistr/u32-strcoll: New file.
28347         * lib/unistr/u32-strcoll.c: New file.
28348
28349         New module 'unistr/u16-strcoll'.
28350         * modules/unistr/u16-strcoll: New file.
28351         * lib/unistr/u16-strcoll.c: New file.
28352
28353         New module 'unistr/u8-strcoll'.
28354         * modules/unistr/u8-strcoll: New file.
28355         * lib/unistr/u8-strcoll.c: New file.
28356         * lib/unistr/u-strcoll.h: New file.
28357
28358 2009-02-07  Bruno Haible  <bruno@clisp.org>
28359
28360         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
28361         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28362         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
28363         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
28364         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
28365         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
28366
28367 2009-02-07  Bruno Haible  <bruno@clisp.org>
28368
28369         Make 64-bit clean.
28370         * lib/unictype/gen-ctype.c (output_predicate, output_category,
28371         output_combclass, output_bidi_category, output_decimal_digit,
28372         output_digit, output_numeric, output_mirror, output_scripts,
28373         output_ident_category): Use proper width specifier in format strings.
28374
28375 2009-02-07  Bruno Haible  <bruno@clisp.org>
28376
28377         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
28378         failure behaviour.
28379
28380 2009-02-07  Jim Meyering  <meyering@redhat.com>
28381
28382         regex: avoid compilation failure with upcoming gcc-4.4
28383         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
28384         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
28385         "... error: integer overflow in preprocessor expression".
28386
28387 2009-02-05  Ben Pfaff  <blp@gnu.org>
28388
28389         Fix link errors on Windows when close module is used.
28390         * modules/close: Add $(LIB_CLOSE) to Link section.
28391         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
28392         $(LIB_CLOSE) on Windows.
28393
28394 2009-02-05  Jim Meyering  <meyering@redhat.com>
28395
28396         still avoid unused-parameter warnings, but do it cleanly
28397         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
28398         (get_fs_usage): Cast to void instead.
28399         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
28400         (dev_from_mount_options, read_file_system_list): Cast to void.
28401         Prompted by Bruno Haible.
28402
28403 2009-02-04  Jim Meyering  <meyering@redhat.com>
28404
28405         fsusage.c: correct copyright year
28406         * lib/fsusage.c: Reflect year in which the change is pushed into
28407
28408         avoid misc. warnings
28409         * lib/fsusage.c (UNUSED_PARAM): Define.
28410         (get_fs_usage): Mark parameter "disk" as unused.
28411         * lib/getugroups.c (getgrent): Use "void" in prototype.
28412         * lib/mountlist.c: Mark unused parameters.
28413         (read_file_system_list): Declare a local with "const".
28414         * lib/nanosleep.c (getnow): Declare static.
28415         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
28416
28417         dirfd: set errno upon failure
28418         * lib/dirfd.c: Include <errno.h>.
28419         Set errno to ENOTSUP when returning -1.
28420         * modules/dirfd (Depends-on): Add errno.
28421         Suggested by John Kodis <kodis@comcast.net>.
28422
28423 2009-02-01  Bruno Haible  <bruno@clisp.org>
28424
28425         Don't assume sizeof (long) >= sizeof (void *).
28426         * lib/memcmp.c: Include stdint.h.
28427         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
28428         srcp2 to 'const byte *'.
28429         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
28430         types to uintptr_t.
28431         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
28432         * modules/memcmp (Depends-on): Add stdint.
28433         Reported by Ozkan Sezer <sezeroz@gmail.com>.
28434
28435 2009-01-30  Eric Blake  <ebb9@byu.net>
28436
28437         fix more require-before-expand issues
28438         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
28439         expand, AC_PROG_AWK.
28440         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
28441
28442 2009-01-28  Eric Blake  <ebb9@byu.net>
28443
28444         version-etc: use consistent URL formatting
28445         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
28446         Improve formatting.  Use fputs for string without %.
28447
28448 2009-01-28  Jim Meyering  <meyering@redhat.com>
28449
28450         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
28451         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
28452         "underquoted definition of NAME" from autoconf-2.59.
28453
28454 2009-01-28  Bruno Haible  <bruno@clisp.org>
28455
28456         * doc/gnulib.texi: Add "Obsolete modules" to index.
28457
28458 2009-01-28  Jim Meyering  <meyering@redhat.com>
28459
28460         useless-if-before-free: recognize more variants
28461         * build-aux/useless-if-before-free: Also recognize e.g.,
28462         if (NULL != p) free (p);
28463
28464 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
28465
28466         test-getaddrinfo: skip (don't fail) this test when there's no network
28467         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
28468         on the presumption that it means you lack network access.
28469
28470 2009-01-26  Jim Meyering  <meyering@redhat.com>
28471
28472         fflush: avoid warnings on modern systems
28473         * lib/fflush.c (rpl_fflush): Move declarations of locals,
28474         pos and result, into scopes where they're used.
28475
28476 2009-01-26  Eric Blake  <ebb9@byu.net>
28477
28478         Silence warning reintroduced by recent extensions patch.
28479         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
28480         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
28481         autoconf.
28482
28483         Backport improved autoconf semantics of AC_DEFUN_ONCE.
28484         * m4/00gnulib.m4: New file.
28485         * gnulib-tool (func_get_filelist): Always use it.
28486         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
28487         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
28488
28489 2009-01-25  Bruno Haible  <bruno@clisp.org>
28490
28491         Make test-quotearg work on MacOS X and AIX.
28492         * tests/test-quotearg.sh: New file.
28493         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
28494         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
28495         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
28496         include <libintl.h>.
28497         (fake_locale): Remove variable.
28498         (gettext, dgettext, dcgettext): Remove functions.
28499         (main): Instead of setting a fake locale, set a real locale. Call
28500         textdomain and bindtextdomain.
28501         * modules/quotearg-tests (Files): Add the new files.
28502         (Depends-on): Add gettext, setenv, unsetenv.
28503         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
28504         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
28505         Augment TESTS_ENVIRONMENT.
28506
28507 2009-01-25  Bruno Haible  <bruno@clisp.org>
28508
28509         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
28510         fr_FR.ISO8859-1 locale on MacOS X.
28511         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
28512         ja_JP.eucJP locale on MacOS X.
28513         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
28514         zh_CN.GB18030 locale on MacOS X.
28515
28516 2009-01-25  Bruno Haible  <bruno@clisp.org>
28517
28518         Avoid link errors on MacOS X 10.3.
28519         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
28520         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28521
28522 2009-01-25  Bruno Haible  <bruno@clisp.org>
28523
28524         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28525         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
28526         * modules/pipe (Files): Remove m4/posix_spawn.m4.
28527         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28528         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
28529         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28530         posix_spawnattr_init, posix_spawnattr_setsigmask,
28531         posix_spawnattr_setflags, posix_spawnattr_destroy.
28532
28533         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
28534         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
28535         * modules/execute (Files): Remove m4/posix_spawn.m4.
28536         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
28537         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
28538         posix_spawnattr_init, posix_spawnattr_setsigmask,
28539         posix_spawnattr_setflags, posix_spawnattr_destroy.
28540
28541 2009-01-25  Bruno Haible  <bruno@clisp.org>
28542
28543         * lib/glthread/threadlib.c: Include <stdlib.h>.
28544
28545 2009-01-25  Bruno Haible  <bruno@clisp.org>
28546
28547         * lib/glthread/threadlib.c (dummy): New declaration.
28548
28549 2009-01-25  Bruno Haible  <bruno@clisp.org>
28550
28551         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
28552         multibyte characters also for the GB18030 encoding. Don't crash when
28553         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
28554
28555 2009-01-25  Bruno Haible  <bruno@clisp.org>
28556
28557         Avoid redefining 'struct random_data' on OSF/1 5.1.
28558         * lib/stdlib.in.h: Include <random.h> if it exists.
28559         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
28560         HAVE_RANDOM_H. Include <random.h> when testing whether
28561         'struct random_data' exists.
28562         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
28563
28564 2009-01-25  Bruno Haible  <bruno@clisp.org>
28565
28566         Don't install charset.alias on MacOS X >= 10.3.
28567         * lib/localcharset.c (DARWIN7): New macro.
28568         (get_charset_aliases): Hardcode the result for Darwin7.
28569         * modules/localcharset (install-exec-local): Don't install
28570         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
28571
28572 2009-01-25  Bruno Haible  <bruno@clisp.org>
28573
28574         Don't install charset.alias on mingw and Cygwin.
28575         * modules/localcharset (install-exec-local): Don't install
28576         charset.alias on mingw and Cygwin, if the file does not yet exist.
28577         The result for these platforms is hardcoded in localcharset.c.
28578
28579 2009-01-25  Bruno Haible  <bruno@clisp.org>
28580
28581         Make it possible again to use AC_GNU_SOURCE together with gnulib.
28582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
28583         before requiring AC_USE_SYSTEM_EXTENSIONS.
28584
28585 2009-01-25  Jim Meyering  <meyering@redhat.com>
28586
28587         c-strtod: avoid warnings
28588         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
28589         "assignment discards qualifiers from pointer target type" warnings.
28590
28591 2009-01-24  Bruno Haible  <bruno@clisp.org>
28592
28593         Add support for non-UTF-8 locales on MacOS X.
28594         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
28595         canonical encodings. For Darwin 7 and newer, don't map traditional
28596         encodings to UTF-8.
28597         Reported by Vincent Lefevre <vincent@vinc17.org>
28598         at <http://savannah.gnu.org/bugs/?25235>.
28599
28600 2009-01-24  Bruno Haible  <bruno@clisp.org>
28601
28602         * doc/gnulib.texi (Obsolete modules): New section.
28603         Reported by Mike Frysinger <vapier@gentoo.org>.
28604
28605 2009-01-24  Bruno Haible  <bruno@clisp.org>
28606
28607         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
28608         (%.dvi): New rule.
28609
28610 2009-01-24  Bruno Haible  <bruno@clisp.org>
28611
28612         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
28613         Reported by Eric Blake.
28614
28615 2009-01-24  Bruno Haible  <bruno@clisp.org>
28616
28617         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
28618         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
28619         Reported by Gary V. Vaughan <gary@gnu.org>.
28620
28621 2009-01-24  Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
28624
28625 2009-01-23  Bruno Haible  <bruno@clisp.org>
28626
28627         Make c-strtod, c-strtold usable in libraries.
28628         * lib/c-strtod.c: Include string.h instead of xalloc.h.
28629         (C_STRTOD): Call strdup instead of xstrdup.
28630         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
28631         * modules/c-strtold (Depends-on): Likewise.
28632         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
28633         * NEWS: Mention the change.
28634         Reported by Michael Gold <mgold@ncf.ca>.
28635
28636 2009-01-23  Jim Meyering  <meyering@redhat.com>
28637
28638         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
28639         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
28640         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
28641
28642 2009-01-23  Simon Josefsson  <simon@josefsson.org>
28643
28644         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
28645         GNU CoreUtils.
28646         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
28647         * modules/version-etc (Description): Update.
28648
28649 2009-01-22  Bruno Haible  <bruno@clisp.org>
28650
28651         Cache the C locale object.
28652         * lib/c-strtod.c (c_locale_cache): New variable.
28653         (c_locale): New function.
28654         (C_STRTOD): Use it, and don't call freelocale.
28655         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
28656         Suggested by Paolo Bonzini.
28657
28658 2009-01-21  Bruno Haible  <bruno@clisp.org>
28659
28660         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
28661         conditions other than overflow.
28662
28663 2009-01-21  Bruno Haible  <bruno@clisp.org>
28664
28665         * lib/c-strtod.c: Include errno.h.
28666         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
28667         value from STRTOD_L and STRTOD.
28668
28669 2009-01-21  Bruno Haible  <bruno@clisp.org>
28670         and Jim Meyering  <meyering@redhat.com>
28671
28672         nanosleep: skip configure test (fail it) for apple universal builds
28673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
28674         universal builds, assume that nanosleep does not work.
28675         * modules/nanosleep (Depends-on): Add multiarch.
28676
28677         mktime: skip configure test (fail it) for apple universal builds
28678         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
28679         universal builds, assume that mktime does not work.
28680         * modules/mktime (Depends-on): Add multiarch.
28681
28682 2009-01-21  Eric Blake  <ebb9@byu.net>
28683
28684         multiarch: avoid expand-before-require warning
28685         * modules/multiarch (configure.ac): Require, rather than expand,
28686         gl_MULTIARCH.
28687         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
28688         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
28689         enforce that all clients require it.  Partial reversion of
28690         2008-12-29 patch.
28691
28692         error: avoid expand-before-require warning
28693         * modules/errno (configure.ac): Require, rather than expand,
28694         gl_HEADER_ERRNO_H.
28695         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
28696         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
28697         enforce that all clients require it.
28698
28699         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
28700         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
28701         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
28702         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
28703
28704 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
28705
28706         Revert:
28707         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28708
28709         regex: do not depend on obsolete modules.
28710         * modules/regex: Remove memcmp and memmove.
28711
28712 2009-01-20  Bruno Haible  <bruno@clisp.org>
28713
28714         Make the 'link' module link on Windows NT 4.
28715         * lib/link.c (_WIN32_WINNT): Don't define.
28716         (CreateHardLinkFuncType): New type.
28717         (CreateHardLinkFunc, initialized): New variables.
28718         (initialize): New function.
28719         (link): Invoke CreateHardLink indirectly through the function pointer.
28720
28721 2009-01-20  Bruno Haible  <bruno@clisp.org>
28722
28723         Fix compilation failure on mingw.
28724         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
28725
28726 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
28727
28728         * doc/c-strtod.texi: Mention a couple of restrictions.
28729
28730 2009-01-20  Jim Meyering  <meyering@redhat.com>
28731
28732         gettimeofday: move more declarations out of functions
28733         * lib/gettimeofday.c: Move extern declarations of tzset and
28734         gmtime out of containing functions.  Prompted by Bruno Haible.
28735
28736 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28737
28738         regex: do not depend on obsolete modules.
28739         * modules/regex: Remove memcmp and memmove.
28740
28741 2009-01-19  Bruno Haible  <bruno@clisp.org>
28742
28743         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28744         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
28745         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28746         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
28747         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
28748
28749 2009-01-19  Bruno Haible  <bruno@clisp.org>
28750
28751         * tests/test-link.c: Include <errno.h>.
28752         (main): Exit with code 77 when a hard link cannot be created due to
28753         the file system.
28754         * tests/test-link.sh: Skip test when a hard link cannot be created due
28755         to the file system.
28756         Suggested by Eric Blake.
28757
28758 2009-01-19  Martin Lambers  <marlam@marlam.de>
28759
28760         * modules/link-tests: New file.
28761         * tests/test-link.sh: New file.
28762         * tests/test-link.c: New file.
28763
28764 2009-01-19  Eric Blake  <ebb9@byu.net>
28765
28766         doc: mention another function added in cygwin 1.7.0
28767         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
28768         Another new function in cygwin 1.7.
28769
28770 2009-01-19  Bruno Haible  <bruno@clisp.org>
28771
28772         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
28773         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
28774         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
28775         gl_BIGENDIAN, not AC_C_BIGENDIAN.
28776         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28777         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28778         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28779         * m4/md4.m4 (gl_MD4): Likewise.
28780         * m4/md5.m4 (gl_MD5): Likewise.
28781         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
28782         * m4/sha1.m4 (gl_SHA1): Likewise.
28783         * m4/sha256.m4 (gl_SHA256): Likewise.
28784         * m4/sha512.m4 (gl_SHA512): Likewise.
28785
28786 2009-01-19  Bruno Haible  <bruno@clisp.org>
28787
28788         * modules/uniname/uniname-tests (Depends-on): Add progname.
28789         * tests/uniname/test-uninames.c: Include progname.h.
28790         (main): Call set_program_name.
28791
28792         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
28793         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
28794         (main): Call set_program_name.
28795
28796         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
28797         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
28798         (main): Call set_program_name.
28799
28800         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
28801         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
28802         (main): Call set_program_name.
28803
28804         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
28805         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
28806         (main): Call set_program_name.
28807
28808         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
28809         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
28810         (main): Call set_program_name.
28811
28812         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
28813         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
28814         (main): Call set_program_name.
28815
28816         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
28817         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
28818         (main): Call set_program_name.
28819
28820         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
28821         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
28822         (main): Call set_program_name.
28823
28824 2009-01-19  Eric Blake  <ebb9@byu.net>
28825
28826         test-unistd: test previous patch
28827         * tests/test-unistd.c: Test *_FILENO macros.
28828
28829         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
28830         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28831         Guarantee a definition.
28832         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
28833         * modules/unistd-safer (Depends-on): Add dependency on unistd.
28834         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
28835         * lib/dup-safer.c (STDERR_FILENO): Likewise.
28836         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28837         Likewise.
28838         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
28839         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
28840         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
28841         Likewise.
28842         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
28843         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
28844         (STDERR_FILENO): Likewise.
28845         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
28846         (STDERR_FILENO): Likewise.
28847         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
28848         (STDERR_FILENO): Likewise.
28849         Reported by Elbert Pol.
28850
28851 2009-01-19  Eric Blake  <ebb9@byu.net>
28852
28853         doc: mention more functions added in cygwin 1.7.0
28854         * doc/posix-functions/abort.texi (abort): Update wording related
28855         to cygwin.
28856         * doc/posix-functions/daylight.texi (daylight): Likewise.
28857         * doc/posix-functions/optarg.texi (optarg): Likewise.
28858         * doc/posix-functions/optarg.texi (opterr): Likewise.
28859         * doc/posix-functions/optarg.texi (optind): Likewise.
28860         * doc/posix-functions/optarg.texi (optopt): Likewise.
28861         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
28862         worked in 1.5.x, and was withdrawn in 1.7.
28863         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
28864         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
28865         cygwin versions.
28866         * doc/posix-functions/perror.texi (perror): Likewise.
28867         * doc/posix-functions/printf.texi (printf): Likewise.
28868         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
28869         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
28870         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
28871         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
28872         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28873         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
28874         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28875         Likewise.
28876         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28877         Likewise.
28878         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
28879         this function.
28880         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
28881         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
28882         Likewise.
28883         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
28884         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
28885         * doc/posix-functions/confstr.texi (confstr): Likewise.
28886         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
28887         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
28888         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
28889         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
28890         * doc/posix-functions/fputws.texi (fputws): Likewise.
28891         * doc/posix-functions/fwide.texi (fwide): Likewise.
28892         * doc/posix-functions/getwc.texi (getwc): Likewise.
28893         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
28894         * doc/posix-functions/putwc.texi (putwc): Likewise.
28895         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
28896         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
28897         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
28898         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
28899         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
28900         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
28901         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
28902         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
28903         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
28904         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
28905         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
28906
28907 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28908
28909         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
28910         * lib/ioctl.c: Include <sys/ioctl.h>.
28911
28912 2009-01-19  Simon Josefsson  <simon@josefsson.org>
28913
28914         * modules/getdate-tests (Depends-on): Add progname.
28915         * tests/test-getdate.c: Use progname module, to avoid link errors
28916         on non-glibc systems.
28917
28918 2009-01-18  Simon Josefsson  <simon@josefsson.org>
28919
28920         * modules/filenamecat-tests (Depends-on): Add progname.
28921         * modules/fstrcmp-tests (Depends-on): Likewise.
28922
28923         * tests/test-filenamecat.c: Use progname module, to avoid link
28924         errors on non-glibc systems.
28925         * tests/test-fstrcmp.c: Likewise.
28926
28927 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28928
28929         gettimeofday: avoid warning: nested extern declaration of 'localtime'
28930         * lib/gettimeofday.c: Move extern declaration out of function.
28931
28932 2009-01-18  Bruno Haible  <bruno@clisp.org>
28933
28934         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
28935         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
28936         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
28937
28938 2009-01-18  Bruno Haible  <bruno@clisp.org>
28939
28940         * lib/strftime.c (MEMPCPY): Remove unused macro.
28941         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
28942
28943 2009-01-18  Martin Lambers  <marlam@marlam.de>
28944
28945         New module 'link'.
28946         * lib/unistd.in.h (link): New declaration.
28947         * lib/link.c: New file.
28948         * m4/link.m4: New file.
28949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
28950         HAVE_LINK.
28951         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
28952         * modules/link: New file.
28953         * doc/posix-functions/link.texi: Mention the new module.
28954
28955 2009-01-18  Bruno Haible  <bruno@clisp.org>
28956
28957         * tests/test-avltree_list.c (main): Call set_program_name.
28958         * tests/test-avltree_oset.c (main): Likewise.
28959         * tests/test-obstack-printf.c: Include progname.h.
28960         (main): Call set_program_name.
28961         * tests/test-quotearg.c: Include progname.h.
28962         (main): Call set_program_name.
28963         * tests/test-xmemdup0.c: Include progname.h.
28964         (main): Call set_program_name.
28965
28966 2009-01-18  Bruno Haible  <bruno@clisp.org>
28967
28968         New module 'alphasort'.
28969         * lib/dirent.in.h (alphasort): New declaration.
28970         * lib/alphasort.c: New file, from glibc with modifications.
28971         * m4/alphasort.m4: New file.
28972         * modules/alphasort: New file.
28973         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
28974         HAVE_ALPHASORT.
28975         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
28976         HAVE_ALPHASORT.
28977         * doc/posix-functions/alphasort.texi: Mention the new module and the
28978         portability problems.
28979
28980 2009-01-18  Bruno Haible  <bruno@clisp.org>
28981
28982         New module 'scandir'.
28983         * lib/dirent.in.h (scandir): New declaration.
28984         * lib/scandir.c: New file, from glibc with modifications.
28985         * m4/scandir.m4: New file.
28986         * modules/scandir: New file.
28987         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
28988         HAVE_SCANDIR.
28989         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
28990         HAVE_SCANDIR.
28991         * doc/posix-functions/scandir.texi: Mention the new module and the
28992         portability problems.
28993
28994 2009-01-17  Bruno Haible  <bruno@clisp.org>
28995
28996         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
28997         Update documentation.
28998         (func_remove_suffix): Escape all dots in the suffix. Update
28999         documentation.
29000         (func_filter_filelist): Update documentation.
29001         Reported by Ralf Wildenhues.
29002
29003 2009-01-17  Bruno Haible  <bruno@clisp.org>
29004
29005         * modules/dprintf-posix-tests: New file.
29006         * tests/test-dprintf-posix.sh: New file.
29007         * tests/test-dprintf-posix.c: New file.
29008
29009         New modules 'dprintf', 'dprintf-posix'.
29010         * lib/stdio.in.h (dprintf): New declaration.
29011         * lib/dprintf.c: New file.
29012         * m4/dprintf.m4: New file.
29013         * m4/dprintf-posix.m4: New file.
29014         * modules/dprintf: New file.
29015         * modules/dprintf-posix: New file.
29016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
29017         HAVE_DPRINTF, REPLACE_DPRINTF.
29018         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
29019         HAVE_DPRINTF, REPLACE_DPRINTF.
29020         * doc/posix-functions/dprintf.texi: Mention the new modules.
29021
29022 2009-01-17  Bruno Haible  <bruno@clisp.org>
29023
29024         * modules/vdprintf-posix-tests: New file.
29025         * tests/test-vdprintf-posix.sh: New file.
29026         * tests/test-vdprintf-posix.c: New file.
29027
29028         New modules 'vdprintf', 'vdprintf-posix'.
29029         * lib/stdio.in.h (vdprintf): New declaration.
29030         * lib/vdprintf.c: New file.
29031         * m4/vdprintf.m4: New file.
29032         * m4/vdprintf-posix.m4: New file.
29033         * modules/vdprintf: New file.
29034         * modules/vdprintf-posix: New file.
29035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
29036         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29037         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
29038         HAVE_VDPRINTF, REPLACE_VDPRINTF.
29039         * doc/posix-functions/vdprintf.texi: Mention the new modules.
29040
29041 2009-01-17  Bruno Haible  <bruno@clisp.org>
29042
29043         Fix replacement of fopen on mingw.
29044         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
29045         mingw.
29046
29047 2009-01-17  Bruno Haible  <bruno@clisp.org>
29048
29049         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
29050         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
29051
29052 2009-01-17  Bruno Haible  <bruno@clisp.org>
29053
29054         Avoid test-fflush2.sh failure on mingw.
29055         * tests/test-fflush2.c: Include binary-io.h.
29056         (main): Put standard input into binary mode.
29057         * modules/fflush-tests (Depends-on): Add binary-io.
29058
29059 2009-01-17  Bruno Haible  <bruno@clisp.org>
29060
29061         * lib/wchar.in.h: In another particular situation, include only the
29062         system's <wchar.h> file.
29063         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
29064         Reported by Albert Chin-A-Young <china@thewrittenword.com>
29065         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
29066
29067 2009-01-17  Bruno Haible  <bruno@clisp.org>
29068
29069         Support for stripping executables in --enable-relocatable.
29070         * build-aux/install-reloc: Expect one more argument, or an environment
29071         variable RELOC_STRIP_PROG. If set, strip the destination program and
29072         its wrapper.
29073         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
29074         RELOC_STRIP_PROG.
29075         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
29076         to set RELOCATABLE_STRIP.
29077         * NEWS: Mention the new Makefile requirement.
29078
29079 2009-01-17  Bruno Haible  <bruno@clisp.org>
29080
29081         * build-aux/install-reloc: Remove debugging information left over by
29082         C compiler on MacOS X.
29083
29084 2009-01-17  Bruno Haible  <bruno@clisp.org>
29085
29086         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
29087         * lib/progreloc.c (find_executable): Fix type of pointer passed to
29088         _NSGetExecutablePath.
29089
29090 2009-01-16  Jim Meyering  <meyering@redhat.com>
29091
29092         strerror: avoid warnings about discarding "const"
29093         * lib/strerror.c (rpl_strerror): Instead of returning a const
29094         string from each and every "case", use a variable, and add a single
29095         cast after the switch.
29096
29097 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
29098
29099         * lib/arpa_inet.in.h: Add extern "C" block for C++.
29100
29101 2009-01-16  Bruno Haible  <bruno@clisp.org>
29102
29103         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
29104         array initializer syntax that also works in C++ mode.
29105         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29106
29107 2009-01-16  Jim Meyering  <meyering@redhat.com>
29108
29109         poll: suppress a warning
29110         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
29111         to ignore "...unsigned expression < 0 is always false" warnings.
29112
29113 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
29114
29115         poll: remove declarations of unused variables
29116         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
29117         sockbuf and optlen.
29118
29119 2009-01-15  Bruno Haible  <bruno@clisp.org>
29120
29121         Make fflush-after-ungetc POSIX compliant on BSD systems.
29122         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
29123         (clear_ungetc_buffer): Implement also for other systems.
29124         (rpl_fflush): On glibc systems, invoke
29125         clear_ungetc_buffer_preserving_position. Otherwise, invoke
29126         clear_ungetc_buffer after fetching the stream's position, not before.
29127
29128 2009-01-15  Bruno Haible  <bruno@clisp.org>
29129
29130         Make fflush-after-ungetc POSIX compliant on glibc systems.
29131         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
29132         after ungetc.
29133         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
29134         (rpl_fflush): On glibc systems, simply call the system's fflush
29135         function after clearing the ungetc buffer.
29136         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
29137         Instead, lseek only to the end of file, then use the system's fseeko
29138         for the rest. On glibc systems, reset the EOF indicator bit.
29139
29140 2009-01-15  Jim Meyering  <meyering@redhat.com>
29141
29142         openmp.m4: revert quote-adding change, for portability to older autoconf
29143         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
29144         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
29145         Simon Josefsson noticed the problem when using autoconf-2.61.
29146
29147 2009-01-15  Bruno Haible  <bruno@clisp.org>
29148
29149         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
29150         * tests/test-fflush2.c (ASSERT): Always fail.
29151         (main): Add two tests for fflush() after ungetc(), taking into account
29152         the Austin Group's clarification.
29153         Suggested by Eric Blake.
29154
29155 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
29156
29157         mktime.m4: remove K&R-style function prototypes
29158         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
29159         for the Sun C++ compiler.
29160
29161 2009-01-14  Bruno Haible  <bruno@clisp.org>
29162
29163         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
29164         while including <wchar.h>.
29165         * lib/wchar.in.h: In two particular situations on HP-UX, include only
29166         the system's <wchar.h> file.
29167         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29168
29169 2009-01-14  Bruno Haible  <bruno@clisp.org>
29170
29171         * m4/csharp.m4: Don't mention gettext on the serial number line.
29172         * m4/csharpexec.m4: Likewise.
29173         * m4/eaccess.m4: Likewise.
29174         * m4/javaexec.m4: Likewise.
29175         * m4/sig_atomic_t.m4: Likewise.
29176         * m4/tmpdir.m4: Likewise.
29177         * m4/intldir.m4: Bump gettext version.
29178         * m4/lib-ld.m4: Likewise.
29179
29180 2009-01-14  Bruno Haible  <bruno@clisp.org>
29181
29182         * lib/progname.c (set_program_name): Add more comments.
29183         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
29184
29185 2009-01-14  Simon Josefsson  <simon@josefsson.org>
29186
29187         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
29188         were sys/stat.h does not define it.
29189
29190 2009-01-14  Jim Meyering  <meyering@redhat.com>
29191
29192         many *.m4 files: improve m4 quoting
29193         99% of this change was performed by running the following commands:
29194         git ls-files | grep '\.m4$' | xargs perl -pi \
29195           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
29196           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29197           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
29198           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
29199         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
29200         The remainder were to add Copyright dates, increment serial numbers,
29201         undo some changes in comments, exclude m4/intl.m4, and add quotes
29202         around the "1" in ",1" where the unusual spacing prohibited the
29203         above regexps from doing the job.  For more details, see
29204         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
29205         * m4/acl.m4: Modified.
29206         * m4/afs.m4: Likewise.
29207         * m4/alloca.m4: Likewise.
29208         * m4/argp.m4: Likewise.
29209         * m4/argz.m4: Likewise.
29210         * m4/atexit.m4: Likewise.
29211         * m4/bison-i18n.m4: Likewise.
29212         * m4/bison.m4: Likewise.
29213         * m4/byteswap.m4: Likewise.
29214         * m4/c-stack.m4: Likewise.
29215         * m4/c-strtod.m4: Likewise.
29216         * m4/calloc.m4: Likewise.
29217         * m4/canonicalize-lgpl.m4: Likewise.
29218         * m4/chown.m4: Likewise.
29219         * m4/clock_time.m4: Likewise.
29220         * m4/codeset.m4: Likewise.
29221         * m4/copy-file.m4: Likewise.
29222         * m4/csharp.m4: Likewise.
29223         * m4/csharpcomp.m4: Likewise.
29224         * m4/csharpexec.m4: Likewise.
29225         * m4/d-ino.m4: Likewise.
29226         * m4/d-type.m4: Likewise.
29227         * m4/dirfd.m4: Likewise.
29228         * m4/double-slash-root.m4: Likewise.
29229         * m4/eaccess.m4: Likewise.
29230         * m4/eealloc.m4: Likewise.
29231         * m4/environ.m4: Likewise.
29232         * m4/errno_h.m4: Likewise.
29233         * m4/euidaccess.m4: Likewise.
29234         * m4/execute.m4: Likewise.
29235         * m4/fatal-signal.m4: Likewise.
29236         * m4/fchdir.m4: Likewise.
29237         * m4/fcntl_h.m4: Likewise.
29238         * m4/fileblocks.m4: Likewise.
29239         * m4/filenamecat.m4: Likewise.
29240         * m4/findprog.m4: Likewise.
29241         * m4/flexmember.m4: Likewise.
29242         * m4/fnmatch.m4: Likewise.
29243         * m4/fopen.m4: Likewise.
29244         * m4/fpending.m4: Likewise.
29245         * m4/fprintf-posix.m4: Likewise.
29246         * m4/free.m4: Likewise.
29247         * m4/frexp.m4: Likewise.
29248         * m4/frexpl.m4: Likewise.
29249         * m4/fsusage.m4: Likewise.
29250         * m4/ftruncate.m4: Likewise.
29251         * m4/gc-camellia.m4: Likewise.
29252         * m4/gc-random.m4: Likewise.
29253         * m4/gc.m4: Likewise.
29254         * m4/getaddrinfo.m4: Likewise.
29255         * m4/getcwd-abort-bug.m4: Likewise.
29256         * m4/getcwd-path-max.m4: Likewise.
29257         * m4/getdate.m4: Likewise.
29258         * m4/getdomainname.m4: Likewise.
29259         * m4/getgroups.m4: Likewise.
29260         * m4/gethostname.m4: Likewise.
29261         * m4/gethrxtime.m4: Likewise.
29262         * m4/getline.m4: Likewise.
29263         * m4/getloadavg.m4: Likewise.
29264         * m4/getndelim2.m4: Likewise.
29265         * m4/getpass.m4: Likewise.
29266         * m4/gettext.m4: Likewise.
29267         * m4/gettime.m4: Likewise.
29268         * m4/gettimeofday.m4: Likewise.
29269         * m4/gnulib-common.m4: Likewise.
29270         * m4/group-member.m4: Likewise.
29271         * m4/host-os.m4: Likewise.
29272         * m4/iconv.m4: Likewise.
29273         * m4/iconv_open.m4: Likewise.
29274         * m4/inet_ntop.m4: Likewise.
29275         * m4/inet_pton.m4: Likewise.
29276         * m4/inline.m4: Likewise.
29277         * m4/intldir.m4: Likewise.
29278         * m4/intlmacosx.m4: Likewise.
29279         * m4/intmax.m4: Likewise.
29280         * m4/intmax_t.m4: Likewise.
29281         * m4/inttypes.m4: Likewise.
29282         * m4/inttypes_h.m4: Likewise.
29283         * m4/inttypes-pri.m4: Likewise.
29284         * m4/isapipe.m4: Likewise.
29285         * m4/isnand.m4: Likewise.
29286         * m4/isnanf.m4: Likewise.
29287         * m4/isnanl.m4: Likewise.
29288         * m4/javacomp.m4: Likewise.
29289         * m4/javaexec.m4: Likewise.
29290         * m4/jm-winsz1.m4: Likewise.
29291         * m4/jm-winsz2.m4: Likewise.
29292         * m4/lchown.m4: Likewise.
29293         * m4/lcmessage.m4: Likewise.
29294         * m4/ldexpl.m4: Likewise.
29295         * m4/lib-ld.m4: Likewise.
29296         * m4/lib-link.m4: Likewise.
29297         * m4/libsigsegv.m4: Likewise.
29298         * m4/link-follow.m4: Likewise.
29299         * m4/localcharset.m4: Likewise.
29300         * m4/locale-fr.m4: Likewise.
29301         * m4/locale-ja.m4: Likewise.
29302         * m4/locale-tr.m4: Likewise.
29303         * m4/locale-zh.m4: Likewise.
29304         * m4/lock.m4: Likewise.
29305         * m4/longlong.m4: Likewise.
29306         * m4/ls-mntd-fs.m4: Likewise.
29307         * m4/lstat.m4: Likewise.
29308         * m4/malloc.m4: Likewise.
29309         * m4/mathl.m4: Likewise.
29310         * m4/mbrtowc.m4: Likewise.
29311         * m4/mbstate_t.m4: Likewise.
29312         * m4/mbswidth.m4: Likewise.
29313         * m4/memchr.m4: Likewise.
29314         * m4/memcmp.m4: Likewise.
29315         * m4/memcpy.m4: Likewise.
29316         * m4/memmem.m4: Likewise.
29317         * m4/memmove.m4: Likewise.
29318         * m4/mempcpy.m4: Likewise.
29319         * m4/memrchr.m4: Likewise.
29320         * m4/memset.m4: Likewise.
29321         * m4/minmax.m4: Likewise.
29322         * m4/mkdir-slash.m4: Likewise.
29323         * m4/mkdtemp.m4: Likewise.
29324         * m4/mktime.m4: Likewise.
29325         * m4/mmap-anon.m4: Likewise.
29326         * m4/mountlist.m4: Likewise.
29327         * m4/nanosleep.m4: Likewise.
29328         * m4/nls.m4: Likewise.
29329         * m4/nocrash.m4: Likewise.
29330         * m4/open.m4: Likewise.
29331         * m4/openat.m4: Likewise.
29332         * m4/openmp.m4: Likewise.
29333         * m4/pathmax.m4: Likewise.
29334         * m4/perl.m4: Likewise.
29335         * m4/physmem.m4: Likewise.
29336         * m4/pipe.m4: Likewise.
29337         * m4/po.m4: Likewise.
29338         * m4/poll.m4: Likewise.
29339         * m4/posixtm.m4: Likewise.
29340         * m4/posixver.m4: Likewise.
29341         * m4/printf-frexp.m4: Likewise.
29342         * m4/printf-frexpl.m4: Likewise.
29343         * m4/printf-posix.m4: Likewise.
29344         * m4/printf-posix-rpl.m4: Likewise.
29345         * m4/printf.m4: Likewise.
29346         * m4/progtest.m4: Likewise.
29347         * m4/putenv.m4: Likewise.
29348         * m4/readline.m4: Likewise.
29349         * m4/readlink.m4: Likewise.
29350         * m4/readutmp.m4: Likewise.
29351         * m4/realloc.m4: Likewise.
29352         * m4/regex.m4: Likewise.
29353         * m4/relocatable.m4: Likewise.
29354         * m4/relocatable-lib.m4: Likewise.
29355         * m4/rename-dest-slash.m4: Likewise.
29356         * m4/rename.m4: Likewise.
29357         * m4/rmdir-errno.m4: Likewise.
29358         * m4/rmdir.m4: Likewise.
29359         * m4/roundf.m4: Likewise.
29360         * m4/roundl.m4: Likewise.
29361         * m4/rpmatch.m4: Likewise.
29362         * m4/save-cwd.m4: Likewise.
29363         * m4/selinux-selinux-h.m4: Likewise.
29364         * m4/setenv.m4: Likewise.
29365         * m4/settime.m4: Likewise.
29366         * m4/sig2str.m4: Likewise.
29367         * m4/sig_atomic_t.m4: Likewise.
29368         * m4/signalblocking.m4: Likewise.
29369         * m4/signbit.m4: Likewise.
29370         * m4/sigpipe.m4: Likewise.
29371         * m4/sockets.m4: Likewise.
29372         * m4/sockpfaf.m4: Likewise.
29373         * m4/st_dm_mode.m4: Likewise.
29374         * m4/stat-time.m4: Likewise.
29375         * m4/stdbool.m4: Likewise.
29376         * m4/stdint.m4: Likewise.
29377         * m4/stdint_h.m4: Likewise.
29378         * m4/stpcpy.m4: Likewise.
29379         * m4/stpncpy.m4: Likewise.
29380         * m4/strcase.m4: Likewise.
29381         * m4/strchrnul.m4: Likewise.
29382         * m4/strcspn.m4: Likewise.
29383         * m4/strdup.m4: Likewise.
29384         * m4/strftime.m4: Likewise.
29385         * m4/strndup.m4: Likewise.
29386         * m4/strnlen.m4: Likewise.
29387         * m4/strpbrk.m4: Likewise.
29388         * m4/strptime.m4: Likewise.
29389         * m4/strsep.m4: Likewise.
29390         * m4/strtod.m4: Likewise.
29391         * m4/strtoimax.m4: Likewise.
29392         * m4/strtok_r.m4: Likewise.
29393         * m4/strtol.m4: Likewise.
29394         * m4/strtoll.m4: Likewise.
29395         * m4/strtoul.m4: Likewise.
29396         * m4/strtoull.m4: Likewise.
29397         * m4/strtoumax.m4: Likewise.
29398         * m4/strverscmp.m4: Likewise.
29399         * m4/threadlib.m4: Likewise.
29400         * m4/timegm.m4: Likewise.
29401         * m4/tm_gmtoff.m4: Likewise.
29402         * m4/tmpdir.m4: Likewise.
29403         * m4/tmpfile.m4: Likewise.
29404         * m4/tzset.m4: Likewise.
29405         * m4/uintmax_t.m4: Likewise.
29406         * m4/unlinkdir.m4: Likewise.
29407         * m4/unlocked-io.m4: Likewise.
29408         * m4/uptime.m4: Likewise.
29409         * m4/userspec.m4: Likewise.
29410         * m4/utimbuf.m4: Likewise.
29411         * m4/utime.m4: Likewise.
29412         * m4/utimes-null.m4: Likewise.
29413         * m4/utimes.m4: Likewise.
29414         * m4/vararrays.m4: Likewise.
29415         * m4/vasnprintf.m4: Likewise.
29416         * m4/vfprintf-posix.m4: Likewise.
29417         * m4/vprintf-posix.m4: Likewise.
29418         * m4/wait-process.m4: Likewise.
29419         * m4/wchar_t.m4: Likewise.
29420         * m4/wint_t.m4: Likewise.
29421         * m4/write-any-file.m4: Likewise.
29422         * m4/yield.m4: Likewise.
29423
29424 2009-01-13  Bruno Haible  <bruno@clisp.org>
29425
29426         Avoid test-copy-file.sh failures when ACL support insufficient.
29427         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
29428         TESTS_ENVIRONMENT.
29429         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
29430         Reported by Jim Meyering.
29431
29432 2009-01-13  Bruno Haible  <bruno@clisp.org>
29433
29434         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
29435         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
29436         * modules/unistdio/u8-printf-parse (Files): Likewise.
29437         * modules/unistdio/u32-printf-parse (Files): Likewise.
29438         * modules/unistdio/ulc-printf-parse (Files): Likewise.
29439
29440 2009-01-13  Simon Josefsson  <simon@josefsson.org>
29441
29442         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
29443         and m4/inttypes_h.m4 too.
29444
29445 2009-01-12  Eric Blake  <ebb9@byu.net>
29446
29447         tests: IRIX 6.2 cc can't compile -0.0 into .data
29448         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
29449         rather than at compile-time.
29450         * tests/test-floorl.c (minus_zero): Likewise.
29451         * tests/test-frexpl.c (minus_zero): Likewise.
29452         * tests/test-isnan.c (minus_zerol): Likewise.
29453         * tests/test-isnanl.h (minus_zero): Likewise.
29454         * tests/test-ldexpl.c (minus_zero): Likewise.
29455         * tests/test-roundl.c (minus_zero): Likewise.
29456         * tests/test-signbit.c (minus_zerol): Likewise.
29457         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29458         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29459         * tests/test-truncl.c (minus_zero): Likewise.
29460         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29461         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29462         Reported by Tom G. Christensen and Nelson H. F. Beebe.
29463
29464 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29465
29466         regex: fix glibc bug 9697
29467         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
29468         handling.
29469
29470 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29471
29472         regex: fix glibc bug 697
29473         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
29474         being NULL also if there are no backreferences.
29475
29476 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
29477
29478         regex: merge glibc changes
29479         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
29480         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
29481         re_string_skip_chars, re_string_reconstruct): Likewise.
29482         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
29483
29484 2009-01-07  Jim Meyering  <meyering@redhat.com>
29485
29486         poll: filter through cppi
29487         * lib/poll.c: Indent cpp directives to reflect nesting.
29488
29489 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
29490
29491         poll: don't return uninitialized
29492         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
29493
29494 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
29495
29496         avoid compile failure on AIX 6.1
29497         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
29498         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
29499
29500 2009-01-04  Jim Meyering  <meyering@redhat.com>
29501
29502         remove duplicate inclusion of <stdio.h>
29503         * tests/test-fprintf-posix.c: Likewise.
29504         * tests/test-printf-posix.c: Likewise.
29505         * tests/test-snprintf-posix.c: Likewise.
29506         * tests/test-sprintf-posix.c: Likewise.
29507         * tests/test-vasprintf-posix.c: Likewise.
29508         * tests/test-vfprintf-posix.c: Likewise.
29509         * tests/test-vprintf-posix.c: Likewise.
29510         * tests/test-vsnprintf-posix.c: Likewise.
29511         * tests/test-vsprintf-posix.c: Likewise.
29512
29513 2009-01-03  Jim Meyering  <meyering@redhat.com>
29514
29515         gnulib-tool: fix sed-based filtering
29516         * gnulib-tool (func_filter_filelist): Remove extra backslash
29517         in sed_fff_filter definition.
29518
29519 2009-01-02  Jim Meyering  <meyering@redhat.com>
29520
29521         strftime: avoid compilation failure on Solaris 2.6
29522         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
29523         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
29524         Don't #define mbrlen or mbsinit, since now they're guaranteed to
29525         be available.  Reported by Tom G. Christensen.  Details in
29526         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
29527
29528 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29529             Bruno Haible  <bruno@clisp.org>
29530
29531         Speed up gnulib-tool by doing more string processing through shell
29532         built-ins.
29533         * gnulib-tool (fast_func_append): New variable.
29534         (func_remove_prefix, func_remove_suffix): New functions.
29535         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
29536         (func_filter_filelist): New function.
29537         (func_get_dependencies): Use func_remove_suffix instead of sed.
29538         (func_get_automake_snippet): Use func_filter_filelist instead of a
29539         subshell and sed invocation.
29540
29541 2009-01-01  Bruno Haible  <bruno@clisp.org>
29542
29543         Fix a security bug.
29544         * gnulib-tool (func_import, import, update): Don't allow the characters
29545         '"', '$', '`', '\' in macro arguments that become part of commands that
29546         are evaluated.
29547
29548 2009-01-01  Bruno Haible  <bruno@clisp.org>
29549
29550         * gnulib-tool (func_reset_sigpipe): Add more comments.
29551
29552 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29553
29554         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
29555         func_emit_tests_Makefile_am, func_import): Abort loops early if we
29556         already know the answer.
29557
29558 2009-01-01  Jim Meyering  <meyering@redhat.com>
29559
29560         * lib/version-etc.c (version_etc_va): Update copyright year.
29561
29562 2008-12-30  Bruno Haible  <bruno@clisp.org>
29563
29564         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
29565         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
29566         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
29567
29568 2008-12-29  Eric Blake  <ebb9@byu.net>
29569
29570         multiarch: avoid autoconf AC_REQUIRE bug
29571         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
29572         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
29573         2.63 and older.
29574         Reported by Bruno Haible, and analyzed in
29575         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
29576
29577 2008-12-29  Bruno Haible  <bruno@clisp.org>
29578
29579         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
29580         files in subdirectories correctly.
29581         Reported by Ralf Wildenhues.
29582
29583 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29584
29585         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
29586         rather than 'join FILE -', for Solaris join.
29587
29588 2008-12-29  Bruno Haible  <bruno@clisp.org>
29589
29590         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
29591         quoting.
29592         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29593         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29594         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29595         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
29596         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29597         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29599         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29600         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29601         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29602         * m4/nls.m4 (AM_NLS): Likewise.
29603         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
29604         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29605         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29606         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29607         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29608         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29609         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
29610         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29611         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29612         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29613         * m4/xsize.m4 (gl_XSIZE): Likewise.
29614         Suggested by Jim Meyering.
29615
29616 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29617
29618         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
29619         * lib/parse-duration.c: use a switch instead of cascading if's.
29620
29621 2008-12-29  Eric Blake  <ebb9@byu.net>
29622
29623         wchar.h: supply WEOF on Irix 5.3
29624         * lib/wchar.in.h (wint_t): Also supply WEOF.
29625         * lib/wctype.in.h (wint_t): Likewise.
29626         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
29627         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
29628         Reported by Tom G. Christensen.
29629
29630 2008-12-26  Bruno Haible  <bruno@clisp.org>
29631
29632         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
29633         i486, i586, i686.
29634
29635 2008-12-26  Bruno Haible  <bruno@clisp.org>
29636
29637         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
29638
29639 2008-12-26  Bruno Haible  <bruno@clisp.org>
29640
29641         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
29642         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
29643         not __STDC_CONSTANT_MACROS.
29644         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29645
29646 2008-12-25  Bruno Haible  <bruno@clisp.org>
29647
29648         Add support for universal builds to vasnprintf.
29649         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
29650         universal builds, guess no.
29651         * modules/vasnprintf-posix (Depends-on): Add multiarch.
29652         * modules/vasprintf-posix (Depends-on): Likewise.
29653         * modules/fprintf-posix (Depends-on): Likewise.
29654         * modules/vfprintf-posix (Depends-on): Likewise.
29655         * modules/snprintf-posix (Depends-on): Likewise.
29656         * modules/vsnprintf-posix (Depends-on): Likewise.
29657         * modules/sprintf-posix (Depends-on): Likewise.
29658         * modules/vsprintf-posix (Depends-on): Likewise.
29659         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29660         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29661         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29662         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29663         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29664         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29665         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29666
29667         Add support for universal builds to <inttypes.h>.
29668         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
29669         _SCNu64_PREFIX): In Apple
29670         universal builds, define directly, using _LP64.
29671         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
29672         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
29673         * modules/inttypes (Depends-on): Add multiarch.
29674         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
29675
29676         Add support for universal builds to <stdint.h>.
29677         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
29678         universal builds, define directly, using _LP64.
29679         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
29680         Apple universal builds, don't test for the size and suffix of ptrdiff_t
29681         and size_t.
29682         * modules/stdint (Depends-on): Add multiarch.
29683         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
29684
29685         New module 'multiarch'.
29686         * modules/multiarch: New file.
29687         * m4/multiarch.m4: New file.
29688
29689 2008-12-25  Bruno Haible  <bruno@clisp.org>
29690
29691         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
29692
29693 2008-12-25  Bruno Haible  <bruno@clisp.org>
29694
29695         * modules/btowc (License): Relicense under LGPLv2+.
29696         * modules/mbsinit (License): Likewise.
29697         * modules/mbrtowc (License): Likewise.
29698         * modules/wcrtomb (License): Likewise.
29699         * modules/streq (License): Likewise.
29700         Reported by David Lutterkort <lutter@redhat.com>.
29701
29702 2008-12-23  Bruno Haible  <bruno@clisp.org>
29703
29704         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
29705
29706 2008-12-23  Bruno Haible  <bruno@clisp.org>
29707
29708         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
29709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
29710         GETADDRINFO_LIB, not in LIBS.
29711         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
29712         * modules/canon-host (Link): Likewise.
29713         * NEWS: Mention the change.
29714         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
29715         GETADDRINFO_LIB.
29716
29717 2008-12-22  Bruno Haible  <bruno@clisp.org>
29718
29719         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
29720         * doc/posix-functions/iswalpha_l.texi: Likewise.
29721         * doc/posix-functions/iswblank_l.texi: Likewise.
29722         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29723         * doc/posix-functions/iswctype_l.texi: Likewise.
29724         * doc/posix-functions/iswdigit_l.texi: Likewise.
29725         * doc/posix-functions/iswgraph_l.texi: Likewise.
29726         * doc/posix-functions/iswlower_l.texi: Likewise.
29727         * doc/posix-functions/iswprint_l.texi: Likewise.
29728         * doc/posix-functions/iswpunct_l.texi: Likewise.
29729         * doc/posix-functions/iswspace_l.texi: Likewise.
29730         * doc/posix-functions/iswupper_l.texi: Likewise.
29731         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29732         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
29733         * doc/posix-functions/open_wmemstream.texi: Likewise.
29734         * doc/posix-functions/swscanf.texi: Likewise.
29735         * doc/posix-functions/towctrans_l.texi: Likewise.
29736         * doc/posix-functions/towlower.texi: Likewise.
29737         * doc/posix-functions/towlower_l.texi: Likewise.
29738         * doc/posix-functions/towupper.texi: Likewise.
29739         * doc/posix-functions/towupper_l.texi: Likewise.
29740         * doc/posix-functions/vfwprintf.texi: Likewise.
29741         * doc/posix-functions/vfwscanf.texi: Likewise.
29742         * doc/posix-functions/vswscanf.texi: Likewise.
29743         * doc/posix-functions/vwprintf.texi: Likewise.
29744         * doc/posix-functions/vwscanf.texi: Likewise.
29745         * doc/posix-functions/wcpcpy.texi: Likewise.
29746         * doc/posix-functions/wcpncpy.texi: Likewise.
29747         * doc/posix-functions/wcscasecmp.texi: Likewise.
29748         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
29749         * doc/posix-functions/wcscoll_l.texi: Likewise.
29750         * doc/posix-functions/wcsdup.texi: Likewise.
29751         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29752         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
29753         * doc/posix-functions/wcsnlen.texi: Likewise.
29754         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29755         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29756         * doc/posix-functions/wctrans_l.texi: Likewise.
29757         * doc/posix-functions/wctype_l.texi: Likewise.
29758         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
29759         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
29760         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
29761         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
29762         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
29763         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
29764         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
29765         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
29766         * doc/glibc-functions/wcschrnul.texi: Likewise.
29767         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29768         * doc/glibc-functions/wcstod_l.texi: Likewise.
29769         * doc/glibc-functions/wcstof_l.texi: Likewise.
29770         * doc/glibc-functions/wcstol_l.texi: Likewise.
29771         * doc/glibc-functions/wcstold_l.texi: Likewise.
29772         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29773         * doc/glibc-functions/wcstoq.texi: Likewise.
29774         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29775         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29776         * doc/glibc-functions/wcstouq.texi: Likewise.
29777         * doc/glibc-functions/wmempcpy.texi: Likewise.
29778
29779 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
29780             Eric Blake  <ebb9@byu.net>
29781             Paolo Bonzini  <bonzini@gnu.org>
29782             Bruno Haible  <bruno@clisp.org>
29783
29784         Make c-stack work on Haiku.
29785         * lib/c-stack.c (SA_ONSTACK): Define fallback.
29786         (c_stack_action): Use SA_ONSTACK flag.
29787
29788 2008-12-22  Bruno Haible  <bruno@clisp.org>
29789
29790         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
29791
29792 2008-12-22  Bruno Haible  <bruno@clisp.org>
29793
29794         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
29795         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
29796         being overridden.
29797         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
29798         New macros.
29799         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
29800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
29801         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
29802         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
29803
29804 2008-12-22  Bruno Haible  <bruno@clisp.org>
29805
29806         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
29807         from test code.
29808
29809 2008-12-22  Eric Blake  <ebb9@byu.net>
29810
29811         Avoid gcc warnings on cygwin.
29812         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
29813         Avoid unused variable.
29814         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
29815         Likewise.
29816
29817 2008-12-22  Bruno Haible  <bruno@clisp.org>
29818
29819         Remove HAVE_MBRTOWC conditionals.
29820         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
29821         (mbscasecmp): Assume mbrtowc function.
29822         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
29823         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
29824         * lib/mbschr.c: Include mbuiter.h unconditionally.
29825         (mbschr): Assume mbrtowc function.
29826         * lib/mbscspn.c: Include mbuiter.h unconditionally.
29827         (mbscspn): Assume mbrtowc function.
29828         * lib/mbslen.c: Include mbuiter.h unconditionally.
29829         (mbslen): Assume mbrtowc function.
29830         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
29831         (mbsncasecmp): Assume mbrtowc function.
29832         * lib/mbsnlen.c: Include mbiter.h unconditionally.
29833         (mbsnlen): Assume mbrtowc function.
29834         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
29835         (mbspbrk): Assume mbrtowc function.
29836         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
29837         (mbspcasecmp): Assume mbrtowc function.
29838         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
29839         (mbsrchr): Assume mbrtowc function.
29840         * lib/mbssep.c: Include mbuiter.h unconditionally.
29841         (mbssep): Assume mbrtowc function.
29842         * lib/mbsspn.c: Include mbuiter.h unconditionally.
29843         (mbsspn): Assume mbrtowc function.
29844         * lib/mbsstr.c: Include mbuiter.h unconditionally.
29845         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
29846         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
29847         (mbstok_r): Assume mbrtowc function.
29848         * lib/propername.c: Include mbuiter.h unconditionally.
29849         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
29850         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
29851         (trim2): Assume mbrtowc function.
29852         * lib/mbswidth.c (mbsinit): Remove fallback definition.
29853         (mbsnwidth): Assume mbrtowc function.
29854         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
29855         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
29856         fallback definitions.
29857         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
29858
29859 2008-12-22  Bruno Haible  <bruno@clisp.org>
29860
29861         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
29862
29863 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
29864
29865         * modules/regex: Request emulations for the mb*/wc* functions we need.
29866         * m4/regex.m4: Don't look for those functions here.
29867         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
29868
29869 2008-12-22  Bruno Haible  <bruno@clisp.org>
29870
29871         * modules/fnmatch (Depends-on): Remove duplicated dependency.
29872
29873 2008-12-21  Bruno Haible  <bruno@clisp.org>
29874
29875         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
29876         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
29877         (Include): Remove conditionalization.
29878         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
29879         (Include): Remove conditionalization.
29880         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
29881         (Include): Remove conditionalization.
29882         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
29883         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29884         * NEWS: Mention the change.
29885         Reported by Alan Hourihane <alanh@fairlite.co.uk>
29886         via Sergey Poznyakoff <gray@gnu.org.ua>.
29887
29888 2008-12-21  Bruno Haible  <bruno@clisp.org>
29889
29890         * MODULES.html.sh (Extended multibyte and wide character utilities
29891         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
29892         wcrtomb, wcsrtombs.
29893         (Support for systems lacking POSIX:2008): Add accept, bind, close,
29894         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
29895         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
29896         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
29897
29898 2008-12-21  Bruno Haible  <bruno@clisp.org>
29899
29900         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
29901
29902 2008-12-21  Bruno Haible  <bruno@clisp.org>
29903
29904         * modules/wcsnrtombs-tests: New file.
29905         * tests/test-wcsnrtombs1.sh: New file.
29906         * tests/test-wcsnrtombs2.sh: New file.
29907         * tests/test-wcsnrtombs3.sh: New file.
29908         * tests/test-wcsnrtombs4.sh: New file.
29909         * tests/test-wcsnrtombs.c: New file.
29910
29911         New module 'wcsnrtombs'.
29912         * lib/wchar.in.h (wcsnrtombs): New declaration.
29913         * lib/wcsnrtombs.c: New file.
29914         * lib/wcsrtombs-state.c: New file.
29915         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
29916         (internal_state): Remove variable.
29917         * m4/wcsnrtombs.m4: New file.
29918         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
29919         compilation units.
29920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
29921         HAVE_WCSNRTOMBS.
29922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
29923         HAVE_WCSNRTOMBS.
29924         * modules/wcsnrtombs: New file.
29925         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
29926         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
29927
29928 2008-12-21  Bruno Haible  <bruno@clisp.org>
29929
29930         * modules/wcsrtombs-tests: New file.
29931         * tests/test-wcsrtombs1.sh: New file.
29932         * tests/test-wcsrtombs2.sh: New file.
29933         * tests/test-wcsrtombs3.sh: New file.
29934         * tests/test-wcsrtombs4.sh: New file.
29935         * tests/test-wcsrtombs.c: New file.
29936
29937         New module 'wcsrtombs'.
29938         * lib/wchar.in.h (wcsrtombs): New declaration.
29939         * lib/wcsrtombs.c: New file.
29940         * m4/wcsrtombs.m4: New file.
29941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
29942         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
29944         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29945         * modules/wcsrtombs: New file.
29946         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
29947         bugs.
29948
29949 2008-12-21  Bruno Haible  <bruno@clisp.org>
29950
29951         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
29952         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
29953         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
29954         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
29955         if not correct.
29956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
29957         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
29958         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29959         m4/locale-zh.m4, m4/codeset.m4.
29960         * doc/posix-functions/wcrtomb.texi: Document the bug.
29961
29962 2008-12-21  Bruno Haible  <bruno@clisp.org>
29963
29964         Work around a btowc() bug on IRIX 6.5.
29965         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
29966         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
29967         REPLACE_WTOBC if not.
29968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
29969         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
29970         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
29971
29972 2008-12-21  Bruno Haible  <bruno@clisp.org>
29973
29974         * modules/wcrtomb-tests: New file.
29975         * tests/test-wcrtomb.sh: New file.
29976         * tests/test-wcrtomb.c: New file.
29977
29978         New module 'wcrtomb'.
29979         * lib/wchar.in.h (wcrtomb): New declaration.
29980         * lib/wcrtomb.c: New file.
29981         * m4/wcrtomb.m4: New file.
29982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
29983         HAVE_WCRTOMB.
29984         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
29985         HAVE_WCRTOMB.
29986         * modules/wcrtomb: New file.
29987         * doc/posix-functions/wcrtomb.texi: Mention the new module.
29988
29989 2008-12-21  Bruno Haible  <bruno@clisp.org>
29990
29991         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
29992         * modules/mbsrtowcs (Files): Likewise.
29993         * modules/wctob (Files): Likewise.
29994         * modules/c-strcase-tests (Files): Likewise.
29995         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29996         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29997         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29998         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29999         * modules/vasnprintf-posix-tests (Files): Likewise.
30000
30001 2008-12-21  William Pursell  <bill.pursell@gmail.com>
30002
30003         gitlog-to-changelog: pass all command-line arguments to git-log
30004         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
30005         it is sometimes convenient to filter the commits in various ways.
30006         gitlog-to-changelog only allows --since to specify a start date,
30007         but git-log itself supports many other filtering mechanisms.
30008         At the moment, I want to filter by branch name.  Rather than
30009         adding a --branch option to gitlog-to-changelog, it seems more
30010         flexible to simply pass all options directly to git-log and let
30011         git do the work.  Notice that this effectively makes --since a
30012         redundant option for gitlog-to-changelog, but removing it would
30013         require current usage to change since calls would then require
30014         an additional '--'.
30015
30016 2008-12-21  Bruno Haible  <bruno@clisp.org>
30017
30018         * modules/mbsnrtowcs-tests: New file.
30019         * tests/test-mbsnrtowcs1.sh: New file.
30020         * tests/test-mbsnrtowcs2.sh: New file.
30021         * tests/test-mbsnrtowcs3.sh: New file.
30022         * tests/test-mbsnrtowcs4.sh: New file.
30023         * tests/test-mbsnrtowcs.c: New file.
30024
30025         New module 'mbsnrtowcs'.
30026         * lib/wchar.in.h (mbsnrtowcs): New declaration.
30027         * lib/mbsnrtowcs.c: New file.
30028         * lib/mbsrtowcs-state.c: New file.
30029         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
30030         (internal_state): Remove variable.
30031         * m4/mbsnrtowcs.m4: New file.
30032         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
30033         compilation units.
30034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
30035         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30036         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
30037         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
30038         * modules/mbsnrtowcs: New file.
30039         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
30040         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
30041         portability problem.
30042
30043 2008-12-21  Bruno Haible  <bruno@clisp.org>
30044
30045         Work around mbsrtowcs bug.
30046         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
30047         (gl_FUNC_MBSRTOWCS): Invoke it.
30048         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30049         m4/locale-zh.m4.
30050         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
30051
30052 2008-12-21  Bruno Haible  <bruno@clisp.org>
30053
30054         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
30055
30056 2008-12-21  Bruno Haible  <bruno@clisp.org>
30057
30058         Update doc for AIX.
30059         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
30060         16-bit wchar_t type.
30061         * doc/posix-functions/btowc.texi: Likewise.
30062         * doc/posix-functions/fgetwc.texi: Likewise.
30063         * doc/posix-functions/fgetws.texi: Likewise.
30064         * doc/posix-functions/fputwc.texi: Likewise.
30065         * doc/posix-functions/fputws.texi: Likewise.
30066         * doc/posix-functions/fwide.texi: Likewise.
30067         * doc/posix-functions/fwprintf.texi: Likewise.
30068         * doc/posix-functions/fwscanf.texi: Likewise.
30069         * doc/posix-functions/getwchar.texi: Likewise.
30070         * doc/posix-functions/getwc.texi: Likewise.
30071         * doc/posix-functions/iswalnum.texi: Likewise.
30072         * doc/posix-functions/iswalpha.texi: Likewise.
30073         * doc/posix-functions/iswblank.texi: Likewise.
30074         * doc/posix-functions/iswcntrl.texi: Likewise.
30075         * doc/posix-functions/iswctype.texi: Likewise.
30076         * doc/posix-functions/iswdigit.texi: Likewise.
30077         * doc/posix-functions/iswgraph.texi: Likewise.
30078         * doc/posix-functions/iswlower.texi: Likewise.
30079         * doc/posix-functions/iswprint.texi: Likewise.
30080         * doc/posix-functions/iswpunct.texi: Likewise.
30081         * doc/posix-functions/iswspace.texi: Likewise.
30082         * doc/posix-functions/iswupper.texi: Likewise.
30083         * doc/posix-functions/iswxdigit.texi: Likewise.
30084         * doc/posix-functions/mbrtowc.texi: Likewise.
30085         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30086         * doc/posix-functions/mbstowcs.texi: Likewise.
30087         * doc/posix-functions/mbtowc.texi: Likewise.
30088         * doc/posix-functions/putwchar.texi: Likewise.
30089         * doc/posix-functions/putwc.texi: Likewise.
30090         * doc/posix-functions/swprintf.texi: Likewise.
30091         * doc/posix-functions/tolower.texi: Likewise.
30092         * doc/posix-functions/toupper.texi: Likewise.
30093         * doc/posix-functions/towctrans.texi: Likewise.
30094         * doc/posix-functions/ungetwc.texi: Likewise.
30095         * doc/posix-functions/vswprintf.texi: Likewise.
30096         * doc/posix-functions/wcrtomb.texi: Likewise.
30097         * doc/posix-functions/wcscat.texi: Likewise.
30098         * doc/posix-functions/wcschr.texi: Likewise.
30099         * doc/posix-functions/wcscmp.texi: Likewise.
30100         * doc/posix-functions/wcscoll.texi: Likewise.
30101         * doc/posix-functions/wcscpy.texi: Likewise.
30102         * doc/posix-functions/wcscspn.texi: Likewise.
30103         * doc/posix-functions/wcsftime.texi: Likewise.
30104         * doc/posix-functions/wcslen.texi: Likewise.
30105         * doc/posix-functions/wcsncat.texi: Likewise.
30106         * doc/posix-functions/wcsncmp.texi: Likewise.
30107         * doc/posix-functions/wcsncpy.texi: Likewise.
30108         * doc/posix-functions/wcspbrk.texi: Likewise.
30109         * doc/posix-functions/wcsrchr.texi: Likewise.
30110         * doc/posix-functions/wcsrtombs.texi: Likewise.
30111         * doc/posix-functions/wcsspn.texi: Likewise.
30112         * doc/posix-functions/wcsstr.texi: Likewise.
30113         * doc/posix-functions/wcstod.texi: Likewise.
30114         * doc/posix-functions/wcstof.texi: Likewise.
30115         * doc/posix-functions/wcstoimax.texi: Likewise.
30116         * doc/posix-functions/wcstok.texi: Likewise.
30117         * doc/posix-functions/wcstold.texi: Likewise.
30118         * doc/posix-functions/wcstoll.texi: Likewise.
30119         * doc/posix-functions/wcstol.texi: Likewise.
30120         * doc/posix-functions/wcstombs.texi: Likewise.
30121         * doc/posix-functions/wcstoull.texi: Likewise.
30122         * doc/posix-functions/wcstoul.texi: Likewise.
30123         * doc/posix-functions/wcstoumax.texi: Likewise.
30124         * doc/posix-functions/wcswidth.texi: Likewise.
30125         * doc/posix-functions/wcsxfrm.texi: Likewise.
30126         * doc/posix-functions/wctob.texi: Likewise.
30127         * doc/posix-functions/wctomb.texi: Likewise.
30128         * doc/posix-functions/wctrans.texi: Likewise.
30129         * doc/posix-functions/wctype.texi: Likewise.
30130         * doc/posix-functions/wcwidth.texi: Likewise.
30131         * doc/posix-functions/wmemchr.texi: Likewise.
30132         * doc/posix-functions/wmemcmp.texi: Likewise.
30133         * doc/posix-functions/wmemcpy.texi: Likewise.
30134         * doc/posix-functions/wmemmove.texi: Likewise.
30135         * doc/posix-functions/wmemset.texi: Likewise.
30136         * doc/posix-functions/wprintf.texi: Likewise.
30137         * doc/posix-functions/wscanf.texi: Likewise.
30138
30139 2008-12-21  Bruno Haible  <bruno@clisp.org>
30140
30141         Update doc for HP-UX 11.11.
30142         * doc/posix-functions/btowc.texi: Clarify that the function is missing
30143         in HP-UX version 11.00, not in all versions of HP-UX 11.
30144         * doc/posix-functions/fwide.texi: Likewise.
30145         * doc/posix-functions/fwprintf.texi: Likewise.
30146         * doc/posix-functions/fwscanf.texi: Likewise.
30147         * doc/posix-functions/inet_ntop.texi: Likewise.
30148         * doc/posix-functions/inet_pton.texi: Likewise.
30149         * doc/posix-functions/mbrlen.texi: Likewise.
30150         * doc/posix-functions/mbrtowc.texi: Likewise.
30151         * doc/posix-functions/mbsinit.texi: Likewise.
30152         * doc/posix-functions/mbsrtowcs.texi: Likewise.
30153         * doc/posix-functions/swprintf.texi: Likewise.
30154         * doc/posix-functions/swscanf.texi: Likewise.
30155         * doc/posix-functions/towctrans.texi: Likewise.
30156         * doc/posix-functions/vfwprintf.texi: Likewise.
30157         * doc/posix-functions/vswprintf.texi: Likewise.
30158         * doc/posix-functions/vwprintf.texi: Likewise.
30159         * doc/posix-functions/wcrtomb.texi: Likewise.
30160         * doc/posix-functions/wcsrtombs.texi: Likewise.
30161         * doc/posix-functions/wcsstr.texi: Likewise.
30162         * doc/posix-functions/wctob.texi: Likewise.
30163         * doc/posix-functions/wctrans.texi: Likewise.
30164         * doc/posix-functions/wmemchr.texi: Likewise.
30165         * doc/posix-functions/wmemcmp.texi: Likewise.
30166         * doc/posix-functions/wmemcpy.texi: Likewise.
30167         * doc/posix-functions/wmemmove.texi: Likewise.
30168         * doc/posix-functions/wmemset.texi: Likewise.
30169         * doc/posix-functions/wprintf.texi: Likewise.
30170         * doc/posix-functions/wscanf.texi: Likewise.
30171
30172 2008-12-21  Bruno Haible  <bruno@clisp.org>
30173
30174         Work around a portability problem.
30175         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
30176         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
30177
30178 2008-12-20  Bruno Haible  <bruno@clisp.org>
30179
30180         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
30181         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
30182         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
30183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
30184         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
30185
30186         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
30187         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
30188         set.
30189         (GNULIB_defined_mbstate_t): New macro.
30190         (mbsinit): Redefine if REPLACE_MBSINIT is set.
30191         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
30192         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
30193         reuses the system's mbrtowc function but works around the bugs.
30194         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
30195         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
30196         macros.
30197         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
30198         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
30199         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
30200         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
30201         REPLACE_MBSINIT if mbsinit needs to be overridden.
30202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
30203         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30204         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
30205         REPLACE_MBSINIT, REPLACE_MBRTOWC.
30206         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
30207         m4/locale-zh.m4.
30208         (Depends): Add mbsinit.
30209         * modules/mbsinit (Depends): Add mbrtowc.
30210         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
30211
30212 2008-12-20  Bruno Haible  <bruno@clisp.org>
30213
30214         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
30215         so that there are no conversion errors on AIX.
30216         * tests/test-mbsrtowcs.c (main): LIkewise.
30217
30218 2008-12-20  Bruno Haible  <bruno@clisp.org>
30219
30220         Work around wctob bug on Solaris <= 9.
30221         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
30222         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
30223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
30224         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
30225         * modules/wctob (Files): Add m4/locale-fr.m4.
30226         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
30227
30228 2008-12-20  Bruno Haible  <bruno@clisp.org>
30229
30230         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
30231         /dev/null.
30232         * tests/test-select-in.sh: Likewise.
30233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30234
30235 2008-12-20  Bruno Haible  <bruno@clisp.org>
30236
30237         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
30238         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
30239         Cygwin 1.5.x.
30240
30241 2008-12-20  Bruno Haible  <bruno@clisp.org>
30242
30243         Ensure mbstate_t is defined on HP-UX 11.11.
30244         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
30245         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
30246         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
30247         AC_USE_SYSTEM_EXTENSIONS.
30248         * modules/fnmatch (Depends-on): Add extensions.
30249         * modules/mbrlen (Depends-on): Likewise.
30250         * modules/mbrtowc (Depends-on): Likewise.
30251         * modules/mbsinit (Depends-on): Likewise.
30252         * modules/mbsrtowcs (Depends-on): Likewise.
30253         * modules/mbswidth (Depends-on): Likewise.
30254         * modules/quotearg (Depends-on): Likewise.
30255         * modules/strftime (Depends-on): Likewise.
30256
30257 2008-12-20  Bruno Haible  <bruno@clisp.org>
30258
30259         Ensure wctob is declared on IRIX 6.5.
30260         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
30261         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
30262         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
30263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
30264         of HAVE_WCTOB.
30265         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
30266         HAVE_WCTOB.
30267         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
30268
30269 2008-12-19  Bruno Haible  <bruno@clisp.org>
30270
30271         * modules/mbsrtowcs-tests: New file.
30272         * tests/test-mbsrtowcs1.sh: New file.
30273         * tests/test-mbsrtowcs2.sh: New file.
30274         * tests/test-mbsrtowcs3.sh: New file.
30275         * tests/test-mbsrtowcs4.sh: New file.
30276         * tests/test-mbsrtowcs.c: New file.
30277
30278         New module 'mbsrtowcs'.
30279         * lib/wchar.in.h (mbsrtowcs): New declaration.
30280         * lib/mbsrtowcs.c: New file.
30281         * m4/mbsrtowcs.m4: New file.
30282         * modules/mbsrtowcs: New file.
30283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
30284         HAVE_MBSRTOWCS.
30285         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
30286         HAVE_MBSRTOWCS.
30287         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
30288
30289 2008-12-19  Bruno Haible  <bruno@clisp.org>
30290
30291         New module 'mbrlen'.
30292         * lib/wchar.in.h (mbrlen): New declaration.
30293         * lib/mbrlen.c: New file.
30294         * m4/mbrlen.m4: New file.
30295         * modules/mbrlen: New file.
30296         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
30297         HAVE_MBRLEN.
30298         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
30299         HAVE_MBRLEN.
30300         * doc/posix-functions/mbrlen.texi: Document the new module.
30301
30302 2008-12-19  Bruno Haible  <bruno@clisp.org>
30303
30304         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
30305         * modules/mbrtowc (Depends-on): Add verify.
30306         Suggested by Paul Eggert.
30307
30308 2008-12-18  Bruno Haible  <bruno@clisp.org>
30309
30310         * modules/mbsinit-tests: New file.
30311         * tests/test-mbsinit.sh: New file.
30312         * tests/test-mbsinit.c: New file.
30313
30314 2008-12-18  Bruno Haible  <bruno@clisp.org>
30315
30316         * modules/mbrtowc-tests: New file.
30317         * tests/test-mbrtowc1.sh: New file.
30318         * tests/test-mbrtowc2.sh: New file.
30319         * tests/test-mbrtowc3.sh: New file.
30320         * tests/test-mbrtowc4.sh: New file.
30321         * tests/test-mbrtowc.c: New file.
30322
30323         New module 'mbrtowc'.
30324         * lib/wchar.in.h (mbstate_t): Override when the system does not have
30325         mbsinit and mbrtowc.
30326         (mbrtowc): New declaration.
30327         * lib/mbrtowc.c: New file.
30328         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
30329         * modules/mbrtowc: New file.
30330         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
30331         HAVE_MBRTOWC.
30332         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
30333         HAVE_MBRTOWC.
30334         * doc/posix-functions/mbrtowc.texi: Document the new module.
30335
30336 2008-12-18  Bruno Haible  <bruno@clisp.org>
30337
30338         New module 'wctob'.
30339         * lib/wchar.in.h (wctob): New declaration.
30340         * lib/wctob.c: New file.
30341         * m4/wctob.m4: New file.
30342         * modules/wctob: New file.
30343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
30344         HAVE_WCTOB.
30345         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
30346         * doc/posix-functions/wctob.texi: Document the new module.
30347
30348 2008-12-18  Bruno Haible  <bruno@clisp.org>
30349
30350         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
30351         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
30352
30353 2008-12-18  Simon Josefsson  <simon@josefsson.org>
30354
30355         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
30356         G. Christensen" <tgc@jupiterrise.com>.
30357
30358         * lib/flock.c: Need to include errno.h.  Reported by "Tom
30359         G. Christensen" <tgc@jupiterrise.com>.
30360
30361         * lib/flock.c: Need to include string.h.  Reported by "Tom
30362         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
30363         <ebb9@byu.net>.
30364
30365 2008-12-18  Bruno Haible  <bruno@clisp.org>
30366
30367         * m4/locale-ja.m4: New file, from GNU gettext.
30368
30369 2008-12-17  Bruno Haible  <bruno@clisp.org>
30370
30371         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
30372         Suggested by Eric Blake.
30373
30374 2008-12-17  Bruno Haible  <bruno@clisp.org>
30375
30376         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
30377
30378 2008-12-17  Bruno Haible  <bruno@clisp.org>
30379
30380         * lib/mbsinit.c: Include verify.h. Verify an assumption.
30381         * modules/mbsinit (Depends-on): Add verify.
30382         Suggested by Paul Eggert.
30383
30384 2008-12-17  Bruno Haible  <bruno@clisp.org>
30385
30386         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
30387         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
30388         gl_FUNC_MBRTOWC.
30389         * m4/mbiter.m4 (gl_MBITER): LIkewise.
30390         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
30391         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
30392         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
30393         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
30394         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
30395         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
30396         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
30397         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
30398         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
30399         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
30400         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
30401         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
30402         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
30403         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
30404         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30405         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
30406         * modules/trim (configure.ac): Likewise.
30407
30408 2008-12-17  Bruno Haible  <bruno@clisp.org>
30409
30410         * modules/btowc-tests: New file.
30411         * tests/test-btowc1.sh: New file.
30412         * tests/test-btowc2.sh: New file.
30413         * tests/test-btowc.c: New file.
30414
30415         New module 'btowc'.
30416         * lib/wchar.in.h (btowc): New declaration.
30417         * lib/btowc.c: New file.
30418         * m4/btowc.m4: New file.
30419         * modules/btowc: New file.
30420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
30421         HAVE_BTOWC.
30422         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
30423         * doc/posix-functions/btowc.texi: Document the new module.
30424
30425 2008-12-17  Bruno Haible  <bruno@clisp.org>
30426
30427         New module 'mbsinit'.
30428         * lib/wchar.in.h (mbsinit): New declaration.
30429         * lib/mbsinit.c: New file.
30430         * m4/mbsinit.m4: New file.
30431         * modules/mbsinit: New file.
30432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
30433         HAVE_MBSINIT.
30434         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
30435         HAVE_MBSINIT.
30436         * doc/posix-functions/mbsinit.texi: Document the new module.
30437
30438 2008-12-16  Bruno Haible  <bruno@clisp.org>
30439
30440         * lib/unistd.in.h: Add comment.
30441         * tests/test-environ.c: Don't include <stdlib.h>.
30442
30443 2008-12-16  Bruno Haible  <bruno@clisp.org>
30444
30445         * lib/parse-duration.h (parse_duration): Document return value
30446         convention.
30447         * lib/parse-duration.c: Include specification header first. Add
30448         comments.
30449         (_): Remove macro.
30450         (parse_year_month_day, parse_hour_minute_second): Move side effects
30451         outside of strchr call.
30452         (parse_non_iso8601): Move side effects outside of isspace call.
30453         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
30454         call.
30455
30456 2008-12-16  Bruno Haible  <bruno@clisp.org>
30457
30458         * tests/test-parse-duration.sh: Produce no output when the test
30459         succeeds.
30460
30461 2008-12-16  Bruno Haible  <bruno@clisp.org>
30462
30463         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
30464         expressions.
30465
30466 2008-12-15  Bruno Haible  <bruno@clisp.org>
30467
30468         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
30469         * doc/glibc-functions/flistxattr.texi: Likewise.
30470         * doc/glibc-functions/fopencookie.texi: Likewise.
30471         * doc/glibc-functions/fremovexattr.texi: Likewise.
30472         * doc/glibc-functions/fsetxattr.texi: Likewise.
30473         * doc/glibc-functions/getxattr.texi: Likewise.
30474         * doc/glibc-functions/lgetxattr.texi: Likewise.
30475         * doc/glibc-functions/listxattr.texi: Likewise.
30476         * doc/glibc-functions/llistxattr.texi: Likewise.
30477         * doc/glibc-functions/lremovexattr.texi: Likewise.
30478         * doc/glibc-functions/lsetxattr.texi: Likewise.
30479         * doc/glibc-functions/removexattr.texi: Likewise.
30480         * doc/glibc-functions/setxattr.texi: Likewise.
30481         * doc/posix-functions/open_memstream.texi: Likewise.
30482
30483 2008-12-15  Eric Blake  <ebb9@byu.net>
30484
30485         Update doc for cygwin 1.7.
30486         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
30487         functions.
30488         * doc/posix-functions/fchmodat.texi: Likewise.
30489         * doc/posix-functions/fchownat.texi: Likewise.
30490         * doc/posix-functions/fdopendir.texi: Likewise.
30491         * doc/posix-functions/fmemopen.texi: Likewise.
30492         * doc/posix-functions/freeaddrinfo.texi: Likewise.
30493         * doc/posix-functions/fstatat.texi: Likewise.
30494         * doc/posix-functions/futimens.texi: Likewise.
30495         * doc/posix-functions/gai_strerror.texi: Likewise.
30496         * doc/posix-functions/getaddrinfo.texi: Likewise.
30497         * doc/posix-functions/getnameinfo.texi: Likewise.
30498         * doc/posix-functions/if_freenameindex.texi: Likewise.
30499         * doc/posix-functions/if_indextoname.texi: Likewise.
30500         * doc/posix-functions/if_nameindex.texi: Likewise.
30501         * doc/posix-functions/if_nametoindex.texi: Likewise.
30502         * doc/posix-functions/insque.texi: Likewise.
30503         * doc/posix-functions/linkat.texi: Likewise.
30504         * doc/posix-functions/llrint.texi: Likewise.
30505         * doc/posix-functions/llrintf.texi: Likewise.
30506         * doc/posix-functions/llrintl.texi: Likewise.
30507         * doc/posix-functions/lockf.texi: Likewise.
30508         * doc/posix-functions/lrintl.texi: Likewise.
30509         * doc/posix-functions/mkdirat.texi: Likewise.
30510         * doc/posix-functions/mkfifoat.texi: Likewise.
30511         * doc/posix-functions/mknodat.texi: Likewise.
30512         * doc/posix-functions/mq_close.texi: Likewise.
30513         * doc/posix-functions/mq_getattr.texi: Likewise.
30514         * doc/posix-functions/mq_notify.texi: Likewise.
30515         * doc/posix-functions/mq_open.texi: Likewise.
30516         * doc/posix-functions/mq_receive.texi: Likewise.
30517         * doc/posix-functions/mq_send.texi: Likewise.
30518         * doc/posix-functions/mq_setattr.texi: Likewise.
30519         * doc/posix-functions/mq_timedreceive.texi: Likewise.
30520         * doc/posix-functions/mq_timedsend.texi: Likewise.
30521         * doc/posix-functions/mq_unlink.texi: Likewise.
30522         * doc/posix-functions/open_memstream.texi: Likewise.
30523         * doc/posix-functions/openat.texi: Likewise.
30524         * doc/posix-functions/posix_fadvise.texi: Likewise.
30525         * doc/posix-functions/posix_fallocate.texi: Likewise.
30526         * doc/posix-functions/posix_madvise.texi: Likewise.
30527         * doc/posix-functions/posix_memalign.texi: Likewise.
30528         * doc/posix-functions/posix_openpt.texi: Likewise.
30529         * doc/posix-functions/readlinkat.texi: Likewise.
30530         * doc/posix-functions/remque.texi: Likewise.
30531         * doc/posix-functions/renameat.texi: Likewise.
30532         * doc/posix-functions/rintl.texi: Likewise.
30533         * doc/posix-functions/sem_unlink.texi: Likewise.
30534         * doc/posix-functions/shm_open.texi: Likewise.
30535         * doc/posix-functions/shm_unlink.texi: Likewise.
30536         * doc/posix-functions/signgam.texi: Likewise.
30537         * doc/posix-functions/sigset.texi: Likewise.
30538         * doc/posix-functions/stpcpy.texi: Likewise.
30539         * doc/posix-functions/stpncpy.texi: Likewise.
30540         * doc/posix-functions/strerror.texi: Likewise.
30541         * doc/posix-functions/strtod.texi: Likewise.
30542         * doc/posix-functions/symlinkat.texi: Likewise.
30543         * doc/posix-functions/unlinkat.texi: Likewise.
30544         * doc/posix-functions/utimensat.texi: Likewise.
30545         * doc/glibc-functions/bindresvport.texi: Likewise.
30546         * doc/glibc-functions/dn_expand.texi: Likewise.
30547         * doc/glibc-functions/exp10.texi: Likewise.
30548         * doc/glibc-functions/exp10f.texi: Likewise.
30549         * doc/glibc-functions/fgetxattr.texi: Likewise.
30550         * doc/glibc-functions/flistxattr.texi: Likewise.
30551         * doc/glibc-functions/fopencookie.texi: Likewise.
30552         * doc/glibc-functions/freeifaddrs.texi: Likewise.
30553         * doc/glibc-functions/fremovexattr.texi: Likewise.
30554         * doc/glibc-functions/fsetxattr.texi: Likewise.
30555         * doc/glibc-functions/getifaddrs.texi: Likewise.
30556         * doc/glibc-functions/getxattr.texi: Likewise.
30557         * doc/glibc-functions/lgetxattr.texi: Likewise.
30558         * doc/glibc-functions/listxattr.texi: Likewise.
30559         * doc/glibc-functions/llistxattr.texi: Likewise.
30560         * doc/glibc-functions/lremovexattr.texi: Likewise.
30561         * doc/glibc-functions/lsetxattr.texi: Likewise.
30562         * doc/glibc-functions/pow10.texi: Likewise.
30563         * doc/glibc-functions/pow10f.texi: Likewise.
30564         * doc/glibc-functions/rcmd_af.texi: Likewise.
30565         * doc/glibc-functions/removexattr.texi: Likewise.
30566         * doc/glibc-functions/res_init.texi: Likewise.
30567         * doc/glibc-functions/res_mkquery.texi: Likewise.
30568         * doc/glibc-functions/res_query.texi: Likewise.
30569         * doc/glibc-functions/res_querydomain.texi: Likewise.
30570         * doc/glibc-functions/res_send.texi: Likewise.
30571         * doc/glibc-functions/rresvport_af.texi: Likewise.
30572         * doc/glibc-functions/setxattr.texi: Likewise.
30573         * doc/glibc-functions/strcasestr.texi: Likewise.
30574
30575 2008-12-15  Bruno Haible  <bruno@clisp.org>
30576
30577         Fix compilation error on OSF/1 4.0.
30578         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
30579         <sys/time.h>, simply delegate to the system header.
30580         Reported by Daniel Richard G. <oss@teragram.com>.
30581
30582 2008-12-15  Bruno Haible  <bruno@clisp.org>
30583
30584         * doc/posix-functions/openat.texi: Mention the 'openat' module.
30585         * doc/posix-functions/fchmodat.texi: Likewise.
30586         * doc/posix-functions/fchownat.texi: Likewise.
30587         * doc/posix-functions/fdopendir.texi: Likewise.
30588         * doc/posix-functions/fstatat.texi: Likewise.
30589         * doc/posix-functions/mkdirat.texi: Likewise.
30590         * doc/posix-functions/unlinkat.texi: Likewise.
30591
30592 2008-12-14  Bruno Haible  <bruno@clisp.org>
30593
30594         Update doc for POSIX:2008.
30595         * doc/posix-functions/faccessat.texi: New file.
30596         * doc/posix-functions/fchmodat.texi: New file.
30597         * doc/posix-functions/fchownat.texi: New file.
30598         * doc/posix-functions/fdopendir.texi: New file.
30599         * doc/posix-functions/fstatat.texi: New file.
30600         * doc/posix-functions/futimens.texi: New file.
30601         * doc/posix-functions/linkat.texi: New file.
30602         * doc/posix-functions/mkdirat.texi: New file.
30603         * doc/posix-functions/mkfifoat.texi: New file.
30604         * doc/posix-functions/mknodat.texi: New file.
30605         * doc/posix-functions/open_wmemstream.texi: New file.
30606         * doc/posix-functions/openat.texi: New file.
30607         * doc/posix-functions/psiginfo.texi: New file.
30608         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
30609         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
30610         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
30611         * doc/posix-functions/readlinkat.texi: New file.
30612         * doc/posix-functions/renameat.texi: New file.
30613         * doc/posix-functions/strerror_l.texi: New file.
30614         * doc/posix-functions/symlinkat.texi: New file.
30615         * doc/posix-functions/unlinkat.texi: New file.
30616         * doc/posix-functions/utimensat.texi: New file.
30617         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30618
30619 2008-12-14  Bruno Haible  <bruno@clisp.org>
30620
30621         Update doc for POSIX:2008.
30622         * doc/posix-functions/alphasort.texi: Renamed from
30623         doc/glibc-functions/alphasort.texi.
30624         * doc/posix-functions/dirfd.texi: Renamed from
30625         doc/glibc-functions/dirfd.texi.
30626         * doc/posix-functions/dprintf.texi: Renamed from
30627         doc/glibc-functions/dprintf.texi.
30628         * doc/posix-functions/duplocale.texi: Renamed from
30629         doc/glibc-functions/duplocale.texi.
30630         * doc/posix-functions/fexecve.texi: Renamed from
30631         doc/glibc-functions/fexecve.texi.
30632         * doc/posix-functions/fmemopen.texi: Renamed from
30633         doc/glibc-functions/fmemopen.texi.
30634         * doc/posix-functions/freelocale.texi: Renamed from
30635         doc/glibc-functions/freelocale.texi.
30636         * doc/posix-functions/getdate_err.texi: Renamed from
30637         doc/glibc-functions/getdate_err.texi.
30638         * doc/posix-functions/isalnum_l.texi: Renamed from
30639         doc/glibc-functions/isalnum_l.texi.
30640         * doc/posix-functions/isalpha_l.texi: Renamed from
30641         doc/glibc-functions/isalpha_l.texi.
30642         * doc/posix-functions/isblank_l.texi: Renamed from
30643         doc/glibc-functions/isblank_l.texi.
30644         * doc/posix-functions/iscntrl_l.texi: Renamed from
30645         doc/glibc-functions/iscntrl_l.texi.
30646         * doc/posix-functions/isdigit_l.texi: Renamed from
30647         doc/glibc-functions/isdigit_l.texi.
30648         * doc/posix-functions/isgraph_l.texi: Renamed from
30649         doc/glibc-functions/isgraph_l.texi.
30650         * doc/posix-functions/islower_l.texi: Renamed from
30651         doc/glibc-functions/islower_l.texi.
30652         * doc/posix-functions/isprint_l.texi: Renamed from
30653         doc/glibc-functions/isprint_l.texi.
30654         * doc/posix-functions/ispunct_l.texi: Renamed from
30655         doc/glibc-functions/ispunct_l.texi.
30656         * doc/posix-functions/isspace_l.texi: Renamed from
30657         doc/glibc-functions/isspace_l.texi.
30658         * doc/posix-functions/isupper_l.texi: Renamed from
30659         doc/glibc-functions/isupper_l.texi.
30660         * doc/posix-functions/iswalnum_l.texi: Renamed from
30661         doc/glibc-functions/iswalnum_l.texi.
30662         * doc/posix-functions/iswalpha_l.texi: Renamed from
30663         doc/glibc-functions/iswalpha_l.texi.
30664         * doc/posix-functions/iswblank_l.texi: Renamed from
30665         doc/glibc-functions/iswblank_l.texi.
30666         * doc/posix-functions/iswcntrl_l.texi: Renamed from
30667         doc/glibc-functions/iswcntrl_l.texi.
30668         * doc/posix-functions/iswctype_l.texi: Renamed from
30669         doc/glibc-functions/iswctype_l.texi.
30670         * doc/posix-functions/iswdigit_l.texi: Renamed from
30671         doc/glibc-functions/iswdigit_l.texi.
30672         * doc/posix-functions/iswgraph_l.texi: Renamed from
30673         doc/glibc-functions/iswgraph_l.texi.
30674         * doc/posix-functions/iswlower_l.texi: Renamed from
30675         doc/glibc-functions/iswlower_l.texi.
30676         * doc/posix-functions/iswprint_l.texi: Renamed from
30677         doc/glibc-functions/iswprint_l.texi.
30678         * doc/posix-functions/iswpunct_l.texi: Renamed from
30679         doc/glibc-functions/iswpunct_l.texi.
30680         * doc/posix-functions/iswspace_l.texi: Renamed from
30681         doc/glibc-functions/iswspace_l.texi.
30682         * doc/posix-functions/iswupper_l.texi: Renamed from
30683         doc/glibc-functions/iswupper_l.texi.
30684         * doc/posix-functions/iswxdigit_l.texi: Renamed from
30685         doc/glibc-functions/iswxdigit_l.texi.
30686         * doc/posix-functions/isxdigit_l.texi: Renamed from
30687         doc/glibc-functions/isxdigit_l.texi.
30688         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
30689         doc/glibc-functions/mbsnrtowcs.texi.
30690         * doc/posix-functions/mkdtemp.texi: Renamed from
30691         doc/glibc-functions/mkdtemp.texi.
30692         * doc/posix-functions/newlocale.texi: Renamed from
30693         doc/glibc-functions/newlocale.texi.
30694         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
30695         doc/glibc-functions/nl_langinfo_l.texi.
30696         * doc/posix-functions/open_memstream.texi: Renamed from
30697         doc/glibc-functions/open_memstream.texi.
30698         * doc/posix-functions/opterr.texi: Renamed from
30699         doc/glibc-functions/opterr.texi.
30700         * doc/posix-functions/optind.texi: Renamed from
30701         doc/glibc-functions/optind.texi.
30702         * doc/posix-functions/optopt.texi: Renamed from
30703         doc/glibc-functions/optopt.texi.
30704         * doc/posix-functions/psignal.texi: Renamed from
30705         doc/glibc-functions/psignal.texi.
30706         * doc/posix-functions/scandir.texi: Renamed from
30707         doc/glibc-functions/scandir.texi.
30708         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
30709         doc/glibc-functions/sched_get_priority_min.texi.
30710         * doc/posix-functions/signgam.texi: Renamed from
30711         doc/glibc-functions/signgam.texi.
30712         * doc/posix-functions/stpcpy.texi: Renamed from
30713         doc/glibc-functions/stpcpy.texi.
30714         * doc/posix-functions/stpncpy.texi: Renamed from
30715         doc/glibc-functions/stpncpy.texi.
30716         * doc/posix-functions/strcasecmp_l.texi: Renamed from
30717         doc/glibc-functions/strcasecmp_l.texi.
30718         * doc/posix-functions/strcoll_l.texi: Renamed from
30719         doc/glibc-functions/strcoll_l.texi.
30720         * doc/posix-functions/strfmon_l.texi: Renamed from
30721         doc/glibc-functions/strfmon_l.texi.
30722         * doc/posix-functions/strftime_l.texi: Renamed from
30723         doc/glibc-functions/strftime_l.texi.
30724         * doc/posix-functions/strncasecmp_l.texi: Renamed from
30725         doc/glibc-functions/strncasecmp_l.texi.
30726         * doc/posix-functions/strndup.texi: Renamed from
30727         doc/glibc-functions/strndup.texi.
30728         * doc/posix-functions/strnlen.texi: Renamed from
30729         doc/glibc-functions/strnlen.texi.
30730         * doc/posix-functions/strsignal.texi: Renamed from
30731         doc/glibc-functions/strsignal.texi.
30732         * doc/posix-functions/strxfrm_l.texi: Renamed from
30733         doc/glibc-functions/strxfrm_l.texi.
30734         * doc/posix-functions/timer_gettime.texi: Renamed from
30735         doc/glibc-functions/timer_gettime.texi.
30736         * doc/posix-functions/tolower_l.texi: Renamed from
30737         doc/glibc-functions/tolower_l.texi.
30738         * doc/posix-functions/toupper_l.texi: Renamed from
30739         doc/glibc-functions/toupper_l.texi.
30740         * doc/posix-functions/towctrans_l.texi: Renamed from
30741         doc/glibc-functions/towctrans_l.texi.
30742         * doc/posix-functions/towlower_l.texi: Renamed from
30743         doc/glibc-functions/towlower_l.texi.
30744         * doc/posix-functions/towupper_l.texi: Renamed from
30745         doc/glibc-functions/towupper_l.texi.
30746         * doc/posix-functions/uselocale.texi: Renamed from
30747         doc/glibc-functions/uselocale.texi.
30748         * doc/posix-functions/vdprintf.texi: Renamed from
30749         doc/glibc-functions/vdprintf.texi.
30750         * doc/posix-functions/wcpcpy.texi:
30751         Renamed from doc/glibc-functions/wcpcpy.texi.
30752         * doc/posix-functions/wcpncpy.texi: Renamed from
30753         doc/glibc-functions/wcpncpy.texi.
30754         * doc/posix-functions/wcscasecmp.texi: Renamed from
30755         doc/glibc-functions/wcscasecmp.texi.
30756         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
30757         doc/glibc-functions/wcscasecmp_l.texi.
30758         * doc/posix-functions/wcscoll_l.texi: Renamed from
30759         doc/glibc-functions/wcscoll_l.texi.
30760         * doc/posix-functions/wcsdup.texi: Renamed from
30761         doc/glibc-functions/wcsdup.texi.
30762         * doc/posix-functions/wcsncasecmp.texi: Renamed from
30763         doc/glibc-functions/wcsncasecmp.texi.
30764         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
30765         doc/glibc-functions/wcsncasecmp_l.texi.
30766         * doc/posix-functions/wcsnlen.texi: Renamed from
30767         doc/glibc-functions/wcsnlen.texi.
30768         * doc/posix-functions/wcsnrtombs.texi: Renamed from
30769         doc/glibc-functions/wcsnrtombs.texi.
30770         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
30771         doc/glibc-functions/wcsxfrm_l.texi.
30772         * doc/posix-functions/wctrans_l.texi: Renamed from
30773         doc/glibc-functions/wctrans_l.texi.
30774         * doc/posix-functions/wctype_l.texi: Renamed from
30775         doc/glibc-functions/wctype_l.texi.
30776         * doc/gnulib.texi (Function Substitutes): Add these subsections.
30777         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
30778         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
30779         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
30780         these subsections.
30781         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
30782         Remove sections.
30783
30784 2008-12-14  Bruno Haible  <bruno@clisp.org>
30785
30786         Update doc for POSIX:2008.
30787         * doc/posix-functions/*.texi: Update URL of POSIX specification.
30788
30789 2008-12-14  Bruno Haible  <bruno@clisp.org>
30790
30791         Update doc for POSIX:2008.
30792         * doc/pastposix-functions/bcmp.texi: Renamed from
30793         doc/posix-functions/bcmp.texi.
30794         * doc/pastposix-functions/bcopy.texi: Renamed from
30795         doc/posix-functions/bcopy.texi.
30796         * doc/pastposix-functions/bsd_signal.texi: Renamed from
30797         doc/posix-functions/bsd_signal.texi.
30798         * doc/pastposix-functions/bzero.texi: Renamed from
30799         doc/posix-functions/bzero.texi.
30800         * doc/pastposix-functions/ecvt.texi: Renamed from
30801         doc/posix-functions/ecvt.texi.
30802         * doc/pastposix-functions/fcvt.texi: Renamed from
30803         doc/posix-functions/fcvt.texi.
30804         * doc/pastposix-functions/ftime.texi: Renamed from
30805         doc/posix-functions/ftime.texi.
30806         * doc/pastposix-functions/gcvt.texi: Renamed from
30807         doc/posix-functions/gcvt.texi.
30808         * doc/pastposix-functions/getcontext.texi: Renamed from
30809         doc/posix-functions/getcontext.texi.
30810         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
30811         doc/posix-functions/gethostbyaddr.texi.
30812         * doc/pastposix-functions/gethostbyname.texi: Renamed from
30813         doc/posix-functions/gethostbyname.texi.
30814         * doc/pastposix-functions/getwd.texi: Renamed from
30815         doc/posix-functions/getwd.texi.
30816         * doc/pastposix-functions/h_errno.texi: Renamed from
30817         doc/posix-functions/h_errno.texi.
30818         * doc/pastposix-functions/index.texi: Renamed from
30819         doc/posix-functions/index.texi.
30820         * doc/pastposix-functions/makecontext.texi: Renamed from
30821         doc/posix-functions/makecontext.texi.
30822         * doc/pastposix-functions/mktemp.texi: Renamed from
30823         doc/posix-functions/mktemp.texi.
30824         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
30825         doc/posix-functions/pthread_attr_getstackaddr.texi.
30826         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
30827         doc/posix-functions/pthread_attr_setstackaddr.texi.
30828         * doc/pastposix-functions/rindex.texi: Renamed from
30829         doc/posix-functions/rindex.texi.
30830         * doc/pastposix-functions/scalb.texi: Renamed from
30831         doc/posix-functions/scalb.texi.
30832         * doc/pastposix-functions/setcontext.texi: Renamed from
30833         doc/posix-functions/setcontext.texi.
30834         * doc/pastposix-functions/swapcontext.texi: Renamed from
30835         doc/posix-functions/swapcontext.texi.
30836         * doc/pastposix-functions/ualarm.texi: Renamed from
30837         doc/posix-functions/ualarm.texi.
30838         * doc/pastposix-functions/usleep.texi: Renamed from
30839         doc/posix-functions/usleep.texi.
30840         * doc/pastposix-functions/vfork.texi: Renamed from
30841         doc/posix-functions/vfork.texi.
30842         * doc/pastposix-functions/wcswcs.texi: Renamed from
30843         doc/posix-functions/wcswcs.texi.
30844         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
30845         (Function Substitutes): Update.
30846
30847 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30848
30849         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
30850         m4/strerror.m4.
30851
30852 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30853             Bruno Haible  <bruno@clisp.org>
30854
30855         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
30856
30857 2008-12-13  Bruno Haible  <bruno@clisp.org>
30858
30859         * modules/strtoull (Depends-on): Remove unistd.
30860
30861 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30862
30863         * modules/strtoull (Depends-on): Add stdlib.
30864
30865 2008-12-11  Simon Josefsson  <simon@josefsson.org>
30866
30867         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
30868
30869 2008-12-10  Jim Meyering  <meyering@redhat.com>
30870
30871         gl_ASSERT: don't say assertions are disabled when they're not
30872         * m4/assert.m4 (gl_ASSERT): Do not make configure report
30873         "checking whether to enable assertions... no", when they are in
30874         fact enabled.  This is solely a bug in the output of configure.
30875         In spite of saying "no", NDEBUG was not defined in that case.
30876         Also, as noted by Eric Blake, leave assertions enabled upon
30877         --enable-assert=INVALID.
30878
30879 2008-12-10  Bruno Haible  <bruno@clisp.org>
30880
30881         Change MODULES.html to refer to POSIX:2008 where possible.
30882         * MODULES.html.sh (POSIX2008_URL): New variable.
30883         (posix_headers): Remove sys/timeb, ucontext.
30884         (posix2001_headers): New variable.
30885         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
30886         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
30887         index, makecontext, mktemp, pthread_attr_getstackaddr,
30888         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
30889         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
30890         (posix2001_functions): New variable.
30891         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
30892         otherwise.
30893
30894 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30895
30896         add missing include to parse-duration.c
30897         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
30898         * modules/parse-duration (Depends-on): Add xalloc.
30899
30900         fix sed script reading maint.mk
30901         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
30902         (syntax-check-rules): Use it.
30903
30904 2008-12-09  Bruno Haible  <bruno@clisp.org>
30905
30906         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
30907         MacOS X 10.4/PowerPC.
30908         Reported by Simon Josefsson.
30909
30910 2008-12-08  Jim Meyering  <meyering@redhat.com>
30911
30912         work around mingw's lack of some S_IF definitions
30913         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
30914         Reported by Simon Josefsson.
30915
30916 2008-12-08  Bruno Haible  <bruno@clisp.org>
30917
30918         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
30919         applied to variables. Needed on MacOS X 10.4/PowerPC.
30920         Reported by Simon Josefsson.
30921
30922 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
30923         and Eric Blake  <ebb9@byu.net>
30924
30925         assert: honor --enable-assert
30926         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
30927         order to honor --enable-assert, rather than treating it as a
30928         synonym for --disable-assert.
30929
30930 2008-12-08  Jim Meyering  <meyering@redhat.com>
30931
30932         * lib/posixtm.c: Remove now-useless declaration of mktime.
30933
30934         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
30935
30936 2008-12-07  Bruno Haible  <bruno@clisp.org>
30937
30938         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
30939         test_once): Mark functions as static.
30940         * tests/test-tls.c (test_tls): Likewise.
30941
30942 2008-12-07  Bruno Haible  <bruno@clisp.org>
30943
30944         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
30945         iconv_register_autodetect.
30946
30947 2008-12-07  Jim Meyering  <meyering@redhat.com>
30948
30949         posixtm.c: avoid a warning
30950         * lib/posixtm.c (posixtime): Don't initialize tm0.
30951         It's no longer needed to placate gcc4's -Wuninitialized,
30952         and the attempt to placate would elicit a new warning.
30953
30954         unicodeio.c: mark unused parameters
30955         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30956         (fallback_failure_callback): Likewise.
30957
30958 2008-12-07  Bruno Haible  <bruno@clisp.org>
30959
30960         * gnulib-tool (func_create_testdir): When building the tests
30961         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
30962         Reported by Simon Josefsson.
30963
30964 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30965
30966         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
30967
30968 2008-12-06  Bruno Haible  <bruno@clisp.org>
30969
30970         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
30971         Suggested by Eric Blake.
30972
30973 2008-12-06  Bruno Haible  <bruno@clisp.org>
30974
30975         Fix a c-stack test failure on MacOS X.
30976         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
30977         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
30978         handler for SIGBUS as well.
30979         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
30980         install a signal handler for SIGBUS as well.
30981         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
30982
30983 2008-12-06  Bruno Haible  <bruno@clisp.org>
30984
30985         Advocacy documentation.
30986         * doc/gnulib-intro.texi (Benefits): New section.
30987         * doc/gnulib.texi: Update.
30988
30989 2008-12-06  Bruno Haible  <bruno@clisp.org>
30990
30991         Document the 'manywarnings' module.
30992         * doc/manywarnings.texi: New file.
30993         * doc/gnulib.texi: Include it.
30994
30995 2008-12-05  Eric Blake  <ebb9@byu.net>
30996
30997         tests: silence some gcc warnings
30998         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
30999         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
31000         type mismatches.
31001
31002 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31003             Bruno Haible  <bruno@clisp.org>
31004
31005         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
31006
31007 2008-11-29  Jim Meyering  <meyering@redhat.com>
31008
31009         unicodeio.c: mark unused parameters
31010         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
31011         (fallback_failure_callback): Likewise.
31012
31013         fts: fix a thinko
31014         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
31015         (set_stat_type): Return S_IF*-valued "type" directly.
31016         Prompted by James Youngman's spotting a related bug.
31017         Confirmed by further testing through find.
31018
31019         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
31020         * lib/fts.c (D_TYPE): Define.
31021         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
31022         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
31023         (s_ifmt_shift_bits): New function.
31024         (set_stat_type): New function.
31025         (fts_build): When not calling fts_stat, call set_stat_type
31026         to propagate dirent.d_type info to fts_read caller.
31027         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
31028         fts_statp->st_mode type information may be valid.
31029
31030 2008-11-28  Simon Josefsson  <simon@josefsson.org>
31031
31032         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
31033         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
31034         <sds@gnu.org>.
31035
31036 2008-11-20  Bruno Haible  <bruno@clisp.org>
31037
31038         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
31039         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
31040         INCLUDE_NEXT.
31041         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
31042         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
31043         * modules/math (Makefile.am): Substitute
31044         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
31045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31046
31047 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
31048             Bruno Haible  <bruno@clisp.org>
31049
31050         * lib/stdint.in.h: Define all type macros so that their expansion is
31051         a single typedef'ed token. Fixes a compilation failure in Boost which
31052         does "using ::int8_t;".
31053
31054 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31055
31056         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
31057         gl_MANYWARN_ALL_GCC.
31058         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
31059         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
31060         * modules/manywarnings: New file.
31061         * MODULES.html.sh: Mention manywarnings module.
31062
31063 2008-11-18  Bruno Haible  <bruno@clisp.org>
31064
31065         * doc/gnulib-tool.texi (Unit tests): New section.
31066
31067 2008-11-18  Simon Josefsson  <simon@josefsson.org>
31068
31069         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
31070         paths like 'lib/po/foo.po'.
31071
31072 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31073
31074         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
31075         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
31076
31077 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31078
31079         * m4/warnings.m4: Use CPPFLAGS to really check whether the
31080         parameter works.
31081
31082 2008-11-17  Simon Josefsson  <simon@josefsson.org>
31083
31084         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
31085
31086 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31087
31088         * modules/parse-duration-tests: New file.
31089         * tests/test-parse-duration.sh: New file.
31090         * tests/test-parse-duration.c: New file.
31091
31092         New module 'parse-duration'.
31093         * lib/parse-duration.h: New file.
31094         * lib/parse-duration.c: New file.
31095         * modules/parse-duration: New file.
31096
31097 2008-11-17  Bruno Haible  <bruno@clisp.org>
31098
31099         * tests/test-select-out.sh: Comment out the first pipe test.
31100         Reported by Simon Josefsson.
31101
31102 2008-11-17  Bruno Haible  <bruno@clisp.org>
31103
31104         * modules/getaddrinfo (Depends-on): Add servent, hostent.
31105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
31106         gl_HOSTENT.
31107
31108 2008-11-17  Bruno Haible  <bruno@clisp.org>
31109
31110         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
31111         -lnetwork and -lnet. Needed for Haiku and BeOS.
31112
31113 2008-11-16  Bruno Haible  <bruno@clisp.org>
31114
31115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
31116
31117 2008-11-16  Bruno Haible  <bruno@clisp.org>
31118
31119         Avoid test failure on Haiku.
31120         * tests/test-fsync.c: Include <errno.h>.
31121         (main): Don't require that fsync (0) fails.
31122
31123 2008-11-15  Bruno Haible  <bruno@clisp.org>
31124
31125         New module 'hostent'.
31126         * modules/hostent: New file.
31127         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
31128
31129 2008-11-15  Bruno Haible  <bruno@clisp.org>
31130
31131         New module 'servent'.
31132         * modules/servent: New file.
31133         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
31134
31135 2008-11-15  Bruno Haible  <bruno@clisp.org>
31136
31137         Avoid generating same test program with two different rules.
31138         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
31139         test-frexp to test-frexp-nolibm.
31140         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
31141         test-frexpl to test-frexpl-nolibm.
31142
31143 2008-11-15  Bruno Haible  <bruno@clisp.org>
31144
31145         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
31146         $(FREXPL_LIBM).
31147
31148 2008-11-15  Bruno Haible  <bruno@clisp.org>
31149
31150         * lib/netdb.in.h: Activate the definitions also when the system's
31151         <netdb.h> has 'struct addrinfo'.
31152         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
31153         EAI_OVERFLOW or AI_NUMERICSERV.
31154         * doc/posix-headers/netdb.texi: Document the problem.
31155
31156 2008-11-15  Bruno Haible  <bruno@clisp.org>
31157
31158         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
31159
31160         Make the 'sched' module work on platforms where <sched.h> exists but
31161         is incomplete (such as Haiku).
31162         * lib/sched.in.h; Include the system's <sched.h> if it exists.
31163         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
31164         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
31165         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
31166         HAVE_STRUCT_SCHED_PARAM.
31167         * modules/sched (Depends-on): Add include_next.
31168         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
31169         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
31170         * doc/posix-headers/sched.texi: Document the issue.
31171
31172 2008-11-13  Jim Meyering  <meyering@redhat.com>
31173
31174         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
31175         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
31176         test would fail due to the difference in the Report bugs to ...
31177         line.  The expected address is empty, "<>", while the actual
31178         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
31179
31180 2008-11-12  Bruno Haible  <bruno@clisp.org>
31181
31182         lstat: don't compile lstat.c on systems lacking lstat
31183         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
31184         which don't have lstat; this is handled by lib/sys_stat.in.h already.
31185         Reported by Daniel P. Berrange via Jim Meyering.
31186
31187 2008-11-12  Jim Meyering  <meyering@redhat.com>
31188
31189         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
31190
31191 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31192
31193         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
31194         instead.
31195
31196 2008-11-12  Bruno Haible  <bruno@clisp.org>
31197
31198         * lib/unicodeio.c: Include unistr.h.
31199         (utf8_wctomb): Remove function.
31200         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
31201
31202 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31203
31204         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
31205         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
31206         <bruno@clisp.org>.
31207         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
31208
31209 2008-11-12  Simon Josefsson  <simon@josefsson.org>
31210
31211         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
31212         * doc/gnulib.texi: Add section for warnings.
31213
31214 2008-11-11  Bruno Haible  <bruno@clisp.org>
31215
31216         * lib/sockets.h: Add a comment.
31217
31218 2008-11-11  Karl Berry  <karl@gnu.org>
31219
31220         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
31221
31222 2008-11-11  Eric Blake  <ebb9@byu.net>
31223
31224         fdl.texi: avoid git symlinks
31225         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
31226
31227 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31228
31229         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
31230
31231 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31232
31233         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
31234         (gl_WARN_ADD): Substitute $2 if literal.
31235
31236 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31237
31238         * m4/warning.m4: Remove.
31239
31240 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
31241
31242         * m4/warnings.m4: Almost complete rewrite. :-)
31243
31244 2008-11-10  Simon Josefsson  <simon@josefsson.org>
31245
31246         * modules/warnings: New module.
31247         * m4/warnings.m4: New file.
31248         * MODULES.html.sh: Mention warnings module.
31249         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
31250         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31251
31252 2008-11-10  Eric Blake  <ebb9@byu.net>
31253
31254         fdl.texi: make a symlink to the latest version
31255         * doc/standards.texi: Revert today's earlier change.
31256         * doc/fdl-1.2.texi: Rename from old fdl.texi...
31257         * doc/fdl.texi: ...and replace this with a symlink to the newer
31258         fdl-1.3.texi.
31259
31260 2008-11-10  Bruno Haible  <bruno@clisp.org>
31261
31262         * tests/test-select-fd.c (main): Accept the result file name as fourth
31263         argument.
31264         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
31265         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
31266
31267 2008-11-10  Bruno Haible  <bruno@clisp.org>
31268
31269         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
31270         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
31271         as autoconf-substituted macros.
31272         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
31273         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
31274         gl_NETDB_H_DEFAULTS. Set these variables.
31275         * modules/netdb (Makefile.am): Substitute these variables.
31276
31277 2008-11-10  Eric Blake  <ebb9@byu.net>
31278
31279         standards.texi: include correct file for FDL 1.3
31280         * doc/standards.texi (GNU Free Documentation License): Change
31281         include file to pull in FDL 1.3, not 1.2.
31282
31283         fdl.texi: revert accidental change to license
31284         * doc/fdl.texi: This is FDL 1.2, not 1.3.
31285
31286 2008-11-10  Bruno Haible  <bruno@clisp.org>
31287
31288         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
31289         cross-compiling guesses also when the native compile gives no result.
31290
31291 2008-11-10  Bruno Haible  <bruno@clisp.org>
31292
31293         * lib/spawni.c (__spawni): Force variable into the stack.
31294
31295 2008-11-10  Bruno Haible  <bruno@clisp.org>
31296
31297         Add support for Haiku.
31298         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
31299         glibc and BeOS, but also on Haiku.
31300         * lib/fpurge.c (fpurge): Likewise.
31301         * lib/freadable.c (freadable): Likewise.
31302         * lib/freadahead.c (freadahead): Likewise.
31303         * lib/freading.c (freading): Likewise.
31304         * lib/freadptr.c (freadptr): Likewise.
31305         * lib/freadseek.c (freadptrinc): Likewise.
31306         * lib/fseeko.c (rpl_fseeko): Likewise.
31307         * lib/fseterr.c (fseterr): Likewise.
31308         * lib/fwritable.c (fwritable): Likewise.
31309         * lib/fwriting.c (fwriting): Likewise.
31310         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
31311
31312 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31313
31314         * lib/config.charset: Treat Haiku like BeOS.
31315
31316 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
31317
31318         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
31319         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
31320
31321 2008-11-08  Bruno Haible  <bruno@clisp.org>
31322
31323         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
31324         AC_CACHE_CHECK.
31325
31326 2008-11-08  Bruno Haible  <bruno@clisp.org>
31327
31328         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
31329
31330 2008-11-08  Bruno Haible  <bruno@clisp.org>
31331
31332         * tests/test-select-fd.c: New file.
31333         * tests/test-select-in.sh: New file.
31334         * tests/test-select-out.sh: New file.
31335         * tests/test-select-stdin.c: New file.
31336         * modules/select-tests (Files): Add the new files.
31337         (Depends-on): Add gettimeofday.
31338         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
31339         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
31340         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
31341
31342 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
31343             Bruno Haible  <bruno@clisp.org>
31344
31345         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
31346
31347 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
31348
31349         * build-aux/pmccabe2html: Added support for C++ source files.
31350
31351 2008-11-05  Ben Pfaff  <blp@gnu.org>
31352
31353         Fix lib/close.c build on Windows.
31354         * modules/close (Files): Add lib/w32sock.h.
31355
31356 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
31357
31358         Accept Bison's NEWS format.
31359         * build-aux/announce-gen (print_news_deltas): Tweak
31360         $re_prefix.
31361
31362 2008-11-04  Bruno Haible  <bruno@clisp.org>
31363
31364         * modules/random_r (Maintainer): Add glibc.
31365
31366 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31367
31368         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
31369         by karl@freefriends.org (Karl Berry).
31370         * doc/alloca.texi: Likewise.
31371         * doc/c-ctype.texi: Likewise.
31372         * doc/c-strcase.texi: Likewise.
31373         * doc/c-strcaseeq.texi: Likewise.
31374         * doc/c-strcasestr.texi: Likewise.
31375         * doc/c-strstr.texi: Likewise.
31376         * doc/c-strtod.texi: Likewise.
31377         * doc/c-strtold.texi: Likewise.
31378         * doc/ctime.texi: Likewise.
31379         * doc/error.texi: Likewise.
31380         * doc/fdl.texi: Likewise.
31381         * doc/gcd.texi: Likewise.
31382         * doc/getdate.texi: Likewise.
31383         * doc/gnulib-intro.texi: Likewise.
31384         * doc/gnulib-tool.texi: Likewise.
31385         * doc/gnulib.texi: Likewise.
31386         * doc/inet_ntoa.texi: Likewise.
31387         * doc/maintain.texi: Likewise.
31388         * doc/make-stds.texi: Likewise.
31389         * doc/quote.texi: Likewise.
31390         * doc/regexprops-generic.texi: Likewise.
31391         * doc/standards.texi: Likewise.
31392         * doc/verify.texi: Likewise.
31393         * doc/visibility.texi: Likewise.
31394         * doc/gnulib.texi (GNU Free Documentation License): Include
31395         fdl-1.3.texi instead of fdl.texi.
31396
31397 2008-11-04  Simon Josefsson  <simon@josefsson.org>
31398
31399         * doc/fdl-1.3.texi: New file, from
31400         <http://www.gnu.org/licenses/fdl-1.3.texi>.
31401         * modules/fdl-1.3: Add.
31402         * MODULES.html.sh: Add fdl-1.3.
31403
31404 2008-11-03  Bruno Haible  <bruno@clisp.org>
31405
31406         Make determination of absolute name of header file work with AIX xlc.
31407         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
31408         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
31409         preprocessing.
31410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31411         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31412
31413 2008-11-03  Simon Josefsson  <simon@josefsson.org>
31414
31415         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
31416         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
31417         <ludo@gnu.org>.
31418
31419 2008-11-02  Bruno Haible  <bruno@clisp.org>
31420
31421         Mark 'strpbrk' obsolete.
31422         * modules/strpbrk (Status, Notice): New sections.
31423         * modules/strtok_r (Depends-on): Add strpbrk.
31424
31425 2008-11-02  Bruno Haible  <bruno@clisp.org>
31426
31427         Mark 'strdup' obsolete.
31428         * modules/strdup (Status, Notice): New sections.
31429         * modules/findprog (Depends-on): Add strdup.
31430         * modules/getaddrinfo (Depends-on): Likewise.
31431         * modules/localename (Depends-on): Likewise.
31432         * modules/relocatable-lib (Depends-on): Likewise.
31433         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
31434         * modules/relocatable-prog (Depends-on): Likewise.
31435         * modules/trim (Depends-on): Likewise.
31436         * modules/unictype/gen-ctype (Depends-on): Likewise.
31437         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31438
31439 2008-11-02  Bruno Haible  <bruno@clisp.org>
31440
31441         Mark 'strcspn' obsolete.
31442         * modules/strcspn (Status, Notice): New sections.
31443
31444 2008-11-02  Bruno Haible  <bruno@clisp.org>
31445
31446         Mark 'rmdir' obsolete.
31447         * modules/rmdir (Status, Notice): New sections.
31448         * modules/clean-temp (Depends-on): Add rmdir.
31449         * modules/openat (Depends-on): Likewise.
31450
31451 2008-11-02  Bruno Haible  <bruno@clisp.org>
31452
31453         Mark 'raise' obsolete.
31454         * modules/raise (Status, Notice): New sections.
31455         (Include): Specify <signal.h>.
31456         * modules/stdio (Depends-on): Add raise.
31457         * modules/write (Depends-on): Likewise.
31458
31459 2008-11-02  Bruno Haible  <bruno@clisp.org>
31460
31461         Mark 'memset' obsolete.
31462         * modules/memset (Status, Notice): New sections.
31463
31464 2008-11-02  Bruno Haible  <bruno@clisp.org>
31465
31466         Mark 'memmove' obsolete.
31467         * modules/memmove (Status, Notice): New sections.
31468         * modules/argp (Depends-on): Add memmove.
31469         * modules/argz (Depends-on): Likewise.
31470         * modules/canonicalize (Depends-on): Likewise.
31471         * modules/canonicalize-lgpl (Depends-on): Likewise.
31472         * modules/fts (Depends-on): Likewise.
31473         * modules/getcwd (Depends-on): Likewise.
31474         * modules/human (Depends-on): Likewise.
31475         * modules/regex (Depends-on): Likewise.
31476         * modules/striconveh (Depends-on): Likewise.
31477         * modules/trim (Depends-on): Likewise.
31478         * modules/unistr/u8-move (Depends-on): Likewise.
31479         * modules/unistr/u16-move (Depends-on): Likewise.
31480         * modules/unistr/u32-move (Depends-on): Likewise.
31481
31482 2008-11-02  Bruno Haible  <bruno@clisp.org>
31483
31484         Mark 'memcpy' obsolete.
31485         * modules/memcpy (Status, Notice): New sections.
31486
31487 2008-11-02  Bruno Haible  <bruno@clisp.org>
31488
31489         Mark 'memcmp' obsolete.
31490         * modules/memcmp (Status, Notice): New sections.
31491         * modules/argmatch (Depends-on): Add memchr.
31492         * modules/backupfile (Depends-on): Likewise.
31493         * modules/c-strcasestr (Depends-on): Likewise.
31494         * modules/crypto/des (Depends-on): Likewise.
31495         * modules/csharpcomp (Depends-on): Likewise.
31496         * modules/fnmatch (Depends-on): Likewise.
31497         * modules/git-merge-changelog (Depends-on): Likewise.
31498         * modules/isnand (Depends-on): Likewise.
31499         * modules/isnand-nolibm (Depends-on): Likewise.
31500         * modules/isnanf (Depends-on): Likewise.
31501         * modules/isnanf-nolibm (Depends-on): Likewise.
31502         * modules/isnanl (Depends-on): Likewise.
31503         * modules/isnanl-nolibm (Depends-on): Likewise.
31504         * modules/mbchar (Depends-on): Likewise.
31505         * modules/memcoll (Depends-on): Likewise.
31506         * modules/quotearg (Depends-on): Likewise.
31507         * modules/regex (Depends-on): Likewise.
31508         * modules/relocatable-prog (Depends-on): Likewise.
31509         * modules/same (Depends-on): Likewise.
31510         * modules/signbit (Depends-on): Likewise.
31511         * modules/strcasestr-simple (Depends-on): Likewise.
31512         * modules/unictype/gen-ctype (Depends-on): Likewise.
31513         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
31514         * modules/uniname/uniname (Depends-on): Likewise.
31515         * modules/unistr/u8-cmp (Depends-on): Likewise.
31516
31517 2008-11-02  Bruno Haible  <bruno@clisp.org>
31518
31519         Mark 'memchr' obsolete.
31520         * modules/memchr (Status, Notice): New sections.
31521         * modules/argp (Depends-on): Add memchr.
31522         * modules/base64 (Depends-on): Likewise.
31523         * modules/c-strcasestr (Depends-on): Likewise.
31524         * modules/chdir-long (Depends-on): Likewise.
31525         * modules/fnmatch (Depends-on): Likewise.
31526         * modules/getsubopt (Depends-on): Likewise.
31527         * modules/git-merge-changelog (Depends-on): Likewise.
31528         * modules/glob (Depends-on): Likewise.
31529         * modules/strcasestr-simple (Depends-on): Likewise.
31530         * modules/strnlen (Depends-on): Likewise.
31531
31532 2008-11-02  Bruno Haible  <bruno@clisp.org>
31533
31534         Mark 'atexit' obsolete.
31535         * modules/atexit (Status, Notice): New sections.
31536         * modules/chdir-long (Depends-on): Add atexit.
31537         * modules/wait-process (Depends-on): Likewise.
31538
31539 2008-11-02  Bruno Haible  <bruno@clisp.org>
31540
31541         * gnulib-tool: New option --with-obsolete.
31542         (func_usage): Document it.
31543         (func_modules_transitive_closure): Drop obsolete dependencies if
31544         incobsolete is not true.
31545         (func_import): Read and save the incobsolete variable to the cache.
31546
31547 2008-11-02  Bruno Haible  <bruno@clisp.org>
31548
31549         * modules/TEMPLATE-EXTENDED: New field 'Status'.
31550         * gnulib-tool: New option --extract-status.
31551         (func_usage): Document it.
31552         (sed_extract_prog): Recognize it.
31553         (func_get_status): New function.
31554
31555 2008-10-30  Simon Josefsson  <simon@josefsson.org>
31556
31557         * modules/sockets (License): Change from LGPL to LGPLv2+.
31558
31559 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31560
31561         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
31562
31563 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31564
31565         * MODULES.html.sh (Support for systems lacking POSIX:2001):
31566         Mention times and sys_times.
31567         * modules/sys_times, modules/sys_times-tests: New modules.
31568         * modules/times, modules/times-tests: Likewise
31569         * m4/sys_times_h.m4: New file.
31570         * lib/sys_times.in.h: Likewise
31571         * lib/times.c: Likewise.
31572         * tests/test-sys_times.c: Likewise.
31573         * tests/test-times.c: Likewise.
31574         * doc/posix-headers/sys_times.texi: Update.
31575         * doc/posix-functions/times.texi: Update.
31576
31577 2008-10-28  Jim Meyering  <meyering@redhat.com>
31578
31579         * modules/tempname (Depends-on): Add lstat.
31580
31581         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
31582
31583 2008-10-28  Simon Josefsson  <simon@josefsson.org>
31584
31585         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
31586         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
31587         using idiom used elsewhere in gnulib.
31588
31589 2008-10-27  Jim Meyering  <meyering@redhat.com>
31590
31591         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
31592
31593 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31594
31595         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
31596         TESTS_ENVIRONMENT, for shell scripts that needs to call built
31597         programs.
31598         * tests/test-argp-2.sh: Use $EXEEXT when needed.
31599
31600 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31601
31602         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
31603
31604 2008-10-27  Bruno Haible  <bruno@clisp.org>
31605
31606         * tests/test-lstat.c: Include <stdio.h>.
31607
31608 2008-10-27  Simon Josefsson  <simon@josefsson.org>
31609
31610         * modules/lstat-tests: New module.
31611         * tests/test-lstat.c: New file.
31612
31613 2008-10-26  Jim Meyering  <meyering@redhat.com>
31614
31615         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
31616
31617 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31618             Bruno Haible  <bruno@clisp.org>
31619
31620         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
31621         * modules/configmake (Include): Add a note that the include must come
31622         after all system headers.
31623         * lib/javaversion.c: Include configmake.h after all other includes.
31624
31625 2008-10-26  Bruno Haible  <bruno@clisp.org>
31626
31627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
31628         HAVE_STRUCT_RANDOM_DATA to 1.
31629         (gl_STDLIB_H): Simplify.
31630
31631 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31632
31633         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
31634         substitute HAVE_STRUCT_RANDOM_DATA.
31635         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
31636         random_data.
31637         * modules/stdlib (Makefile.am): Substitute
31638         HAVE_STRUCT_RANDOM_DATA.
31639
31640 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31641
31642         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
31643         * doc/gnulib-intro.texi (Copyright): Likewise.
31644
31645 2008-10-26  Simon Josefsson  <simon@josefsson.org>
31646
31647         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
31648         findings.
31649
31650 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
31651             Bruno Haible  <bruno@clisp.org>
31652
31653         * lib/unistd.in.h: Include <winsock2.h>.
31654         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
31655         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
31656         Provide dummy declarations.
31657         (gethostname): Override.
31658         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
31659         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
31660         gl_PREREQ_SYS_H_WINSOCK2.
31661         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
31662         * doc/posix-functions/gethostname.texi: More details.
31663
31664 2008-10-25  Bruno Haible  <bruno@clisp.org>
31665
31666         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31667         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
31668         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
31669
31670         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
31671         here ...
31672         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
31673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
31674         gl_UNISTD_H_DEFAULTS.
31675
31676 2008-10-25  Eric Blake  <ebb9@byu.net>
31677
31678         signbit: avoid spurious compiler failure
31679         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
31680         declarations inside function.
31681
31682 2008-10-24  Simon Josefsson  <simon@josefsson.org>
31683             Bruno Haible  <bruno@clisp.org>
31684
31685         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
31686         * modules/random_r (Depends-on): Add stdint.
31687
31688 2008-10-24  Bruno Haible  <bruno@clisp.org>
31689
31690         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
31691         Eggert.
31692         * modules/strerror (License): Likewise.
31693
31694 2008-10-24  Jim Meyering  <meyering@redhat.com>
31695
31696         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
31697         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
31698
31699 2008-10-24  Eric Blake  <ebb9@byu.net>
31700
31701         getgroups: fix compilation when getgroups is available
31702         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
31703         but with <config.h> override of getgroups disabled.
31704
31705 2008-10-24  Simon Josefsson  <simon@josefsson.org>
31706
31707         * doc/gnulib.texi (Header files): Add note about C++ problems.
31708         Explained by Bruno Haible <bruno@clisp.org>.
31709
31710 2008-10-23  Bruno Haible  <bruno@clisp.org>
31711
31712         Define a dummy SA_NODEFER macro on Interix.
31713         * lib/signal.in.h (SA_NODEFER): Define fallback.
31714         Reported by Aleksey Cheusov <cheusov@tut.by> via
31715         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
31716
31717 2008-10-23  Bruno Haible  <bruno@clisp.org>
31718
31719         * modules/freadahead (License): Change to LGPLv2+.
31720         Suggested by Simon Josefsson.
31721
31722 2008-10-23  Jim Meyering  <meyering@redhat.com>
31723
31724         random_r: new module
31725         * modules/random_r: New file.
31726         * m4/random_r.m4: New file.
31727         * lib/random_r.c: New file, from glibc.
31728         * modules/random_r-tests: New file.
31729         * tests/test-random_r.c: New file.
31730         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
31731          Declare.
31732         (RAND_MAX): Define.
31733         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
31734         * modules/stdlib: Substitute them, too.
31735         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
31736         * doc/glibc-functions/initstate_r.texi: Mention the new module.
31737         * doc/glibc-functions/random_r.texi: Likewise.
31738         * doc/glibc-functions/setstate_r.texi: Likewise.
31739         * doc/glibc-functions/srandom_r.texi: Likewise.
31740         * config/srclist.txt: Mention it.
31741
31742 2008-10-23  David Lutterkort  <lutter@redhat.com>
31743
31744         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
31745         link requirement
31746
31747 2008-10-23  Jim Meyering  <meyering@redhat.com>
31748
31749         selinux-h: mark parameters of stub functions as intentionally unused
31750         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
31751         * lib/se-context.in.h: Likewise.
31752
31753 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31754
31755         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
31756
31757 2008-10-22  Simon Josefsson  <simon@josefsson.org>
31758
31759         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
31760
31761 2008-10-22  Eric Blake  <ebb9@byu.net>
31762
31763         glthread/thread: avoid compiler warning
31764         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
31765         Add unreachable abort to silence compiler.
31766
31767 2008-10-22  Eric Blake  <ebb9@byu.net>
31768
31769         netdb: also supply struct addrinfo for cygwin 1.5.x
31770         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
31771         older cygwin.
31772         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
31773         cygwin.
31774         * doc/posix-headers/netdb.texi (netdb.h): Document this.
31775
31776 2008-10-22  Bruno Haible  <bruno@clisp.org>
31777
31778         * users.txt: Update entry about pspp.
31779
31780 2008-10-21  Bruno Haible  <bruno@clisp.org>
31781
31782         Simplification.
31783         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
31784         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
31785
31786         Simplification.
31787         * lib/ioctl.c (ioctl): Don't undefine.
31788         * lib/socket.c (socket): Don't undefine.
31789
31790         Remove unused module indicator macros.
31791         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
31792         GNULIB_$1 as a C macro.
31793
31794         * doc/posix-functions/close.texi: Undo last change.
31795         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
31796         Windows platforms.
31797
31798 2008-10-21  Bruno Haible  <bruno@clisp.org>
31799
31800         Add gethostname() declaration to <unistd.h>.
31801         * lib/unistd.in.h (gethostname): New declaration.
31802         * lib/gethostname.c: Include <unistd.h>.
31803         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
31804         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
31805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
31806         and HAVE_GETHOSTNAME.
31807         * modules/gethostname (Depends-on): Add unistd.
31808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31809         (Include): Specify <unistd.h>.
31810         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
31811         HAVE_GETHOSTNAME.
31812         * tests/test-gethostname.c: Include <unistd.h> first.
31813
31814 2008-10-21  Bruno Haible  <bruno@clisp.org>
31815
31816         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
31817         * modules/select-tests (Depends-on): Likewise.
31818         Reported by Simon Josefsson.
31819
31820 2008-10-21  Simon Josefsson  <simon@josefsson.org>
31821
31822         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
31823         * lib/accept.c: New file, based on winsock.c.
31824         * lib/bind.c: New file, based on winsock.c.
31825         * lib/connect.c: New file, based on winsock.c.
31826         * lib/getpeername.c: New file, based on winsock.c.
31827         * lib/getsockname.c: New file, based on winsock.c.
31828         * lib/getsockopt.c: New file, based on winsock.c.
31829         * lib/ioctl.c: New file, based on winsock.c.
31830         * lib/listen.c: New file, based on winsock.c.
31831         * lib/recv.c: New file, based on winsock.c.
31832         * lib/recvfrom.c: New file, based on winsock.c.
31833         * lib/send.c: New file, based on winsock.c.
31834         * lib/sendto.c: New file, based on winsock.c.
31835         * lib/setsockopt.c: New file, based on winsock.c.
31836         * lib/shutdown.c: New file, based on winsock.c.
31837         * lib/socket.c: New file, based on winsock.c.
31838         * lib/w32sock.h: New file, based on winsock.c.
31839         * lib/winsock.c: Remove file.
31840         * modules/accept: Likewise.
31841         * modules/bind: Likewise.
31842         * modules/connect: Likewise.
31843         * modules/getpeername: Likewise.
31844         * modules/getsockname: Likewise.
31845         * modules/getsockopt: Likewise.
31846         * modules/ioctl: Likewise.
31847         * modules/listen: Likewise.
31848         * modules/recv: Likewise.
31849         * modules/recvfrom: Likewise.
31850         * modules/send: Likewise.
31851         * modules/sendto: Likewise.
31852         * modules/setsockopt: Likewise.
31853         * modules/shutdown: Likewise.
31854         * modules/socket: Use socket.c instead of winsock.c.
31855         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
31856         * doc/posix-functions/accept.texi: Doc fix.
31857         * doc/posix-functions/bind.texi: Doc fix.
31858         * doc/posix-functions/close.texi: Doc fix.
31859         * doc/posix-functions/connect.texi: Doc fix.
31860         * doc/posix-functions/getpeername.texi: Doc fix.
31861         * doc/posix-functions/getsockname.texi: Doc fix.
31862         * doc/posix-functions/getsockopt.texi: Doc fix.
31863         * doc/posix-functions/ioctl.texi: Doc fix.
31864         * doc/posix-functions/listen.texi: Doc fix.
31865         * doc/posix-functions/recv.texi: Doc fix.
31866         * doc/posix-functions/recvfrom.texi: Doc fix.
31867         * doc/posix-functions/send.texi: Doc fix.
31868         * doc/posix-functions/sendto.texi: Doc fix.
31869         * doc/posix-functions/setsockopt.texi: Doc fix.
31870         * doc/posix-functions/shutdown.texi: Doc fix.
31871         * doc/posix-functions/socket.texi: Doc fix.
31872
31873 2008-10-20  Bruno Haible  <bruno@clisp.org>
31874
31875         Take into account the role of SIGABRT_COMPAT on Windows 2008.
31876         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
31877         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
31878         as an alias for SIGABRT.
31879         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
31880         (sigaction): Map it to SIGABRT.
31881         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
31882
31883 2008-10-20  Bruno Haible  <bruno@clisp.org>
31884
31885         * lib/fts.c: Don't include lstat.h.
31886         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
31887
31888         Move the lstat() declaration to <sys/stat.h>.
31889         * lib/lstat.h: Remove file.
31890         * lib/sys_stat.in.h: Add special invocation convention.
31891         (lstat): New declaration.
31892         * lib/lstat.c (orig_lstat): New function.
31893         (rpl_lstat): Use orig_lstat instead of lstat.
31894         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
31895         AC_C_INLINE. Set REPLACE_LSTAT.
31896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
31897         and REPLACE_LSTAT.
31898         * modules/lstat (Files): Remove lib/lstat.h.
31899         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31900         (Include): Specify <sys/stat.h> instead of lstat.h.
31901         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
31902         REPLACE_LSTAT.
31903         * NEWS: Mention the change.
31904
31905 2008-10-20  Bruno Haible  <bruno@clisp.org>
31906
31907         * modules/posix_spawn-tests: New file.
31908         * tests/test-posix_spawn3.c: New file.
31909
31910 2008-10-20  Bruno Haible  <bruno@clisp.org>
31911
31912         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
31913         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31914         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
31915         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
31916         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
31917
31918 2008-10-20  Bruno Haible  <bruno@clisp.org>
31919
31920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
31921         of posix_spawn on AIX 5.3.
31922
31923 2008-10-20  Bruno Haible  <bruno@clisp.org>
31924
31925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
31926
31927 2008-10-20  Bruno Haible  <bruno@clisp.org>
31928
31929         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
31930         of AC_LANG_PROGRAM.
31931
31932 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31933
31934         * lib/netdb.in.h: Don't define GNU specific constants until they
31935         are supported or needed.  Reported by Bruno Haible
31936         <bruno@clisp.org>.
31937
31938 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31939
31940         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
31941
31942 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31943
31944         * lib/getaddrinfo.h: Remove file.
31945         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
31946         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
31947         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
31948         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
31949         * modules/netdb: Substitute GNULIB_GETADDRINFO.
31950         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
31951         * tests/test-getaddrinfo.c: Likewise.
31952         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
31953         * NEWS: Mention change.
31954
31955 2008-10-19  Bruno Haible  <bruno@clisp.org>
31956
31957         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
31958
31959 2008-10-19  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/wait-process.c: Include simply <sys/wait.h>.
31962         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
31963         WIFSTOPPED): Remove fallback definitions.
31964         * modules/wait-process (Depends-on): Add sys_wait.
31965
31966         New module 'sys_wait'.
31967         * modules/sys_wait: New file.
31968         * lib/sys_wait.in.h: New file, partially copied from
31969         lib/wait-process.c.
31970         * m4/sys_wait_h.m4: New file.
31971         * doc/posix-headers/sys_wait.texi: Mention the new module.
31972
31973 2008-10-19  Bruno Haible  <bruno@clisp.org>
31974
31975         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
31976
31977 2008-10-19  Bruno Haible  <bruno@clisp.org>
31978
31979         Assume that waitpid() fills an 'int' status, not a 'union wait'.
31980         * lib/wait-process.c (WAIT_T): Remove type.
31981         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
31982         (wait_subprocess): Update.
31983
31984 2008-10-19  Bruno Haible  <bruno@clisp.org>
31985
31986         New module 'atoll'.
31987         * modules/atoll: New file.
31988         * lib/stdlib.in.h (atoll): New declaration.
31989         * lib/atoll.c: New file, from glibc with modifications.
31990         * m4/atoll.m4: New file.
31991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
31992         HAVE_ATOLL.
31993         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31994         * doc/posix-functions/atoll.texi: Mention the new module.
31995
31996 2008-10-19  Bruno Haible  <bruno@clisp.org>
31997
31998         Add strtoull() declaration to <stdlib.h>.
31999         * lib/stdlib.in.h (strtoull): New declaration.
32000         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32001         Set HAVE_STRTOULL.
32002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
32003         HAVE_STRTOULL.
32004         * modules/strtoull (Depends-on): Add stdlib.
32005         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32006         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
32007         HAVE_STRTOULL.
32008
32009 2008-10-19  Bruno Haible  <bruno@clisp.org>
32010
32011         Add strtoll() declaration to <stdlib.h>.
32012         * lib/stdlib.in.h (strtoll): New declaration.
32013         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
32014         Set HAVE_STRTOLL.
32015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
32016         HAVE_STRTOLL.
32017         * modules/strtoll (Depends-on): Add stdlib.
32018         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32019         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
32020
32021 2008-10-19  Bruno Haible  <bruno@clisp.org>
32022
32023         * modules/bcopy (Depends-on): Add strings.
32024         (Include): Specify <strings.h>.
32025
32026 2008-10-19  Bruno Haible  <bruno@clisp.org>
32027
32028         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
32029
32030 2008-10-19  Bruno Haible  <bruno@clisp.org>
32031
32032         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
32033         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
32034         mingw.
32035
32036 2008-10-19  Bruno Haible  <bruno@clisp.org>
32037
32038         * lib/atanl.c: Don't include isnanl.h.
32039         * lib/cosl.c: Likewise.
32040         * lib/ldexpl.c: Likewise.
32041         * lib/logl.c: Likewise.
32042         * lib/sinl.c: Likewise.
32043         * lib/sqrtl.c: Likewise.
32044         * lib/tanl.c: Likewise.
32045
32046         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
32047         * lib/isnanf.h: Remove file.
32048         * lib/isnand.h: Remove file.
32049         * lib/isnanl.h: Remove file.
32050         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
32051         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
32052         macros.
32053         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
32054         HAVE_ISNANF, don't define it as a C macro.
32055         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
32056         HAVE_ISNAND, don't define it as a C macro.
32057         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
32058         HAVE_ISNANL, don't define it as a C macro.
32059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
32060         HAVE_ISNAN[FDL].
32061         * modules/isnanf (Files): Remove lib/isnanf.h.
32062         (Depends-on): Add math.
32063         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32064         (Include): Specify <math.h> instead of isnanf.h.
32065         * modules/isnand (Files): Remove lib/isnand.h.
32066         (Depends-on): Add math.
32067         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32068         (Include): Specify <math.h> instead of isnand.h.
32069         * modules/isnanl (Files): Remove lib/isnanl.h.
32070         (Depends-on): Add math.
32071         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
32072         (Include): Specify <math.h> instead of isnanl.h.
32073         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
32074         HAVE_ISNAN[FDL].
32075         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
32076         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
32077         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
32078         * NEWS: Mention the change.
32079
32080 2008-10-18  Bruno Haible  <bruno@clisp.org>
32081
32082         Add getusershell(), setusershell(), endusershell() declarations to
32083         <unistd.h>.
32084         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
32085         declarations.
32086         * lib/getusershell.c: Include unistd.h.
32087         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
32088         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32089         HAVE_GETUSERSHELL.
32090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
32091         and HAVE_GETUSERSHELL.
32092         * modules/getusershell (Depends-on): Add unistd, extensions.
32093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32094         (Include): Specify <unistd.h>.
32095         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
32096         HAVE_GETUSERSHELL.
32097
32098 2008-10-18  Bruno Haible  <bruno@clisp.org>
32099
32100         Add a getloadavg() declaration to <stdlib.h>.
32101         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
32102         getloadavg declaration.
32103         (getloadavg): New declaration.
32104         * lib/getloadavg.c: Include <stdlib.h> first.
32105         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
32106         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
32107         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
32108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
32109         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32110         * modules/getloadavg (Depends-on): Add stdlib, extensions.
32111         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32112         (Include): Specify <stdlib.h>.
32113         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
32114         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
32115
32116 2008-10-18  Bruno Haible  <bruno@clisp.org>
32117
32118         * lib/dirchownmod.c: Don't include lchmod.h.
32119
32120         Move the lchmod() declaration to <sys/stat.h>.
32121         * lib/lchmod.h: Remove file.
32122         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
32123         (lchmod): New declaration, moved here from lib/lchown.h.
32124         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
32125         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
32126         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
32127         and HAVE_LCHMOD.
32128         * modules/lchmod (Files): Remove lib/lchmod.h.
32129         (Depends-on): Add sys_stat, extensions.
32130         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
32131         (Include): Specify <sys/stat.h> instead of lchmod.h.
32132         * modules/sys_stat (Depends-on): Add link-warning.
32133         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
32134         definition of GL_LINK_WARNING.
32135         * NEWS: Mention the change.
32136
32137 2008-10-18  Bruno Haible  <bruno@clisp.org>
32138
32139         * lib/fchdir.c: Don't include dirfd.h.
32140         * lib/fts.c: Likewise.
32141         * lib/getcwd.c: Likewise.
32142         * lib/glob.c: Likewise.
32143
32144         Move the dirfd() declaration to <dirent.h>.
32145         * lib/dirfd.h: Remove file.
32146         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
32147         (dirfd): New declaration.
32148         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
32149         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
32150         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
32151         HAVE_DECL_DIRFD.
32152         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
32153         HAVE_DECL_DIRFD.
32154         * modules/dirfd (Files): Remove lib/dirfd.h.
32155         (Depends-on): Add dirent, extensions.
32156         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
32157         (Include): Specify <dirent.h> instead of dirfd.h.
32158         * modules/dirent (Depends-on): Add link-warning.
32159         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
32160         definition of GL_LINK_WARNING.
32161         * NEWS: Mention the change.
32162
32163 2008-10-18  Bruno Haible  <bruno@clisp.org>
32164
32165         Move the euidaccess() declaration to <unistd.h>.
32166         * lib/euidaccess.h: Remove file.
32167         * lib/unistd.in.h (euidaccess): New declaration.
32168         * lib/euidaccess.c: Don't include euidaccess.h.
32169         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
32170         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
32171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
32172         and HAVE_EUIDACCESS.
32173         * modules/euidaccess (Files): Remove lib/euidaccess.h.
32174         (Depends-on): Add unistd.
32175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32176         (Include): Specify <unistd.h> instead of euidaccess.h.
32177         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
32178         HAVE_EUIDACCESS.
32179         * NEWS: Mention the change.
32180
32181 2008-10-18  Bruno Haible  <bruno@clisp.org>
32182
32183         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
32184
32185         Move the getdomainname() declaration to <unistd.h>.
32186         * lib/getdomainname.h: Remove file.
32187         * lib/unistd.in.h (getdomainname): New declaration.
32188         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
32189         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
32190         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
32191         HAVE_GETDOMAINNAME.
32192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32193         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
32194         * modules/getdomainname (Files): Remove lib/getdomainname.h.
32195         (Depends-on): Add unistd, extensions.
32196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32197         (Includes): Specify <unistd.h> instead of getdomainname.h.
32198         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
32199         HAVE_GETDOMAINNAME.
32200         * NEWS: Mention the change.
32201
32202 2008-10-18  Bruno Haible  <bruno@clisp.org>
32203
32204         * modules/dirent: New file.
32205         * m4/dirent_h.m4: New file.
32206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
32207         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
32208         * modules/fchdir (Files): Remove lib/dirent.in.h.
32209         (Depends-on): Add dirent.
32210         (Makefile.am): Move rules to modules/dirent.
32211         * doc/posix-headers/dirent.texi: Mention the new module.
32212
32213 2008-10-18  Bruno Haible  <bruno@clisp.org>
32214
32215         Avoid -Wunused-parameter warnings in public gnulib header files.
32216         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
32217         macro.
32218         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
32219
32220 2008-10-18  Bruno Haible  <bruno@clisp.org>
32221
32222         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
32223         * doc/glibc-functions/error.texi: Mention the module 'error'.
32224         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
32225         * doc/glibc-functions/getdomainname.texi: Mention the module
32226         'getdomainname'.
32227         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
32228         * doc/glibc-functions/getpagesize.texi: Mention the module
32229         'getpagesize'.
32230         * doc/glibc-functions/getusershell.texi: Mention the module
32231         'getusershell'.
32232         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
32233         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
32234         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
32235         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
32236         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
32237         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
32238         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
32239         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
32240         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
32241         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
32242         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
32243         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
32244         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
32245         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
32246
32247 2008-10-17  Bruno Haible  <bruno@clisp.org>
32248
32249         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
32250         HP-UX and IRIX, use -0.0L.
32251         * tests/test-ceill.c (minus_zero): Likewise.
32252         * tests/test-floorl.c (minus_zero): Likewise.
32253         * tests/test-frexpl.c (minus_zero): Likewise.
32254         * tests/test-isnan.c (minus_zerol): Likewise.
32255         * tests/test-isnanl.h (minus_zero): Likewise.
32256         * tests/test-ldexpl.c (minus_zero): Likewise.
32257         * tests/test-roundl.c (minus_zero): Likewise.
32258         * tests/test-signbit.c (minus_zerol): Likewise.
32259         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32260         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32261         * tests/test-truncl.c (minus_zero): Likewise.
32262         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32263         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32264         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
32265         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32266
32267 2008-10-17  Bruno Haible  <bruno@clisp.org>
32268
32269         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
32270         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
32271         that it gets activated only for gcc >= 3.0.
32272         * lib/dirent.in.h: Likewise.
32273         * lib/errno.in.h: Likewise.
32274         * lib/fcntl.in.h: Likewise.
32275         * lib/float.in.h: Likewise.
32276         * lib/iconv.in.h: Likewise.
32277         * lib/inttypes.in.h: Likewise.
32278         * lib/locale.in.h: Likewise.
32279         * lib/math.in.h: Likewise.
32280         * lib/netdb.in.h: Likewise.
32281         * lib/netinet_in.in.h: Likewise.
32282         * lib/search.in.h: Likewise.
32283         * lib/signal.in.h: Likewise.
32284         * lib/spawn.in.h: Likewise.
32285         * lib/stdarg.in.h: Likewise.
32286         * lib/stdint.in.h: Likewise.
32287         * lib/stdio.in.h: Likewise.
32288         * lib/stdlib.in.h: Likewise.
32289         * lib/string.in.h: Likewise.
32290         * lib/strings.in.h: Likewise.
32291         * lib/sys_file.in.h: Likewise.
32292         * lib/sys_ioctl.in.h: Likewise.
32293         * lib/sys_select.in.h: Likewise.
32294         * lib/sys_socket.in.h: Likewise.
32295         * lib/sys_stat.in.h: Likewise.
32296         * lib/sys_time.in.h: Likewise.
32297         * lib/sysexits.in.h: Likewise.
32298         * lib/time.in.h: Likewise.
32299         * lib/unistd.in.h: Likewise.
32300         * lib/wchar.in.h: Likewise.
32301         * lib/wctype.in.h: Likewise.
32302         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32303
32304 2008-10-17  Jim Meyering  <meyering@redhat.com>
32305
32306         ignore-value: don't depend on inline module
32307         * modules/ignore-value (Depends-on): Remove 'inline'.
32308         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
32309         Suggestion from Bruno Haible.
32310
32311 2008-10-17  Bruno Haible  <bruno@clisp.org>
32312
32313         New implementation of condition variables for Win32.
32314         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
32315         (gl_linked_waitqueue_t): New type.
32316         (gl_cond_t): Use it.
32317         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
32318         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
32319         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
32320         (glthread_cond_init_func, glthread_cond_wait_func,
32321         glthread_cond_timedwait_func, glthread_cond_signal_func,
32322         glthread_cond_broadcast_func, glthread_cond_destroy_func):
32323         Reimplemented on the basis of gl_linked_waitqueue_t.
32324         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
32325         gl_waitqueue_t.
32326         (gl_rwlock_t): Update.
32327         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
32328
32329 2008-10-17  Simon Josefsson  <simon@josefsson.org>
32330
32331         * modules/recvfrom (Depends-on): Add dependency on getpeername.
32332         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32333
32334 2008-10-17  Jim Meyering  <meyering@redhat.com>
32335
32336         ignore-value: new module
32337         * modules/ignore-value: New file.
32338         * lib/ignore-value.h: New file.
32339         * MODULES.html.sh (Compiler warning management): New section,
32340         just for this module.  More to come.
32341
32342 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32343
32344         open-safer.c: avoid 'signed and unsigned in conditional...' warning
32345         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
32346         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
32347
32348 2008-10-16  Jim Meyering  <meyering@redhat.com>
32349
32350         openat-die.c: avoid 'no previous prototype' warning
32351         * lib/openat-die.c: Include "openat.h".
32352         Reported by Reuben Thomas <rrt@sc3d.org>.
32353
32354 2008-10-16  Simon Josefsson  <simon@josefsson.org>
32355
32356         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
32357         * lib/netdb.in.h: Fix typo.
32358         Reported by Bruno Haible  <bruno@clisp.org>
32359
32360         * lib/netdb.in.h: Include sys/socket.h for platforms without
32361         netdb.h, to get structures like hostent on MinGW.
32362         * modules/netdb (Depends-on): Add sys_socket.
32363
32364 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32365
32366         * modules/netdb, modules/netdb-tests: New file.
32367         * m4/netdb_h.m4: New file.
32368         * lib/netdb.in.h: Add, currently just an empty file pending
32369         definitions.
32370         * tests/test-netdb.c: New file.
32371         * doc/posix-headers/netdb.texi: Mention that we replace it if
32372         needed.
32373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32374         netdb.
32375
32376 2008-10-15  Simon Josefsson  <simon@josefsson.org>
32377
32378         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
32379         with code.
32380
32381 2008-10-13  Bruno Haible  <bruno@clisp.org>
32382
32383         * lib/glthread/cond.c (glthread_cond_wait_func,
32384         glthread_cond_timedwait_func): Add a comment.
32385
32386 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32387
32388         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
32389         * tests/test-select.c: Likewise,
32390
32391 2008-10-13  Bruno Haible  <bruno@clisp.org>
32392
32393         * lib/glthread/cond.c (glthread_cond_wait_func,
32394         glthread_cond_timedwait_func): Fix variable name.
32395         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32396
32397 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
32398
32399         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
32400         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
32401         struct sockaddr.sa_len.
32402         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
32403
32404 2008-10-13  Simon Josefsson  <simon@josefsson.org>
32405
32406         * build-aux/pmccabe2html: Add css and css_url parameters.
32407
32408 2008-10-12  Bruno Haible  <bruno@clisp.org>
32409
32410         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
32411         calling aclx_get.
32412         Reported by Rainer Tammer <tammer@tammer.net>.
32413
32414 2008-10-12  Bruno Haible  <bruno@clisp.org>
32415
32416         Use msvcrt aware primitives for creation/termination of Win32 threads.
32417         * lib/glthread/thread.c: Include <process.h>.
32418         (glthread_create_func): Use _beginthreadex instead of CreateThread.
32419         (wrapper_func): Update signature.
32420         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
32421
32422 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32423             Bruno Haible  <bruno@clisp.org>
32424
32425         Provide a Win32 implementation of the 'cond' module.
32426         * lib/glthread/cond.h [USE_WIN32]: New implementation.
32427         * lib/glthread/cond.c (glthread_cond_init_func,
32428         glthread_cond_wait_func, glthread_cond_timedwait_func,
32429         glthread_cond_signal_func, glthread_cond_broadcast_func,
32430         glthread_cond_destroy_func) [USE_WIN32]: New functions.
32431         * modules/cond (Dependencies): Add gettimeofday.
32432
32433 2008-10-11  Bruno Haible  <bruno@clisp.org>
32434
32435         Make sleep work on older versions of mingw.
32436         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
32437         only whether it exists.
32438         * doc/posix-functions/sleep.texi: Mention the problem with older
32439         versions of mingw.
32440
32441 2008-10-11  Bruno Haible  <bruno@clisp.org>
32442
32443         New module 'shutdown'.
32444         * modules/shutdown: New file.
32445         * lib/sys_socket.in.h (shutdown): New declaration.
32446         * lib/winsock.c (shutdown): New function.
32447         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32448         GNULIB_SHUTDOWN.
32449         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
32450         * doc/posix-functions/shutdown.texi: Document the new module.
32451
32452 2008-10-11  Jim Meyering  <meyering@redhat.com>
32453
32454         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
32455
32456 2008-10-11  Bruno Haible  <bruno@clisp.org>
32457
32458         New module 'fclose'.
32459         * modules/fclose: New file.
32460         * lib/stdio.in.h (fclose): New declaration.
32461         * lib/fclose.c: New file.
32462         * m4/fclose.m4: New file.
32463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
32464         REPLACE_FCLOSE.
32465         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
32466         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
32467         REPLACE_FCLOSE.
32468         * modules/close (Depends-on): fclose.
32469         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
32470
32471 2008-10-11  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
32474         set errno and don't call _close.
32475
32476 2008-10-10  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
32479         ACL, not afterwards. Fixes test failure on Cygwin.
32480
32481 2008-10-09  Ben Pfaff  <blp@gnu.org>
32482
32483         * build-aux/announce-gen: Fix gnulib version related part of usage
32484         message.  Die with a useful error message if no tarballs are
32485         found.
32486
32487 2008-10-10  Jim Meyering  <meyering@redhat.com>
32488
32489         bootstrap: use git's --depth=N option only if it's supported
32490         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
32491         recognize the --depth option.  Reported by Pádraig Brady.
32492
32493 2008-10-09  Bruno Haible  <bruno@clisp.org>
32494
32495         New module 'ioctl'.
32496         * modules/ioctl: New file.
32497         * lib/sys_socket.in.h (ioctl): Remove declaration.
32498         * lib/winsock.c: Include <sys/ioctl.h>.
32499         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
32500         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
32501         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
32502         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
32503         * doc/posix-functions/ioctl.texi: Mention the new module.
32504
32505 2008-10-09  Bruno Haible  <bruno@clisp.org>
32506
32507         New module 'sys_ioctl'.
32508         * lib/sys_ioctl.in.h: New file.
32509         * m4/sys_ioctl_h.m4: New file.
32510         * modules/sys_ioctl: New file.
32511         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
32512
32513 2008-10-09  Bruno Haible  <bruno@clisp.org>
32514
32515         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
32516         * lib/winsock.c: Include <stdarg.h>.
32517         (rpl_ioctl): Change to second argument 'int' and then varargs.
32518
32519 2008-10-09  Bruno Haible  <bruno@clisp.org>
32520
32521         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
32522         when the sys_socket module is present and the system has <winsock2.h>.
32523
32524 2008-10-09  Bruno Haible  <bruno@clisp.org>
32525
32526         * doc/posix-functions/close.texi: Mention module 'close' instead of
32527         module 'sys_socket'.
32528
32529 2008-10-09  Bruno Haible  <bruno@clisp.org>
32530
32531         * doc/glibc-headers/sys_ioctl.texi: New file.
32532         * doc/gnulib.texi: Include it.
32533
32534 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32535             Bruno Haible  <bruno@clisp.org>
32536
32537         Combine the two replacements of 'close'.
32538         * lib/sys_socket.in.h (close): Define to a reminder to include
32539         <unistd.h>.
32540         (_gl_close_fd_maybe_socket): New declaration.
32541         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
32542         * lib/winsock.c (close): Remove undefinition.
32543         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
32544         needed for the gnulib module 'close'.
32545         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
32546         define to an error symbol or to a warning, if suitable.
32547         * lib/close.c: Include <sys/socket.h>.
32548         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
32549         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
32550         UNISTD_H_HAVE_WINSOCK2_H.
32551         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
32552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32553         UNISTD_H_HAVE_WINSOCK2_H.
32554         * modules/sys_socket (Files): Add m4/unistd_h.m4.
32555         (configure.ac): Set a module indicator.
32556         (Makefile.am): Substitute GNULIB_CLOSE.
32557         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
32558         * modules/poll-tests (Depends-on): Add close.
32559         * modules/select-tests (Depends-on): Likewise.
32560
32561 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32562             Bruno Haible  <bruno@clisp.org>
32563
32564         New module 'close'.
32565         * modules/close: New file.
32566         * lib/unistd.in.h (close): Move declaration out of the
32567         FCHDIR_REPLACEMENT scope.
32568         (_gl_unregister_fd): New declaration.
32569         * lib/close.c: New file.
32570         * lib/fchdir.c (rpl_close): Remove function.
32571         * m4/close.m4: New file.
32572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32573         close.
32574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
32575         REPLACE_CLOSE.
32576         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
32577         REPLACE_CLOSE.
32578         * modules/fchdir (Depends-on): Add close.
32579
32580 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32581             Bruno Haible  <bruno@clisp.org>
32582
32583         * lib/fcntl.in.h (open): Simplify conditionals.
32584         (_gl_register_fd): New declaration.
32585         * lib/fchdir.c (rpl_open): Remove function.
32586         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
32587         also.
32588         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
32589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
32590         open.
32591
32592 2008-10-09  Jim Meyering  <meyering@redhat.com>
32593
32594         GNUmakefile: use the more name-space-friendly "_version"
32595         * top/GNUmakefile (_dummy): Update.
32596         (_version): Rename from "version".
32597
32598 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32599             Bruno Haible  <bruno@clisp.org>
32600
32601         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
32602         rpl_close.
32603         (_gl_register_fd): New function, extracted from rpl_open.
32604         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
32605         (rpl_open, rpl_opendir): Use _gl_register_fd.
32606
32607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
32608
32609         Fix organization of 'open' replacement.
32610         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
32611         (gl_FUNC_OPEN): Use it.
32612         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
32613
32614 2008-10-08  Bruno Haible  <bruno@clisp.org>
32615
32616         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
32617
32618 2008-10-08  Simon Josefsson  <simon@josefsson.org>
32619
32620         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
32621         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
32622         listen).
32623
32624 2008-10-08  Eric Blake  <ebb9@byu.net>
32625
32626         GNUmakefile: add 'make version' target
32627         * top/GNUmakefile (_curr-ver): Split version update rules...
32628         (version): ...into a target.
32629
32630 2008-10-07  Bruno Haible  <bruno@clisp.org>
32631
32632         Use a more portable replacement expression for -0.0L.
32633         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
32634         instead of -0.0L. Fix m4 quotation.
32635
32636         * tests/test-signbit.c: Include <float.h>.
32637         (minus_zero): New variable.
32638         (test_signbitl): Use minus_zero instead of -zero.
32639         * modules/signbit-tests (Depends-on): Add float.
32640
32641         * tests/test-ceill.c: Include <float.h>.
32642         (zero): Remove variable.
32643         (minus_zero): New variable.
32644         (main): Use minus_zero instead of -zero.
32645         * modules/ceill-tests (Depends-on): Add float.
32646
32647         * tests/test-floorl.c: Include <float.h>.
32648         (zero): Remove variable.
32649         (minus_zero): New variable.
32650         (main): Use minus_zero instead of -zero.
32651         * modules/floorl-tests (Depends-on): Add float.
32652
32653         * tests/test-roundl.c: Include <float.h>.
32654         (zero): Remove variable.
32655         (minus_zero): New variable.
32656         (main): Use minus_zero instead of -zero.
32657         * modules/roundl-tests (Depends-on): Add float.
32658
32659         * tests/test-truncl.c: Include <float.h>.
32660         (zero): Remove variable.
32661         (minus_zero): New variable.
32662         (main): Use minus_zero instead of -zero.
32663         * modules/truncl-tests (Depends-on): Add float.
32664
32665         * tests/test-frexpl.c (zero): Remove variable.
32666         (minus_zero): New variable.
32667         (main): Use minus_zero instead of -zero.
32668         * modules/frexpl-tests (Depends-on): Add float.
32669
32670         * tests/test-isnan.c (zerol): Remove variable.
32671         (minus_zerol): New variable.
32672         (test_long_double): Use minus_zerol instead of -zerol.
32673         * modules/isnan-tests (Depends-on): Add float.
32674
32675         * tests/test-isnanl.h (zero): Remove variable.
32676         (minus_zero): New variable.
32677         (main): Use minus_zero instead of -zero.
32678         * modules/isnanl-nolibm-tests (Depends-on): Add float.
32679         * modules/isnanl-tests (Depends-on): Add float.
32680
32681         * tests/test-ldexpl.c (zero): Remove variable.
32682         (minus_zero): New variable.
32683         (main): Use minus_zero instead of -zero.
32684         * modules/ldexpl-tests (Depends-on): Add float.
32685
32686         * tests/test-snprintf-posix.h (zerol): Remove variable.
32687         (minus_zerol): New variable.
32688         (test_function): Use minus_zerol instead of -zerol.
32689         * modules/snprintf-posix-tests (Depends-on): Add float.
32690         * modules/vsnprintf-posix-tests (Depends-on): Add float.
32691
32692         * tests/test-sprintf-posix.h (zerol): Remove variable.
32693         (minus_zerol): New variable.
32694         (test_function): Use minus_zerol instead of -zerol.
32695         * modules/sprintf-posix-tests (Depends-on): Add float.
32696         * modules/vsprintf-posix-tests (Depends-on): Add float.
32697
32698         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
32699         (minus_zerol): New variable.
32700         (test_function): Use minus_zerol instead of -zerol.
32701         * modules/vasnprintf-posix-tests (Depends-on): Add float.
32702
32703         * tests/test-vasprintf-posix.c (zerol): Remove variable.
32704         (minus_zerol): New variable.
32705         (test_function): Use minus_zerol instead of -zerol.
32706         * modules/vasprintf-posix-tests (Depends-on): Add float.
32707
32708 2008-10-07  Simon Josefsson  <simon@josefsson.org>
32709
32710         * MODULES.html.sh (Support for building documentation): Mention
32711         pmccabe2html.  Sort entries.
32712
32713         Add pmccabe2html module, from gnupdf.
32714         * build-aux/pmccabe.css: New file.
32715         * build-aux/pmccabe2html: New file.
32716         * m4/pmccabe2html.m4: New file.
32717         * modules/pmccabe2html: New file.
32718
32719 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
32720
32721         flock: new module
32722         * MODULES.html.sh: Add to list of modules.
32723         * lib/flock.c: flock implementation for Windows and Unix systems
32724         which have fcntl.
32725         * doc/glibc-functions/flock.texi: Update documentation.
32726         * lib/sys_file.in.h: <sys/file.h> header file.
32727         * m4/flock.m4: M4 macros.
32728         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
32729         * modules/flock: flock module.
32730         * modules/flock-tests: flock tests module.
32731         * modules/sys_file: sys/file.h module.
32732         * tests/test-flock.c: test suite for flock.
32733
32734 2008-10-06  Jim Meyering  <meyering@redhat.com>
32735
32736         bootstrap: check for LT_INIT more portably still ;-)
32737         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
32738         Spotted by Bruno Haible.
32739
32740 2008-10-06  Eric Blake  <ebb9@byu.net>
32741
32742         test-signbit: avoid tripping Irix cc bug on -0.0L
32743         * tests/test-signbit.c (minus_zerol): Delete, and replace with
32744         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
32745         entire testsuite consistent and avoids an Irix 6.2 bug.
32746
32747 2008-10-05  Bruno Haible  <bruno@clisp.org>
32748             Jim Meyering  <jim@meyering.net>
32749
32750         Add an option for ignoring EPIPE during close_stdout.
32751         * lib/closeout.h: Include <stdbool.h>.
32752         (close_stdout_set_ignore_EPIPE): New declaration.
32753         * lib/closeout.c: Include <stdbool.h>.
32754         (ignore_EPIPE): New variable.
32755         (close_stdout_set_ignore_EPIPE): New function.
32756         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
32757         * lib/close-stream.c (close_stream): Mention the possible EPIPE
32758         failure.
32759         * modules/closeout (Depends-on): Add stdbool.
32760
32761 2008-10-05  Bruno Haible  <bruno@clisp.org>
32762
32763         * modules/accept: New file.
32764         * modules/bind: New file.
32765         * modules/connect: New file.
32766         * modules/getpeername: New file.
32767         * modules/getsockname: New file.
32768         * modules/getsockopt: New file.
32769         * modules/listen: New file.
32770         * modules/recv: New file.
32771         * modules/recvfrom: New file.
32772         * modules/send: New file.
32773         * modules/sendto: New file.
32774         * modules/setsockopt: New file.
32775         * modules/socket: New file.
32776         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
32777         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32778         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
32779         the particular module is requested. Add a link warning when the
32780         particular module is not requested.
32781         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
32782         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
32783         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
32784         the particular module is requested.
32785         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
32786         gl_SYS_SOCKET_H_DEFAULTS): New macros.
32787         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
32788         * modules/sys_socket (Depends-on): Add link-warning.
32789         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
32790         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
32791         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
32792         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
32793         GL_LINK_WARNING.
32794         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
32795         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
32796         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
32797         * doc/posix-functions/getpeername.texi: Mention the new module
32798         'getpeername'.
32799         * doc/posix-functions/getsockname.texi: Mention the new module
32800         'getsockname'.
32801         * doc/posix-functions/getsockopt.texi: Mention the new module
32802         'getsockopt'.
32803         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
32804         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
32805         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
32806         * doc/posix-functions/send.texi: Mention the new module 'send'.
32807         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
32808         * doc/posix-functions/setsockopt.texi: Mention the new module
32809         'setsockopt'.
32810         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
32811         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
32812         listen, connect, accept.
32813         * modules/select-tests (Depends-on): Likewise.
32814
32815 2008-10-05  Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/winsock.c (strerror): Remove unused #undef.
32818         (rpl_close): Remove unused local variable.
32819
32820         * modules/sys_socket (Depends-on); Add errno.
32821
32822 2008-10-05  Bruno Haible  <bruno@clisp.org>
32823
32824         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
32825         (select): Add a link warning when the 'select' module is not used.
32826         * modules/sys_select (Depends-on): Add link-warning.
32827         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
32828         Suggested by Paolo Bonzini.
32829
32830 2008-10-05  Jim Meyering  <meyering@redhat.com>
32831
32832         bootstrap: check for LT_INIT more portably
32833         * build-aux/bootstrap: Avoid using grep -E, since it's not
32834         portable enough.  Suggestion from Bruno Haible.
32835
32836 2008-10-05  Bruno Haible  <bruno@clisp.org>
32837
32838         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
32839         as being fixed by gnulib.
32840
32841 2008-10-05  Bruno Haible  <bruno@clisp.org>
32842
32843         * modules/select-tests: New file, mostly copied from
32844         modules/sys_select-tests.
32845         * tests/test-select.c: New file, mostly copied from
32846         tests/test-sys_select.c.
32847         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
32848         * modules/sys_select-tests (Depends-on): Remove all dependencies.
32849         (Makefile.am): Remove test_sys_select_LDADD.
32850
32851         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
32852         to an undefined symbol, for an error message.
32853         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
32854         (gl_SYS_SELECT_H_DEFAULTS): New macro.
32855         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
32856         winsock-select.c here.
32857         * modules/sys_select (Files): Remove lib/winsock-select.c.
32858         (Depends-on): Remove alloca.
32859         (Makefile.am): Substitute GNULIB_SELECT.
32860         * modules/select: New file.
32861         * doc/posix-functions/select.texi: Update.
32862
32863 2008-10-05  Bruno Haible  <bruno@clisp.org>
32864
32865         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
32866         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
32867         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
32868         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
32869         getdtablesize.
32870         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32871         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32872
32873 2008-10-05  Bruno Haible  <bruno@clisp.org>
32874
32875         * modules/getdtablesize-tests: New file.
32876         * tests/test-getdtablesize.c: New file.
32877
32878         New module 'getdtablesize'.
32879         * lib/unistd.in.h (getdtablesize): New declaration.
32880         * lib/getdtablesize.c: New file.
32881         * m4/getdtablesize.m4: New file.
32882         * modules/getdtablesize: New file.
32883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32884         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
32885         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
32886         HAVE_GETDTABLESIZE.
32887         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
32888
32889 2008-10-05  Bruno Haible  <bruno@clisp.org>
32890
32891         * modules/sched (Makefile.am): Fix typo.
32892         Reported by Simon Josefsson.
32893
32894 2008-10-05  Jim Meyering  <meyering@redhat.com>
32895
32896         bootstrap: check for LT_INIT, too
32897         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
32898         are deprecated.  Suggestion from Ralf Wildenhues.
32899
32900 2008-10-05  Bruno Haible  <bruno@clisp.org>
32901
32902         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
32903         overriding them by ours.
32904         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
32905
32906 2008-10-05  Jim Meyering  <meyering@redhat.com>
32907
32908         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
32909         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
32910         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
32911
32912 2008-10-04  Bruno Haible  <bruno@clisp.org>
32913
32914         * modules/dup2 (License): Change to LGPLv2+.
32915         * modules/sleep (License): Likewise.
32916         * modules/perror (License): Likewise.
32917         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
32918         Blake.
32919         * modules/signal (License): Likewise.
32920         * modules/sigprocmask (License): Likewise.
32921         * modules/raise (License): Change to LGPLv2+, with approval by Jim
32922         Meyering.
32923
32924 2008-10-04  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
32927         Reported by Rainer Tammer <tammer@tammer.net>.
32928
32929 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
32930             Bruno Haible  <bruno@clisp.org>
32931
32932         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
32933         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
32934         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
32935
32936 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
32937
32938         filevercmp: new module
32939         * lib/filevercmp.h: New function filevercmp comparing version strings.
32940         * lib/filevercmp.c: Implementation of filevercmp function.
32941         * modules/filevercmp: Module metadata.
32942         * tests/test-filevercmp.c: Unit test for new module.
32943         * modules/filevercmp-tests: Unit test metadata.
32944         * MODULES.html.sh: Add filevercmp module.
32945
32946 2008-10-03  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/c-ctype.h: Add comment.
32949         Reported by Jim Meyering.
32950
32951 2008-10-02  Bruno Haible  <bruno@clisp.org>
32952
32953         * modules/posix_spawn-internal (Depends-on): Add 'open'.
32954
32955 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32956
32957         * build-aux/bootstrap: Allow renaming bootstrap, and change the
32958         name of bootstrap.conf accordingly.
32959
32960 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32961
32962         * build-aux/bootstrap: Install git-merge-changelog configuration
32963         items into .gitconfig if needed.
32964
32965 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32966
32967         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
32968         git repository, and initialize/update it accordingly.
32969
32970 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
32971
32972         * modules/fsync-tests: New file.
32973         * tests/test-fsync.c: New file.
32974
32975         New module 'fsync'.
32976         * lib/fsync.c: New file.
32977         * m4/fsync.m4: New file.
32978         * modules/fsync: New file.
32979         * lib/unistd.in.h (fsync): New declaration.
32980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
32981         GNULIB_FSYNC and HAVE_FSYNC.
32982         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
32983         * MODULES.html.sh (posix_functions): Add fsync.
32984         * doc/posix-functions/fsync.texi: Mention the new module.
32985
32986 2008-10-02  Jim Meyering  <meyering@redhat.com>
32987
32988         fts.c: sync with similar code from coreutils' remove.c
32989         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
32990         Guard also with "#if defined __linux__", since for now at least,
32991         this code is Linux-kernel-specific.
32992
32993 2008-10-02  Jim Meyering  <meyering@redhat.com>
32994
32995         fts: bug fixes
32996         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
32997         Include <sys/vfs.h>, not <sys/statfs.h>.
32998
32999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
33000         Include <sys/vfs.h>, not <sys/statfs.h>.
33001
33002 2008-10-01  Bruno Haible  <bruno@clisp.org>
33003
33004         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
33005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
33006         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
33007         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
33008         * doc/posix-functions/posix_spawnp.texi: Likewise.
33009         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
33010         whether posix_spawn actually works.
33011         * m4/pipe.m4 (gl_PIPE): Likewise.
33012         * modules/execute (Files): Add m4/posix_spawn.m4.
33013         * modules/pipe (Files): Add m4/posix_spawn.m4.
33014         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
33015
33016 2008-10-01  Jim Meyering  <meyering@redhat.com>
33017
33018         remove trailing spaces
33019         * NEWS: Likewise.
33020         * lib/poll.c (poll): Likewise.
33021         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
33022         * lib/winsock.c (rpl_close): Likewise.
33023         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
33024         * modules/yield: Likewise.
33025         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
33026         * tests/test-sys_select.c (connect_to_socket): Likewise.
33027
33028         fts.c: adjust a new interface to be more generally useful
33029         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
33030         (fts_build): Adjust caller.
33031
33032 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33033
33034         * modules/cond-tests: New file.
33035         * tests/test-cond.c: New file.
33036
33037 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33038             Bruno Haible  <bruno@clisp.org>
33039
33040         * modules/cond (Dependencies): Add errno, time.
33041         * lib/glthread/cond.h: Include <time.h>.
33042         (gl_cond_define, gl_cond_define_initialized): Use the same definition
33043         across platforms.
33044
33045 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33046             Bruno Haible  <bruno@clisp.org>
33047
33048         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
33049
33050 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33051             Bruno Haible  <bruno@clisp.org>
33052
33053         * modules/tls-tests (Depends-on): Add thread, yield.
33054         (configure.ac): Remove all checks.
33055         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
33056         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33057         gl_thread_self): Remove definitions. Include glthread/thread.h and
33058         glthread/yield.h instead.
33059         (test_tls): Pass an additional NULL argument to gl_thread_join.
33060
33061 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33062             Bruno Haible  <bruno@clisp.org>
33063
33064         * modules/lock-tests (Depends-on): Add thread, yield.
33065         (configure.ac): Remove all checks.
33066         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
33067         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
33068         gl_thread_self): Remove definitions. Include glthread/thread.h and
33069         glthread/yield.h instead.
33070         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
33071         additional NULL argument to gl_thread_join.
33072
33073 2008-09-30  Bruno Haible  <bruno@clisp.org>
33074
33075         Fix the Win32 implementation of the 'thread' module.
33076         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
33077         pointer type.
33078         (gl_thread_self): Invoke gl_thread_self_func.
33079         (gl_thread_self_func): New declaration.
33080         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
33081         (do_init_self_key, init_self_key): New functions.
33082         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
33083         Remove some fields.
33084         (running_threads, running_lock): Remove variables.
33085         (get_current_thread_handle): New function.
33086         (gl_thread_self_func, wrapper_func, glthread_create_func,
33087         glthread_join_func, gl_thread_exit_func): Largely rewritten and
33088         simplified.
33089
33090 2008-09-30  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
33093         files.
33094
33095 2008-09-30  Jim Meyering  <meyering@redhat.com>
33096
33097         fts.m4: correct the test for statfs.f_type
33098         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
33099         when checking for statfs.f_type.
33100
33101 2008-09-15  Simon Josefsson  <simon@josefsson.org>
33102
33103         tests: avoid some compiler warnings
33104         * tests/test-memchr.c (main): Pass NULL indirectly.
33105         * tests/test-getdate.c (main): Remove unused variable 'ret'.
33106
33107 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
33108
33109         getdate.y: disallow countable dayshifts like "4 yesterday ago"
33110         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
33111         exactly specified dayshifts.
33112         (dayshift): New rule.
33113         (rel): Add dayshift.
33114         (relative_time_table) [tomorrow, yesterday, today, now]:
33115         Use tDAY_SHIFT in place of tDAY_UNIT.
33116         * tests/test-getdate.c: Add tests for now-disallowed countable
33117         dayshifts, e.g., "4 yesterday ago".
33118
33119 2008-09-29  Bruno Haible  <bruno@clisp.org>
33120
33121         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
33122         * tests/test-posix_spawn1.in.sh: Renamed from
33123         tests/test-posix_spawn.in.sh.
33124         * tests/test-posix_spawn2.c: New file.
33125         * tests/test-posix_spawn2.in.sh: New file.
33126         * modules/posix_spawnp-tests (Files): Update.
33127         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
33128
33129 2008-09-29  Bruno Haible  <bruno@clisp.org>
33130
33131         Propagate effects of putenv/setenv/unsetenv to child processes.
33132         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
33133         * lib/pipe.c (create_pipe): Likewise.
33134
33135 2008-09-29  Bruno Haible  <bruno@clisp.org>
33136
33137         Enable use of shell scripts as executables in mingw.
33138         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
33139         run the program as a shell script.
33140         * lib/pipe.c (create_pipe): Likewise.
33141         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
33142         resulting array.
33143
33144 2008-09-29  Eric Blake  <ebb9@byu.net>
33145
33146         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
33147
33148 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
33149
33150         * doc/posix-functions/accept.texi: Update mingw problems.
33151         * doc/posix-functions/bind.texi: Update mingw problems.
33152         * doc/posix-functions/close.texi: Update mingw problems.
33153         * doc/posix-functions/connect.texi: Update mingw problems.
33154         * doc/posix-functions/getpeername.texi: Update mingw problems.
33155         * doc/posix-functions/getsockname.texi: Update mingw problems.
33156         * doc/posix-functions/getsockopt.texi: Update mingw problems.
33157         * doc/posix-functions/ioctl.texi: Update mingw problems.
33158         * doc/posix-functions/listen.texi: Update mingw problems.
33159         * doc/posix-functions/recv.texi: Update mingw problems.
33160         * doc/posix-functions/recvfrom.texi: Update mingw problems.
33161         * doc/posix-functions/select.texi: Update mingw problems.
33162         * doc/posix-functions/send.texi: Update mingw problems.
33163         * doc/posix-functions/sendto.texi: Update mingw problems.
33164         * doc/posix-functions/setsockopt.texi: Update mingw problems.
33165         * doc/posix-functions/socket.texi: Update mingw problems.
33166
33167 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
33168             Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/sys_select.in.h: Include sys/time.h.
33171         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
33172         * modules/sys_select: Depend on sys_time.
33173         * tests/test-sys_select.c: Test that sys/select.h defines struct
33174         timeval fully.
33175
33176 2008-09-29  Bruno Haible  <bruno@clisp.org>
33177
33178         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
33179         * lib/sys_select.in.h: Likewise.
33180
33181 2008-09-29  Bruno Haible  <bruno@clisp.org>
33182
33183         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
33184
33185 2008-09-29  Bruno Haible  <bruno@clisp.org>
33186
33187         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
33188         Set LIBSOCKET instead of augmenting LIBS.
33189         * modules/sockets (Link): New section.
33190         * modules/sockets-tests (test_sockets_LDADD): New variable.
33191         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
33192         * modules/poll-tests (test_poll_LDADD): New variable.
33193         * NEWS: Document the change.
33194
33195 2008-09-29  Bruno Haible  <bruno@clisp.org>
33196
33197         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
33198         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
33199         ARPA_INET_H directly.
33200         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33201
33202 2008-09-28  Bruno Haible  <bruno@clisp.org>
33203
33204         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
33205         from gl_HEADER_SYS_SOCKET.
33206         (gl_HEADER_SYS_SOCKET): Invoke it.
33207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33208
33209 2008-09-28  Bruno Haible  <bruno@clisp.org>
33210
33211         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
33212         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
33213         Needed on OSF/1 4.0.
33214
33215 2008-09-28  Bruno Haible  <bruno@clisp.org>
33216
33217         Override open more carefully.
33218         * lib/open.c (orig_open): New function.
33219         (rpl_open): Use orig_open instead of open.
33220         * lib/fcntl.in.h: Add special invocation convention.
33221         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
33222         (gl_FUNC_OPEN): Invoke it.
33223
33224         Override freopen more carefully.
33225         * lib/freopen.c (orig_freopen): New function.
33226         (rpl_freopen): Use orig_freopen instead of freopen.
33227         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
33228         (gl_FUNC_FREOPEN): Invoke it.
33229
33230         Override fopen more carefully.
33231         * lib/fopen.c (orig_fopen): New function.
33232         (rpl_fopen): Use orig_fopen instead of fopen.
33233         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
33234         (gl_FUNC_FOPEN): Invoke it.
33235         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
33236
33237 2008-09-28  Bruno Haible  <bruno@clisp.org>
33238
33239         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
33240         SIGPIPE.
33241
33242 2008-09-28  Bruno Haible  <bruno@clisp.org>
33243
33244         * tests/test-sigaction.c (handler, main): Disable the check whether
33245         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
33246         glibc systems with LinuxThreads.
33247
33248 2008-09-28  Bruno Haible  <bruno@clisp.org>
33249
33250         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
33251
33252         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
33253         with AIX xlc.
33254         * lib/fcntl.in.h (open): Likewise.
33255         Reported by Rainer Tammer <tammer@tammer.net>.
33256
33257 2008-09-28  Bruno Haible  <bruno@clisp.org>
33258
33259         * modules/posix_spawnp-tests: New file.
33260         * tests/test-posix_spawn.c: New file.
33261         * tests/test-posix_spawn.in.sh: New file.
33262
33263         New module 'posix_spawnp'.
33264         * modules/posix_spawnp: New file.
33265         * lib/spawnp.c: New file, from GNU libc with modifications.
33266         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
33267
33268         New module 'posix_spawn'.
33269         * modules/posix_spawn: New file.
33270         * lib/spawn.c: New file, from GNU libc with modifications.
33271         * doc/posix-functions/posix_spawn.texi: Mention the new module.
33272
33273         New module 'posix_spawnattr_destroy'.
33274         * modules/posix_spawnattr_destroy: New file.
33275         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
33276         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
33277         module.
33278
33279         New module 'posix_spawnattr_setsigmask'.
33280         * modules/posix_spawnattr_setsigmask: New file.
33281         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
33282         modifications.
33283         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
33284         new module.
33285
33286         New module 'posix_spawnattr_getsigmask'.
33287         * modules/posix_spawnattr_getsigmask: New file.
33288         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
33289         modifications.
33290         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
33291         new module.
33292
33293         New module 'posix_spawnattr_setsigdefault'.
33294         * modules/posix_spawnattr_setsigdefault: New file.
33295         * lib/spawnattr_setdefault.c: New file, from GNU libc with
33296         modifications.
33297         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
33298         new module.
33299
33300         New module 'posix_spawnattr_getsigdefault'.
33301         * modules/posix_spawnattr_getsigdefault: New file.
33302         * lib/spawnattr_getdefault.c: New file, from GNU libc with
33303         modifications.
33304         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
33305         new module.
33306
33307         New module 'posix_spawnattr_setschedpolicy'.
33308         * modules/posix_spawnattr_setschedpolicy: New file.
33309         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
33310         modifications.
33311         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
33312         new module.
33313
33314         New module 'posix_spawnattr_getschedpolicy'.
33315         * modules/posix_spawnattr_getschedpolicy: New file.
33316         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
33317         modifications.
33318         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
33319         new module.
33320
33321         New module 'posix_spawnattr_setschedparam'.
33322         * modules/posix_spawnattr_setschedparam: New file.
33323         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
33324         modifications.
33325         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
33326         new module.
33327
33328         New module 'posix_spawnattr_getschedparam'.
33329         * modules/posix_spawnattr_getschedparam: New file.
33330         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
33331         modifications.
33332         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
33333         new module.
33334
33335         New module 'posix_spawnattr_setpgroup'.
33336         * modules/posix_spawnattr_setpgroup: New file.
33337         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
33338         modifications.
33339         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
33340         module.
33341
33342         New module 'posix_spawnattr_getpgroup'.
33343         * modules/posix_spawnattr_getpgroup: New file.
33344         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
33345         modifications.
33346         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
33347         module.
33348
33349         New module 'posix_spawnattr_setflags'.
33350         * modules/posix_spawnattr_setflags: New file.
33351         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
33352         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
33353         module.
33354
33355         New module 'posix_spawnattr_getflags'.
33356         * modules/posix_spawnattr_getflags: New file.
33357         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
33358         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
33359         module.
33360
33361         New module 'posix_spawnattr_init'.
33362         * modules/posix_spawnattr_init: New file.
33363         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
33364         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
33365         module.
33366
33367         New module 'posix_spawn_file_actions_destroy'.
33368         * modules/posix_spawn_file_actions_destroy: New file.
33369         * lib/spawn_faction_destroy.c: New file, from GNU libc with
33370         modifications.
33371         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
33372         the new module.
33373
33374         New module 'posix_spawn_file_actions_addopen'.
33375         * modules/posix_spawn_file_actions_addopen: New file.
33376         * lib/spawn_faction_addopen.c: New file, from GNU libc with
33377         modifications.
33378         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33379         the new module.
33380
33381         New module 'posix_spawn_file_actions_adddup2'.
33382         * modules/posix_spawn_file_actions_adddup2: New file.
33383         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
33384         modifications.
33385         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33386         the new module.
33387
33388         New module 'posix_spawn_file_actions_addclose'.
33389         * modules/posix_spawn_file_actions_addclose: New file.
33390         * lib/spawn_faction_addclose.c: New file, from GNU libc with
33391         modifications.
33392         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33393         the new module.
33394
33395         New module 'posix_spawn_file_actions_init'.
33396         * modules/posix_spawn_file_actions_init: New file.
33397         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
33398         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
33399         new module.
33400
33401         New module 'posix_spawn-internal'.
33402         * modules/posix_spawn-internal: New file.
33403         * lib/spawn_int.h: New file, from GNU libc with modifications.
33404         * lib/spawni.c: New file, from GNU libc with modifications.
33405         * m4/posix_spawn.m4: New file.
33406
33407         New module 'spawn'.
33408         * modules/spawn: New file.
33409         * lib/spawn.in.h: New file, from GNU libc with modifications.
33410         * m4/spawn_h.m4: New file.
33411         * doc/posix-headers/spawn.texi: Mention the new module.
33412
33413 2008-09-28  Bruno Haible  <bruno@clisp.org>
33414
33415         * modules/sched-tests: New file.
33416         * tests/test-sched.c: New file.
33417
33418         New module 'sched'.
33419         * modules/sched: New file.
33420         * lib/sched.in.h: New file.
33421         * m4/sched_h.m4: New file.
33422         * doc/posix-headers/sched.texi: Mention the new module.
33423
33424 2008-09-27  Eric Blake  <ebb9@byu.net>
33425
33426         Fix previous patch, and tweak references to $0.
33427         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
33428         (func_version, func_gnulib_dir): Don't call this program
33429         gnulib-tool.
33430         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
33431         with using $0 in function.
33432         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
33433         (func_fatal_error): Reuse the name the user invoked us with.
33434
33435 2008-09-27  Bruno Haible  <bruno@clisp.org>
33436
33437         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
33438         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
33439         (gl_ICONV_H): Not here.
33440         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33441         instead of assigning ICONV_H directly.
33442
33443         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
33444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
33445         WCHAR_H directly.
33446
33447 2008-09-27  Bruno Haible  <bruno@clisp.org>
33448
33449         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
33450         * modules/arpa_inet (Depends-on): Add link-warning.
33451         (Makefile.am): Insert the definition of GL_LINK-WARNING.
33452         * modules/unistd (Makefile.am): Likewise.
33453
33454 2008-09-26  Bruno Haible  <bruno@clisp.org>
33455
33456         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
33457         variables.
33458         (func_version): Essentially copied from gnulib-tool.
33459         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
33460         func_readlink): Copied from gnulib-tool.
33461
33462 2008-09-26  Bruno Haible  <bruno@clisp.org>
33463
33464         * gnulib-tool (func_version): Change directory to $gnulib_dir before
33465         invoking git-version-gen.
33466
33467 2008-09-26  Bruno Haible  <bruno@clisp.org>
33468
33469         * posix-modules: Update to directory names changed on 2008-01-19.
33470         Remove commas in output before splitting into words. No more need to
33471         avoid 'ftruncate' since 2007-02-19.
33472
33473 2008-09-26  Bruno Haible  <bruno@clisp.org>
33474
33475         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
33476
33477 2008-09-26  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
33480         * modules/fwriteerror (Depends-on): Add errno.
33481
33482 2008-09-26  Bruno Haible  <bruno@clisp.org>
33483
33484         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
33485         * tests/test-vc-list-files-cvs.sh: Likewise.
33486
33487 2008-09-26  Bruno Haible  <bruno@clisp.org>
33488
33489         * doc/posix-headers/sys_resource.texi: Reorder items.
33490
33491 2008-09-26  Jim Meyering  <meyering@redhat.com>
33492
33493         fts: tweak inode comparison function
33494         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
33495         inode numbers, as documented.
33496
33497         fts: sort dirent entries on inode number before traversing
33498         This avoids a quadratic, seek-related performance penalty when
33499         operating on a directory containing many entries (measurable at 10k;
33500         3.5 hours at 2 million entries with a cold cache) on certain types
33501         of file systems, including ext3 and ext4, but not tmpfs.
33502         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
33503         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
33504         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
33505         (fs_handles_readdir_ordered_dirents_efficiently): New function.
33506         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
33507         (fts_build): Set the stat.st_ino member from D_INO.
33508         If it is likely to be useful, sort dirent entries on inode number.
33509
33510         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
33511         and the struct statfs.f_type member.
33512         * modules/fts (Depends-on): Add d-ino.
33513
33514 2008-09-26  Bruno Haible  <bruno@clisp.org>
33515
33516         * modules/sigpipe-die (Depends-on): Add sigpipe.
33517
33518         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
33519         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
33520         and GNULIB_STDIO_H_SIGPIPE are set.
33521         * lib/stdio-write.c: New file.
33522         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
33523         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33524         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33525         REPLACE_STDIO_WRITE_FUNCS.
33526         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
33527         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33528         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33529         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33530         * modules/stdio (Files): Add lib/stdio-write.c.
33531         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
33532         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
33533         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
33534         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
33535         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
33536         REPLACE_FPRINTF_POSIX.
33537         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
33538         REPLACE_PRINTF_POSIX.
33539         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
33540         REPLACE_VFPRINTF_POSIX.
33541         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
33542         REPLACE_VPRINTF_POSIX.
33543         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
33544         SIGPIPE issue.
33545         * doc/posix-functions/fputc.texi: Likewise.
33546         * doc/posix-functions/fputs.texi: Likewise.
33547         * doc/posix-functions/fwrite.texi: Likewise.
33548         * doc/posix-functions/printf.texi: Likewise.
33549         * doc/posix-functions/putc.texi: Likewise.
33550         * doc/posix-functions/putchar.texi: Likewise.
33551         * doc/posix-functions/puts.texi: Likewise.
33552         * doc/posix-functions/vfprintf.texi: Likewise.
33553         * doc/posix-functions/vprintf.texi: Likewise.
33554
33555         * modules/safe-write (Depends-on): Add write.
33556
33557         * modules/sigpipe-tests: New file.
33558         * tests/test-sigpipe.c: New file.
33559         * tests/test-sigpipe.sh: New file.
33560
33561         * modules/write: New file.
33562         * lib/unistd.in.h: Include <sys/types.h>.
33563         (write): New declaration.
33564         * lib/write.c: New file.
33565         * m4/write.m4: New file.
33566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33567         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
33568         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
33569         GNULIB_WRITE, REPLACE_WRITE.
33570         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
33571         and the SIGPIPE issue.
33572
33573         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
33574         (raise): New declaration.
33575         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
33576         (ext_signal): New function.
33577         (rpl_raise): New function.
33578         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33579         GNULIB_SIGNAL_H_SIGPIPE.
33580         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
33581         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
33582
33583         * modules/sigpipe: New file.
33584         * m4/sigpipe.m4: New file.
33585
33586 2008-09-25  Derek Price  <derek@ximbiot.com>
33587             Bruno Haible  <bruno@clisp.org>
33588
33589         * gnulib-tool (func_import): Report all license incompatibilities, not
33590         just the first one.
33591
33592 2008-09-25  Bruno Haible  <bruno@clisp.org>
33593
33594         * gnulib-tool (func_import): When computing the edits, consider not
33595         only the Makefile.ams that exist but also those that will be generated.
33596
33597 2008-09-25  Simon Josefsson  <simon@josefsson.org>
33598
33599         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
33600         fixes gnulib-tool --test warning about duplicate dependency.
33601
33602 2008-09-25  Bruno Haible  <bruno@clisp.org>
33603
33604         * gnulib-tool: Don't ask the user to perform edits in the generated
33605         Makefile.ams.
33606         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
33607         apply to the Makefile.am being generated.
33608         (func_emit_tests_Makefile_am): Execute edits that apply to the
33609         Makefile.am being generated.
33610         (func_import): Setup list of Makefile.am edits before emitting the
33611         Makefile.ams, not at the end.
33612         (func_create_testdir): Update.
33613         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33614
33615 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33616
33617         * gnulib-tool (func_import): Store the --tests-base option in the
33618         comment in gnulib-cache.m4.
33619
33620 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
33621
33622         * NEWS: Document increased portability that sys_select now provides.
33623
33624         * lib/sys_select.in.h: Install select wrapper.
33625         * lib/sys_socket.in.h: Use more descriptive name when there is no
33626         select wrapper.
33627         * lib/winsock-select.c: New.
33628         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
33629         Require gl_HEADER_SYS_SOCKET.
33630         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
33631         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
33632         * tests/test-sys_select.c: Add functional tests.
33633
33634 2008-09-24  Eric Blake  <ebb9@byu.net>
33635
33636         open, fopen: close fd leak in last patch
33637         * lib/open.c (rpl_open): Close fd before returning error.
33638         * lib/fopen.c (rpl_fopen): Close fd before returning error.
33639         * doc/posix-functions/open.texi (open): Document that Irix also
33640         has the bug.
33641         * doc/posix-functions/fopen.texi (fopen): Likewise.
33642         Reported by Paolo Bonzini.
33643
33644 2008-09-24  Bruno Haible  <bruno@clisp.org>
33645
33646         Ensure that a filename ending in a slash cannot be used to access a
33647         non-directory.
33648         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
33649         to check whether it's really a directory.
33650         * lib/fopen.c: Include fcntl.h, unistd.h.
33651         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
33652         and fdopen().
33653         * modules/fopen (Depends-on): Add unistd.
33654         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
33655         * tests/test-fopen.c (main): Likewise.
33656         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
33657         * doc/posix-functions/fopen.texi: Likewise.
33658         Reported by Eric Blake.
33659
33660 2008-09-23  Eric Blake  <ebb9@byu.net>
33661
33662         c-stack: avoid compiler optimizations when provoking overflow
33663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
33664         recursion harder to optimize, to ensure a stack overflow occurs.
33665         * tests/test-c-stack.c (recurse): Likewise.
33666         Borrowed from libsigsegv.
33667
33668         c-stack: work around Irix sigaltstack bug
33669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
33670         whether sigaltstack uses wrong end of stack_t (copied in part from
33671         libsigsegv).
33672         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
33673         Irix bug, without requiring an over-allocation.
33674         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
33675         bug.
33676
33677         fopen: document mingw bug on directories
33678         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
33679         not allowing a stream visiting a directory, even though reading
33680         from such a stream is not portable.
33681
33682 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33683
33684         * lib/poll.c: Rewrite.
33685         * modules/poll: Depend on alloca.
33686
33687 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33688
33689         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
33690         instead define prototypes for a full set of wrappers.  Ensure
33691         that Cygwin does not use the compatibility code, which is only
33692         for MinGW.
33693         * lib/winsock.c: New.
33694         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
33695         * modules/sys_socket: Add lib/winsock.c.
33696
33697         * modules/poll-tests: Add errno and perror.
33698         * tests/test-poll.c: Use ioctl, not ioctlsocket.
33699
33700 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
33701
33702         * tests/test-poll.c: Downgrade minimum needed Winsock version.
33703
33704 2008-09-23  Bruno Haible  <bruno@clisp.org>
33705
33706         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
33707         * doc/glibc-functions/*: Likewise.
33708
33709 2008-09-23  Simon Josefsson  <simon@josefsson.org>
33710
33711         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
33712         success.
33713
33714 2008-09-22  Eric Blake  <ebb9@byu.net>
33715             Bruno Haible  <bruno@clisp.org>
33716
33717         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
33718         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
33719         supply %A but mishandle pseudo-NaN.
33720         Reported by Simon Josefsson.
33721
33722 2008-09-21  Bruno Haible  <bruno@clisp.org>
33723
33724         * tests/test-lock.c (main): Tweak skip message.
33725         * tests/test-tls.c (main): Likewise.
33726
33727 2008-09-21  Bruno Haible  <bruno@clisp.org>
33728
33729         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
33730         whether 'struct sigaction' has sa_sigaction here...
33731         (gl_PREREQ_SIG_HANDLER_H): ... not here.
33732         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
33733
33734 2008-09-21  Bruno Haible  <bruno@clisp.org>
33735
33736         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
33737         section.
33738         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
33739         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
33740         the new section.
33741         (Support for obsolete systems lacking POSIX:2001): New section.
33742         (String handling <string.h>): Move strdup to the new section.
33743         Suggested by Simon Josefsson and Paolo Bonzini.
33744
33745 2008-09-21  Bruno Haible  <bruno@clisp.org>
33746
33747         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
33748         exponents in %e and %g results on 'long double'. Needed for mingw's
33749         improved *printf functions.
33750         * tests/test-vasprintf-posix.c (test_function): Likewise.
33751         * tests/test-snprintf-posix.h (test_function): Likewise.
33752         * tests/test-sprintf-posix.h (test_function): Likewise.
33753         Reported by Eric Blake.
33754
33755 2008-09-21  Bruno Haible  <bruno@clisp.org>
33756
33757         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
33758         * tests/test-sprintf-posix.h (test_function): Likewise.
33759
33760 2008-09-21  Bruno Haible  <bruno@clisp.org>
33761
33762         * modules/getpass (Depends-on): Add strdup-posix.
33763
33764         New module 'strdup-posix'.
33765         * modules/strdup-posix: New file.
33766         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
33767         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
33768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33769         REPLACE_STRDUP.
33770         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
33771         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
33772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33773         strdup-posix.
33774
33775         * modules/strdup (Depends-on): Remove malloc-posix.
33776
33777 2008-09-20  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
33780         Wildenhues.
33781
33782 2008-09-20  Bruno Haible  <bruno@clisp.org>
33783
33784         Ensure that wint_t gets defined on IRIX 5.3.
33785         * lib/wchar.in.h (wint_t): Define if not defined by the system.
33786         * lib/wctype.in.h (wint_t): Likewise.
33787         (__wctype_wint_t): Remove type.
33788         (isw*): Use wint_t instead of __wctype_wint_t.
33789         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
33790         * modules/wchar (Files): Add m4/wint_t.m4.
33791         (Makefile.am): Substitute HAVE_WINT_T.
33792         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
33793         * tests/test-wctype.c: Check that wint_t is defined.
33794         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
33795         * doc/posix-headers/wctype.texi: Likewise.
33796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33797
33798 2008-09-18  Bruno Haible  <bruno@clisp.org>
33799
33800         * gnulib-tool (func_exit): Update comment.
33801
33802 2008-09-18  Simon Josefsson  <simon@josefsson.org>
33803
33804         * modules/getaddrinfo (Depends-on): Remove strdup, this module
33805         assumes strdup exists and does not depend on strdup to return
33806         ENOMEM on out of memory conditions.
33807
33808 2008-09-18  Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
33811         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
33812         digits for the exponent.
33813
33814 2008-09-18  Jim Meyering  <meyering@redhat.com>
33815             Bruno Haible  <bruno@clisp.org>
33816
33817         * lib/vasnprintf.c (decimal_point_char): Define also if
33818         NEED_PRINTF_INFINITE_LONG_DOUBLE.
33819
33820 2008-09-16  Bruno Haible  <bruno@clisp.org>
33821         and Eric Blake  <ebb9@byu.net>
33822
33823         vasnprintf: support Irix 5.3
33824         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
33825         that mishandle long double infinity.
33826         Reported by Tom G. Christensen.
33827
33828 2008-09-16  Bruno Haible  <bruno@clisp.org>
33829
33830         * doc/glibc-functions/scandir.texi: Mention the function is missing on
33831         Solaris 9.
33832         * doc/glibc-functions/alphasort.texi: Likewise.
33833         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
33834
33835 2008-09-16  Jim Meyering  <meyering@redhat.com>
33836
33837         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
33838         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
33839         a umask modification leak out of a subshell.  Otherwise, the
33840         opensolaris /bin/sh would be accepted and thus cause unwarranted
33841         failures in the coreutils test suite.
33842
33843 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
33844
33845         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
33846         to succeed.
33847
33848 2008-09-16  Jim Meyering  <meyering@redhat.com>
33849
33850         avoid spurious test failure when library is built without ACL support
33851         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
33852         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
33853         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
33854         * tests/test-copy-acl.sh: Likewise.
33855
33856 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33857
33858         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
33859         based on character occurrence counts.
33860
33861 2008-09-15  Eric Blake  <ebb9@byu.net>
33862
33863         tests: avoid some compiler warnings
33864         * tests/test-memchr.c (main): Pass NULL indirectly.
33865         * tests/test-closein.c (main): Avoid unused variable.
33866
33867 2008-09-15  Bruno Haible  <bruno@clisp.org>
33868
33869         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
33870         are missing on OpenBSD 4.0 individually.
33871         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33872
33873 2008-09-15  Bruno Haible  <bruno@clisp.org>
33874
33875         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
33876         * doc/posix-functions/strerror.texi: Mention also Cygwin.
33877         * doc/posix-functions/perror.texi: Likewise.
33878         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
33879         is missing.
33880         Reported by Eric Blake.
33881
33882         * lib/errno.in.h: Use replacement values >= 2000.
33883         Reported by Eric Blake.
33884
33885 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33886
33887         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
33888         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
33889         limit.
33890         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
33891         compareseq was aborted.
33892
33893 2008-09-14  Bruno Haible  <bruno@clisp.org>
33894
33895         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
33896         yvec_edit_count.
33897         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
33898         (fstrcmp_bounded): Simplify result computation accordingly.
33899
33900 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33901
33902         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
33903         (fstrcmp): Define in terms of fstrcmp_bounded.
33904         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
33905         lower_bound argument.
33906         Return quickly if the result is certainly < lower_bound.
33907         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
33908
33909 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33910
33911         * lib/diffseq.h (EARLY_ABORT): New macro.
33912         (compareseq): Change return type to bool. Return true when EARLY_ABORT
33913         evaluates to true.
33914
33915 2008-09-14  Bruno Haible  <bruno@clisp.org>
33916
33917         * modules/perror-tests: New file.
33918         * tests/test-perror.sh: New file.
33919         * tests/test-perror.c: New file.
33920
33921         New module 'perror'.
33922         * lib/stdio.in.h (perror): New declaration.
33923         * lib/perror.c: New file.
33924         * m4/perror.m4: New file.
33925         * modules/perror: New file.
33926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
33927         * doc/posix-functions/perror.texi: Mention the perror module.
33928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
33929         REPLACE_PERROR.
33930         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
33931         REPLACE_PERROR.
33932
33933 2008-09-14  Bruno Haible  <bruno@clisp.org>
33934
33935         * modules/stdio (Makefile.am): Reorder to match the order in
33936         lib/stdio.in.h.
33937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33938
33939 2008-09-13  Bruno Haible  <bruno@clisp.org>
33940
33941         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
33942
33943 2008-09-13  Bruno Haible  <bruno@clisp.org>
33944
33945         Extend strerror to cover the added errno values.
33946         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
33947         (rpl_strerror): Provide error messages for the added errno values and
33948         for the WSA* values.
33949         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
33950         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
33951         strerror.
33952         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
33953         * modules/strerror (Depends-on): Add errno.
33954         * doc/posix-functions/strerror.texi: Document the change.
33955         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
33956         and EOVERFLOW.
33957
33958 2008-09-13  Bruno Haible  <bruno@clisp.org>
33959
33960         * modules/EOVERFLOW: Remove file.
33961         * m4/eoverflow.m4: Remove file.
33962         * modules/EOVERFLOW-tests: Remove file.
33963         * tests/test-EOVERFLOW.c: Remove file.
33964         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
33965         * modules/ftell (Depends-on): Likewise.
33966         * modules/getdelim (Depends-on): Likewise.
33967         * modules/getugroups (Depends-on): Likewise.
33968         * modules/poll (Depends-on): Likewise.
33969         * modules/snprintf (Depends-on): Likewise.
33970         * modules/sprintf-posix (Depends-on): Likewise.
33971         * modules/vasnprintf (Depends-on): Likewise.
33972         * modules/vasprintf (Depends-on): Likewise.
33973         * modules/vfprintf-posix (Depends-on): Likewise.
33974         * modules/vsnprintf (Depends-on): Likewise.
33975         * modules/vsprintf-posix (Depends-on): Likewise.
33976         * modules/xvasprintf (Depends-on): Likewise.
33977         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33978         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
33979         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
33980         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
33981         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33982         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
33983         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
33984         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
33985         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33986         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
33987         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
33988         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
33989         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33990         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
33991         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
33992         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
33993         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33994         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
33995         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
33996         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
33997         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33998         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
33999         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
34000         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
34001         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
34002         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34003         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
34004         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
34005         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
34006         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
34007         * MODULES.html.sh: Remove EOVERFLOW.
34008         * NEWS: Mention the change.
34009
34010 2008-09-13  Bruno Haible  <bruno@clisp.org>
34011
34012         * modules/errno-tests: New file.
34013         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
34014
34015         * lib/errno.in.h: New file.
34016         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
34017         * modules/errno: New file.
34018         * doc/posix-headers/errno.texi: Update documentation.
34019         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
34020
34021 2008-09-13  Bruno Haible  <bruno@clisp.org>
34022
34023         * tests/test-poll.c: Use #if for native Windows, rather than testing
34024         __MSVCRT__.
34025
34026 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34027             Bruno Haible  <bruno@clisp.org>
34028
34029         * lib/glob.c: Don't include <pwd.h> on native Windows.
34030         (WINDOWS32): New macro.
34031         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
34032
34033 2008-09-13  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
34036         (ETIMEDOUT): Remove macro.
34037         (glthread_cond_timedwait_multithreaded): New declaration.
34038         (glthread_cond_timedwait): Use it.
34039         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
34040         (glthread_cond_timedwait_multithreaded): New function.
34041
34042 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34043
34044         * modules/poll-tests: Do not check for io.h.
34045         * tests/test-poll.c: Check for __MSVCRT__ instead.
34046
34047 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34048
34049         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
34050         * modules/poll-tests: Add inet_pton, stdbool, sockets.
34051         * tests/test-poll.c: Use them.  Use _pipe on Windows.
34052
34053 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
34054
34055         * modules/poll-tests: New.
34056         * tests/test-poll.c: New.
34057
34058 2008-09-12  Eric Blake  <ebb9@byu.net>
34059
34060         frexp: test for NetBSD failure on -0.0
34061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
34062         not all, bugs from NetBSD 3.0 have been fixed.
34063         * doc/posix-functions/frexp.texi (frexp): Document bug.
34064         Reported by Thomas Klausner.
34065
34066         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
34067         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
34068         literal -0.0.
34069         Reported by Jonathan C. Patschke <jp@centtech.com>.
34070
34071 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34072
34073         * lib/glthread/cond.h: Use dummy implementation also if
34074         USE_WIN32_THREADS.
34075
34076 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34077
34078         * modules/fnmatch-posix (License): Change to LGPLv2+.
34079         * modules/fnmatch-gnu (License): Likewise.
34080
34081 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34082
34083         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
34084
34085 2008-09-11  Jim Meyering  <meyering@redhat.com>
34086
34087         * users.txt: Add gtk-vnc.
34088
34089 2008-09-08  Simon Josefsson  <simon@josefsson.org>
34090
34091         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
34092         rotate amounts.
34093
34094         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
34095         required for 16-bit and 8-bit rotates.
34096         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
34097         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
34098         UINT8_MAX instead of hard-coded constants.
34099         Suggested by Paul Eggert.
34100
34101 2008-09-07  Bruno Haible  <bruno@clisp.org>
34102
34103         * tests/test-striconveh.c (main): Check behaviour when converting from
34104         UTF-7.
34105
34106         Make striconveh work better with stateful encodings.
34107         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
34108         that iconv does not increment the inptr when returning -1/EINVAL.
34109
34110 2008-09-07  Bruno Haible  <bruno@clisp.org>
34111
34112         * build-aux/config.rpath: Update according to libtool-2.2.6.
34113         * build-aux/config.libpath: Likewise.
34114
34115 2008-09-06  Bruno Haible  <bruno@clisp.org>
34116
34117         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
34118         * lib/freadptr.c (freadptr): Likewise.
34119         * lib/freadseek.c (freadptrinc): Likewise.
34120         Reported by Simon Josefsson.
34121
34122 2008-09-06  Bruno Haible  <bruno@clisp.org>
34123
34124         * modules/freadptr (License): Change to LGPLv2+.
34125         * modules/freadseek (License): Likewise.
34126         Suggested by Eric Blake.
34127
34128         * modules/memchr2 (License): Change to LGPLv2+.
34129         Approved by Eric Blake.
34130
34131 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34132             Bruno Haible  <bruno@clisp.org>
34133
34134         Make gnulib-tool work with native 'sed' on AIX.
34135         * gnulib-tool (sed_noop): New variable.
34136         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
34137         func_add_or_update, func_create_testdir): Use it to initialize sed
34138         script variables.
34139         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34140
34141 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
34142             Bruno Haible  <bruno@clisp.org>
34143
34144         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
34145         also works after #include directives.
34146
34147 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
34148
34149         getdate.y: reject an out-of-range timezone value
34150         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
34151         the range [-24...+24].  When specified with only one or two digits,
34152         * tests/test-getdate.c: Tests for the fix.
34153         * doc/getdate.texi: Document this change.
34154
34155 2008-09-03  Bruno Haible  <bruno@clisp.org>
34156
34157         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
34158
34159 2008-09-02  Simon Josefsson  <simon@josefsson.org>
34160
34161         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
34162         <bruce.korb@gmail.com> with ideas from Ben Pfaff
34163         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
34164         Blake <ebb9@byu.net>.
34165
34166         * tests/test-bitrotate.c: Add more test vectors.
34167
34168 2008-09-02  Eric Blake  <ebb9@byu.net>
34169
34170         vasnprintf-posix: handle large precision via %.*d
34171         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
34172         when handling it ourselves.
34173         * tests/test-vasnprintf-posix.c (test_function): Add test.
34174         * tests/test-snprintf-posix.h (test_function): Likewise.
34175         * tests/test-sprintf-posix.h (test_function): Likewise.
34176         * tests/test-vasprintf-posix.c (test_function): Likewise.
34177         Reported by Alain Guibert.
34178
34179 2008-09-01  Eric Blake  <ebb9@byu.net>
34180
34181         c-stack: make configure-time check more robust
34182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
34183         successful sigaction call.
34184         Reported by Tom G. Christensen.
34185
34186 2008-09-01  Bruno Haible  <bruno@clisp.org>
34187
34188         New module 'findprog-lgpl'.
34189         * modules/findprog-lgpl: New file.
34190         * lib/findprog-lgpl.c: New file.
34191         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
34192         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
34193         to decide whether to use strdup or xstrdup, concatenated_filename or
34194         xconcatenated_filename.
34195
34196 2008-09-01  Bruno Haible  <bruno@clisp.org>
34197
34198         Split module 'concat-filename' into 'concat-filename' (LGPL) and
34199         'xconcat-filename' (GPL).
34200         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
34201         (License): Change to LGPLv2+.
34202         * modules/xconcat-filename: New file.
34203         * lib/concat-filename.h (concatenated_filename): Change specification.
34204         (xconcatenated_filename): New declaration.
34205         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
34206         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
34207         memory situations.
34208         * lib/xconcat-filename.c: New file.
34209         * NEWS: Mention the change.
34210         * lib/findprog.c: Include concat-filename.h, not filename.h.
34211         (find_in_path): Use xconcatenated_filename instead of
34212         concatenated_filename.
34213         * lib/javacomp.c: Include concat-filename.h, not filename.h.
34214         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34215         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34216         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34217         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
34218         instead of concatenated_filename.
34219         * lib/javaexec.c: Include concat-filename.h, not filename.h.
34220         (execute_java_class): Use xconcatenated_filename instead of
34221         concatenated_filename.
34222         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
34223         * modules/javacomp (Depends-on): Likewise.
34224         * modules/javaexec (Depends-on): Likewise.
34225
34226 2008-09-01  Bruno Haible  <bruno@clisp.org>
34227
34228         Split module 'filename' into 'filename' and 'concat-filename'.
34229         * modules/filename: Keep only lib/filename.h.
34230         (License): Change to LGPLv2+.
34231         * modules/concat-filename: New file, extracted from modules/filename.
34232         * lib/filename.h (concatenated_filename): Remove declaration.
34233         * lib/concat-filename.h: New file, extracted from lib/filename.h.
34234         * lib/concat-filename.c: Include concat-filename.h.
34235         * NEWS: Mention the change.
34236
34237 2008-09-01  Simon Josefsson  <simon@josefsson.org>
34238
34239         * lib/bitrotate.h (rotl8, rotr8): Add.
34240
34241         * modules/bitrotate (configure.ac): Need
34242         AC_REQUIRE([AC_C_INLINE]).
34243         (Description): Mention stdint.h.  Reported by Bruno Haible
34244         <bruno@clisp.org>.
34245
34246         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
34247         Paolo Bonzini <bonzini@gnu.org>.
34248
34249 2008-08-31  Bruno Haible  <bruno@clisp.org>
34250
34251         Assume Solaris specific bi-arch conventions on Solaris systems.
34252         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
34253         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
34254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
34255         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
34256         like acl_libdirstem.
34257         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
34258         acl_libdirstem.
34259         * NEWS: Mention the change.
34260         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
34261
34262 2008-08-31  Jim Meyering  <meyering@redhat.com>
34263
34264         * lib/strftime.h: Add comments describing the two added arguments.
34265
34266         remove duplicate #include directives
34267         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
34268         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
34269
34270 2008-08-31  Bruno Haible  <bruno@clisp.org>
34271
34272         New module 'sigpipe-die'.
34273         * modules/sigpipe-die: New file.
34274         * lib/sigpipe-die.h: New file.
34275         * lib/sigpipe-die.c: New file.
34276         * MODULES.html.sh (Signal handling): Add sigpipe-die.
34277
34278 2008-08-31  Bruno Haible  <bruno@clisp.org>
34279
34280         Don't override previously installed signal handlers.
34281         * lib/fatal-signal.c (saved_sigactions): New variable.
34282         (uninstall_handlers): Reset the signal to the saved handler, not
34283         to SIG_DFL (except when ignored).
34284         (install_handlers): Save the previous handlers.
34285
34286 2008-08-30  Bruno Haible  <bruno@clisp.org>
34287
34288         * gnulib-tool (func_reset_sigpipe): New function.
34289         (func_get_automake_snippet, func_modules_transitive_closure,
34290         func_import): Invoke it before a join command that reads from stdin,
34291         to avoid "echo: write error: Broken pipe" error messages on stderr.
34292         Reported by Sam Steingold <sds@gnu.org>.
34293
34294 2008-08-30  Bruno Haible  <bruno@clisp.org>
34295
34296         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
34297         Code copied from m4/open.m4.
34298         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
34299         access and the filename ends in a slash. Code copied from lib/open.c.
34300         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
34301         * tests/test-fopen.c (main): Check against bug with trailing slash.
34302
34303 2008-08-29  Bruno Haible  <bruno@clisp.org>
34304
34305         Avoid some "gcc -pedantic" warnings.
34306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
34307         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
34308         * lib/dirent.in.h: Likewise.
34309         * lib/fcntl.in.h: Likewise.
34310         * lib/float.in.h: Likewise.
34311         * lib/iconv.in.h: Likewise.
34312         * lib/inttypes.in.h: Likewise.
34313         * lib/locale.in.h: Likewise.
34314         * lib/math.in.h: Likewise.
34315         * lib/netinet_in.in.h: Likewise.
34316         * lib/search.in.h: Likewise.
34317         * lib/signal.in.h: Likewise.
34318         * lib/stdarg.in.h: Likewise.
34319         * lib/stdint.in.h: Likewise.
34320         * lib/stdio.in.h: Likewise.
34321         * lib/stdlib.in.h: Likewise.
34322         * lib/string.in.h: Likewise.
34323         * lib/strings.in.h: Likewise.
34324         * lib/sys_select.in.h: Likewise.
34325         * lib/sys_socket.in.h: Likewise.
34326         * lib/sys_stat.in.h: Likewise.
34327         * lib/sys_time.in.h: Likewise.
34328         * lib/sysexits.in.h: Likewise.
34329         * lib/time.in.h: Likewise.
34330         * lib/unistd.in.h: Likewise.
34331         * lib/wchar.in.h: Likewise.
34332         * lib/wctype.in.h: Likewise.
34333         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
34334         * modules/fchdir (Makefile.am): Likewise.
34335         * modules/fcntl (Makefile.am): Likewise.
34336         * modules/float (Makefile.am): Likewise.
34337         * modules/iconv_open (Makefile.am): Likewise.
34338         * modules/inttypes (Makefile.am): Likewise.
34339         * modules/locale (Makefile.am): Likewise.
34340         * modules/math (Makefile.am): Likewise.
34341         * modules/netinet_in (Makefile.am): Likewise.
34342         * modules/search (Makefile.am): Likewise.
34343         * modules/signal (Makefile.am): Likewise.
34344         * modules/stdarg (Makefile.am): Likewise.
34345         * modules/stdint (Makefile.am): Likewise.
34346         * modules/stdio (Makefile.am): Likewise.
34347         * modules/stdlib (Makefile.am): Likewise.
34348         * modules/string (Makefile.am): Likewise.
34349         * modules/strings (Makefile.am): Likewise.
34350         * modules/sys_select (Makefile.am): Likewise.
34351         * modules/sys_socket (Makefile.am): Likewise.
34352         * modules/sys_stat (Makefile.am): Likewise.
34353         * modules/sys_time (Makefile.am): Likewise.
34354         * modules/sysexits (Makefile.am): Likewise.
34355         * modules/time (Makefile.am): Likewise.
34356         * modules/unistd (Makefile.am): Likewise.
34357         * modules/wchar (Makefile.am): Likewise.
34358         * modules/wctype (Makefile.am): Likewise.
34359         Reported by Reuben Thomas <rrt@sc3d.org>.
34360
34361 2008-08-29  Bruno Haible  <bruno@clisp.org>
34362
34363         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
34364         any more.
34365
34366 2008-08-29  Simon Josefsson  <simon@josefsson.org>
34367
34368         * MODULES.html.sh (Misc): Add bitrotate.
34369
34370         * modules/bitrotate: New file.
34371
34372         * lib/bitrotate.h: New file.
34373
34374         * modules/bitrotate-tests: New file.
34375
34376         * tests/test-bitrotate.c: New file.
34377
34378         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
34379         on the bitrotate module.
34380
34381         * lib/arctwo.c: Use new bitrotate module.
34382
34383 2008-08-29  Jim Meyering  <meyering@redhat.com>
34384
34385         bootstrap: merge changes from coreutils
34386         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
34387         of copied files.  Remove a kludge, now that this is fixed.
34388         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
34389         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
34390         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
34391
34392 2008-08-29  Bruno Haible  <bruno@clisp.org>
34393
34394         * MODULES.html.sh: Remove --cvs-urls option.
34395
34396 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
34397
34398         maint.mk: adjust to file name change
34399         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
34400
34401 2008-08-28  Jim Meyering  <meyering@redhat.com>
34402
34403         * modules/getndelim2 (License): Relicense to LGPLv2+.
34404         Approved by Richard Stallman for the version of 1995, and by
34405         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
34406
34407 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
34408
34409         * lib/getdelim.c (flockfile, funlockfile): Make all of them
34410         dummy if one is not available.  Do not touch them if
34411         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
34412         (getc_maybe_unlocked): New.
34413         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
34414
34415 2008-08-26  Eric Blake  <ebb9@byu.net>
34416
34417         doc/INSTALL: resync from autoconf
34418         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
34419         (INSTALL_PRELUDE): Delete; this is done more efficiently by
34420         moving...
34421         * install.texi [!autoconf]: ...here.  Resync from autoconf.
34422         * INSTALL: Regenerate.
34423         * INSTALL.ISO: New file.
34424         * INSTALL.UTF-8: Likewise.
34425
34426 2008-08-26  Jim Meyering  <meyering@redhat.com>
34427
34428         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
34429         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
34430         these definitions conditional, so that they may be overridden, too.
34431
34432 2008-08-26  Bruno Haible  <bruno@clisp.org>
34433
34434         Generate INSTALL file variants with prettier quotes.
34435         * doc/Makefile (INSTALL_PRELUDE): New macro.
34436         (INSTALL): Use it.
34437         (INSTALL.ISO, INSTALL.UTF-8): New rules.
34438
34439 2008-08-26  Bruno Haible  <bruno@clisp.org>
34440
34441         Run makeinfo in an English locale.
34442         * doc/Makefile (MAKEINFO): New variable.
34443
34444 2008-08-26  Bruno Haible  <bruno@clisp.org>
34445
34446         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
34447         Suggested by Eric Blake.
34448
34449 2008-08-25  Bruno Haible  <bruno@clisp.org>
34450
34451         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
34452
34453 2008-08-25  Eric Blake  <ebb9@byu.net>
34454
34455         c-stack: test that stack overflow can be caught
34456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
34457         that platform allows handling stack overflow; at least OS/2 EMX
34458         has sigaltstack, but crashes before transferring control to
34459         handler on stack overflow.
34460         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
34461         check for HAVE_STACK_OVERFLOW_HANDLING.
34462         Reported by Elbert Pol.
34463
34464 2008-08-25  Bruno Haible  <bruno@clisp.org>
34465
34466         * doc/posix-functions/strftime.texi: Fix description of strftime
34467         module.
34468
34469 2008-08-24  Bruno Haible  <bruno@clisp.org>
34470
34471         * tests/uniwidth/test-uc_width2.c: New file.
34472         * tests/uniwidth/test-uc_width2.sh: New file.
34473         * modules/uniwidth/width-tests (Files): Add the new files.
34474         (TESTS): Add uniwidth/test-uc_width2.sh.
34475         (TESTS_ENVIRONMENT): New variable.
34476         (check_PROGRAMS): Add test-uc_width2.
34477         (test_uc_width2_SOURCES): New variable.
34478
34479         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
34480         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
34481         not 0x00AB.
34482         Reported by Alexander V. Lukyanov <lav@netis.ru>.
34483
34484 2008-08-22  Eric Blake  <ebb9@byu.net>
34485
34486         test-lock, test-tls: mention why a test is skipped
34487         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
34488         skipped.
34489         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
34490
34491         count-one-bits: relax license
34492         * modules/count-one-bits (License): Relicense to LGPLv2+.
34493         Suggested by Ludovic Courtès, approved by Ben Pfaff.
34494
34495 2008-08-22  Andreas Schwab  <schwab@suse.de>
34496
34497         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34498         Remove spurious space in assignment.
34499
34500 2008-08-21  Simon Josefsson  <simon@josefsson.org>
34501
34502         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
34503         Paul Eggert <eggert@CS.UCLA.EDU>.
34504
34505 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
34506
34507         * modules/gettext: Add m4/threadlib.m4.
34508
34509 2008-08-19  Eric Blake  <ebb9@byu.net>
34510
34511         test-c-stack: fix compilation failure on FreeBSD 5.0
34512         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
34513         headers before <sys/resource.h>.
34514         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
34515         the bug.
34516         Reported by Nelson H. F. Beebe.
34517
34518         strverscmp: migrate from "strverscmp.h" to <string.h>
34519         * modules/string (Makefile.am): Add new hooks.
34520         * modules/strverscmp (Files): Remove strverscmp.h.
34521         (Depends-on): Add string.
34522         (configure.ac): Add indicator.
34523         (Include): Mention new header.
34524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
34525         defaults.
34526         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
34527         results.
34528         * lib/strverscmp.h: Delete.
34529         * lib/string.in.h (strverscmp): Provide declaration, when needed.
34530         * tests/test-strverscmp.c (includes): Adjust client.
34531         * lib/check-version.c (includes): Likewise.
34532         * NEWS: Document the change.
34533
34534         strverscmp: add unit test
34535         * modules/strverscmp-tests: New file.
34536         * tests/test-strverscmp.c: Likewise.
34537
34538 2008-08-19  Simon Josefsson  <simon@josefsson.org>
34539
34540         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
34541         regarding Windows crypto stuff, from Mono.
34542
34543 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
34544
34545         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
34546         if present, for intel RND.  Return error on failures.
34547
34548 2008-08-18  Ben Pfaff  <blp@gnu.org>
34549
34550         gitlog-to-changelog: give better diagnostic for failed pipe-open
34551         * build-aux/gitlog-to-changelog: Improve error message: suggest
34552         that the version of Git may be too old.
34553
34554 2008-08-18  Simon Josefsson  <simon@josefsson.org>
34555
34556         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
34557         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
34558
34559 2008-08-18  Bruno Haible  <bruno@clisp.org>
34560
34561         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
34562         pthread_in_use().
34563
34564 2008-08-18  Bruno Haible  <bruno@clisp.org>
34565
34566         * lib/glthread/threadlib.c: Include <pthread.h>.
34567
34568 2008-08-18  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
34571         glthread_recursive_lock_* macros.
34572         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
34573         Fix syntax error.
34574
34575 2008-08-18  Bruno Haible  <bruno@clisp.org>
34576
34577         * lib/glthread/thread.c: Avoid forcing a context switch right after
34578         thread creation.
34579
34580 2008-08-17  Bruno Haible  <bruno@clisp.org>
34581
34582         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
34583         * lib/glthread/thread.h: Provide Win32 specific implementation.
34584         * modules/thread (Files): Add lib/glthread/thread.c.
34585         (Depends-on): Add lock.
34586         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
34587
34588 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34589
34590         New module 'yield'.
34591         * modules/yield: New file.
34592         * lib/glthread/yield.h: New file.
34593         * m4/yield.m4: New file.
34594         * MODULES.html.sh (Multithreading): Add yield.
34595
34596 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34597
34598         New module 'thread'.
34599         * modules/thread: New file.
34600         * lib/glthread/thread.h: New file.
34601         * m4/thread.m4: New file.
34602         * MODULES.html.sh (Multithreading): Add thread.
34603
34604 2008-08-17  Bruno Haible  <bruno@clisp.org>
34605
34606         * lib/glthread/lock.h: Include <stdlib.h> always.
34607         * lib/glthread/tls.h: Likewise.
34608         * lib/glthread/cond.h: Likewise.
34609
34610 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34611
34612         New module 'cond'.
34613         * modules/cond: New file.
34614         * lib/glthread/cond.h: New file.
34615         * lib/glthread/cond.c: New file.
34616         * m4/cond.m4: New file.
34617         * MODULES.html.sh (Multithreading): Add cond.
34618
34619 2008-08-16  Eric Blake  <ebb9@byu.net>
34620
34621         c-stack: fix regression on Irix 5.3 from 2008-06-21
34622         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
34623         sa_sigaction...
34624         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
34625         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
34626         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
34627         * modules/signal (Makefile.am): Use the value.
34628         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
34629         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
34630         * doc/posix-headers/signal.texi (signal.h): Document this
34631         portability issue.
34632         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
34633         Reported by Tom G. Christensen.
34634
34635 2008-08-17  Bruno Haible  <bruno@clisp.org>
34636
34637         New module 'threadlib'.
34638         * modules/threadlib: New file.
34639         * lib/glthread/threadlib.c: New file, extracted from
34640         lib/glthread/lock.c.
34641         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
34642         functions.
34643         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
34644         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
34645         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
34646         macros.
34647         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
34648         (gl_DISABLE_THREADS): Remove macro.
34649         * modules/lock (Files): Remove build-aux/config.rpath.
34650         (Depends-on): Remove havelib. Add threadlib.
34651         (configure.ac-early): Remove section.
34652         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
34653         * modules/tls (Depends-on): Remove lock. Add threadlib.
34654         (Link): New section, copied from threadlib.
34655         * MODULES.html.sh (Multithreading): Add threadlib.
34656
34657 2008-08-14  Bruno Haible  <bruno@clisp.org>
34658
34659         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
34660         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
34661         glthread_rwlock_unlock, glthread_rwlock_destroy,
34662         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
34663         glthread_recursive_lock_destroy): Define as macros always.
34664         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
34665         glthread_lock_lock.
34666         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
34667         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
34668         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
34669         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
34670         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
34671         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
34672         (glthread_recursive_lock_lock_func): Renamed from
34673         glthread_recursive_lock_lock.
34674         (glthread_recursive_lock_unlock_func): Renamed from
34675         glthread_recursive_lock_unlock.
34676         (glthread_recursive_lock_destroy_func): Renamed from
34677         glthread_recursive_lock_destroy.
34678
34679 2008-08-14  Bruno Haible  <bruno@clisp.org>
34680
34681         * lib/glthread/lock.h: Renamed from lib/lock.h.
34682         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
34683         * lib/glthread/tls.h: Renamed from lib/tls.h.
34684         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
34685         * lib/fstrcmp.c: Update includes.
34686         * lib/strsignal.c: Update includes.
34687         * modules/lock (Files, Makefile.am): Update.
34688         (Include): Change to "glthread/lock.h".
34689         * modules/tls (Files, Makefile.am): Update.
34690         (Include): Change to "glthread/tls.h".
34691         * tests/test-lock.c: Update includes.
34692         * tests/test-tls.c: Update includes.
34693         * NEWS: Mention the renamed header files.
34694
34695 2008-08-11  Jim Meyering  <meyering@redhat.com>
34696
34697         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
34698
34699 2008-08-11  Eric Blake  <ebb9@byu.net>
34700
34701         test-c-stack: avoid C99-ism
34702         * tests/test-c-stack.c (main): Fix whitespace, move declaration
34703         before statement.
34704         Reported by Alain Guibert.
34705
34706 2008-08-10  Jim Meyering  <meyering@redhat.com>
34707
34708         ensure that return value of uinttostr et al are not ignored
34709         * lib/inttostr.h (__GNUC_PREREQ): Define.
34710         (__attribute_warn_unused_result__): Define.
34711         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
34712
34713 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
34714
34715         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
34716         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
34717
34718 2008-08-07  Jim Meyering  <meyering@redhat.com>
34719
34720         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
34721
34722         * modules/mkstemp (License): Relicense under LGPLv2+.
34723         * modules/tempname (License): Likewise.
34724
34725 2008-08-06  Bruno Haible  <bruno@clisp.org>
34726
34727         * lib/poll.c (poll): Further micro-optimization.
34728
34729 2008-08-06  Jim Meyering  <meyering@redhat.com>
34730
34731         inet_pton.c: use locale-independent tolower
34732         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
34733         (inet_pton6): Use c_tolower rather than tolower.
34734         * modules/inet_pton (Depends-on): Add c-ctype.
34735
34736 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
34737
34738         * lib/poll.c (poll): Avoid division when timeout is 0, cache
34739         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
34740
34741 2008-08-06  Jim Meyering  <meyering@redhat.com>
34742
34743         * modules/inet_pton (License): Relicense under LGPLv2+.
34744
34745 2008-08-03  Bruno Haible  <bruno@clisp.org>
34746
34747         Additional non-aborting API for lock and tls.
34748         * lib/lock.h: Include <errno.h>.
34749         (glthread_lock_init): New macro/function.
34750         (gl_lock_init): Define as wrapper around glthread_lock_init.
34751         (glthread_lock_lock): New macro/function.
34752         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
34753         (glthread_lock_unlock): New macro/function.
34754         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
34755         (glthread_lock_destroy): New macro/function.
34756         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
34757         (glthread_rwlock_init): New macro/function.
34758         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
34759         (glthread_rwlock_rdlock): New macro/function.
34760         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
34761         (glthread_rwlock_wrlock): New macro/function.
34762         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
34763         (glthread_rwlock_unlock): New macro/function.
34764         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
34765         (glthread_rwlock_destroy): New macro/function.
34766         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
34767         (glthread_recursive_lock_init): New macro/function.
34768         (gl_recursive_lock_init): Define as wrapper around
34769         glthread_recursive_lock_init.
34770         (glthread_recursive_lock_lock): New macro/function.
34771         (gl_recursive_lock_lock): Define as wrapper around
34772         glthread_recursive_lock_lock.
34773         (glthread_recursive_lock_unlock): New macro/function.
34774         (gl_recursive_lock_unlock): Define as wrapper around
34775         glthread_recursive_lock_unlock.
34776         (glthread_recursive_lock_destroy): New macro/function.
34777         (gl_recursive_lock_destroy): Define as wrapper around
34778         glthread_recursive_lock_destroy.
34779         (glthread_once): New macro/function.
34780         (gl_once): Define as wrapper around glthread_once.
34781         Update function declarations.
34782         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
34783         glthread_rwlock_init. Return error code.
34784         (glthread_rwlock_rdlock_multithreaded): Renamed from
34785         glthread_rwlock_rdlock. Return error code.
34786         (glthread_rwlock_wrlock_multithreaded): Renamed from
34787         glthread_rwlock_wrlock. Return error code.
34788         (glthread_rwlock_unlock_multithreaded): Renamed from
34789         glthread_rwlock_unlock. Return error code.
34790         (glthread_rwlock_destroy_multithreaded): Renamed from
34791         glthread_rwlock_destroy. Return error code.
34792         (glthread_recursive_lock_init_multithreaded): Renamed from
34793         glthread_recursive_lock_init. Return error code.
34794         (glthread_recursive_lock_lock_multithreaded): Renamed from
34795         glthread_recursive_lock_lock. Return error code.
34796         (glthread_recursive_lock_unlock_multithreaded): Renamed from
34797         glthread_recursive_lock_unlock. Return error code.
34798         (glthread_recursive_lock_destroy_multithreaded): Renamed from
34799         glthread_recursive_lock_destroy. Return error code.
34800         (glthread_once_call): Make static.
34801         (glthread_once_multithreaded): Renamed from glthread_once.
34802         * lib/tls.h: Include <errno.h>.
34803         (glthread_tls_key_init): New macro/function.
34804         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
34805         (glthread_tls_set): New macro/function.
34806         (gl_tls_set): Define as wrapper around glthread_tls_set.
34807         (glthread_tls_key_destroy): New macro/function.
34808         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
34809         Update function declarations.
34810         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
34811         glthread_tls_get.
34812         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34813
34814 2008-08-04  Eric Blake  <ebb9@byu.net>
34815
34816         gnumakefile: use space, not TAB, outside of targets
34817         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
34818
34819 2008-08-02  Jim Meyering  <meyering@redhat.com>
34820
34821         getdate.y: avoid locale-dependent date parsing failure
34822         In Turkish locales, getdate would fail to recognize keywords
34823         containing a lowercase "i".  The solution is not to rely on
34824         locale-sensitive case-conversion.
34825         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
34826         (lookup_word): Use c_toupper in place of toupper.
34827         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
34828         Reported by Vefa Bicakci <bicave@superonline.com> in
34829         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
34830         * modules/getdate (Depends-on): Add c-ctype.
34831
34832 2008-08-02  Bruno Haible  <bruno@clisp.org>
34833
34834         * gnulib-tool (func_import): When updating or creating a .gitignore
34835         file, prepend each added line with a slash, and ignore leading slashes
34836         from the existing lines.
34837         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34838
34839 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34840
34841         Portability fix for GNU make 3.79.1.
34842         * top/GNUmakefile: Avoid 'else COND', which older GNU make
34843         versions do not understand.
34844
34845 2008-08-01  Bruno Haible  <bruno@clisp.org>
34846
34847         Work around bug of HP-UX 10.20 cc with -0.0 literal.
34848         * tests/test-isnanf.h (zero): New variable.
34849         (main): Avoid literal -0.0f.
34850         * tests/test-isnand.h (zero): New variable.
34851         (main): Avoid literal -0.0.
34852         * tests/test-isnanl.h (zero): New variable.
34853         (main): Avoid literal -0.0L.
34854         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
34855         (test_float, test_double, test_long_double): Avoid literals -0.0f,
34856         -0.0, -0.0L.
34857         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
34858         (test_signbitd): Avoid literal -0.0.
34859         (test_signbitl): Avoid literal -0.0L.
34860         * tests/test-ceilf1.c (zero): New variable.
34861         (main): Avoid literal -0.0f.
34862         * tests/test-ceill.c (zero): New variable.
34863         (main): Avoid literal -0.0L.
34864         * tests/test-floorf1.c (zero): New variable.
34865         (main): Avoid literal -0.0f.
34866         * tests/test-floorl.c (zero): New variable.
34867         (main): Avoid literal -0.0L.
34868         * tests/test-roundf1.c (zero): New variable.
34869         (main): Avoid literal -0.0f.
34870         * tests/test-round1.c (zero): New variable.
34871         (main): Avoid literal -0.0.
34872         * tests/test-roundl.c (zero): New variable.
34873         (main): Avoid literal -0.0L.
34874         * tests/test-truncf1.c (zero): New variable.
34875         (main): Avoid literal -0.0f.
34876         * tests/test-trunc1.c (zero): New variable.
34877         (main): Avoid literal -0.0.
34878         * tests/test-truncl.c (zero): New variable.
34879         (main): Avoid literal -0.0L.
34880         * tests/test-frexp.c (zero): New variable.
34881         (main): Avoid literal -0.0.
34882         * tests/test-frexpl.c (zero): New variable.
34883         (main): Avoid literal -0.0L.
34884         * tests/test-ldexpl.c (zero): New variable.
34885         (main): Avoid literal -0.0L.
34886         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34887         (zerod, zerol): New variables.
34888         (test_function): Avoid literals -0.0, -0.0L.
34889         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
34890         (zerod, zerol): New variables.
34891         (test_function): Avoid literals -0.0, -0.0L.
34892         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34893         (zerod, zerol): New variables.
34894         (test_function): Avoid literals -0.0, -0.0L.
34895         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
34896         (zerod, zerol): New variables.
34897         (test_function): Avoid literals -0.0, -0.0L.
34898         * tests/test-strtod.c (zero): New variable.
34899         (main): Avoid literal -0.0.
34900         Reported by Jonathan C. Patschke <jp@centtech.com>.
34901
34902 2008-07-31  Jim Meyering  <meyering@redhat.com>
34903
34904         sha256.h: correct definition of SHA224_DIGEST_SIZE
34905         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
34906         Reported by Paulie Pena IV <paulie4@gmail.com>.
34907         Define as 224 / 8, rather than as a literal.
34908         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
34909         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
34910         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
34911
34912 2008-07-31  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
34915         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
34916         Reported by Jonathan Patschke <jp@centtech.com>.
34917
34918 2008-07-31  Bruno Haible  <bruno@clisp.org>
34919
34920         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
34921         Reported by Paolo Bonzini <bonzini@gnu.org>.
34922
34923 2008-07-30  Eric Blake  <ebb9@byu.net>
34924
34925         test-strtod: allow compilation without -lm
34926         * tests/test-strtod.c (main): Avoid link dependence on fabs.
34927         Reported by Dennis Clarke <blastwave@gmail.com>.
34928
34929 2008-07-28  Jim Meyering  <meyering@redhat.com>
34930
34931         bootstrap: work also when there are no .po files in po/
34932         * build-aux/bootstrap (update_po_files): Complete the change
34933         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
34934
34935 2008-07-27  Jim Meyering  <meyering@redhat.com>
34936
34937         * users.txt: Add zile.
34938
34939 2008-07-26  Ben Pfaff  <blp@gnu.org>
34940
34941         Add missing dependencies on new m4/exponent[fdl].m4 files.
34942         * modules/isnanf-nolibm: Add m4/exponentf.m4.
34943         * modules/isnand-nolibm: Add m4/exponentd.m4.
34944         * modules/isnanl-nolibm: Add m4/exponentl.m4.
34945         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
34946         m4/isnan[fdl].m4, because the macros actually used moved.
34947         Reported by Jim Meyering.
34948
34949 2008-07-14  Ben Pfaff  <blp@gnu.org>
34950
34951         Add isinf module.
34952         * lib/isinf.c: New file.
34953         * lib/math.in.h: Define isinf macro if we have decided to replace
34954         it.
34955         * m4/isinf.m4: New file.
34956         * m4/math_h.m4: Initialize and substitute variables for isinf
34957         module.
34958         * modules/isinf: New file.
34959         * modules/isinf-tests: New file.
34960         * modules/math: Add substitutions for new module.
34961         * tests/test-isinf.c: New file.
34962         * doc/posix-functions/isinf.texi: Mention new module.
34963         * MODULES.html.sh: Mention new module.
34964
34965 2008-07-14  Ben Pfaff  <blp@gnu.org>
34966
34967         Factor out some macros for use by additional modules.
34968         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
34969         exponentf.m4.
34970         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
34971         exponentd.m4.
34972         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
34973         file exponentl.m4.
34974         * m4/exponentf.m4: New file.
34975         * m4/exponentd.m4: New file.
34976         * m4/exponentl.m4: New file.
34977         * modules/isnanf: Use new file m4/exponentf.m4.
34978         * modules/isnand: Use new file m4/exponentd.m4.
34979         * modules/isnanl: Use new file m4/exponentl.m4.
34980
34981 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
34982
34983         mktime.c: normalize tp->tm_isdst value to -1/0/1.
34984         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
34985         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
34986         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
34987
34988         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
34989         readlink on platforms without PATH_MAX.
34990
34991 2008-07-21  Eric Blake  <ebb9@byu.net>
34992
34993         Warn, not fail, on stale version.
34994         * top/GNUmakefile (_curr-ver): Tone down previous patch.
34995
34996         Don't allow installation with stale devel version number.
34997         * top/GNUmakefile (_is-install-target): New macro.
34998         (_curr-ver): Forbid installation with stale version number.
34999
35000 2008-07-20  Bruno Haible  <bruno@clisp.org>
35001
35002         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
35003         TESTS_ENVIRONMENT.
35004         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
35005
35006 2008-07-20  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/c-stack.h (c_stack_action): Add documentation.
35009         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
35010
35011 2008-07-20  Bruno Haible  <bruno@clisp.org>
35012
35013         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
35014         * modules/readlink (License): Likewise.
35015
35016 2008-07-17  Eric Blake  <ebb9@byu.net>
35017
35018         * modules/c-stack (Link): Fix typo.
35019
35020         Make c-stack use libsigsegv, when available.
35021         * modules/c-stack (Depends-on): Add libsigsegv.
35022         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
35023         needed.
35024         * lib/c-stack.c (SIGSTKSZ): Define fallback.
35025         (segv_handler, overflow_handler, c_stack_action)
35026         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
35027         implementation when libsigsegv is available, but only when using
35028         the library is necessary.
35029         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
35030         comment, explaining why XSI check fails on Linux.
35031         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
35032         * tests/test-c-stack2.sh: Tweak skip message.
35033         * NEWS: Document new link-time requirements.
35034
35035 2008-07-16  Eric Blake  <ebb9@byu.net>
35036
35037         c-stack: Expose false positives when not using libsigsegv.
35038         * modules/c-stack-tests (Files): Expand test.
35039         * tests/test-c-stack.c (main): Add means to conditionally trigger
35040         non-overflow SIGSEGV.
35041         * tests/test-c-stack2.sh: New file.
35042
35043 2008-07-14  Bruno Haible  <bruno@clisp.org>
35044
35045         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
35046         Reported by Eric Blake.
35047
35048 2008-07-14  Sam Steingold  <sds@gnu.org>
35049             Bruno Haible  <bruno@clisp.org>
35050
35051         New module libsigsegv.
35052         * modules/libsigsegv: New file.
35053         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
35054         modifications.
35055         * MODULES.html.sh (Signal handling): New section.
35056
35057 2008-07-14  Bruno Haible  <bruno@clisp.org>
35058
35059         * modules/unictype/ctype-* (Description): Add the word "function".
35060         Improves the resulting doc in MODULES.html.
35061
35062 2008-07-12  Ben Pfaff  <blp@gnu.org>
35063
35064         Add longlong module.
35065         * modules/longlong: New file.
35066
35067 2008-07-12  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
35070         to empty.
35071
35072 2008-07-10  Ben Pfaff  <blp@gnu.org>
35073
35074         Add isnan module.
35075         * doc/posix-functions/isnan.texi: Mention new module.
35076         * lib/math.in.h: Define isnan macro if we have decided to replace
35077         it.
35078         * m4/isnan.m4: New file.
35079         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
35080         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
35081         also.
35082         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
35083         redundancy.
35084         * m4/math_h.m4: Initialize and substitute variables for isnan
35085         module.
35086         * modules/isnan: New file.
35087         * modules/isnan-tests: New file.
35088         * modules/math: Add substitutions for new module.
35089         * tests/test-isnan.c: New file.
35090         * MODULES.html.sh: Mention new module.
35091
35092 2008-07-10  Ben Pfaff  <blp@gnu.org>
35093
35094         Add isnanf module.
35095         * lib/isnanf.m4: New file.
35096         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
35097         (gl_HAVE_ISNANF_IN_LIBM): New macro.
35098         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
35099         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
35100         * modules/isnanf: New file.
35101         * modules/isnanf-tests: New file.
35102         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
35103         files.
35104         * tests/test-isnanf-nolibm.c: factored most of its contents into
35105         new file tests/test-isnanf.h.
35106         * tests/test-isnanf.h: New file.
35107         * tests/test-isnanf.c: New file.
35108         * MODULES.html.sh: Mention new module.
35109         * doc/glibc-functions/isnanf.texi: Mention new module.
35110
35111 2008-07-10  Ben Pfaff  <blp@gnu.org>
35112
35113         Add isnand module.
35114         * lib/isnand.h: New file.
35115         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
35116         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
35117         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
35118         functionality also.
35119         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
35120         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
35121         (gl_HAVE_ISNAND_IN_LIBM): New macro.
35122         * modules/isnand: New file.
35123         * modules/isnand-tests: New file.
35124         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
35125         files.
35126         * tests/test-isnand-nolibm.c: factored most of its contents into
35127         new file tests/test-isnand.h.
35128         * tests/test-isnand.h: New file.
35129         * tests/test-isnand.c: New file.
35130         * MODULES.html.sh: Mention new module.
35131
35132 2008-07-10  Ben Pfaff  <blp@gnu.org>
35133
35134         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
35135         * lib/isnand.h: Rename lib/isnand-nolibm.h.
35136         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
35137         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
35138         * modules/isnanf-nolibm: Update references to renamed files.
35139         * modules/isnand-nolibm: Likewise.
35140         * modules/isnanf-nolibm-tests: Likewise.
35141         * modules/isnand-nolibm-tests: Likewise.
35142         * lib/frexp.c: Likewise.
35143         * lib/isfinite.c: Likewise.
35144         * lib/signbitd.c: Likewise.
35145         * lib/signbitf.c: Likewise.
35146         * lib/vasnprintf.c: Likewise.
35147         * tests/test-ceilf1.c: Likewise.
35148         * tests/test-ceilf2.c: Likewise.
35149         * tests/test-floorf1.c: Likewise.
35150         * tests/test-floorf2.c: Likewise.
35151         * tests/test-frexp.c: Likewise.
35152         * tests/test-round1.c: Likewise.
35153         * tests/test-round2.c: Likewise.
35154         * tests/test-roundf1.c: Likewise.
35155         * tests/test-strtod.c: Likewise.
35156         * tests/test-trunc1.c: Likewise.
35157         * tests/test-trunc2.c: Likewise.
35158         * tests/test-truncf1.c: Likewise.
35159         * tests/test-truncf2.c: Likewise.
35160         * NEWS: Mention the renamed header files.
35161
35162 2008-07-11  Jim Meyering  <meyering@redhat.com>
35163
35164         vc-list-files: make the last-resort awk code more portable
35165         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
35166         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
35167         does not support it.
35168
35169 2008-07-10  Eric Blake  <ebb9@byu.net>
35170
35171         Work with tar's bootstrap.
35172         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
35173         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
35174         an m4 comment.
35175
35176 2008-07-09  Jim Meyering  <meyering@redhat.com>
35177
35178         posix-shell.m4: fix typo that made this test malfunction
35179         * m4/posix-shell.m4: Remove capitalization in variable name.
35180
35181 2008-07-08  Bruno Haible  <bruno@clisp.org>
35182
35183         * m4/onceonly.m4: Update comments.
35184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35185
35186 2008-07-04  Jim Meyering  <meyering@redhat.com>
35187
35188         * users.txt: Add vc-dwim.
35189         (bison, coreutils): Use the gitweb URL.
35190
35191 2008-07-03  Jim Meyering  <meyering@redhat.com>
35192
35193         * users.txt: Add libffcall.  From Sam Steingold.
35194
35195 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
35196
35197         getdate.y: do not ignore TZ with relative day, month or year offset
35198         * lib/getdate.y (get_date): Move the tz-handling block to follow the
35199         relative-date-handling, since otherwise, the latter would clobber the
35200         sole output (an updated Start value) of the tz-handling block.
35201         * tests/test-getdate.c: Tests for the fix
35202
35203 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35204
35205         Recognize 'foo_LIBRARIES += libgnu.a'.
35206         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
35207         makefile snippet has already specified an installation location,
35208         also using '+='.
35209
35210 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
35211
35212         getdate.y: factor out common actions
35213         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
35214         Use them in place of open-coded actions.
35215
35216 2008-07-01  Simon Josefsson  <simon@josefsson.org>
35217
35218         Add self-test for getdate module.
35219         * modules/getdate-tests: New file.
35220         * tests/test-getdate.c: New file.
35221
35222 2008-06-29  Bruno Haible  <bruno@clisp.org>
35223
35224         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
35225         .gitignore.
35226         Reported by Sylvain Beucler <beuc@beuc.net>.
35227
35228 2008-06-29  Bruno Haible  <bruno@clisp.org>
35229
35230         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
35231         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
35232
35233 2008-06-29  Bruno Haible  <bruno@clisp.org>
35234
35235         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
35236         EXTRA_DIST.
35237         Reported by Sylvain Beucler <beuc@beuc.net>.
35238
35239 2008-06-26  Jim Meyering  <meyering@redhat.com>
35240
35241         make several modules depend on the "open" module
35242         This provides slightly increased consistency when opening-for-write
35243         the name of a non-directory spelled with a trailing slash.
35244         * modules/chdir-safer: Likewise.
35245         * modules/chown: Likewise.
35246         * modules/clean-temp: Likewise.
35247         * modules/copy-file: Likewise.
35248         * modules/fchdir: Likewise.
35249         * modules/fcntl-safer: Likewise.
35250         * modules/pipe: Likewise.
35251         * modules/utime: Likewise.
35252         Prompted by Eric Blake and Bruno Haible.
35253
35254 2008-06-24  Andreas Schwab  <schwab@suse.de>
35255
35256         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
35257         literals can be used as initializers for global variables.
35258
35259 2008-06-23  Eric Blake  <ebb9@byu.net>
35260
35261         Make gnulib-cache.m4 easier to diff.
35262         * gnulib-tool (func_import): Allow newlines when reading cached
35263         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
35264
35265 2008-06-23  Bruno Haible  <bruno@clisp.org>
35266
35267         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
35268         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
35269         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
35270         m4/signalblocking.m4.
35271         (gl_PREREQ_SIGACTION): Don't invoke it.
35272         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
35273         gl_PREREQ_SIG_HANDLER_H.
35274         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35275         Don't check for sigaction here.
35276
35277 2008-06-23  Bruno Haible  <bruno@clisp.org>
35278
35279         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
35280         (install_handlers): Don't set the SA_RESETHAND flag.
35281
35282 2008-06-23  Bruno Haible  <bruno@clisp.org>
35283
35284         * m4/sigaction.m4: Comment fixes.
35285         * lib/signal.in.h: Likewise.
35286
35287 2008-06-23  Eric Blake  <ebb9@byu.net>
35288
35289         Fix typo.
35290         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
35291
35292         Avoid SA_ namespace.
35293         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
35294         Reported by Ralf Wildenhues.
35295
35296         Avoid test failure due to SA_RESTORER.
35297         * tests/test-sigaction.c (SA_MASK): New macro.
35298         (main): Avoid failing due to extension flags being set.
35299         Reported by Jim Meyering.
35300
35301         Revert use of sig-handler.h in sigprocmask.c.
35302         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
35303         it requires the existence of struct sigaction.
35304         * lib/sigprocmask.c (handler_t): Restore typedef.
35305         (rpl_signal, old_handlers): Use local type.
35306
35307 2008-06-22  Bruno Haible  <bruno@clisp.org>
35308
35309         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
35310         conditionally.
35311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35312
35313 2008-06-22  Bruno Haible  <bruno@clisp.org>
35314
35315         * doc/posix-functions/siginterrupt.texi: Move note.
35316
35317         * lib/signal.in.h (SA_RESTART): New macro.
35318         * lib/sigaction.c: Update comment.
35319
35320         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
35321
35322         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
35323         (gl_PREREQ_SIGPROCMASK): Invoke it.
35324         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
35325
35326         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
35327
35328         * lib/sigprocmask.c: Update a comment.
35329
35330 2008-06-21  Eric Blake  <ebb9@byu.net>
35331
35332         Use sigaction module rather than signal().
35333         * modules/c-stack (Depends-on): Add sigaction.
35334         * modules/fatal-signal (Depends-on): Likewise.
35335         * modules/nanosleep (Depends-on): Likewise.
35336         * modules/sigprocmask (Files): Add sig-handler.h.
35337         * modules/sigaction (Files): Likewise.
35338         * lib/sig-handler.h (get_handler): New file, suggested by Paul
35339         Eggert.
35340         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
35341         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
35342         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
35343         (init_fatal_signals): Likewise.
35344         * lib/nanosleep.c (rpl_nanosleep): Likewise.
35345         (siginterrupt): Delete fallback.
35346         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
35347         instead.
35348         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
35349         siginterrupt.
35350
35351         New module sigaction, for mingw.
35352         * modules/sigaction: New module...
35353         * modules/sigaction-tests: ...and its test.
35354         * m4/sigaction.m4: New file.
35355         * lib/sigaction.c: Likewise.
35356         * tests/test-sigaction.c: Likewise.
35357         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
35358         * modules/signal (Makefile.am): Likewise.
35359         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
35360         needed.
35361         * doc/posix-headers/signal.texi (signal.h): Mention provided
35362         types.
35363         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
35364         that sigaction is preferable.
35365         * doc/posix-functions/sigaction.texi (sigaction): Mention new
35366         module.
35367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35368         sigaction.
35369
35370         Improve robustness of sigprocmask by overriding signal.
35371         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
35372         is in use.
35373         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
35374         (SIGKILL, SIGSTOP): Provide fallbacks.
35375         (rpl_signal): Implement.
35376         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
35377         signal can be called inside handlers.
35378
35379         Fix nanosleep module on mingw.
35380         * modules/nanosleep (Depends-on): Add sys_select.
35381         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
35382
35383         Fix licensing of sigprocmask.
35384         * modules/raise (License): Relicense as LGPL.
35385
35386 2008-06-21  Bruno Haible  <bruno@clisp.org>
35387
35388         * lib/propername.c (proper_name_utf8): Don't use the transliterated
35389         result if it contains question marks.
35390         Reported by Michael Geng <linux@michaelgeng.de>.
35391
35392 2008-06-19  Bruno Haible  <bruno@clisp.org>
35393
35394         Fix CVS-ism.
35395         * doc/gnulib.texi: Include updated-stamp.texi.
35396         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
35397         (updated-stamp.texi): New rule.
35398         (gnulib.info): Depend on it.
35399         * doc/.gitignore: Add updated-stamp.texi.
35400         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
35401
35402 2008-06-19  Bruno Haible  <bruno@clisp.org>
35403
35404         * doc/Makefile (gnulib.info): Update and simplify dependencies.
35405         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35406
35407 2008-06-19  Eric Blake  <ebb9@byu.net>
35408
35409         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
35410         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
35411         Reported by Stepan Kasal.
35412
35413 2008-06-18  Bruno Haible  <bruno@clisp.org>
35414
35415         * lib/fatal-signal.c (init_fatal_signals): Add comment.
35416         Reported by Eric Blake.
35417
35418 2008-06-18  Eric Blake  <ebb9@byu.net>
35419
35420         Work around cygwin 1.5.25 strsignal bug.
35421         * tests/test-strsignal.c: Allow for const char *.
35422         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
35423
35424 2008-06-18  Simon Josefsson  <simon@josefsson.org>
35425
35426         * users.txt: Update URL to article and add author/date
35427         information.
35428
35429 2008-06-17  Bruno Haible  <bruno@clisp.org>
35430
35431         New macro gl_DISABLE_THREADS.
35432         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
35433         if the user did not pass --enable-threads or --disable-threads option.
35434         (gl_DISABLE_THREADS): New macro.
35435         Reported by Eric Blake <ebb9@byu.net>.
35436
35437 2008-06-17  Bruno Haible  <bruno@clisp.org>
35438
35439         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
35440         when the macro ignores it.
35441         Based on a patch by Eric Blake <ebb9@byu.net>.
35442
35443 2008-06-17  Bruno Haible  <bruno@clisp.org>
35444
35445         * modules/tls (License): Change to LGPLv2+.
35446         Reported by Eric Blake.
35447
35448 2008-06-17  Eric Blake  <ebb9@byu.net>
35449
35450         Simplify c-stack prerequisites.
35451         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
35452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
35453         no longer requires <ucontext.h> to exist.  Optimize setrlimit
35454         check.
35455         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
35456         <sys/resource.h>.
35457
35458         Move c-stack test into testsuite.
35459         * modules/c-stack-tests: New file.
35460         * lib/c-stack.c [DEBUG]: Move test program...
35461         * tests/test-c-stack.c: ...into this new file.  Skip rather than
35462         fail test if sigaltstack is lacking.
35463         * tests/test-c-stack.sh: New driver file.
35464
35465 2008-06-16  Eric Blake  <ebb9@byu.net>
35466
35467         Use raise module consistently.
35468         * modules/fatal-signal (Depends-on): Add raise.
35469         * modules/sigprocmask (Depends-on): Likewise.
35470         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
35471         * lib/sigprocmask.c (sigprocmask): Likewise.
35472         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35473         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
35474
35475         Fix compliance bug in sigpending.
35476         * lib/sigprocmask.c (sigpending): Return pending array via
35477         parameter, not return value.
35478
35479 2008-06-14  Eric Blake  <ebb9@byu.net>
35480
35481         Improve obstack-printf test code.
35482         * tests/test-obstack-printf.c (test_function): Fix comment, and
35483         simplify usage of obstack_* in macros.  Add a test for coverage.
35484         Reported by Bruno Haible.
35485
35486 2008-06-14  Bruno Haible  <bruno@clisp.org>
35487
35488         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
35489         array size as a constant, not as a const variable.
35490         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
35491         AC_USE_SYSTEM_EXTENSIONS.
35492         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
35493         Test whether the obstack_printf function actually exists.
35494         * modules/obstack-printf (Depends-on): Add extensions.
35495         (Include): Remove obstack.h.
35496         * modules/obstack-printf-posix (Depends-on): Add extensions.
35497         (Include): Remove obstack.h.
35498
35499 2008-06-13  Eric Blake  <ebb9@byu.net>
35500
35501         Add obstack-printf and obstack-printf-posix modules.
35502         * modules/obstack-printf: New file.
35503         * modules/obstack-printf-posix: Likewise.
35504         * MODULES.html.sh (Misc): Mention them.
35505         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35506         Likewise.
35507         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35508         Likewise.
35509         * modules/stdio (Makefile.am): Accomodate new modules.
35510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35511         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
35512         Declare.
35513         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
35514         functions.
35515         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
35516         (gl_REPLACE_OBSTACK_PRINTF): New macros
35517         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
35518         * tests/test-obstack-printf.c: New file.
35519         * modules/obstack-printf-tests: Likewise.
35520         * modules/obstack-printf-posix-tests: Likewise.
35521
35522 2008-06-11  Bruno Haible  <bruno@clisp.org>
35523
35524         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
35525         * lib/open.c: Include errno.h.
35526         (open): Fail when attempting to write to a file that has a trailing
35527         slash.
35528         * tests/test-open.c (main): Test against trailing slash bug.
35529         * doc/posix-functions/open.texi: Mention the trailing slash bug.
35530
35531 2008-06-10  Bruno Haible  <bruno@clisp.org>
35532
35533         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
35534         for $? to work inside the trap command, with various /bin/sh-s.
35535         * tests/test-vc-list-files-cvs.sh: Likewise.
35536
35537 2008-06-10  Bruno Haible  <bruno@clisp.org>
35538
35539         * lib/acl-internal.h: Don't include gettext.h here.
35540         * lib/set-mode-acl.c: Include gettext.h here.
35541         * lib/copy-acl.c: Likewise.
35542
35543 2008-06-10  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
35546         * lib/wait-process.c (wait_subprocess): Likewise.
35547         * lib/execute.h (execute): Add termsigp argument.
35548         * lib/execute.c (execute): Likewise.
35549         * lib/csharpcomp.c (compile_csharp_using_pnet,
35550         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
35551         * lib/csharpexec.c (execute_csharp_using_pnet,
35552         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
35553         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
35554         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
35555         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
35556         is_jikes_present): Update.
35557         * lib/javaexec.c (execute_java_class): Update.
35558         * lib/javaversion.c (execute_and_read_line): Update.
35559         * NEWS: Document the changes.
35560         Reported by Eric Blake.
35561
35562 2008-06-10  Eric Blake  <ebb9@byu.net>
35563
35564         Add missing include.
35565         * tests/test-strstr.c (includes): Add <signal.h>.
35566         * tests/test-strcasestr.c (includes): Likewise.
35567         * tests/test-memmem.c (includes): Likewise.
35568
35569 2008-06-10  Bruno Haible  <bruno@clisp.org>
35570
35571         * lib/wait-process.c (wait_subprocess): Add an assertion.
35572
35573 2008-06-10  Bruno Haible  <bruno@clisp.org>
35574
35575         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
35576
35577 2008-06-10  Bruno Haible  <bruno@clisp.org>
35578
35579         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
35580         using alarm().
35581         * tests/test-strcasestr.c (main): Likewise.
35582         * tests/test-strstr.c (main): Likewise.
35583
35584 2008-06-09  Bruno Haible  <bruno@clisp.org>
35585
35586         Work around the Solaris 10 ACE ACLs ABI change.
35587         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
35588         declare if ACL_NO_TRIVIAL is present.
35589         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
35590         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
35591         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
35592         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
35593         define if ACL_NO_TRIVIAL is present.
35594         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
35595         and use the current ABI.
35596         (file_has_acl): Use same #if condition as elsewhere.
35597         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
35598         in use, and use the current ABI.
35599         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
35600         Reported by Jim Meyering.
35601
35602 2008-06-09  Eric Blake  <ebb9@byu.net>
35603
35604         Work around environments that (stupidly) ignore SIGALRM.
35605         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
35606         before using alarm().
35607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35609         Reported by Ian Beckwith <ianb@erislabs.net>.
35610
35611         Produce autobuild blurb earlier in log.
35612         * modules/autobuild (configure.ac-early): Move AB_INIT here.
35613
35614 2008-06-09  Jim Meyering  <meyering@redhat.com>
35615         and Ondřej Vašík  <ovasik@redhat.com>
35616
35617         utimens.c: correct kernel bug work-around
35618         Ondřej Vašík found that the invalid return value of 280 indicates
35619         failure, not success, and the kernel bug we're trying to work
35620         around affects not just the utimensat call, but also the fallback
35621         futimens call.
35622         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
35623         not success.
35624         [HAVE_FUTIMENS]: Use the same work-around, here.
35625
35626 2008-06-09  Jim Meyering  <meyering@redhat.com>
35627
35628         add more guards around definition of ACE_-related code
35629         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
35630         ALLOW and ACE_OWNER are also defined.
35631
35632 2008-06-08  Bruno Haible  <bruno@clisp.org>
35633
35634         * lib/acl-internal.h: Add me as co-author.
35635         * lib/file-has-acl.c: Likewise.
35636         * lib/set-mode-acl.c: Likewise.
35637         * lib/copy-acl.c: Likewise.
35638
35639 2008-06-08  Bruno Haible  <bruno@clisp.org>
35640
35641         Add support for AIX ACLs.
35642         * lib/acl-internal.h (acl_nontrivial): New declaration.
35643         * lib/file-has-acl.c (acl_nontrivial): New function.
35644         (file_has_acl): Add implementation using AIX 4 ACL API.
35645         * lib/set-mode-acl.c (qset_acl): Likewise.
35646         * lib/copy-acl.c (qcopy_acl): Likewise.
35647
35648 2008-06-08  Bruno Haible  <bruno@clisp.org>
35649
35650         Add support for HP-UX ACLs.
35651         * lib/acl-internal.h (acl_nontrivial): New declaration.
35652         * lib/file-has-acl.c (acl_nontrivial): New function.
35653         (file_has_acl): Add implementation using HP-UX 11 ACL API.
35654         * lib/set-mode-acl.c (qset_acl): Likewise.
35655         * lib/copy-acl.c (qcopy_acl): Likewise.
35656
35657 2008-06-08  Bruno Haible  <bruno@clisp.org>
35658
35659         Add support for Cygwin ACLs.
35660         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
35661         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
35662         the chmod_or_fchmod call.
35663         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
35664
35665 2008-06-08  Bruno Haible  <bruno@clisp.org>
35666
35667         Fix bug with setuid modes in Solaris 10+ code.
35668         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
35669         succeeded, when the mode contains some special bits.
35670
35671 2008-06-08  Bruno Haible  <bruno@clisp.org>
35672
35673         Add support for Solaris 7..10 ACLs.
35674         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
35675         declarations.
35676         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
35677         functions.
35678         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
35679         * lib/set-mode-acl.c (qset_acl): Likewise.
35680         * lib/copy-acl.c (qcopy_acl): Likewise.
35681
35682 2008-06-08  Bruno Haible  <bruno@clisp.org>
35683
35684         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
35685         declaration.
35686         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
35687         (acl_access_nontrivial): Remove MacOS X case.
35688         (file_has_acl): Use acl_extended_nontrivial.
35689         * lib/copy-acl.c (qcopy_acl): Likewise.
35690
35691 2008-06-08  Bruno Haible  <bruno@clisp.org>
35692
35693         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
35694
35695 2008-06-08  Jim Meyering  <meyering@redhat.com>
35696
35697         * modules/acl (Maintainer): Add Bruno Haible.
35698
35699 2008-06-07  Bruno Haible  <bruno@clisp.org>
35700
35701         Improve support for Tru64 ACLs.
35702         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
35703         ACL on OSF/1.
35704
35705 2008-06-07  Bruno Haible  <bruno@clisp.org>
35706
35707         Add support for MacOS X ACLs.
35708         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
35709         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
35710         * lib/set-mode-acl.c (qset_acl): Likewise.
35711         * lib/copy-acl.c (qcopy_acl): Likewise.
35712
35713 2008-06-07  Bruno Haible  <bruno@clisp.org>
35714
35715         Fix memory leak introduced on 2008-05-22.
35716         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
35717         use.
35718
35719 2008-06-07  Bruno Haible  <bruno@clisp.org>
35720
35721         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
35722         to construct an empty ACL.
35723
35724 2008-06-07  Bruno Haible  <bruno@clisp.org>
35725
35726         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
35727         precisely.
35728         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
35729
35730 2008-06-07  Bruno Haible  <bruno@clisp.org>
35731
35732         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
35733         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
35734
35735 2008-06-07  Bruno Haible  <bruno@clisp.org>
35736
35737         * doc/posix-functions/_setjmp.texi: Explain the use of this function
35738         regardless of POSIX.
35739         * doc/posix-functions/_longjmp.texi: Likewise.
35740         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
35741         SystemV platform in this case.
35742
35743 2008-06-06  Eric Blake  <ebb9@byu.net>
35744
35745         Document abort() bugs.
35746         * doc/posix-functions/abort.texi (abort): Mention anomalies.
35747
35748         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
35749         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
35750         sigsetjmp.
35751         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
35752         siglongjmp, but only as a macro.
35753         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
35754         is obsolete.
35755         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
35756
35757         Tweak documentation to cover cygwin argz bugs.
35758         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
35759         argz bug fix; no code change needed since no cygwin releases
35760         occurred between the last fix and the bug being tested.
35761         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
35762         module and recently fixed cygwin bugs.
35763         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
35764         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
35765         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
35766         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
35767         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
35768         Likewise.
35769         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
35770         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
35771         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
35772         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
35773         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
35774         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
35775         Likewise.
35776
35777         Avoid gcc warning on cygwin.
35778         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
35779         !ACL_NO_TRIVIAL]: Avoid unused variable.
35780
35781 2008-06-05  Eric Blake  <ebb9@byu.net>
35782
35783         Be tolerant of UNKNOWN version in gnulib-tool test dir.
35784         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
35785         git-version-gen fails to come up with a version.
35786         Reported by Simon Josefsson.
35787
35788 2008-06-05  Jim Meyering  <meyering@redhat.com>
35789             Paul Eggert  <eggert@cs.ucla.edu>
35790
35791         utimens.c: work around a probable Linux kernel bug
35792         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
35793         appears to be a kernel bug that causes utimensat to return 280
35794         instead of 0, indicating success.
35795
35796 2008-06-04  Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
35799         2008-06-01 commit.
35800
35801 2008-06-04  Bruno Haible  <bruno@clisp.org>
35802
35803         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
35804         * lib/file-has-acl.c (acl_access_nontrivial): New function.
35805         (file_has_acl): Use it. Save errno afterwards.
35806         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
35807
35808 2008-06-03  Bruno Haible  <bruno@clisp.org>
35809
35810         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
35811         draft code. Simplify #ifs.
35812         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
35813         Put Solaris code after POSIX-draft code. Fix comments regarding
35814         Solaris 10, HP-UX. Mention Cygwin.
35815         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
35816
35817 2008-06-03  Eric Blake  <ebb9@byu.net>
35818
35819         Provide fallback for older kernels.
35820         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
35821         Provide runtime fallback if kernel lacks support.
35822         Reported by Mike Frysinger.
35823
35824 2008-06-02  Bruno Haible  <bruno@clisp.org>
35825
35826         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
35827         it exists.
35828
35829 2008-06-02  Bruno Haible  <bruno@clisp.org>
35830
35831         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
35832         * lib/copy-acl.c (qcopy_acl): Update comment.
35833
35834 2008-06-02  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
35837         like ACL APIs.
35838
35839 2008-06-02  Bruno Haible  <bruno@clisp.org>
35840
35841         * tests/test-file-has-acl.sh: Use different code for Cygwin.
35842         * tests/test-set-mode-acl.sh: Likewise.
35843         * tests/test-copy-acl.sh: Likewise.
35844         * tests/test-copy-file.sh: Likewise.
35845
35846 2008-06-02  Bruno Haible  <bruno@clisp.org>
35847
35848         * tests/test-file-has-acl.sh: Remove unused code.
35849
35850 2008-06-01  Bruno Haible  <bruno@clisp.org>
35851
35852         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
35853         (copy_acl): Just a wrapper around qcopy_acl that emits the error
35854         messages.
35855         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
35856
35857 2008-06-01  Bruno Haible  <bruno@clisp.org>
35858
35859         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
35860         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
35861         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
35862         APIs.
35863         * modules/acl-tests (configure.ac): Remove tests now contained in
35864         m4/acl.m4.
35865
35866 2008-06-02  Jim Meyering  <meyering@redhat.com>
35867
35868         announce-gen: use a better key-server host name
35869         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
35870         it may be more consistently reliable.  Suggested by Werner Koch
35871         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
35872
35873 2008-06-01  Bruno Haible  <bruno@clisp.org>
35874
35875         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
35876         Reported by Voroskoi Andras <voroskoi@gmail.com>.
35877
35878 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
35879
35880         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
35881
35882 2008-06-01  Bruno Haible  <bruno@clisp.org>
35883
35884         New ACL tests.
35885         * tests/test-file-has-acl.sh: New file.
35886         * tests/test-file-has-acl.c: New file.
35887         * tests/test-set-mode-acl.sh: New file.
35888         * tests/test-set-mode-acl.c: New file.
35889         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
35890         * tests/test-copy-acl.c: New file.
35891         * modules/acl-tests: New file, based on modules/copy-file-tests.
35892         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
35893         (Depends-on): Add acl-tests.
35894         (configure.ac): Remove checks.
35895         (Makefile.am): Don't create test-sameacls program here any more.
35896
35897 2008-06-01  Bruno Haible  <bruno@clisp.org>
35898
35899         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
35900         * tests/test-sameacls.c: Include progname.h.
35901         (main): Invoke set_program_name. Portability fixes for MacOS X,
35902         Solaris, HP-UX.
35903
35904 2008-06-01  Bruno Haible  <bruno@clisp.org>
35905
35906         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
35907         function.
35908         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
35909
35910 2008-06-01  Bruno Haible  <bruno@clisp.org>
35911
35912         * modules/rpmatch (Depends-on): Add strdup.
35913
35914 2008-06-01  Bruno Haible  <bruno@clisp.org>
35915
35916         * lib/pipe.c: Include unistd-safer.h.
35917         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
35918         * modules/pipe (Depends-on): Add unistd-safer.
35919
35920 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35921
35922         * modules/autobuild (configure.ac): Call AB_INIT.
35923
35924 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35925
35926         * tests/test-getaddrinfo.c: Don't print debug messages by default.
35927         Suggested by Bruno Haible <bruno@clisp.org>.
35928
35929 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35930
35931         * tests/test-base64.c: Cast size_t to unsigned long when invoking
35932         printf.  Use %lu instead of %d.  Reported by Bruno Haible
35933         <bruno@clisp.org>.
35934
35935 2008-05-29  Eric Blake  <ebb9@byu.net>
35936
35937         Prefer new POSIX 200x interfaces over futimesat.
35938         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
35939         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
35940         when available.
35941         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
35942
35943 2008-05-28  Bruno Haible  <bruno@clisp.org>
35944
35945         * modules/stpcpy (License): Change to LGPLv2+.
35946         Requested by David Lutterkort <dlutter@redhat.com>.
35947
35948 2008-05-27  Bruno Haible  <bruno@clisp.org>
35949
35950         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
35951         current mingw.
35952         Reported by Jose E. Marchesi <jemarch@gnu.org>.
35953
35954 2008-05-27  Bruno Haible  <bruno@clisp.org>
35955
35956         * modules/iconv_open (Link): New section, from module 'iconv'.
35957         * modules/striconv (Link): Likewise.
35958         * modules/striconveh (Link): Likewise.
35959         * modules/xstriconv (Link): Likewise.
35960         * modules/unicodeio (Link): Likewise.
35961         * modules/propername (Link): Likewise.
35962         Reported by Jim Meyering.
35963
35964 2008-05-26  Jim Meyering  <meyering@redhat.com>
35965
35966         sha256: do not artificially restrict buffer length to be < 2^32
35967         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
35968         uint32_t to size_t.
35969         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
35970         to match.
35971
35972         avoid unaligned access errors, e.g., on sparc
35973         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
35974         direct access through a possibly-unaligned uint64* pointer.
35975         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
35976         direct access through a possibly-unaligned uint32* pointer.
35977         Prompted by this patch from Tom "spot" Callaway:
35978         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
35979
35980         sha512.c: fix typo in comment
35981         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
35982
35983 2008-05-25  Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/set-mode-acl.c: Renamed from lib/acl.c.
35986         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
35987         (Makefile.am): Update lib_SOURCES.
35988
35989 2008-05-25  Bruno Haible  <bruno@clisp.org>
35990
35991         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
35992
35993 2008-05-25  Jim Meyering  <meyering@redhat.com>
35994
35995         useless-if-before-free: freed expr may have white-space differences
35996         * build-aux/useless-if-before-free: Recognize cases in which the
35997         freed expression differs from the tested one in embedded white
35998         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
35999         $1 was used, so we can't make any regexp shy.  Improved tests now
36000         detect this.
36001
36002         useless-if-before-free: accept white space in the expression.
36003         * build-aux/useless-if-before-free: For now, any white space
36004         in the expression must be identical in the free argument.
36005
36006         useless-if-before-free: efficiency tweak
36007         * build-aux/useless-if-before-free: Make the expression-matching
36008         regexp "shy".
36009         Make the *outer* regexp shy, not the expr-matching one.
36010
36011         update code-in-comment to accept cast of free arg
36012         * build-aux/useless-if-before-free: Update regexp.
36013
36014 2008-05-25  Bruno Haible  <bruno@clisp.org>
36015
36016         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
36017         * modules/copy-file-tests (Files, Makefile.am): Update.
36018         * tests/test-copy-file.c (func_test_copy): Update.
36019
36020 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
36021
36022         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
36023
36024 2008-05-23  Bruno Haible  <bruno@clisp.org>
36025
36026         Improve support for ACLs on OSF/1.
36027         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
36028         Remove fallback for unknown flavors of ACLs.
36029
36030 2008-05-22  Bruno Haible  <bruno@clisp.org>
36031
36032         Add support for ACLs on OSF/1.
36033         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
36034         replacements.
36035         (acl_free_text): New macro fallback.
36036         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
36037         acl_free.
36038         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
36039         acl_free_text function. Require AC_C_INLINE.
36040
36041 2008-05-22  Bruno Haible  <bruno@clisp.org>
36042
36043         Make copy_acl work on MacOS X 10.5.
36044         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
36045         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
36046         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
36047         If MODE_INSIDE_ACL, don't assume that every system has the same text
36048         representation for ACLs as FreeBSD.
36049         * lib/copy-acl.c (copy_acl): Add support for platforms with
36050         !MODE_INSIDE_ACL.
36051         * lib/file-has-acl.c (file_has_acl): Likewise.
36052         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
36053         FreeBSD, MacOS X, or IRIX, respectively.
36054
36055 2008-05-22  Bruno Haible  <bruno@clisp.org>
36056
36057         * lib/acl.h: Don't include <sys/acl.h>.
36058         (GETACLCNT): Move fallback to lib/acl-internal.h.
36059         * lib/acl-internal.h: Include <sys/acl.h> here.
36060         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
36061
36062 2008-05-22  Bruno Haible  <bruno@clisp.org>
36063
36064         Split off copy_acl function to separate file.
36065         * lib/copy-acl.c: New file, extracted from lib/acl.c.
36066         * lib/acl.c (copy_acl): Moved function to separate file.
36067         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
36068         * modules/acl (Files): Add lib/copy-acl.c.
36069         (Makefiles.am): Augment lib_SOURCES.
36070
36071 2008-05-22  Bruno Haible  <bruno@clisp.org>
36072
36073         * modules/copy-file-tests: New file.
36074         * tests/test-copy-file.sh: New file.
36075         * tests/test-copy-file.c: New file.
36076         * tests/test-copy-file-sameacls.c: New file.
36077
36078 2008-05-22  Eric Blake  <ebb9@byu.net>
36079
36080         Avoid gcc warning.
36081         * tests/test-memcmp.c (main): Pass NULL indirectly.
36082
36083 2008-05-21  Bruno Haible  <bruno@clisp.org>
36084
36085         Add reference doc about ACLs.
36086         * doc/acl-resources.txt: New file.
36087         * doc/acl-cygwin.txt: New file.
36088
36089 2008-05-21  Bruno Haible  <bruno@clisp.org>
36090
36091         Avoid one more warning from gcc.
36092         * lib/vasnprintf.c (IF_LINT): Update comments.
36093         (VASNPRINTF): Use it also for the 'prefix' array initializer.
36094
36095 2008-05-21  Jim Meyering  <meyering@redhat.com>
36096
36097         avoid a warning from gcc
36098         * lib/vasnprintf.c (IF_LINT): Define.
36099         (scale10_round_decimal_long_double):
36100         Use it to avoid a "may be used uninitialized" warning.
36101         (scale10_round_decimal_double): Likewise.
36102
36103 2008-05-21  Simon Josefsson  <simon@josefsson.org>
36104
36105         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
36106         declared.
36107
36108 2008-05-20  Bruno Haible  <bruno@clisp.org>
36109
36110         * tests/test-memcmp.c (main): Test also the sign of the result. Test
36111         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
36112
36113 2008-05-20  Simon Josefsson  <simon@josefsson.org>
36114
36115         * modules/memcmp-tests: New file.
36116         * tests/test-memcmp.c: New file.
36117
36118 2008-05-19  Bruno Haible  <bruno@clisp.org>
36119
36120         * modules/propername (Notice, configure.ac): Put quoted "..." into
36121         --keyword option.
36122         * lib/propername.h: Update comments accordingly.
36123         Reported by Eric Blake.
36124
36125 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
36126
36127         * modules/getpass-gnu (Depends-on): Add fseeko.
36128
36129 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36130
36131         * modules/base64-tests: New file.
36132
36133 2008-05-19  Bo Borgerson <gigabo@gmail.com>
36134
36135         * lib/base64.c (base64_decode_ctx): If a decode context structure
36136         was passed in use it to ignore newlines.  If a context structure
36137         was _not_ passed in, continue to treat newlines as garbage (this
36138         is the historical behavior).  Formerly base64_decode.
36139         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36140         takes a decode context structure.
36141         * lib/base64.h (base64_decode): Macro for four-argument calls.
36142         (base64_decode_alloc): Likewise.
36143         * lib/base64.c (base64_decode_ctx): If a decode context structure
36144         was passed in use it to ignore newlines.  If a context structure
36145         was _not_ passed in, continue to treat newlines as garbage (this
36146         is the historical behavior).  Formerly base64_decode.
36147         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
36148         takes a decode context structure.
36149         * lib/base64.h (base64_decode): Macro for four-argument calls.
36150         (base64_decode_alloc): Likewise.
36151
36152 2008-05-19  Jim Meyering  <meyering@redhat.com>
36153
36154         avoid a warning from gcc
36155         * lib/trim.c (IF_LINT): Define.
36156         (trim2): Use it to avoid a "may be used uninitialized" warning.
36157
36158         Fix doc typo.
36159         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
36160
36161 2008-05-19  Bruno Haible  <bruno@clisp.org>
36162
36163         * doc/glibc-functions/getpass.texi: Document limits of other
36164         implementations.
36165
36166 2008-05-19  Simon Josefsson  <simon@josefsson.org>
36167             Bruno Haible <bruno@clisp.org>
36168
36169         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
36170
36171 2008-05-18  Bruno Haible  <bruno@clisp.org>
36172
36173         * modules/propername: New file, from GNU gettext.
36174         * lib/propername.h: New file, from GNU gettext.
36175         * lib/propername.c: New file, from GNU gettext.
36176         * MODULES.html.sh (Internationalization functions): Add propername.
36177
36178 2008-05-16  Jim Meyering  <meyering@redhat.com>
36179             Bruno Haible  <bruno@clisp.org>
36180
36181         Avoid some warnings from "gcc -Wshadow".
36182         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
36183
36184 2008-05-15  Eric Blake  <ebb9@byu.net>
36185
36186         Extend previous patch to cygwin 1.7.0.
36187         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
36188         fast implementation in cygwin >= 1.7.0.
36189         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36191
36192 2008-05-15  Bruno Haible  <bruno@clisp.org>
36193
36194         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
36195         implementation in glibc >= 2.9.
36196         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36197         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36198
36199 2008-05-15  Bruno Haible  <bruno@clisp.org>
36200
36201         * MODULES.html.sh (Internationalization functions): Remove linebreak.
36202         (Unicode string functions): Add unilbrk/*.
36203         Reported by Karl Berry.
36204
36205 2008-05-15  Eric Blake  <ebb9@byu.net>
36206
36207         Fix violation of <stdbool.h> replacement in regex.
36208         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
36209         * lib/regexec.c (re_search_internal): Likewise.
36210         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
36211
36212 2008-05-15  Jim Meyering  <meyering@redhat.com>
36213
36214         avoid distracting test output when git or cvs is not found
36215         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
36216         * tests/test-vc-list-files-git.sh: Likewise.
36217
36218 2008-05-15  Eric Blake  <ebb9@byu.net>
36219
36220         Glibc finally accepted the memmem speedup code, bugzilla #5514.
36221         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
36222         glibc version.
36223         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36224         * doc/posix-functions/strstr.texi (strstr): Likewise.
36225         * lib/str-two-way.h (MAX): Sychronize with glibc.
36226
36227 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
36228
36229         * lib/regcomp.c (optimize_utf8): Add a note on why we test
36230         opr.ctx_type.
36231         (calc_first): Initialize constraint field.
36232         (duplicate_node_closure): Use it instead of special casing ANCHORS.
36233         Fix grammar.
36234         (duplicate_node): Merge constraint field for all node types.
36235         (calc_eclosure_iter): Look at constraint field for all node types.
36236         * lib/regex_internal.c (create_cd_newstate): Don't look at
36237         opr.ctx_type.
36238
36239 2008-05-14  Bruno Haible  <bruno@clisp.org>
36240
36241         Help GCC to do better code generation.
36242         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
36243         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
36244         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
36245         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
36246         Declare with attribute 'malloc' if supported.
36247
36248 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
36249
36250         use "echo STR|wc -c" rather than unportable "expr length STR"
36251         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
36252         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
36253
36254 2008-05-14  Jim Meyering  <meyering@redhat.com>
36255
36256         use dd ibs=$n count=1 ... rather than less-portable head -c$n
36257         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
36258         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
36259         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
36260         via Collin Lasse.
36261
36262 2008-05-14  Eric Blake  <ebb9@byu.net>
36263
36264         Avoid quadratic growth in gl_LIBSOURCES.
36265         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
36266         Suggested by Bruno Haible.
36267
36268         Test xmemdup0.
36269         * modules/xmemdup0-tests: New file.
36270         * tests/test-xmemdup0.c: Likewise.
36271
36272 2008-05-13  Eric Blake  <ebb9@byu.net>
36273
36274         Split xmemdup0 into its own module.
36275         * modules/xmemdup0: New file.
36276         * lib/xmemdup0.h: Likewise.
36277         * lib/xmemdup0.c: Likewise.
36278         * MODULES.html.sh (Memory management functions): Add xmemdup0.
36279         * lib/xalloc.h (xmemdup0): Remove.
36280         * lib/xmalloc.c (xmemdup0): Likewise.
36281
36282 2008-05-13  Eric Blake  <ebb9@byu.net>
36283             Bruno Haible  <bruno@clisp.org>
36284
36285         Reduce number of forks required during autoconf.
36286         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
36287         and gl_LIBSOURCES_DIR.
36288         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
36289         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
36290         m4_syscmd per file.
36291         <m4_foreach_w>: Move...
36292         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
36293
36294 2008-05-13  Eric Blake  <ebb9@byu.net>
36295
36296         * gnulib-tool: Fix various comment typos.
36297
36298 2008-05-12  Bruno Haible  <bruno@clisp.org>
36299
36300         Tailor the linebreaking algorithm.
36301         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
36302
36303 2008-05-12  Bruno Haible  <bruno@clisp.org>
36304
36305         Update to Unicode 5.0.0.
36306         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36307         LBP_JV, LBP_JT. Redistribute values.
36308         (unilbrk_table): Change size.
36309         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
36310         Unicode TR#14 rev. 22.
36311         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
36312         LBP_JV, LBP_JT. Redistribute values.
36313         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
36314         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
36315         Update.
36316         * lib/unilbrk/lbrkprop1.h: Regenerated.
36317         * lib/unilbrk/lbrkprop2.h: Regenerated.
36318         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
36319         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
36320         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
36321         Likewise.
36322         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
36323         Likewise.
36324         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
36325         result.
36326         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36327         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36328         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
36329         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
36330         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
36331         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
36332
36333 2008-05-11  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
36336
36337 2008-05-11  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
36340         * modules/unilbrk/gen-lbrk: New file.
36341
36342 2008-05-11  Bruno Haible  <bruno@clisp.org>
36343
36344         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
36345         * m4/sha512.m4 (gl_SHA512): Likewise.
36346
36347 2008-05-11  Jim Meyering  <meyering@redhat.com>
36348
36349         New modules: crypto/sha256, crypto/sha512 (from coreutils)
36350         * modules/crypto/sha256: New file.
36351         * modules/crypto/sha512: Likewise.
36352         * lib/sha256.c: Likewise.
36353         * lib/sha256.h: Likewise.
36354         * lib/sha512.c: Likewise.
36355         * lib/sha512.h: Likewise.
36356         * lib/u64.h: Likewise.
36357         * m4/sha256.m4: Likewise.
36358         * m4/sha512.m4: Likewise.
36359         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
36360
36361 2008-05-10  Bruno Haible  <bruno@clisp.org>
36362
36363         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
36364         (Input/Output <stdio.h>): Add xprintf.
36365         (Signal handling <signal.h>): Add strsignal.
36366         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
36367         (Core language properties): Add func.
36368         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
36369         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
36370         strings.
36371         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
36372         (Input/output): New section.
36373         (File system functions): Add openat-die, stat-macros.
36374         (Networking functions): Add sockets.
36375         (Unicode string functions): Add unictype/*.
36376         (Support for building libraries and executables): Add gperf.
36377         (Support for building documentation): Add agpl-3.0.
36378         (Misc): Add nocrash.
36379
36380 2008-05-10  Bruno Haible  <bruno@clisp.org>
36381
36382         * modules/unictype/gen-ctype: New file.
36383
36384 2008-05-10  Jim Meyering  <meyering@redhat.com>
36385
36386         Make chdir-safer.c more efficient on a system with no symlinks.
36387         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
36388         also if ELOOP is zero.  Suggested by Bruno Haible.
36389
36390         Make chdir-safer.c slightly safer.
36391         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
36392         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
36393
36394         Avoid compile failure on systems without ELOOP (like mingw).
36395         * lib/chdir-safer.c (ELOOP): Define if not already defined.
36396         Reported by Bruno Haible.
36397
36398 2008-05-10  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
36401         (is_utf8_encoding): Use a case-insensitive comparison.
36402         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
36403         streq.
36404
36405 2008-05-10  Bruno Haible  <bruno@clisp.org>
36406
36407         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
36408         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
36409         * lib/unilbrk/ulc-common.h (iconv_string_length,
36410         iconv_string_keeping_offsets): Remove declarations.
36411         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
36412         Don't include <iconv.h>, streq.h, xsize.h.
36413         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
36414         conversion.
36415         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
36416         <iconv.h>, streq.h, xsize.h.
36417         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
36418         conversion.
36419         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
36420         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
36421         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
36422         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
36423
36424 2008-05-10  Bruno Haible  <bruno@clisp.org>
36425
36426         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
36427         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
36428
36429         * modules/unilbrk/u32-width-linebreaks-tests: New file.
36430         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
36431
36432         * modules/unilbrk/u16-width-linebreaks-tests: New file.
36433         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
36434
36435         * modules/unilbrk/u8-width-linebreaks-tests: New file.
36436         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
36437
36438         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
36439         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
36440
36441         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
36442         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
36443
36444         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
36445         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
36446
36447         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
36448         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
36449
36450 2008-05-10  Bruno Haible  <bruno@clisp.org>
36451
36452         Split up 'linebreak' module.
36453         * lib/unilbrk.h: New file, based on lib/linebreak.h.
36454         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
36455         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
36456         modifications.
36457         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
36458         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
36459         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
36460         lib/linebreak.c.
36461         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
36462         lib/linebreak.c.
36463         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
36464         lib/linebreak.c.
36465         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
36466         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
36467         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
36468         lib/linebreak.c.
36469         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
36470         lib/linebreak.c.
36471         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
36472         lib/linebreak.c.
36473         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
36474         lib/linebreak.c.
36475         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
36476         lib/linebreak.c.
36477         * modules/unilbrk/base: New file.
36478         * modules/unilbrk/tables: New file.
36479         * modules/unilbrk/u8-possible-linebreaks: New file.
36480         * modules/unilbrk/u16-possible-linebreaks: New file.
36481         * modules/unilbrk/u32-possible-linebreaks: New file.
36482         * modules/unilbrk/ulc-common: New file.
36483         * modules/unilbrk/ulc-possible-linebreaks: New file.
36484         * modules/unilbrk/u8-width-linebreaks: New file.
36485         * modules/unilbrk/u16-width-linebreaks: New file.
36486         * modules/unilbrk/u32-width-linebreaks: New file.
36487         * modules/unilbrk/ulc-width-linebreaks: New file.
36488         * lib/linebreak.h: Remove file.
36489         * lib/linebreak.c: Remove file.
36490         * m4/linebreak.m4: Remove file.
36491         * modules/linebreak: Remove file.
36492         * NEWS: Mention the changes.
36493
36494 2008-05-09  Eric Blake  <ebb9@byu.net>
36495
36496         Add xmemdup0.
36497         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
36498         implementation.
36499         * lib/xmalloc.c (xmemdup0): New C implementation.
36500
36501 2008-05-08  Bruno Haible  <bruno@clisp.org>
36502
36503         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
36504
36505 2008-05-07  Eric Blake  <ebb9@byu.net>
36506
36507         Support cross-compilation of <wctype.h>.
36508         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
36509         AC_CACHE_CHECK.
36510
36511 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
36512
36513         * build-aux/vc-list-files: Add support for bzr.
36514
36515 2008-05-03  Jim Meyering  <meyering@redhat.com>
36516
36517         avoid failed assertion with tight malloc
36518         * tests/test-getndelim2.c: Correct an off-by-one assertion.
36519
36520 2008-05-03  Simon Josefsson  <simon@josefsson.org>
36521
36522         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
36523         are needed from arpa/inet.h.
36524         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
36525         Reported by Bruno Haible.
36526
36527 2008-05-02  Jim Meyering  <meyering@redhat.com>
36528
36529         avoid compilation error on FreeBSD 6
36530         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
36531
36532 2008-05-01  Jim Meyering  <meyering@redhat.com>
36533
36534         useless-if-before-free: correct --help's exit status description
36535         * build-aux/useless-if-before-free (usage): Like grep, exit 0
36536         for one or more matches, etc.  Reported by Bruno Haible.
36537
36538         vc-list-files: make the stand-alone gnulib test work
36539         * modules/vc-list-files-tests (configure.ac):
36540         Define and AC_SUBST abs_aux_dir.
36541         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
36542         $(abs_top_srcdir) to each script and having each of them
36543         duplicate the work of setting PATH, set PATH here, using
36544         the new variable, abs_aux_dir instead.
36545         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
36546         * tests/test-vc-list-files-git.sh: Likewise.
36547         Reported by Bruno Haible.
36548
36549 2008-05-01  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/getndelim2.c (getndelim2): Fix newsize computation during
36552         reallocation. Rename 'done' to 'found_delimiter'.
36553
36554 2008-05-01  Jim Meyering  <meyering@redhat.com>
36555
36556         vc-list-files: accommodate /bin/sh like the one from Solaris 10
36557         * build-aux/vc-list-files: Use `...`, not $(...).
36558
36559 2008-04-30  Jim Meyering  <meyering@redhat.com>
36560
36561         add tests for vc-list-files
36562         * modules/vc-list-files-tests: New module.
36563         * tests/test-vc-list-files-cvs.sh: New file.
36564         * tests/test-vc-list-files-git.sh: New file.
36565
36566         avoid a warning from gcc
36567         * lib/getndelim2.c (IF_LINT): Define.
36568         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
36569
36570         vc-list-files: work properly with build-aux/cvsu, too
36571         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
36572         to all cvs-based clauses.
36573
36574         vc-list-files: work properly in the CVS+awk case, too
36575         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
36576
36577         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
36578         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
36579         take more than one file argument, so .  Add quotes, just in case $dir
36580         ever contains a shell meta-character.  Prompted by Soren Hansen in
36581         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
36582
36583 2008-04-29  Eric Blake  <ebb9@byu.net>
36584
36585         Optimize getndelim2 to use block operations when possible.
36586         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
36587         freadseek, and memchr2.
36588         * lib/getndelim2.c (getndelim2): Use them for block reads.
36589
36590 2008-04-29  Bruno Haible  <bruno@clisp.org>
36591
36592         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
36593         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36594         * modules/inet_ntop (Depends-on): Add extensions.
36595         * modules/inet_pton (Depends-on): Likewise.
36596         Reported by Simon Josefsson.
36597
36598 2008-04-29  Jim Meyering  <meyering@redhat.com>
36599
36600         When the is more than one match in a block, match all of them.
36601         * build-aux/useless-if-before-free: Iterate through each block
36602         until there are no more matches.
36603
36604         Fix broken useless-if-before-free script.
36605         * build-aux/useless-if-before-free: Fix typo: missing "?" after
36606         the expression to match cast of argument to free-like function.
36607
36608 2008-04-29  Eric Blake  <ebb9@byu.net>
36609
36610         Use new header.
36611         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
36612
36613 2008-04-29  Jim Meyering  <meyering@redhat.com>
36614
36615         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
36616         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
36617         by gnulib to exist and to declare e.g., inet_ntop.
36618         Don't include "inet_ntop.h", now removed.
36619
36620         * m4/arpa_inet_h.m4: Remove trailing blanks.
36621
36622 2008-04-29  Eric Blake  <ebb9@byu.net>
36623
36624         Silence valgrind on safe reads beyond potential array bounds.
36625         * lib/rawmemchr.valgrind: New file.
36626         * lib/strchrnul.valgrind: Likewise.
36627         * modules/rawmemchr (Files): Distribute new file.
36628         * modules/strchrnul (Files): Likewise.
36629         Suggested by Bruno Haible.
36630
36631 2008-04-29  Bruno Haible  <bruno@clisp.org>
36632
36633         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
36634         (inet_ntop, inet_pton): Change portability warning's wording.
36635         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
36636         Invoke gl_CHECK_NEXT_HEADERS.
36637         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
36638         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
36639         set ARPA_INET_H.
36640         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36641         * modules/arpa_inet (Description): No longer only for systems that
36642         lack it.
36643         (Depends-on): Add include_next.
36644         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
36645         HAVE_ARPA_INET_H.
36646
36647 2008-04-29  Jim Meyering  <meyering@redhat.com>
36648
36649         * modules/mkdir (License): Re-license as LGPLv2+.
36650
36651 2008-04-29  Bruno Haible  <bruno@clisp.org>
36652
36653         * modules/rawmemchr (Maintainer): Set to Eric.
36654         * modules/strchrnul (Maintainer): Likewise.
36655
36656 2008-04-29  Simon Josefsson  <simon@josefsson.org>
36657
36658         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
36659         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
36660
36661         * modules/arpa_inet (arpa/inet.h): Use them.
36662
36663 2008-04-28  Eric Blake  <ebb9@byu.net>
36664
36665         Test getndelim2.
36666         * modules/getndelim2-tests: New file.
36667         * tests/test-getndelim2.c: Likewise.
36668         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
36669         stream.
36670         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
36671
36672         * MODULES.html.sh: Document new module.
36673
36674 2008-04-20  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/c-stack.c (die): Use raise.
36677         * modules/c-stack (Depends-on): Add raise.
36678
36679 2008-04-28  Bruno Haible  <bruno@clisp.org>
36680
36681         Expect rpmatch to be declared.
36682         * lib/yesno.c (rpmatch): Remove declaration.
36683
36684         Declare rpmatch.
36685         * lib/stdlib.in.h (rpmatch): New declaration.
36686         * lib/rpmatch.c: Include <stdlib.h> first.
36687         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
36688         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
36689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
36690         HAVE_RPMATCH.
36691         * modules/rpmatch (Depends-on): Add stdlib, extensions.
36692         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36693         (Include): Set to <stdlib.h>.
36694         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
36695         HAVE_RPMATCH.
36696         * NEWS: Document the change.
36697
36698 2008-04-28  Bruno Haible  <bruno@clisp.org>
36699
36700         Change rpmatch to use nl_langinfo when appropriate.
36701         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
36702         (N_): New macro.
36703         (localized_pattern): New function/macro.
36704         (try): Remove match, nomatch arguments. Copy the pattern into safe
36705         memory before caching it.
36706         (rpmatch): Use localized_pattern. Add translator comments.
36707         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
36708         Suggested by Eric Blake.
36709         * modules/rpmatch (Depends-on): Add stdbool.
36710
36711 2008-04-28  Eric Blake  <ebb9@byu.net>
36712
36713         Add rawmemchr module, matching glibc.
36714         * modules/string (Makefile.am): New indicator.
36715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
36716         * lib/string.in.h (rawmemchr): Declare when appropriate.
36717         * modules/rawmemchr: New file.
36718         * m4/rawmemchr.m4: Likewise.
36719         * lib/rawmemchr.c: Likewise.
36720         * modules/rawmemchr-tests: Likewise.
36721         * tests/test-rawmemchr.c: Likewise.
36722         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
36723         module.
36724         * modules/strchrnul (Depends-on): Add rawmemchr.
36725         * lib/strchrnul.c (strchrnul): Optimize a corner case.
36726
36727         Whitespace cleanup.
36728         * tests/test-strchrnul.c: Reindent.
36729         * lib/strchrnul.c: Likewise.
36730
36731         Optimize and test strchrnul.
36732         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
36733         * modules/strchrnul-tests: New file.
36734         * tests/test-strchrnul.c: Likewise.
36735
36736         Remove intprops dependency.
36737         * modules/memchr (Depends-on): Remove intprops.
36738         * modules/memrchr (Depends-on): Likewise.
36739         * modules/memchr2 (Depends-on): Likewise.
36740         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
36741         * lib/memrchr.c (__memrchr): Likewise.
36742         * lib/memrchr2.c (memchr2): Likewise.
36743         Reported by Simon Josefsson.
36744
36745 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36746
36747         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
36748         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36749
36750 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36751
36752         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
36753
36754         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
36755
36756         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
36757
36758         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
36759         declarations.
36760         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
36761
36762         * m4/inet_pton.m4: Don't check for header files.
36763
36764         * m4/inet_ntop.m4: Don't check for header files.
36765
36766 2008-04-28  Simon Josefsson  <simon@josefsson.org>
36767
36768         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
36769         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
36770         trigger for cygwin).
36771         Reported by Bruno Haible  <bruno@clisp.org>.
36772
36773 2008-04-28  Bruno Haible  <bruno@clisp.org>
36774
36775         * doc/posix-functions/strdup.texi: Mention mingw problem.
36776
36777 2008-04-27  Bruno Haible  <bruno@clisp.org>
36778
36779         * modules/stat-time-tests (Depends-on): Add sleep.
36780         * tests/test-stat-time.c (force_unlink): New function.
36781         (cleanup): Use it.
36782         (test_mtime): Remove the ctime related tests.
36783         (test_ctime): New function, containing the ctime related tests.
36784         (main): Call test_ctime, except on native Windows platforms.
36785
36786 2008-04-27  Bruno Haible  <bruno@clisp.org>
36787
36788         * lib/rpmatch.c (rpmatch): Add some comments.
36789         Reported by James Youngman <jay@gnu.org>.
36790
36791 2008-04-27  Bruno Haible  <bruno@clisp.org>
36792
36793         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
36794         quiet NaNs.
36795
36796 2008-04-27  Bruno Haible  <bruno@clisp.org>
36797
36798         Make test-yesno.sh work on mingw.
36799         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
36800         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
36801         (main): Set stdin to binary mode.
36802         * modules/yesno-tests (Depends-on): Add binary-io.
36803
36804 2008-04-27  Bruno Haible  <bruno@clisp.org>
36805
36806         Fix 'isfinite' on x86, x86_64, ia64 platforms.
36807         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
36808         argument that lie outside the IEEE 854 domain.
36809         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
36810         (gl_ISFINITE): Use it.
36811         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
36812
36813 2008-04-27  Bruno Haible  <bruno@clisp.org>
36814
36815         Allow local renaming in config.h.
36816         * lib/memrchr.c (memrchr): Don't undefine outside libc.
36817
36818 2008-04-27  Bruno Haible  <bruno@clisp.org>
36819
36820         * lib/memchr.c (__memchr): Change type of 'i'.
36821         * lib/memchr2.c (memchr2): Likewise.
36822
36823 2008-04-26  Eric Blake  <ebb9@byu.net>
36824         and Bruno Haible  <bruno@clisp.org>
36825
36826         Optimize and test memrchr.
36827         * modules/memrchr (Depends-on): Add intprops.
36828         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
36829         * modules/memrchr-tests: New file.
36830         * tests/test-memrchr.c: New file.
36831
36832 2008-04-26  Bruno Haible  <bruno@clisp.org>
36833
36834         Add tentative support for DragonFly BSD.
36835         * lib/stdio-impl.h: Add macros for DragonFly BSD.
36836         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
36837         fp.
36838         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36839         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
36840         * lib/fpurge.c (fpurge): Likewise.
36841         * lib/freadable.c (freaadable): Likewise.
36842         * lib/freadahead.c (freadahead): Likewise.
36843         * lib/freading.c (freading): Likewise.
36844         * lib/freadptr.c (freadptr): Likewise.
36845         * lib/freadseek.c (freadptrinc): Likewise.
36846         * lib/fseeko.c (fseeko): Likewise.
36847         * lib/fseterr.c (fseterr): Likewise.
36848         * lib/fwritable.c (fwritable): Likewise.
36849         * lib/fwriting.c (fwriting): Likewise.
36850
36851 2008-04-26  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/stdio-impl.h: New file.
36854         * lib/fbufmode.c: Include stdio-impl.h.
36855         (fbufmode): Use fp_, remove redundant #defines.
36856         * lib/fflush.c: Include stdio-impl.h.
36857         (clear_ungetc_buffer): Remove redundant #defines.
36858         * lib/fpurge.c: Include stdio-impl.h.
36859         (fpurge): Remove redundant #defines.
36860         * lib/freadable.c: Include stdio-impl.h.
36861         (freadable): Remove redundant #defines.
36862         * lib/freadahead.c: Include stdio-impl.h.
36863         (freadahead): Remove redundant #defines.
36864         * lib/freading.c: Include stdio-impl.h.
36865         (freading): Remove redundant #defines.
36866         * lib/freadptr.c: Include stdio-impl.h.
36867         (freadptr): Remove redundant #defines.
36868         * lib/freadseek.c: Include stdio-impl.h.
36869         (freadptrinc): Remove redundant #defines.
36870         * lib/fseeko.c: Include stdio-impl.h.
36871         (rpl_fseeko): Remove redundant #defines.
36872         * lib/fseterr.c: Include stdio-impl.h.
36873         (fseterr): Remove redundant #defines.
36874         * lib/fwritable.c: Include stdio-impl.h.
36875         (fwritable: Remove redundant #defines.
36876         * lib/fwriting.c: Include stdio-impl.h.
36877         (fwriting): Remove redundant #defines.
36878         * modules/fbufmode (Files): Add lib/stdio-impl.h.
36879         * modules/fflush (Files): Likewise.
36880         * modules/fpurge (Files): Likewise.
36881         * modules/freadable (Files): Likewise.
36882         * modules/freadahead (Files): Likewise.
36883         * modules/freading (Files): Likewise.
36884         * modules/freadptr (Files): Likewise.
36885         * modules/freadseek (Files): Likewise.
36886         * modules/fseeko (Files): Likewise.
36887         * modules/fseterr (Files): Likewise.
36888         * modules/fwritable (Files): Likewise.
36889         * modules/fwriting (Files): Likewise.
36890
36891 2008-04-26  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
36894         restore_seek_optimization, update_fpos_cache): New functions, extracted
36895         from rpl_fflush.
36896         (rpl_fflush): Use them.
36897         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
36898         (gl_REPLACE_FFLUSH): Use it.
36899
36900 2008-04-26  Bruno Haible  <bruno@clisp.org>
36901
36902         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
36903         on Solaris.
36904         * tests/test-xstrtoimax.sh: Likewise.
36905         * tests/test-xstrtoumax.sh: Likewise.
36906         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36907
36908 2008-04-26  Bruno Haible  <bruno@clisp.org>
36909
36910         * modules/memchr-tests: New file.
36911         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
36912
36913 2008-04-26  Eric Blake  <ebb9@byu.net>
36914             Bruno Haible  <bruno@clisp.org>
36915
36916         * lib/memchr.c: Include intprops.h.
36917         (__memchr): Optimize parallel detection of matching bytes. Rename local
36918         variables. Add explanatory comments.
36919
36920 2008-04-26  Bruno Haible  <bruno@clisp.org>
36921
36922         Fix module 'memchr', broken since 2000-10-28.
36923         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
36924
36925 2008-04-26  Bruno Haible  <bruno@clisp.org>
36926
36927         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
36928         comments.
36929
36930 2008-04-25  Eric Blake  <ebb9@byu.net>
36931
36932         Use native fstatat on cygwin 1.7.0.
36933         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
36934         first.
36935
36936 2008-04-23  Eric Blake  <ebb9@byu.net>
36937
36938         Improve memchr2 performance.
36939         * lib/memchr2.c (memchr2): Further optimize parallel detection of
36940         NUL bytes.
36941         * modules/memchr2 (Depends-on): Use intprops.h.
36942
36943 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36944
36945         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
36946         an inline function instead of a CPP macro.  Patch by Ben Pfaff
36947         <blp@cs.stanford.edu>.
36948
36949 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36950
36951         * lib/arpa_inet.in.h: New file.
36952
36953         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
36954         (Makefile.am): Sed in substitute header file.
36955
36956         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
36957         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
36958
36959         * modules/inet_ntop (configure.ac): Use
36960         gl_ARPA_INET_MODULE_INDICATOR.
36961
36962         * modules/inet_pton (configure.ac): Use
36963         gl_ARPA_INET_MODULE_INDICATOR.
36964
36965 2008-04-22  Jim Meyering  <meyering@redhat.com>
36966
36967         * modules/verify (License): Re-license as LGPLv2+.
36968
36969 2008-04-22  Simon Josefsson  <simon@josefsson.org>
36970
36971         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
36972         parameter to void* as per POSIX standard (MinGW uses char*).
36973
36974 2008-04-21  Bruno Haible  <bruno@clisp.org>
36975
36976         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36977         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36978         Define to replacements if REPLACE_ISWCNTRL is 1.
36979         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
36980         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
36981         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
36982         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
36983         what it fixes.
36984         * doc/posix-functions/iswalpha.texi: Likewise.
36985         * doc/posix-functions/iswblank.texi: Likewise.
36986         * doc/posix-functions/iswcntrl.texi: Likewise.
36987         * doc/posix-functions/iswdigit.texi: Likewise.
36988         * doc/posix-functions/iswgraph.texi: Likewise.
36989         * doc/posix-functions/iswlower.texi: Likewise.
36990         * doc/posix-functions/iswprint.texi: Likewise.
36991         * doc/posix-functions/iswpunct.texi: Likewise.
36992         * doc/posix-functions/iswspace.texi: Likewise.
36993         * doc/posix-functions/iswupper.texi: Likewise.
36994         * doc/posix-functions/iswxdigit.texi: Likewise.
36995         Reported by Alain Guibert.
36996
36997 2008-04-21  Bruno Haible  <bruno@clisp.org>
36998
36999         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
37000         Patch by Alain Guibert.
37001
37002 2008-04-21  Bruno Haible  <bruno@clisp.org>
37003
37004         Fix test failures on mingw.
37005         * tests/test-xstrtol.c (print_no_progname): New function.
37006         (main): Install it in error_print_progname hook.
37007         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
37008         * tests/test-xstrtoimax.sh: Likewise.
37009         * tests/test-xstrtoumax.sh: Likewise.
37010
37011 2008-04-21  Bruno Haible  <bruno@clisp.org>
37012
37013         Fix test failure on mingw.
37014         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
37015
37016 2008-04-21  Bruno Haible  <bruno@clisp.org>
37017
37018         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
37019         Actually assign a value.
37020
37021 2008-04-20  Bruno Haible  <bruno@clisp.org>
37022
37023         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
37024         take 2.
37025         * lib/canonicalize.c (canonicalize_file_name): Elide if the
37026         'canonicalize-lgpl' module is also used.
37027         * lib/canonicalize-lgpl.c: Undo last change.
37028         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
37029
37030 2008-04-20  Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
37033         config.h. Provide _mkdir based fallback for mingw.
37034         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
37035         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
37036         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
37037         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
37038         rather than defining mkdir in config.h.
37039         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
37040         (gl_SYS_STAT_H_DEFAULTS): New macro.
37041         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
37042         HAVE_IO_H any more.
37043         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
37044         HAVE_DECL_MKDIR and HAVE_IO_H.
37045
37046 2008-04-20  Bruno Haible  <bruno@clisp.org>
37047
37048         * lib/isapipe.c: Port to native Windows platforms.
37049
37050 2008-04-20  Bruno Haible  <bruno@clisp.org>
37051
37052         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
37053
37054 2008-04-21  Eric Blake  <ebb9@byu.net>
37055
37056         Work around preprocessors that don't handle UINTMAX_MAX.
37057         * lib/memchr2.c (memchr2): Avoid embedded #if.
37058         Reported by Alain Guibert, fix suggested by Bruno Haible.
37059
37060 2008-04-21  Simon Josefsson  <simon@josefsson.org>
37061
37062         * doc/posix-functions/strftime.texi (strftime): Explain better
37063         Windows incompatibility.  Suggested by Micah Cowan
37064         <micah@cowan.name>.
37065
37066 2008-04-20  Bruno Haible  <bruno@clisp.org>
37067
37068         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
37069         unistr/u8-mblen.
37070
37071 2008-04-20  Bruno Haible  <bruno@clisp.org>
37072
37073         Fix test failure on platforms with non-GNU iconv.
37074         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
37075         (U_TO_U8): Use it, rather than u16_to_u8.
37076         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
37077         units at the end of the input string.
37078         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
37079
37080 2008-04-20  Bruno Haible  <bruno@clisp.org>
37081
37082         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
37083         when the resulting length is 0.
37084         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
37085
37086 2008-04-20  Bruno Haible  <bruno@clisp.org>
37087
37088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
37089         works.
37090         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
37091
37092 2008-04-20  Bruno Haible  <bruno@clisp.org>
37093
37094         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
37095         * modules/tsearch-tests (configure.ac): Test for initstate function.
37096
37097 2008-04-20  Bruno Haible  <bruno@clisp.org>
37098
37099         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
37100         for nlink_t if missing.
37101         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
37102
37103 2008-04-19  Bruno Haible  <bruno@clisp.org>
37104
37105         Work around snprintf bug on Linux libc5.
37106         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
37107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37108         gl_SNPRINTF_SIZE1.
37109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37110         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
37111         that test failed.
37112         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
37113         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
37114         * modules/snprintf (Files): Add m4/printf.m4.
37115         * modules/vsnprintf (Files): Likewise.
37116         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
37117         * doc/posix-functions/vsnprintf.texi: Likewise.
37118
37119 2008-04-19  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
37122         from 0.0058 to less than 10^-7.
37123
37124 2008-04-19  Bruno Haible  <bruno@clisp.org>
37125
37126         Fix rounding when a precision is given.
37127         * lib/vasnprintf.c (is_borderline): New function.
37128         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
37129         9...9x.
37130         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
37131         %e, %g.
37132         * tests/test-vasprintf-posix.c (test_function): Likewise.
37133         * tests/test-snprintf-posix.h (test_function): Likewise.
37134         * tests/test-sprintf-posix.h (test_function): Likewise.
37135         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
37136         * tests/test-printf-posix.h (test_function): Likewise.
37137         * tests/test-printf-posix.output: Update.
37138         Reported by John Darrington <john@darrington.wattle.id.au> via
37139         Ben Pfaff <blp@cs.stanford.edu>.
37140
37141 2008-04-18  Simon Josefsson  <simon@josefsson.org>
37142
37143         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
37144         Suggested by Bruno Haible <bruno@clisp.org>.
37145
37146 2008-04-17  Bruno Haible  <bruno@clisp.org>
37147
37148         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
37149         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
37150         implementation.
37151         Patch by Bruce Merry <bmerry@gmail.com>.
37152
37153 2008-04-17  Simon Josefsson  <simon@josefsson.org>
37154
37155         * doc/posix-functions/strftime.texi (strftime): Mention that %e
37156         doesn't work under Windows.
37157
37158 2008-04-16  Bruno Haible  <bruno@clisp.org>
37159
37160         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
37161         New macros.
37162         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
37163         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
37164         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
37165         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
37166         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
37167         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
37168         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
37169         macros.
37170         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
37171         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
37172         Northern Sotho, Uighur.
37173
37174 2008-04-16  Bruno Haible  <bruno@clisp.org>
37175
37176         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
37177         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
37178         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
37179         Reported by Daniel Bergström <daniel@octocode.com>.
37180
37181 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
37182             Bruno Haible  <bruno@clisp.org>
37183
37184         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
37185         function.
37186         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
37187         New functions, mostly extracted from gl_locale_name_default.
37188         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
37189
37190 2008-04-16  Eric Blake  <ebb9@byu.net>
37191
37192         Adjust strtod detection to catch glibc 2.7 bug.
37193         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
37194         Reported by John Gatewood Ham.
37195
37196 2008-04-16  Bruno Haible  <bruno@clisp.org>
37197
37198         Add tentative support for Linux libc5.
37199         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
37200         * lib/fpurge.c (fpurge): Likewise.
37201         * lib/freadable.c (freadable): Likewise.
37202         * lib/freadahead.c (freadahead): Likewise.
37203         * lib/freading.c (freading): Likewise.
37204         * lib/freadptr.c (freadptr): Likewise.
37205         * lib/freadseek.c (freadptrinc): Likewise.
37206         * lib/fseeko.c (rpl_fseeko): Likewise.
37207         * lib/fseterr.c (fseterr): Likewise.
37208         * lib/fwritable.c (fwritable): Likewise.
37209         * lib/fwriting.c (fwriting): Likewise.
37210         Reported by Alain Guibert <alguibert+bts@free.fr>.
37211
37212 2008-04-15  Bruno Haible  <bruno@clisp.org>
37213
37214         * modules/mathl (configure.ac): Define module indicator.
37215
37216 2008-04-15  Bruno Haible  <bruno@clisp.org>
37217
37218         * lib/logl.c (logl): Remove unused variables.
37219
37220 2008-04-15  Bruno Haible  <bruno@clisp.org>
37221
37222         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
37223         fails.
37224
37225 2008-04-15  Bruno Haible  <bruno@clisp.org>
37226
37227         * lib/trim.c (trim2): Fix argument of isspace() macro.
37228
37229 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
37230
37231         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
37232         to 0.
37233         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
37234
37235 2008-04-14  Bruno Haible  <bruno@clisp.org>
37236
37237         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
37238         AC_LANG_PROGRAM argument.
37239         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
37240         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
37241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37242         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37243         * m4/math_h.m4 (gl_MATH_H): Likewise.
37244         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37245         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37246         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37247         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
37248         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37249         * m4/regex.m4 (gl_REGEX): Likewise.
37250         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
37251         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
37252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37253         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
37254         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37255         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37258
37259 2008-04-14  Jim Meyering  <meyering@redhat.com>
37260
37261         test-strtod: fix typos: s/abs/fabs/
37262         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
37263
37264 2008-04-13  Bruno Haible  <bruno@clisp.org>
37265
37266         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
37267         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
37268         module is also used and while not building the reloc-wrapper.
37269
37270 2008-04-13  Bruno Haible  <bruno@clisp.org>
37271
37272         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
37273
37274 2008-04-13  Bruno Haible  <bruno@clisp.org>
37275
37276         Fix AIX compilation failure introduced on 2008-04-02.
37277         * tests/test-frexp.c (exp): Undefine before redefining.
37278         * tests/test-frexpl.c (exp): Likewise.
37279
37280 2008-04-13  Bruno Haible  <bruno@clisp.org>
37281
37282         Work around a HP-UX stdio bug.
37283         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
37284         * tests/test-ftello.c (main): Likewise.
37285         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
37286         * doc/posix-functions/ftello.texi: Likewise.
37287
37288 2008-04-13  Bruno Haible  <bruno@clisp.org>
37289
37290         Make test-signbit pass on HP-UX/hppa.
37291         * tests/test-signbit.c (minus_zerol): New variable.
37292         (test_signbitl): Use it.
37293
37294 2008-04-13  Bruno Haible  <bruno@clisp.org>
37295
37296         Make truncl work on OSF/1 4.0.
37297         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
37298         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37299         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
37300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
37301         HAVE_DECL_TRUNCL.
37302         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
37303         HAVE_DECL_TRUNCL.
37304         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
37305
37306 2008-04-13  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/unictype.h: Remove trailing comma from enumeration definitions.
37309
37310 2008-04-13  Bruno Haible  <bruno@clisp.org>
37311
37312         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
37313         expression, so as to avoid HP-UX 11 cc compiler bug.
37314
37315 2008-04-13  Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
37318
37319 2008-04-13  Bruno Haible  <bruno@clisp.org>
37320
37321         * lib/git-merge-changelog.c: Remove empty declaration outside of
37322         functions.
37323
37324 2008-04-13  Bruno Haible  <bruno@clisp.org>
37325
37326         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
37327
37328 2008-04-13  Bruno Haible  <bruno@clisp.org>
37329
37330         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
37331         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
37332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
37333         also if it exists but lacks definitions of the SHUT_* macros.
37334         * modules/sys_socket (Description): Update.
37335         Reported by Elbert Pol <e.pol@chello.nl>.
37336
37337 2008-04-13  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/localcharset.c (OS2): Don't redefine if already defined.
37340         Reported by Elbert Pol <e.pol@chello.nl>.
37341
37342 2008-04-13  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/binary-io.h [__EMX__]: Include <io.h>.
37345         Reported by Elbert Pol <e.pol@chello.nl>.
37346
37347 2008-04-12  Bruno Haible  <bruno@clisp.org>
37348
37349         * lib/fpucw.h: Enable the definitions also for x86_64.
37350         Needed for NetBSD/x86_64.
37351         Reported by Thomas Klausner <tk@giga.or.at>.
37352
37353 2008-04-12  Bruno Haible  <bruno@clisp.org>
37354
37355         * tests/test-strtod.c: Include isnand.h.
37356         (main): Use isnand instead of isnan.
37357         Reported by Jim Meyering.
37358
37359 2008-04-12  Bruno Haible  <bruno@clisp.org>
37360
37361         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
37362         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37363
37364 2008-04-12  Jim Meyering  <meyering@redhat.com>
37365
37366         * m4/math_h.m4 (gl_MATH_H): Fix typos.
37367
37368 2008-04-12  Bruno Haible  <bruno@clisp.org>
37369
37370         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
37371         Reported by Elbert Pol <e.pol@chello.nl>.
37372
37373 2008-04-12  Eric Blake  <ebb9@byu.net>
37374
37375         Work around Solaris 10 math.h bug.
37376         * m4/math_h.m4 (gl_MATH_H): Check for bug.
37377         (gl_MATH_H_DEFAULTS): Set up default.
37378         * modules/math (Makefile.am): Replace new indicators.
37379         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
37380         * tests/test-math.c (main): Test this.
37381         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
37382         * doc/posix-headers/math.texi (math.h): Mention bug.
37383         Reported by Nelson H. F. Beebe and Jim Meyering.
37384
37385 2008-04-11  Bruno Haible  <bruno@clisp.org>
37386
37387         Adapt to future versions of Apple GCC.
37388         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
37389         Reported by Peter O'Gorman <peter@pogma.com>.
37390
37391 2008-04-11  Bruno Haible  <bruno@clisp.org>
37392
37393         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
37394
37395 2008-04-11  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
37398
37399         * modules/getaddrinfo-tests (Makefile.am): Define
37400         test_getaddrinfo_LDADD.
37401
37402 2008-04-11  Bruno Haible  <bruno@clisp.org>
37403
37404         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
37405         (init): Fix syntax error.
37406         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
37407         is declared.
37408
37409 2008-04-11  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
37412         * modules/glob (Depends-on): Add stdbool.
37413
37414 2008-04-11  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/trim.c: Include <string.h>.
37417
37418 2008-04-11  Eric Blake  <ebb9@byu.net>
37419
37420         Avoid compile failure on OS/2.
37421         * lib/regex_internal.h (internal_function): Disable optimization
37422         on OS/2 (__EMX__), where it caused compiler error.
37423         Reported by Elbert Pol.
37424
37425 2008-04-11  Bruno Haible  <bruno@clisp.org>
37426
37427         Flush the standard error stream before aborting. Needed on mingw.
37428         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
37429         * tests/test-array_list.c (ASSERT): Likewise.
37430         * tests/test-array_oset.c (ASSERT): Likewise.
37431         * tests/test-avltree_list.c (ASSERT): Likewise.
37432         * tests/test-avltree_oset.c (ASSERT): Likewise.
37433         * tests/test-avltreehash_list.c (ASSERT): Likewise.
37434         * tests/test-binary-io.c (ASSERT): Likewise.
37435         * tests/test-byteswap.c (ASSERT): Likewise.
37436         * tests/test-c-ctype.c (ASSERT): Likewise.
37437         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
37438         * tests/test-c-strcasestr.c (ASSERT): Likewise.
37439         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
37440         * tests/test-c-strstr.c (ASSERT): Likewise.
37441         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
37442         * tests/test-canonicalize.c (ASSERT): Likewise.
37443         * tests/test-carray_list.c (ASSERT): Likewise.
37444         * tests/test-ceilf1.c (ASSERT): Likewise.
37445         * tests/test-ceilf2.c (ASSERT): Likewise.
37446         * tests/test-ceill.c (ASSERT): Likewise.
37447         * tests/test-count-one-bits.c (ASSERT): Likewise.
37448         * tests/test-fbufmode.c (ASSERT): Likewise.
37449         * tests/test-fflush2.c (ASSERT): Likewise.
37450         * tests/test-floorf1.c (ASSERT): Likewise.
37451         * tests/test-floorf2.c (ASSERT): Likewise.
37452         * tests/test-floorl.c (ASSERT): Likewise.
37453         * tests/test-fopen.c (ASSERT): Likewise.
37454         * tests/test-fpending.c (ASSERT): Likewise.
37455         * tests/test-fprintf-posix.c (ASSERT): Likewise.
37456         * tests/test-fpurge.c (ASSERT): Likewise.
37457         * tests/test-freadable.c (ASSERT): Likewise.
37458         * tests/test-freadahead.c (ASSERT): Likewise.
37459         * tests/test-freading.c (ASSERT): Likewise.
37460         * tests/test-freadptr.c (ASSERT): Likewise.
37461         * tests/test-freadptr2.c (ASSERT): Likewise.
37462         * tests/test-freadseek.c (ASSERT): Likewise.
37463         * tests/test-freopen.c (ASSERT): Likewise.
37464         * tests/test-frexp.c (ASSERT): Likewise.
37465         * tests/test-frexpl.c (ASSERT): Likewise.
37466         * tests/test-fseek.c (ASSERT): Likewise.
37467         * tests/test-fseeko.c (ASSERT): Likewise.
37468         * tests/test-fstrcmp.c (ASSERT): Likewise.
37469         * tests/test-ftell.c (ASSERT): Likewise.
37470         * tests/test-ftello.c (ASSERT): Likewise.
37471         * tests/test-func.c (ASSERT): Likewise.
37472         * tests/test-fwritable.c (ASSERT): Likewise.
37473         * tests/test-fwriting.c (ASSERT): Likewise.
37474         * tests/test-getdelim.c (ASSERT): Likewise.
37475         * tests/test-getline.c (ASSERT): Likewise.
37476         * tests/test-i-ring.c (ASSERT): Likewise.
37477         * tests/test-iconv-utf.c (ASSERT): Likewise.
37478         * tests/test-iconv.c (ASSERT): Likewise.
37479         * tests/test-isfinite.c (ASSERT): Likewise.
37480         * tests/test-isnand.c (ASSERT): Likewise.
37481         * tests/test-isnanf.c (ASSERT): Likewise.
37482         * tests/test-isnanl.h (ASSERT): Likewise.
37483         * tests/test-ldexpl.c (ASSERT): Likewise.
37484         * tests/test-linked_list.c (ASSERT): Likewise.
37485         * tests/test-linkedhash_list.c (ASSERT): Likewise.
37486         * tests/test-localename.c (ASSERT): Likewise.
37487         * tests/test-lseek.c (ASSERT): Likewise.
37488         * tests/test-mbscasecmp.c (ASSERT): Likewise.
37489         * tests/test-mbscasestr1.c (ASSERT): Likewise.
37490         * tests/test-mbscasestr2.c (ASSERT): Likewise.
37491         * tests/test-mbscasestr3.c (ASSERT): Likewise.
37492         * tests/test-mbscasestr4.c (ASSERT): Likewise.
37493         * tests/test-mbschr.c (ASSERT): Likewise.
37494         * tests/test-mbscspn.c (ASSERT): Likewise.
37495         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
37496         * tests/test-mbspbrk.c (ASSERT): Likewise.
37497         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
37498         * tests/test-mbsrchr.c (ASSERT): Likewise.
37499         * tests/test-mbsspn.c (ASSERT): Likewise.
37500         * tests/test-mbsstr1.c (ASSERT): Likewise.
37501         * tests/test-mbsstr2.c (ASSERT): Likewise.
37502         * tests/test-mbsstr3.c (ASSERT): Likewise.
37503         * tests/test-memchr2.c (ASSERT): Likewise.
37504         * tests/test-memmem.c (ASSERT): Likewise.
37505         * tests/test-open.c (ASSERT): Likewise.
37506         * tests/test-printf-frexp.c (ASSERT): Likewise.
37507         * tests/test-printf-frexpl.c (ASSERT): Likewise.
37508         * tests/test-printf-posix.c (ASSERT): Likewise.
37509         * tests/test-quotearg.c (ASSERT): Likewise.
37510         * tests/test-rbtree_list.c (ASSERT): Likewise.
37511         * tests/test-rbtree_oset.c (ASSERT): Likewise.
37512         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
37513         * tests/test-round1.c (ASSERT): Likewise.
37514         * tests/test-roundf1.c (ASSERT): Likewise.
37515         * tests/test-roundl.c (ASSERT): Likewise.
37516         * tests/test-signbit.c (ASSERT): Likewise.
37517         * tests/test-sleep.c (ASSERT): Likewise.
37518         * tests/test-snprintf-posix.c (ASSERT): Likewise.
37519         * tests/test-snprintf.c (ASSERT): Likewise.
37520         * tests/test-sprintf-posix.c (ASSERT): Likewise.
37521         * tests/test-stat-time.c (ASSERT): Likewise.
37522         * tests/test-strcasestr.c (ASSERT): Likewise.
37523         * tests/test-strerror.c (ASSERT): Likewise.
37524         * tests/test-striconv.c (ASSERT): Likewise.
37525         * tests/test-striconveh.c (ASSERT): Likewise.
37526         * tests/test-striconveha.c (ASSERT): Likewise.
37527         * tests/test-strsignal.c (ASSERT): Likewise.
37528         * tests/test-strstr.c (ASSERT): Likewise.
37529         * tests/test-strtod.c (ASSERT): Likewise.
37530         * tests/test-trunc1.c (ASSERT): Likewise.
37531         * tests/test-trunc2.c (ASSERT): Likewise.
37532         * tests/test-truncf1.c (ASSERT): Likewise.
37533         * tests/test-truncf2.c (ASSERT): Likewise.
37534         * tests/test-truncl.c (ASSERT): Likewise.
37535         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
37536         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
37537         * tests/test-vasnprintf.c (ASSERT): Likewise.
37538         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
37539         * tests/test-vasprintf.c (ASSERT): Likewise.
37540         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
37541         * tests/test-vprintf-posix.c (ASSERT): Likewise.
37542         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
37543         * tests/test-vsnprintf.c (ASSERT): Likewise.
37544         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
37545         * tests/test-wcwidth.c (ASSERT): Likewise.
37546         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
37547         * tests/test-xprintf-posix.c (ASSERT): Likewise.
37548         * tests/test-xvasprintf.c (ASSERT): Likewise.
37549         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
37550         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
37551         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
37552         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
37553         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
37554         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
37555         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
37556         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
37557         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
37558         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
37559         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
37560         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
37561         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
37562         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
37563         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
37564         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
37565         * tests/unictype/test-block_list.c (ASSERT): Likewise.
37566         * tests/unictype/test-block_of.c (ASSERT): Likewise.
37567         * tests/unictype/test-block_test.c (ASSERT): Likewise.
37568         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
37569         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
37570         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
37571         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
37572         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
37573         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
37574         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
37575         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
37576         * tests/unictype/test-combining.c (ASSERT): Likewise.
37577         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
37578         * tests/unictype/test-digit.c (ASSERT): Likewise.
37579         * tests/unictype/test-mirror.c (ASSERT): Likewise.
37580         * tests/unictype/test-numeric.c (ASSERT): Likewise.
37581         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
37582         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
37583         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
37584         * tests/unictype/test-scripts.c (ASSERT): Likewise.
37585         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
37586         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
37587         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
37588         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
37589         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
37590         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
37591         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
37592         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
37593         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
37594         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
37595         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
37596         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
37597         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
37598         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
37599         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
37600         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
37601         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
37602         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
37603         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
37604         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
37605         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
37606         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
37607         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
37608         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
37609         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
37610         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
37611         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
37612         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
37613         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
37614         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
37615         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
37616         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
37617         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
37618         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
37619         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
37620         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
37621         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
37622         Reported by Eric Blake.
37623
37624 2008-04-11  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/wchar.in.h: Tweak comment.
37627
37628 2008-04-11  Bruno Haible  <bruno@clisp.org>
37629
37630         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
37631         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
37632         gl_COMMON.
37633         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
37634
37635 2008-04-11  Bruno Haible  <bruno@clisp.org>
37636
37637         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
37638
37639 2008-04-11  Simon Josefsson  <simon@josefsson.org>
37640
37641         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
37642         of attempting to use non-existing /dev/*random.  Based on patch
37643         from Adam Strzelecki <ono@java.pl> in
37644         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
37645
37646 2008-04-08  Bruno Haible  <bruno@clisp.org>
37647
37648         Add tentative support for emx+gcc.
37649         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
37650         * lib/fpurge.c (fpurge): Likewise.
37651         * lib/freadable.c (freadable): Likewise.
37652         * lib/freadahead.c (freadahead): Likewise.
37653         * lib/freading.c (freading): Likewise.
37654         * lib/freadptr.c (freadptr): Likewise.
37655         * lib/freadseek.c (freadptrinc): Likewise.
37656         * lib/fseeko.c (rpl_fseeko): Likewise.
37657         * lib/fseterr.c (fseterr): Likewise.
37658         * lib/fwritable.c (fwritable): Likewise.
37659         * lib/fwriting.c (fwriting): Likewise.
37660         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
37661
37662 2008-04-09  Eric Blake  <ebb9@byu.net>
37663
37664         Avoid some autoconf warnings.
37665         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
37666         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
37667         * m4/afs.m4 (gl_AFS): Likewise.
37668         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
37669         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
37670         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37671         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
37672         (gl_INTEGER_TYPE_SUFFIX): Likewise.
37673         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
37674         (AC_CHECK_DECLS_ONCE): Likewise.
37675         Rename file...
37676         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
37677         gnulib-tool requires autoconf 2.59 or better.
37678         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
37679
37680 2008-04-08  Eric Blake  <ebb9@byu.net>
37681
37682         Use 'git describe --match' if present (added in git 1.5.5).
37683         * build-aux/git-version-gen: Limit result to tags that match 'v*'
37684         if possible.
37685
37686 2008-04-08  Bruno Haible  <bruno@clisp.org>
37687
37688         Add tentative support for OpenServer.
37689         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
37690         _ptr, _cnt.
37691         * lib/fpurge.c (fpurge): Likewise.
37692         * lib/freadable.c (freadable): Likewise.
37693         * lib/freadahead.c (freadahead): Likewise.
37694         * lib/freading.c (freading): Likewise.
37695         * lib/freadptr.c (freadptr): Likewise.
37696         * lib/freadseek.c (freadptrinc): Likewise.
37697         * lib/fseeko.c (rpl_fseeko): Likewise.
37698         * lib/fseterr.c (fseterr): Likewise.
37699         * lib/fwritable.c (fwritable): Likewise.
37700         * lib/fwriting.c (fwriting): Likewise.
37701         Reported by Roger Cornelius <rac@tenzing.org> and
37702         Brian K. White <brian@aljex.com>.
37703
37704 2008-04-06  Jim Meyering  <meyering@redhat.com>
37705
37706         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
37707
37708 2008-04-06  Bruno Haible  <bruno@clisp.org>
37709
37710         Avoid possible error with non-ASCII bytes in UTF-8 locales.
37711         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
37712         * tests/test-printf-posix.sh: Likewise.
37713         * tests/test-vfprintf-posix.sh: Likewise.
37714         * tests/test-vprintf-posix.sh: Likewise.
37715         * tests/test-xprintf-posix.sh: Likewise.
37716
37717 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37718
37719         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
37720         hide error from 'ls', needed on OS/2.
37721         Report by Elbert Pol <elbert.pol@gmail.com>.
37722
37723 2008-04-04  Eric Blake  <ebb9@byu.net>
37724
37725         Make test-fseeko.c failures meaningful.
37726         * tests/test-fseeko.c: Print line number on failure.
37727         * tests/test-fseek.c: Likewise.
37728         Reported by Nelson H. F. Beebe.
37729
37730         Improve strtod bug detection check.
37731         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
37732         required for Solaris 10.
37733         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
37734
37735 2008-04-04  Bruno Haible  <bruno@clisp.org>
37736
37737         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
37738         by m4/setenv.m4.
37739
37740 2008-04-03  Eric Blake  <ebb9@byu.net>
37741
37742         Ensure sane .version contents.
37743         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
37744         version string.
37745         * build-aux/git-version-gen: Improve documentation.
37746
37747         Make GNU make output nicer.
37748         * top/GNUmakefile [!_have-Makefile]: Add dependency on
37749         MAKECMDGOALS to enforce message for all command line targets.  Set
37750         srcdir for use in maint.mk.
37751
37752         Another maintainer tweak.
37753         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
37754         a target that regenerates version.
37755
37756 2008-04-03  Jim Meyering  <meyering@redhat.com>
37757
37758         vc-list-files: don't cause coreutils "make po-check" failure
37759         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
37760
37761 2008-04-03  Eric Blake  <ebb9@byu.net>
37762
37763         Allow VPATH usage of vc-list-files.
37764         * build-aux/vc-list-files (scriptversion): Add timestamp.
37765         (options): Add --help, --version, -C.
37766         (CVS): Support installed cvsu.
37767
37768 2008-04-02  Bruno Haible  <bruno@clisp.org>
37769
37770         Avoid some "statement with no effect" warnings from gcc.
37771         * tests/test-wctype.c (main): Explicitly ignore unused values.
37772         Reported by Jim Meyering.
37773
37774 2008-04-02  Jim Meyering  <meyering@redhat.com>
37775
37776         Avoid some warnings from "gcc -Wshadow".
37777         * tests/test-frexp.c (exp): Define to a different identifier.
37778         * tests/test-frexpl.c (exp): Likewise.
37779
37780 2008-04-03  Jim Meyering  <meyering@redhat.com>
37781
37782         bootstrap: remove dangling *.[ch] symlinks from lib
37783         * build-aux/bootstrap [dangling symlink removal]: Move find's
37784         -depth option to precede all others, to avoid a warning.
37785         Remove *.[ch] files too, and from "$source_base" (usually lib/).
37786
37787 2008-04-02  Bruno Haible  <bruno@clisp.org>
37788
37789         Avoid some warnings from "gcc -Wshadow".
37790         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
37791         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
37792         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
37793         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
37794         Reported by Jim Meyering.
37795
37796 2008-04-01  Bruno Haible  <bruno@clisp.org>
37797
37798         Fix test to work on IRIX 6.5 with cc.
37799         * tests/test-math.c (numeric_equal): New function.
37800         (main): Use it.
37801
37802 2008-04-01  Bruno Haible  <bruno@clisp.org>
37803
37804         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
37805
37806 2008-04-01  Bruno Haible  <bruno@clisp.org>
37807
37808         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
37809         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37810         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
37811         (Depends-on): Remove math.
37812
37813         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
37814         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37815         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
37816         (Depends-on): Remove math.
37817
37818         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
37819         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37820         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
37821         (Depends-on): Remove math.
37822         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
37823         (Depends-on): Remove math.
37824
37825         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
37826         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
37827         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
37828         (Depends-on): Remove math.
37829         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
37830         (Depends-on): Remove math.
37831
37832         * tests/test-round1.c: Include nan.h.
37833         (main): Use NaNd instead of NAN.
37834         * modules/round-tests (Files): Add tests/nan.h.
37835
37836         * tests/test-trunc1.c: Include nan.h.
37837         (main): Use NaNd instead of NAN.
37838         * modules/trunc-tests (Files): Add tests/nan.h.
37839
37840         * tests/test-roundf1.c: Include nan.h.
37841         (main): Use NaNf instead of NAN.
37842         * modules/roundf-tests (Files): Add tests/nan.h.
37843
37844         * tests/test-truncf1.c: Include nan.h.
37845         (main): Use NaNf instead of NAN.
37846         * modules/truncf-tests (Files): Add tests/nan.h.
37847
37848         * tests/test-ceilf1.c: Include nan.h.
37849         (main): Use NaNf instead of NAN.
37850         * modules/ceilf-tests (Files): Add tests/nan.h.
37851
37852         * tests/test-floorf1.c: Include nan.h.
37853         (main): Use NaNf instead of NAN.
37854         * modules/floorf-tests (Files): Add tests/nan.h.
37855
37856         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
37857         (main): Use NaNf instead of NAN.
37858         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
37859
37860         * tests/test-isnand.c: Include nan.h instead of <math.h>.
37861         (main): Use NaNd instead of NAN.
37862         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
37863
37864         * tests/test-frexp.c: Include nan.h.
37865         (main): Use NaNd instead of NAN.
37866         * modules/frexp-tests (Files): Add tests/nan.h.
37867
37868         * lib/isnan.c: Don't include <math.h>.
37869         (FUNC): Don't use NAN macro.
37870         * modules/isnand-nolibm (Depends-on): Remove math.
37871         * modules/isnanf-nolibm (Depends-on): Remove math.
37872         * modules/isnanl (Depends-on): Remove math.
37873         * modules/isnanl-nolibm (Depends-on): Remove math.
37874
37875         * tests/nan.h: New file.
37876
37877 2008-04-01  Eric Blake  <ebb9@byu.net>
37878
37879         Fix typos.
37880         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
37881         values to be the right type.
37882
37883         For now, cater to gnulib strtod inaccuracies.
37884         * tests/test-strtod.c (main): Allow 1-ulp error on expected
37885         fractional results.  While not as nice from a QoI perspective, it
37886         is a quicker patch than correctly implementing decimal to binary
37887         rounding.
37888
37889 2008-03-31  Eric Blake  <ebb9@byu.net>
37890
37891         Guarantee a definition of NAN.
37892         * lib/math.in.h (NAN): Define if missing.
37893         * tests/test-math.c (main): Test it.
37894         * doc/posix-headers/math.texi (math.h): Document this.
37895         * lib/isnan.c (rpl_isnand): Use it.
37896         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
37897         * tests/test-floorf1.c (NaN): Likewise.
37898         * tests/test-frexp.c (NaN): Likewise.
37899         * tests/test-isnand.c (NaN): Likewise.
37900         * tests/test-isnanf.c (NaN): Likewise.
37901         * tests/test-round1.c (NaN): Likewise.
37902         * tests/test-roundf1.c (NaN): Likewise.
37903         * tests/test-snprintf-posix.h (NaN): Likewise.
37904         * tests/test-sprintf-posix.h (NaN): Likewise.
37905         * tests/test-trunc1.c (NaN): Likewise.
37906         * tests/test-truncf1.c (NaN): Likewise.
37907         * tests/test-vasnprintf-posix.c (NaN): Likewise.
37908         * tests/test-vasprintf-posix.c (NaN): Likewise.
37909         * modules/isnand-nolibm (Depends-on): Add math.
37910         * modules/isnanf-nolibm (Depends-on): Likewise.
37911         * modules/isnanl (Depends-on): Likewise.
37912         * modules/isnanl-nolibm (Depends-on): Likewise.
37913         * modules/snprintf-posix-tests (Depends-on): Likewise.
37914         * modules/sprintf-posix-tests (Depends-on): Likewise.
37915         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
37916         * modules/vsprintf-posix-tests (Depends-on): Likewise.
37917         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
37918         * modules/vasprintf-posix-tests (Depends-on): Likewise.
37919
37920 2008-03-31  Bruno Haible  <bruno@clisp.org>
37921
37922         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
37923         * doc/posix-functions/strtod.texi: Likewise.
37924
37925 2008-03-31  Bruno Haible  <bruno@clisp.org>
37926
37927         * tests/test-strtod.c (main): Don't use C99 syntax.
37928
37929 2008-03-31  Bruno Haible  <bruno@clisp.org>
37930
37931         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
37932         Reported by Eric Blake.
37933
37934 2008-03-31  Jim Meyering  <meyering@redhat.com>
37935
37936         Don't compare actual signbit return values.
37937         * tests/test-strtod.c (main): Rather, compare only their
37938         zero/non-zero nature.
37939
37940 2008-03-31  Eric Blake  <ebb9@byu.net>
37941
37942         More strtod documentation.
37943         * doc/posix-functions/strtod.texi (strtod): Interpret more test
37944         failures as distinct bugs.
37945
37946 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37947
37948         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
37949         Problem reported by Erik Benada in
37950         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
37951
37952 2008-03-30  Bruno Haible  <bruno@clisp.org>
37953
37954         * tests/test-strtod.c: Add comments about which assertion fails on which
37955         platform.
37956         * doc/posix-functions/strtod.texi: Add info about many more platforms.
37957
37958 2008-03-30  Eric Blake  <ebb9@byu.net>
37959
37960         Test signbit behavior on zeros.
37961         * tests/test-signbit.c (test_signbitf): Add tests for zero.
37962         (test_signbitd, test_signbitl): Likewise.
37963
37964         More strtod touchups.
37965         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
37966         sign of negative underflow, for now.  Use .5, not .1.
37967         * doc/posix-functions/strtod.texi (strtod): Mention these
37968         limitations.
37969         Reported by Jim Meyering.
37970
37971 2008-03-30  Bruno Haible  <bruno@clisp.org>
37972
37973         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
37974         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
37975
37976 2008-03-30  Bruno Haible  <bruno@clisp.org>
37977
37978         Avoid failure when attempting to return empty iconv results on some
37979         platforms.
37980         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
37981         allocation, don't report ENOMEM when the resulting string is empty.
37982
37983 2008-03-30  Bruno Haible  <bruno@clisp.org>
37984
37985         Fix buffer overrun.
37986         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
37987         Don't consider the width for tmp_length. Check count against tmp_length
37988         before doing the padding. Ensure enough allocation during padding.
37989
37990 2008-03-30  Eric Blake  <ebb9@byu.net>
37991
37992         strtod touchups.
37993         * lib/strtod.c (strtod): Avoid compiler warnings.
37994         Reported by Jim Meyering.
37995
37996 2008-03-30  Bruno Haible  <bruno@clisp.org>
37997
37998         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
37999         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
38000         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
38001         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
38002         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
38003         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
38004         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
38005         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
38006
38007         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
38008         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
38009         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
38010         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
38011         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
38012         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
38013         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
38014         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
38015
38016         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
38017         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
38018         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
38019         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
38020         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
38021         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
38022         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
38023         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
38024
38025         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
38026         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
38027
38028         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
38029         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
38030
38031         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
38032         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
38033
38034         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
38035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
38036         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
38037
38038         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
38039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
38040         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
38041
38042         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
38043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
38044         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
38045
38046         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
38047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
38048         * modules/vasprintf (Depends-on): Add EOVERFLOW.
38049
38050         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
38051         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
38052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
38053         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
38054         (Depends-on): Add EOVERFLOW.
38055         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
38056         (Depends-on): Add EOVERFLOW.
38057         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38058         (Depends-on): Add EOVERFLOW.
38059         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
38060         (Depends-on): Add EOVERFLOW.
38061         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38062         (Depends-on): Add EOVERFLOW.
38063         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
38064         (Depends-on): Add EOVERFLOW.
38065         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38066         (Depends-on): Add EOVERFLOW.
38067         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
38068         (Depends-on): Add EOVERFLOW.
38069
38070         * lib/sprintf.c (EOVERFLOW): Remove fallback.
38071         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
38072         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
38073
38074         * lib/snprintf.c (EOVERFLOW): Remove fallback.
38075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
38076         * modules/snprintf (Depends-on): Add EOVERFLOW.
38077
38078         * lib/poll.c (EOVERFLOW): Remove fallback.
38079         * modules/poll (Depends-on): Add EOVERFLOW.
38080
38081         * lib/getugroups.c (EOVERFLOW): Remove fallback.
38082         * modules/getugroups (Depends-on): Add EOVERFLOW.
38083
38084         * lib/getdelim.c (EOVERFLOW): Remove fallback.
38085         * modules/getdelim (Depends-on): Add EOVERFLOW.
38086
38087         * lib/ftell.c (EOVERFLOW): Remove fallback.
38088         * modules/ftell (Depends-on): Add EOVERFLOW.
38089
38090         * lib/fprintf.c (EOVERFLOW): Remove fallback.
38091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
38092         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
38093
38094         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
38095
38096         * modules/EOVERFLOW-tests: New file.
38097         * tests/test-EOVERFLOW.c: New file.
38098
38099         * modules/EOVERFLOW: New file.
38100         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
38101
38102 2008-03-30  Bruno Haible  <bruno@clisp.org>
38103
38104         Fix bug introduced on 2007-06-10.
38105         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
38106         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
38107
38108 2008-03-30  Bruno Haible  <bruno@clisp.org>
38109
38110         Improve freadseek's efficiency after ungetc.
38111         * lib/freadseek.c: Include freadahead.h.
38112         (freadptrinc): New function, extracted from freadseek.
38113         (freadseek): Use it in a loop. Use freadahead to determine the number
38114         of loop iterations.
38115         * modules/freadseek (Depends-on): Add freadahead.
38116         (configure.ac): Require AC_C_INLINE.
38117
38118 2008-03-30  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/freadseek.c (freadseek): Don't ignore the return value of
38121         freadptr.
38122
38123 2008-03-29  Eric Blake  <ebb9@byu.net>
38124
38125         Add hex float support.
38126         * modules/strtod (Depends-on): Add c-ctype.
38127         (Link): Mention POW_LIB.
38128         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
38129         whitespace between 'e' and exponent.
38130         * tests/test-strtod.c (main): Enable hex float tests.
38131         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
38132         now provides.
38133
38134         Document various strtod bugs, with some fixes.
38135         * doc/posix-functions/strtod.texi (strtod): Document bugs with
38136         "-0x", "inf", "nan", and hex constants.
38137         * doc/posix-functions/atof.texi (atof): Likewise.
38138         * modules/stdlib (Makefile.am): Support strtod.
38139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38140         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
38141         detect additional strtod bugs.
38142         * lib/stdlib.in.h (rpl_strtod): Add declarations.
38143         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
38144         bool where appropriate.  Parse 'inf' and 'nan'.
38145         * tests/test-strtod.c: New file.
38146         * modules/strtod (Depends-on): Add stdbool, stdlib.
38147         (configure.ac): Turn on module indicator.
38148         * modules/strtod-tests: New module.
38149
38150 2008-03-29  Eric Blake  <ebb9@byu.net>
38151
38152         Fix ftell on mingw.
38153         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
38154         * modules/ftell-tests (Depends-on): Add binary-io.
38155         * modules/ftello-tests (Depends-on): Likewise.
38156         * tests/test-ftell.c (main): Enhance test to cover behavior after
38157         ungetc.  Enforce binary mode.
38158         * tests/test-ftello.c (main): Likewise.
38159
38160         Pass test-freadseek on cygwin.
38161         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
38162         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
38163         ungetc buffer.
38164
38165         * tests/test-fflush2.c (main): Fix typo.
38166
38167 2008-03-29  Bruno Haible  <bruno@clisp.org>
38168
38169         * tests/test-fflush2.c (main): Temporarily disable the contents of
38170         this test.
38171         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
38172         Reported by Eric Blake.
38173
38174 2008-03-28  Simon Josefsson  <simon@josefsson.org>
38175
38176         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
38177         (GC_SHA224_DIGEST_SIZE): Add.
38178
38179         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
38180         (gc_hash_digest_length): Likewise.
38181         (gc_hash_buffer): Likewise.
38182
38183 2008-03-25  Bruno Haible  <bruno@clisp.org>
38184
38185         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
38186         detail which gettext release to use.
38187         Reported by Simon Josefsson.
38188
38189 2008-03-26  Jim Meyering  <meyering@redhat.com>
38190
38191         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
38192         * modules/gnumakefile (clean-GNUmakefile): Also, use
38193         test ... && ... || : syntax rather than if-then ... fi.
38194
38195         gnumakefile: Don't double-quote-expand $(VPATH) value.
38196         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
38197
38198 2008-03-24  Eric Blake  <ebb9@byu.net>
38199
38200         Alter GNUmakefile to install into top directory.
38201         * modules/maintainer-makefile: Split, and add dependency...
38202         * modules/gnumakefile: to this new module.
38203         * build-aux/GNUmakefile: Move...
38204         * top/GNUmakefile: ...here.
38205         * build-aux/maint.mk: Move...
38206         * top/maint.mk: ...here.
38207         * MODULES.html.sh (Support for maintaining...): Document new
38208         module.
38209
38210 2008-03-23  Bruno Haible  <bruno@clisp.org>
38211
38212         * gnulib-tool: New options --vc-files, --no-vc-files.
38213         (func_usage): Document them.
38214         (vc_files): New variable.
38215         (func_import): Consider vc_files.
38216         (func_create_testdir): Set vc_files to empty.
38217         Suggested by Jim Meyering and Karl Berry.
38218
38219 2008-03-23  Bruno Haible  <bruno@clisp.org>
38220
38221         Fix regex compilation error on HP-UX 11.
38222         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
38223         * modules/regex (Files): Add m4/mbstate_t.m4.
38224         Reported by Ton Voon <ton.voon@altinity.com>.
38225
38226 2008-03-23  Bruno Haible  <bruno@clisp.org>
38227
38228         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
38229
38230 2008-03-23  Eric Blake  <ebb9@byu.net>
38231             Bruno Haible  <bruno@clisp.org>
38232
38233         Install files from top/ in the destination directory.
38234         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38235         augmentation also for the files from top/.
38236         (func_import, func_create_testdir): Rewrite file names:
38237         top/filename -> filename.
38238
38239 2008-03-23  Bruno Haible  <bruno@clisp.org>
38240
38241         Tweak "gnulib --version" output.
38242         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
38243
38244 2008-03-23  Bruno Haible  <bruno@clisp.org>
38245
38246         Tweak "gnulib --version" output.
38247         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
38248         rather than contents of ChangeLog, when possible.
38249
38250 2008-03-21  Eric Blake  <ebb9@byu.net>
38251
38252         More --version tweaks.
38253         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
38254         date of last ChangeLog entry.
38255
38256 2008-03-21  Jim Meyering  <meyering@redhat.com>
38257
38258         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
38259
38260 2008-03-20  Eric Blake  <ebb9@byu.net>
38261
38262         VPATH fix.
38263         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
38264
38265 2008-03-20  Simon Josefsson  <simon@josefsson.org>
38266
38267         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
38268         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
38269
38270 2008-03-20  Eric Blake  <ebb9@byu.net>
38271
38272         Sync GNUmakefile with coreutils.
38273         * build-aux/GNUmakefile (have-Makefile): Rename...
38274         (_have-Makefile): ...to this, for namespace consideration.
38275         (GNUmakefile.cfg): Include, if present.
38276         (_autoreconf): Define a default.
38277         (_is-dist-target): New rule for rebuilds to pick up intra-release
38278         version.
38279         (maint-cfg.mk): Rename...
38280         (cfg.mk): ...to this.
38281
38282 2008-03-18  Jim Meyering  <meyering@redhat.com>
38283
38284         New script and module: mktempd
38285         * MODULES.html.sh (maint+release support): Add mktempd.
38286         * build-aux/mktempd: New file.
38287         * modules/mktempd: New file.
38288
38289 2008-03-15  Jim Meyering  <meyering@redhat.com>
38290
38291         Undo last change.
38292         * lib/sha1.c, lib/md5.c: 63 != ~63.
38293         Reported by Andreas Schwab.
38294
38295         sha1.c, md5.c: Hoist a redundant expression.
38296         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
38297         "ctx->buflen" only once, before calling *_process_block.
38298         * lib/md5.c (md5_process_bytes): Likewise.
38299
38300 2008-03-14  Eric Blake  <ebb9@byu.net>
38301
38302         Bump copyright year in files generated by gnulib-tool.
38303         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
38304         gnulib-tool, rather than hard-coding it.
38305
38306         Fix 'gnulib-tool --version' output to work with git.
38307         * gnulib-tool (func_gnulib_dir): New function, extracted from...
38308         (startup): ...here.
38309         (func_version): Use it to invoke git-version-gen, rather than
38310         relying on CVS keyword expansion.  Modernize wording.
38311         (cvsdatestamp, last_checkin_date, version): Kill unused
38312         variables.
38313
38314 2008-03-12  Jim Meyering  <meyering@redhat.com>
38315
38316         Recognize optional cast of the argument to free.
38317         * build-aux/useless-if-before-free: Update regexps.
38318
38319         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
38320
38321 2008-03-11  Bruno Haible  <bruno@clisp.org>
38322
38323         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
38324         by a single package.
38325         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
38326         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
38327         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
38328         Reported by Sam Steingold <sds@gnu.org>.
38329
38330 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38331
38332         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
38333         repositories.
38334
38335 2008-03-11  Bruno Haible  <bruno@clisp.org>
38336
38337         Avoid conflicts between local macro definitions.
38338         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38339         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
38340
38341 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
38342             Bruno Haible  <bruno@clisp.org>
38343
38344         Make va_copy work with some version of xlc on AIX 5.1.
38345         * lib/stdarg.in.h: New file.
38346         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
38347         On AIX, use a <stdarg.h> file substitute.
38348         * modules/stdarg (Files): Add lib/stdarg.in.h.
38349         (Depends-on): Add include_next.
38350         (Makefile.am): Build a stdarg.h substitute if requested.
38351         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
38352
38353 2008-03-10  Bruno Haible  <bruno@clisp.org>
38354
38355         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
38356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38357         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38358
38359 2008-03-10  Bruno Haible  <bruno@clisp.org>
38360
38361         * modules/stdlib (Depends-on): Add include_next, remove
38362         absolute-header.
38363
38364 2008-03-09  Bruno Haible  <bruno@clisp.org>
38365
38366         * lib/freadahead.h (freadahead): Document more precisely.
38367         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
38368         the sum of both buffer sizes.
38369         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
38370         * NEWS: Document the change.
38371
38372 2008-03-09  Bruno Haible  <bruno@clisp.org>
38373
38374         Extend freadptr to return also the buffer size.
38375         * lib/freadptr.h (freadptr): Add sizep argument.
38376         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
38377         (freadptr): Add sizep argument. Determine buffer size like freadahead
38378         does.
38379         * tests/test-freadptr.c: Don't include freadahead.h.
38380         (main): Adapt for new calling convention of freadptr.
38381         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
38382         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
38383         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
38384         tests/test-freadptr2.sh.
38385         (Depends): Remove freadahead.
38386         (TESTS): Add test-freadptr2.sh.
38387         (check_PROGRAMS): Add test-freadptr2.
38388
38389 2008-03-09  Bruno Haible  <bruno@clisp.org>
38390
38391         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
38392         Report and solution by Simon Josefsson.
38393
38394 2008-03-06  Bruno Haible  <bruno@clisp.org>
38395
38396         Make fflush after ungetc work on BSD platforms.
38397         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
38398         * tests/test-fflush2.c: New file.
38399         * tests/test-fflush2.sh: New file.
38400         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
38401         tests/test-fflush2.c.
38402         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
38403         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
38404
38405 2008-03-06  Eric Blake  <ebb9@byu.net>
38406
38407         Likewise for ftello.
38408         * modules/ftello (Dependencies): Add extensions.
38409         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
38410
38411 2008-03-06  Bruno Haible  <bruno@clisp.org>
38412
38413         * modules/fseeko (Dependencies): Add extensions.
38414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
38415         Needed on glibc systems.
38416
38417 2008-03-06  Bruno Haible  <bruno@clisp.org>
38418
38419         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
38420         email address.
38421         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38422
38423 2008-03-06  Bruno Haible  <bruno@clisp.org>
38424
38425         * users.txt: Add libgnupdf.
38426
38427 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38428
38429         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
38430         (Header File Substitutes, Function Substitutes,
38431         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
38432         (Build robot for gnulib): Fix typo.
38433
38434 2008-03-06  Bruno Haible  <bruno@clisp.org>
38435
38436         * doc/gnulib-tool.texi (VCS Issues): Small updates.
38437         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38438
38439 2008-03-06  Bruno Haible  <bruno@clisp.org>
38440
38441         * doc/func.texi: New file, extracted from doc/gnulib.texi.
38442         * doc/gnulib.texi: Include it.
38443
38444 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38445
38446         * modules/func (License): Change license to unlimited; there was
38447         no LGPL parts in the module anyway.
38448
38449 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38450
38451         * modules/__func__: Renamed to modules/func.
38452         * modules/__func__-tests: Renamed to modules/func-tests.
38453         * tests/test-__func__.c: Renamed to tests/test-func.c.
38454         * m4/__func__.m4: Renamed to m4/func.m4.
38455         * doc/gnulib.texi (__func__): Section renamed to func.
38456         Suggested by Eric Blake <ebb9@byu.net>.
38457
38458 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38459
38460         * doc/gnulib.texi (__func__): Use C99 terminology when talking
38461         about __func__.  Make example self-contained.  Suggested by Eric
38462         Blake <ebb9@byu.net>.
38463
38464         * tests/test-__func__.c (main): Avoid extraneous () around __func.
38465         Suggested by Eric Blake <ebb9@byu.net>.
38466
38467 2008-03-06  Simon Josefsson  <simon@josefsson.org>
38468
38469         * modules/__func__: New file.
38470         * modules/__func__-tests: New file.
38471         * tests/test-__func__.c: New file.
38472         * m4/__func__.m4: New file.
38473         * doc/gnulib.texi (__func__): Document __func__ module.
38474
38475 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38476
38477         * modules/byteswap (License): Re-license as LGPLv2+.
38478
38479 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38480
38481         * doc/Makefile: Add pdf target.
38482
38483 2008-03-05  Simon Josefsson  <simon@josefsson.org>
38484
38485         * modules/inline (License): Use 'unlimited', since there are only
38486         *.m4 files in this module.
38487
38488 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38489             Bruno Haible  <bruno@clisp.org>
38490
38491         Add support for HP C 7.1 on OpenVMS 8.3.
38492         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
38493
38494 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
38495
38496         Update VMS specifics.
38497         * lib/getopt.c [VMS]: Remove include of unixlib.h.
38498
38499 2008-03-02  Jim Meyering  <meyering@redhat.com>
38500
38501         Remove the last dependency on the "free" module.
38502         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
38503         Reported by Bob Proulx.
38504
38505         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
38506
38507         Remove useless "if" tests before free.  Deprecate "free" module.
38508         * doc/posix-functions/free.texi: Mention that this
38509         module is no longer useful.
38510         * modules/free (Notice): Say this module is obsolete.
38511         * modules/readutmp (Depends-on): Remove free.
38512         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
38513         * lib/putenv.c (putenv): Likewise.
38514         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
38515         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
38516         * tests/test-c-strcasestr.c (main): Likewise.
38517         * tests/test-c-strstr.c (main): Likewise.
38518         * tests/test-mbscasestr1.c (main): Likewise.
38519         * tests/test-mbscasestr2.c (main): Likewise.
38520         * tests/test-mbsstr1.c (main): Likewise.
38521         * tests/test-mbsstr2.c (main): Likewise.
38522         * tests/test-memmem.c (main): Likewise.
38523         * tests/test-strcasestr.c (main): Likewise.
38524         * tests/test-striconv.c (main): Likewise.
38525         * tests/test-striconveh.c (main): Likewise.
38526         * tests/test-striconveha.c (main): Likewise.
38527         * tests/test-strstr.c (main): Likewise.
38528
38529         * build-aux/git-version-gen: Adjust a comment and the Usage string.
38530
38531         bootstrap: sync from coreutils again
38532         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
38533
38534 2008-03-01  Jim Meyering  <meyering@redhat.com>
38535
38536         bootstrap: sync from coreutils
38537         * build-aux/bootstrap (update_po_files): Copy a .po file into place
38538         also when the target doesn't exist.
38539
38540 2008-03-01  Eric Blake  <ebb9@byu.net>
38541
38542         Fix bugs in last patch.
38543         * lib/memchr2.c (memchr2): Fix typo.
38544         * tests/test-memchr2.c: Test previous bug, and don't use GNU
38545         extension.
38546         Reported by Bruce Korb.
38547
38548         New module 'memchr2'.
38549         * modules/memchr2: New file.
38550         * modules/memchr2-tests: Likewise.
38551         * lib/memchr2.h: Likewise.
38552         * lib/memchr2.c: Likewise, based on memchr.c.
38553         * tests/test-memchr2.c: New test.
38554         * MODULES.html.sh (String handling): Add memchr2.
38555
38556 2008-02-29  Bruno Haible  <bruno@clisp.org>
38557
38558         * modules/freadseek-tests: New file.
38559         * tests/test-freadseek.sh: New file.
38560         * tests/test-freadseek.c: New file.
38561
38562         New module 'freadseek'.
38563         * modules/freadseek: New file.
38564         * lib/freadseek.h: New file.
38565         * lib/freadseek.c: New file.
38566         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
38567
38568 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38569
38570         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
38571         wydawca.
38572
38573         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
38574         program_invocation_name and program_invocation_short_name are
38575         present.
38576
38577 2008-02-28  Bruno Haible  <bruno@clisp.org>
38578
38579         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
38580         * tests/test-freadptr.sh: Also test non-seekable stdin.
38581
38582 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
38583
38584         * build-aux/bootstrap (source_base, m4_base)
38585         (doc_base, tests_base): New variables.
38586         (gnulib_tool_options): Do not hardcode base directories, use
38587         the above variables instead.
38588
38589 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
38590
38591         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
38592
38593 2008-02-28  Bruno Haible  <bruno@clisp.org>
38594
38595         * modules/freadptr-tests: New file.
38596         * tests/test-freadptr.sh: New file.
38597         * tests/test-freadptr.c: New file.
38598
38599         New module 'freadptr'.
38600         * modules/freadptr: New file.
38601         * lib/freadptr.h: New file.
38602         * lib/freadptr.c: New file.
38603         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
38604
38605 2008-02-26  Karl Berry  <karl@freefriends.org>
38606
38607         Sync from Libtool:
38608         * libltdl/argz.c (argz_add, argz_count): New functions.
38609         * libltdl/argz.in.h: Declare them.
38610         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
38611
38612 2008-02-22  Bruno Haible  <bruno@clisp.org>
38613
38614         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
38615         is a pointer type.  Needed for HP-UX 10.
38616         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
38617         * doc/posix-functions/gmtime_r.texi: Likewise.
38618         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
38619
38620 2008-02-24  Bruno Haible  <bruno@clisp.org>
38621
38622         * modules/environ-tests: New file.
38623         * tests/test-environ.c: New file.
38624
38625         New module 'environ'.
38626         * modules/environ: New file.
38627         * lib/unistd.in.h (environ): New declaration.
38628         * m4/environ.m4: New file.
38629         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
38630         after use.
38631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
38632         HAVE_DECL_ENVIRON.
38633         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
38634         HAVE_DECL_ENVIRON.
38635         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
38636         wrong claim that 'environ' is missing on some systems.
38637         * modules/execute (Depends-on): Add environ.
38638         * lib/execute.c (environ): Remove fallback declaration.
38639         * modules/pipe (Depends-on): Add environ.
38640         * lib/pipe.c (environ): Remove fallback declaration.
38641         * modules/setenv (Depends-on): Add environ.
38642         * lib/setenv.c (environ): Remove fallback declaration.
38643         * modules/unsetenv (Depends-on): Add environ.
38644         * lib/unsetenv.c (environ): Remove fallback declaration.
38645         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
38646         m4/environ.m4.
38647         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
38648         (gl_PREREQ_UNSETENV): Likewise.
38649
38650 2008-02-24  Bruno Haible  <bruno@clisp.org>
38651
38652         * doc/posix-functions/environ.texi: Document the MacOS X problem.
38653
38654 2008-02-20  Bob Proulx  <bob@proulx.com>
38655
38656         Enable use of older two part flavor 'git describe'.
38657         * build-aux/git-version-gen: If using the older two part flavor of
38658         git version then recreate the third part now present in the
38659         newer three part flavor of git describe.
38660
38661 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
38662
38663         * lib/fts.c (fts_build): Typo correction to comment.
38664
38665 2008-02-17  Bruno Haible  <bruno@clisp.org>
38666
38667         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
38668         generating no-op conflicts.
38669
38670 2008-02-17  Bruno Haible  <bruno@clisp.org>
38671
38672         Speed up by 10%.
38673         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
38674         result_entries, rather than an index-based loop.
38675
38676 2008-02-17  Bruno Haible  <bruno@clisp.org>
38677
38678         Speed up by 25%.
38679         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
38680         'hashcode_cached'.
38681         (entry_create): New function.
38682         (entry_hashcode): Use the cached hashcode if possible.
38683         (read_changelog_file, try_split_merged_entry): Use entry_create.
38684
38685 2008-02-17  Bruno Haible  <bruno@clisp.org>
38686
38687         Speed up from O(n^2) to O(n) for long ChangeLog files.
38688         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
38689         (read_changelog_file): Change implementation of entries_reversed list
38690         to rbtreehash.
38691         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
38692
38693 2008-02-17  Bruno Haible  <bruno@clisp.org>
38694
38695         New option --split-merged-entry.
38696         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
38697         (find_paragraph_end, try_split_merged_entry): New functions.
38698         (long_options): Add option --split-merged-entry.
38699         (usage): Document option --split-merged-entry.
38700         (main): Implement option --split-merged-entry.
38701         Reported by Eric Blake.
38702
38703 2008-02-17  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/git-merge-changelog.c: Include c-strstr.h.
38706         (main): Support the "git pull --rebase" situation.
38707         * modules/git-merge-changelog (Depends-on): Add c-strstr.
38708         Reported by Eric Blake.
38709
38710 2008-02-16  Eric Blake  <ebb9@byu.net>
38711
38712         Avoid doubling \ in common case of "c-maybe" quoting style.
38713         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
38714         eliding outer quotes.
38715         * lib/quotearg.h: Document this.
38716         * tests/test-quotearg.c (result_strings, inputs, results_g)
38717         (flag_results, locale_results): Test it by adding a new string to
38718         each test group.
38719         (compare_strings): Test new string.
38720
38721 2008-02-13  Eric Blake  <ebb9@byu.net>
38722
38723         Avoid trigraph quoting in default output.
38724         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
38725         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
38726         unless explicitly requested.
38727         * tests/test-quotearg.c (flag_results, main): Add additional tests.
38728
38729 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
38730
38731         Don't rely on signed integer overflowing to negative value.
38732         * lib/getugroups.c (getugroups): Include <limits.h>.
38733         Instead, compare against INT_MAX, and increment only if the test passes.
38734
38735 2008-02-13  Jim Meyering  <meyering@redhat.com>
38736         and Eric Blake  <ebb9@byu.net>
38737
38738         Avoid shadowing warning and compile errors on Linux.
38739         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
38740         forwarding macros on Linux.
38741         (dcgettext): Define a stub, for Linux.
38742         (results_g, main): Avoid warnings.
38743
38744 2008-02-12  Eric Blake  <ebb9@byu.net>
38745
38746         Silence warning in last patch.
38747         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
38748
38749         Quotearg part 4: add tests, fix c-maybe colon quoting.
38750         * lib/quotearg.h: Improve documentation.
38751         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
38752         escapes when adding outer quotes.  When quoting trigraphs, use
38753         valid C notation.  When quoting NUL, omit extra characters if next
38754         character is not digit.  Alter prototype.
38755         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
38756         callers.
38757         * modules/quotearg-tests: New module.
38758         * tests/test-quotearg.c: New test.
38759
38760 2008-02-07  Eric Blake  <ebb9@byu.net>
38761
38762         Quotearg part 3: add flag to control outer quote elision.
38763         * lib/quotearg.h (c_maybe_quoting_style): New style.
38764         (enum quoting_flags): Better documentation of flags.
38765         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
38766         c-maybe style.
38767         (quotearg_buffer_restyled): Handle new flag to elide outer
38768         quotes.
38769
38770         Quotearg part 2: add flag that can control NUL elision.
38771         * lib/quotearg.h (set_quoting_flags): New prototype.
38772         * lib/quotearg.c (struct quoting_options): Add flag field.
38773         (set_quoting_flags): New function.
38774         (quotearg_buffer_restyled): Add flags parameter.
38775         (quotearg_alloc_mem): Set the flag if length cannot be returned.
38776         (quotearg_n_options): Set the flag, since length cannot be
38777         returned.
38778         (quoting_options_from_style): Default flags correctly.
38779
38780         Quotearg part 1: more wrappers, restore quotearg_char state.
38781         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
38782         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
38783         (quotearg_colon_mem): New wrappers.
38784         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
38785         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
38786         functions.
38787         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
38788         (quotearg_colon_mem): New functions.
38789
38790 2008-02-11  Bruno Haible  <bruno@clisp.org>
38791
38792         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
38793         library in the current directory: it does not work with parallel make.
38794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38795
38796 2008-02-11  Bruno Haible  <bruno@clisp.org>
38797
38798         * .gitattributes: New file.
38799
38800 2008-02-11  Jim Meyering  <meyering@redhat.com>
38801
38802         useless-if-before-free: Fix reversed exit values.
38803         * build-aux/useless-if-before-free: Use correct values
38804         for EXIT_MATCH and EXIT_NO_MATCH.
38805
38806         * build-aux/useless-if-before-free: Close stdout carefully.
38807
38808 2008-02-10  Bruno Haible  <bruno@clisp.org>
38809
38810         New module 'git-merge-changelog'.
38811         * modules/git-merge-changelog: New file.
38812         * lib/git-merge-changelog.c: New file.
38813
38814 2008-02-10  Jim Meyering  <meyering@redhat.com>
38815
38816         useless-if-before-free: New option: --list (-l).
38817
38818         useless-if-before-free: Don't exit immediately upon open failure.
38819         * build-aux/useless-if-before-free: Exit 2 for errors.
38820         Upon failure to open a file, don't exit immediately.
38821         Rather, just warn and continue with any remaining files.
38822
38823 2008-02-10  Bruno Haible  <bruno@clisp.org>
38824
38825         New abstract list operation 'node_set_value'.
38826         * lib/gl_list.h (gl_list_node_set_value): New function.
38827         (struct gl_list_implementation): New field node_set_value.
38828         * lib/gl_list.c (gl_list_node_set_value): New function.
38829         * lib/gl_array_list.c (gl_array_node_set_value): New function.
38830         (gl_array_list_implementation): Update.
38831         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
38832         (gl_carray_list_implementation): Update.
38833         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
38834         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38835         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38836         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
38837         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38838         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38839         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38840         Update.
38841         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38842         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
38843         (gl_sublist_list_implementation): Update.
38844
38845 2008-02-10  Bruno Haible  <bruno@clisp.org>
38846
38847         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
38848         Needed when ELEMENT is #defined to 'some_type *'.
38849
38850 2008-02-10  Jim Meyering  <meyering@redhat.com>
38851
38852         New script and module: useless-if-before-free
38853         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
38854         * build-aux/useless-if-before-free: New file.
38855         * modules/useless-if-before-free: New file.
38856
38857         * build-aux/gitlog-to-changelog: Use committer date, not author date.
38858
38859         xstrtol_error: Fix typo.
38860         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
38861         s/exit_failure/exit_status/.
38862
38863 2008-02-09  Jim Meyering  <meyering@redhat.com>
38864
38865         New script and module: gitlog-to-changelog
38866         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
38867         * modules/gitlog-to-changelog: New file.
38868         * build-aux/gitlog-to-changelog: New file.
38869
38870 2008-02-08  Jim Meyering  <meyering@redhat.com>
38871
38872         Avoid two "parameter unused" warnings.
38873         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
38874         Mark "st" as used.
38875
38876         Use "git COMMAND", not "git-COMMAND".
38877         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
38878         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
38879         * build-aux/git-version-gen: Use "git status", not "git-status".
38880
38881 2008-02-07  Bruno Haible  <bruno@clisp.org>
38882
38883         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
38884         Avoids a crash on Windows Vista.
38885         Reported by Adam Strzelecki <ono@java.pl> via
38886         Simon Josefsson <simon@josefsson.org>.
38887
38888 2008-02-06  Bruno Haible  <bruno@clisp.org>
38889
38890         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
38891         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
38892         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
38893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
38894         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38896         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
38897         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
38898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38900         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38901         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38902         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38904         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38905         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
38906         left-adjust flag.
38907         * tests/test-snprintf-posix.h (test_function): Likewise.
38908         * tests/test-sprintf-posix.h (test_function): Likewise.
38909         * tests/test-vasprintf-posix.c (test_function): Likewise.
38910         * doc/posix-functions/fprintf.texi: Update.
38911         * doc/posix-functions/printf.texi: Update.
38912         * doc/posix-functions/snprintf.texi: Update.
38913         * doc/posix-functions/sprintf.texi: Update.
38914         * doc/posix-functions/vfprintf.texi: Update.
38915         * doc/posix-functions/vprintf.texi: Update.
38916         * doc/posix-functions/vsnprintf.texi: Update.
38917         * doc/posix-functions/vsprintf.texi: Update.
38918         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38919
38920 2008-02-06  Bruno Haible  <bruno@clisp.org>
38921
38922         Fix bug introduced on 2008-01-26.
38923         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
38924
38925 2008-02-06  Bruno Haible  <bruno@clisp.org>
38926
38927         Fix bug introduced on 2007-06-10.
38928         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
38929         !NEED_PRINTF_FLAG_ZERO.
38930
38931 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
38932
38933         getloadavg: use libperfstat on AIX5
38934         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
38935
38936 2008-02-03  Bruno Haible  <bruno@clisp.org>
38937
38938         * lib/diffseq.h: Add comments about required #includes.
38939         Reported by Michael Biggs <gnulib@doubleplum.net>.
38940
38941 2008-02-01  Bruno Haible  <bruno@clisp.org>
38942
38943         * users.txt: Add gnuit.
38944
38945 2008-01-31  Bruno Haible  <bruno@clisp.org>
38946
38947         * lib/md4.c (set_uint32): Mark as inline.
38948         * lib/md5.c (set_uint32): Likewise.
38949         * lib/sha1.c (set_uint32): Likewise.
38950         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
38951         * m4/md5.m4 (gl_MD5): Likewise.
38952         * m4/sha1.m4 (gl_SHA1): Likewise.
38953
38954 2008-01-31  Jim Meyering  <meyering@redhat.com>
38955
38956         Use "sizeof VAR", rather than a literal "4".
38957         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
38958         * lib/md4.c (md4_read_ctx): Likewise.
38959         * lib/sha1.c (sha1_read_ctx): Likewise.
38960
38961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38962
38963         * tests/test-sha1.c: New file, based on test-md5.c.
38964
38965         * modules/crypto/sha1-tests: New file.
38966
38967 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38968
38969         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
38970
38971 2008-01-31  Jim Meyering  <meyering@redhat.com>
38972
38973         Prefer "sizeof v" over the equivalent "4".
38974         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
38975         * lib/md5.c (set_uint32): Likewise.
38976         * lib/sha1.c (set_uint32): Likewise.
38977
38978 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38979
38980         * lib/sha1.c (set_uint32): Mark function as static.
38981
38982 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38983
38984         md2: clarify comments to say that alignment is not required.
38985         * lib/md2.h: Remove warning about alignment in comment.
38986         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
38987         never been required.
38988
38989 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38990
38991         md4: adapt alignment constraint fix from sha1.
38992         * lib/md4.c (set_uint32): New function, from sha1.c
38993         (md4_read_ctx): Use it.
38994         (md4_finish_ctx): Doc fix.
38995         * lib/md4.h: Doc fix.
38996
38997 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38998
38999         md5: adapt alignment constraint fix from sha1.
39000         * lib/md5.c (set_uint32): New function, from sha1.c
39001         (md5_read_ctx): Use it.
39002         (md5_finish_ctx): Doc fix.
39003         * lib/md5.h: Doc fix.
39004
39005 2008-01-30  Peter Palfrader  <weasel@debian.org>
39006
39007         sha1: remove the result buffer alignment constraint
39008         * lib/sha1.c (set_uint32): New function.
39009         (sha1_read_ctx): Rewrite to remove the result buffer alignment
39010         constraint.
39011         (sha1_finish_ctx): Remove comment warning about alignment constraint.
39012         * lib/sha1.h: Likewise.
39013
39014 2008-01-30  Andreas Schwab  <schwab@suse.de>
39015             Bruno Haible  <bruno@clisp.org>
39016
39017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
39018         correct definition of LDBL_MIN_EXP.
39019
39020 2008-01-30  Karl Berry  <karl@gnu.org>
39021
39022         * config/srclist-update: try to preserve x bit on updates.
39023         * config/srclistvars.sh: update for karl.
39024
39025 2008-01-29  Jim Meyering  <meyering@redhat.com>
39026
39027         vasnprintf.c: Avoid warning about unused label
39028         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
39029         "overflow" label definition and associated code with the
39030         same cpp condition that guards the sole use of that label.
39031
39032 2008-01-26  Bruno Haible  <bruno@clisp.org>
39033
39034         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
39035         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
39036         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
39037         * lib/isnanl-nolibm.h (isnanl): Likewise.
39038         Reported by Paul Eggert <eggert@cs.ucla.edu>.
39039
39040 2008-01-26  Bruno Haible  <bruno@clisp.org>
39041
39042         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
39043         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
39044
39045 2008-01-26  Bruno Haible  <bruno@clisp.org>
39046
39047         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
39048         GCC >= 4.0 built-in.
39049         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
39050
39051 2008-01-26  Bruno Haible  <bruno@clisp.org>
39052
39053         Rename isnan, applicable to 'double' only, to isnand.
39054         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
39055         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
39056         (configure.ac): Update.
39057         (Include): Replace "isnan.h" with "isnand.h".
39058         * m4/isnand.m4: Renamed from m4/isnan.m4.
39059         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
39060         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
39061         instead of isnan.c.
39062         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
39063         instead of HAVE_ISNAN_IN_LIBC.
39064         (isnand): Renamed from isnan.
39065         * lib/isnand.c: New file.
39066         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
39067         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
39068         (Makefile.am): Update.
39069         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
39070         Include isnand.h instead of isnan.h.
39071         (main): Test isnand instead of isnan.
39072         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
39073         isnan-nolibm.
39074         * modules/frexp (Depends-on): Likewise.
39075         * modules/frexp-tests (Depends-on): Likewise.
39076         * modules/frexp-nolibm (Depends-on): Likewise.
39077         * modules/frexp-nolibm-tests (Depends-on): Likewise.
39078         * modules/isfinite (Depends-on): Likewise.
39079         * modules/round-tests (Depends-on): Likewise.
39080         * modules/signbit (Depends-on): Likewise.
39081         * modules/signbit-tests (Depends-on): Likewise.
39082         * modules/snprintf-posix (Depends-on): Likewise.
39083         * modules/sprintf-posix (Depends-on): Likewise.
39084         * modules/trunc-tests (Depends-on): Likewise.
39085         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39086         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39087         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39088         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39089         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39090         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39091         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39092         * modules/vasnprintf-posix (Depends-on): Likewise.
39093         * modules/vasprintf-posix (Depends-on): Likewise.
39094         * modules/vfprintf-posix (Depends-on): Likewise.
39095         * modules/vsnprintf-posix (Depends-on): Likewise.
39096         * modules/vsprintf-posix (Depends-on): Likewise.
39097         * lib/frexp.c: Include isnand.h instead of isnan.h.
39098         (ISNAN): Set to isnand instead of isnan.
39099         * lib/isfinite.c: Include isnand.h instead of isnan.h.
39100         (gl_isfinited): Use isnand instead of isnan.
39101         * lib/signbitd.c: Include isnand.h instead of isnan.h.
39102         (gl_signbitd): Use isnand instead of isnan.
39103         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
39104         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
39105         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
39106         (main): Use isnand instead of isnan.
39107         * tests/test-round1.c: Include isnand.h.
39108         (main): Use isnand instead of isnan.
39109         * tests/test-round2.c: Include isnand.h instead of isnan.h.
39110         (ISNAN): Set to isnand instead of isnan.
39111         * tests/test-trunc1.c: Include isnand.h.
39112         (main): Use isnand instead of isnan.
39113         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
39114         (equal): Use isnand instead of isnan.
39115         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
39116         isnand-nolibm.
39117         * NEWS: Mention the change.
39118
39119 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39120             Bruno Haible  <bruno@clisp.org>
39121
39122         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
39123         the GCC builtins for signbits are present and set
39124         REPLACE_SIGNBIT_USING_GCC if so.
39125         * lib/math.in.h (signbit): Define using GCC builtins if
39126         REPLACE_SIGNBIT_USING_GCC is set.
39127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
39128         REPLACE_SIGNBIT_USING_GCC.
39129         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
39130
39131 2008-01-25  Jim Meyering  <meyering@redhat.com>
39132
39133         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
39134         * lib/poll.c: Include <config.h>, not "config.h".
39135         * tests/test-getaddrinfo.c: Likewise.
39136
39137 2008-01-25  Simon Josefsson  <simon@josefsson.org>
39138
39139         * modules/sockets-tests: New file.
39140
39141 2008-01-24  Simon Josefsson  <simon@josefsson.org>
39142
39143         * modules/sockets: New module, can be used to call WSA_Startup and
39144         WSA_Cleanup when needed.
39145
39146         * lib/sockets.h, lib/sockets.c: New files.
39147
39148         * m4/sockets.m4: New file.
39149
39150         * tests/test-sockets.c: New file.
39151
39152 2008-01-19  Bruno Haible  <bruno@clisp.org>
39153
39154         * doc/posix-headers: Renamed from doc/headers.
39155         * doc/posix-functions: Renamed from doc/functions.
39156         * doc/gnulib.texi: Update.
39157
39158 2008-01-19  Bruno Haible  <bruno@clisp.org>
39159
39160         * doc/glibc-functions/strcasestr.texi: Include contents of
39161         doc/functions/strcasestr.texi, fixing the list of platforms.
39162         * doc/functions/strcasestr.texi: Remove file.
39163
39164 2008-01-19  Bruno Haible  <bruno@clisp.org>
39165
39166         * doc/glibc-functions/memmem.texi: Include contents of
39167         doc/functions/memmem.texi.
39168         * doc/functions/memmem.texi: Remove file.
39169
39170 2008-01-18  Bruno Haible  <bruno@clisp.org>
39171
39172         * doc/glibc-functions/*.texi: New files.
39173         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
39174         to use the new files.
39175
39176 2008-01-17  Bruno Haible  <bruno@clisp.org>
39177
39178         * tests/test-gethostname.c (main): Fix printf statement.
39179
39180 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39181
39182         * modules/gethostname-tests: New file.
39183
39184         * tests/test-gethostname.c: New file.
39185
39186 2008-01-17  Simon Josefsson  <simon@josefsson.org>
39187
39188         * lib/gethostname.c: Include string.h unconditionally, strncpy is
39189         used by the UNAME case.  Reported by Bruno Haible
39190         <bruno@clisp.org>.
39191
39192 2008-01-17  Eric Blake  <ebb9@byu.net>
39193
39194         Convert c-strcasestr to be more efficient.
39195         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
39196         (Depends-on): Add c-strcase, remove malloca, strnlen.
39197         * tests/test-c-strcasestr.c (main): Enhance test.
39198         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
39199
39200 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39201
39202         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
39203         Use it in creating po/Makevars.
39204
39205 2008-01-15  Simon Josefsson  <simon@josefsson.org>
39206
39207         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
39208         Applications that requires it should initialize libgcrypt
39209         manually.
39210
39211 2008-01-16  Simon Josefsson  <simon@josefsson.org>
39212
39213         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
39214
39215 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
39216
39217         Fix problem with getdate on mingw32 reported by Simon Josefsson
39218         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
39219         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
39220         tzname", when deciding whether to declare tzname.
39221         * lib/strftime.c (tzname): Likewise.
39222
39223 2008-01-15  Bruno Haible  <bruno@clisp.org>
39224
39225         Work around a MacOS X 10.5 bug in frexpl().
39226         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
39227         * doc/functions/frexpl.texi: Document the bug.
39228         Reported by Elias Pipping <pipping@gentoo.org>.
39229
39230 2008-01-14  Eric Blake  <ebb9@byu.net>
39231
39232         Touch up previous patch.
39233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
39234         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
39235
39236         Convert strcasestr module to use Two-Way algorithm.
39237         * modules/strcasestr-simple: New module, based on the old
39238         strcasestr, but with Two-Way rather than KMP.
39239         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
39240         * lib/string.in.h (rpl_strcasestr): Declare.
39241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
39242         performance.
39243         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
39244         * modules/string (Makefile.am): Support strcasestr.
39245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39246         * modules/strcasestr-tests (Depends-on): Check for alarm.
39247         * tests/test-strcasestr.c: Augment test.
39248         * lib/str-two-way.h: Clean up stray macro.
39249         * NEWS: Document new module.
39250         * MODULES.html.sh (string handling): Likewise.
39251         * doc/functions/strcasestr.texi: New file.
39252         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
39253         here, since it is not a POSIX function.
39254
39255 2008-01-14  Colin Watson  <cjwatson@debian.org>
39256             Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
39259         works fine; if not, set REPLACE_STRSIGNAL.
39260         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
39261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39262         REPLACE_STRSIGNAL.
39263         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
39264         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
39265         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
39266
39267 2008-01-14  Bruno Haible  <bruno@clisp.org>
39268
39269         * modules/strsignal (Include): Change to <string.h>.
39270
39271 2008-01-14  Colin Watson  <cjwatson@debian.org>
39272
39273         * modules/argp (Notice): Add a notice recommending to change
39274         XGETTEXT_OPTIONS.
39275         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
39276
39277 2008-01-13  Colin Watson  <cjwatson@debian.org>
39278
39279         * modules/strsignal-tests: New file.
39280         * tests/test-strsignal.c: New file.
39281
39282         * lib/strsignal.c: New file, from glibc with modifications.
39283         * lib/siglist.h: New file, from glibc with modifications.
39284         * lib/string.in.h (strsignal): New declaration.
39285         * m4/strsignal.m4: New file.
39286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39287         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
39288         * modules/strsignal: New file.
39289         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
39290         HAVE_DECL_STRSIGNAL.
39291
39292 2008-01-13  Bruno Haible  <bruno@clisp.org>
39293
39294         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
39295         locale encoding is not ASCII. Needed for OpenBSD 4.0.
39296         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39297         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39298
39299 2008-01-13  Bruno Haible  <bruno@clisp.org>
39300
39301         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
39302         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
39303         * lib/argp.h (__attribute__): Likewise.
39304         * lib/c-stack.c (__attribute__): Likewise.
39305         * lib/error.h (__attribute__): Likewise.
39306         * lib/fts.c (__attribute__): Likewise.
39307         * lib/openat.h (__attribute__): Likewise.
39308         * lib/stdio.in.h (__attribute__): Likewise.
39309         * lib/string.in.h (__attribute__): Likewise.
39310         * lib/utimens.c (__attribute__): Likewise.
39311         * lib/vasnprintf.h (__attribute__): Likewise.
39312         * lib/xalloc.h (__attribute__): Likewise.
39313         * lib/xprintf.h (__attribute__): Likewise.
39314         * lib/xstrtol.h (__attribute__): Likewise.
39315         * lib/xvasprintf.h (__attribute__): Likewise.
39316
39317 2008-01-12  Bruno Haible  <bruno@clisp.org>
39318
39319         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
39320         * doc/glibc-headers/a.out.texi: New file.
39321         * doc/glibc-headers/aliases.texi: New file.
39322         * doc/glibc-headers/alloca.texi: New file.
39323         * doc/glibc-headers/ar.texi: New file.
39324         * doc/glibc-headers/argp.texi: New file.
39325         * doc/glibc-headers/argz.texi: New file.
39326         * doc/glibc-headers/byteswap.texi: New file.
39327         * doc/glibc-headers/crypt.texi: New file.
39328         * doc/glibc-headers/endian.texi: New file.
39329         * doc/glibc-headers/envz.texi: New file.
39330         * doc/glibc-headers/err.texi: New file.
39331         * doc/glibc-headers/error.texi: New file.
39332         * doc/glibc-headers/execinfo.texi: New file.
39333         * doc/glibc-headers/fpu_control.texi: New file.
39334         * doc/glibc-headers/fstab.texi: New file.
39335         * doc/glibc-headers/fts.texi: New file.
39336         * doc/glibc-headers/getopt.texi: New file.
39337         * doc/glibc-headers/ieee754.texi: New file.
39338         * doc/glibc-headers/ifaddrs.texi: New file.
39339         * doc/glibc-headers/libintl.texi: New file.
39340         * doc/glibc-headers/mcheck.texi: New file.
39341         * doc/glibc-headers/mntent.texi: New file.
39342         * doc/glibc-headers/obstack.texi: New file.
39343         * doc/glibc-headers/paths.texi: New file.
39344         * doc/glibc-headers/printf.texi: New file.
39345         * doc/glibc-headers/pty.texi: New file.
39346         * doc/glibc-headers/resolv.texi: New file.
39347         * doc/glibc-headers/shadow.texi: New file.
39348         * doc/glibc-headers/sysexits.texi: New file.
39349         * doc/glibc-headers/ttyent.texi: New file.
39350
39351 2008-01-12  Jim Meyering  <meyering@redhat.com>
39352
39353         announce-gen: emit Gnulib's git-based version string.
39354         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
39355         New option --gnulib-version=V, where V is expected to be
39356         the output of running git describe in the gnulib directory.
39357         (get_tool_versions): Request feedback on xdelta.  I suspect it's
39358         not useful, and plan to stop publishing an xdelta file with each
39359         coreutils release.
39360
39361         * build-aux/announce-gen: Also check for lzma-compressed files.
39362
39363 2008-01-11  Bruno Haible  <bruno@clisp.org>
39364
39365         * tests/test-memmem.c (main): Increase maximum allowed time.
39366         * tests/test-strstr.c (main): Likewise.
39367
39368 2008-01-11  Bruno Haible  <bruno@clisp.org>
39369
39370         * doc/functions/memmem.texi: Add more precisions about platforms.
39371         * doc/functions/strstr.texi: Likewise.
39372
39373 2008-01-10  Eric Blake  <ebb9@byu.net>
39374
39375         * m4/strstr.m4: Delete cruft from copy-n-paste.
39376         Reported by Bruno Haible.
39377
39378 2008-01-10  Bruno Haible  <bruno@clisp.org>
39379
39380         Make c-strstr rely on strstr.
39381         * lib/c-strstr.c: Don't include str-kmp.h.
39382         (c_strstr): Define in terms of strstr.
39383         * modules/c-strstr (Files): Remove lib/str-kmp.h.
39384         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
39385
39386 2008-01-10  Bruno Haible  <bruno@clisp.org>
39387
39388         * doc/gnulib.texi (String Functions in C Locale): New section.
39389         * doc/c-ctype.texi: New file.
39390         * doc/c-strcase.texi: New file.
39391         * doc/c-strcaseeq.texi: New file.
39392         * doc/c-strcasestr.texi: New file.
39393         * doc/c-strstr.texi: New file.
39394         * doc/c-strtod.texi: New file.
39395         * doc/c-strtold.texi: New file.
39396
39397 2008-01-10  Eric Blake  <ebb9@byu.net>
39398
39399         * lib/relocatable.h: Fix a comment.
39400
39401 2008-01-10  Eric Blake  <ebb9@byu.net>
39402
39403         Share two-way algorithm.
39404         * lib/str-two-way.h: New file, merged from...
39405         * lib/memmem.c: ...here...
39406         * lib/strstr.c: ...and here.
39407         * modules/memmem (Files): Use it.
39408         * modules/strstr (Files): Likewise.
39409
39410         Avoid quadratic strstr implementations.
39411         * lib/strstr.c: New file.
39412         * m4/strstr.m4: Likewise.
39413         * modules/strstr: Likewise.
39414         * modules/strstr-tests: Likewise.
39415         * tests/test-strstr.c: Likewise.
39416         * lib/string.in.h (rpl_strstr): Declare.
39417         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
39418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
39419         * modules/string (Makefile.am): Likewise.
39420         * MODULES.html.sh (string handling): Mention new module.
39421         * doc/functions/strstr.texi (strstr): Document the bug.
39422
39423 2008-01-10  Bruno Haible  <bruno@clisp.org>
39424
39425         * lib/relocatable.h (relocate): State whether result is freshly
39426         allocated or not.
39427         * lib/relocatable.c (relocate): Return a freshly allocated string
39428         instead of a pointer to a privately held string.
39429         Reported by Sylvain Beucler <beuc@gnu.org>.
39430
39431 2008-01-10  Colin Watson  <cjwatson@debian.org>
39432
39433         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
39434         s/S_ISNLK/S_ISLNK/.
39435
39436 2008-01-09  Bruno Haible  <bruno@clisp.org>
39437
39438         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
39439         and other files.
39440         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
39441         if it's only a guess.
39442         * modules/memmem: Simplify by depending on memmem-simple.
39443
39444 2008-01-09  Bruno Haible  <bruno@clisp.org>
39445
39446         Work around OpenBSD 4.0 tdelete() bug.
39447         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
39448         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
39449         macros and don't redefine the enum values.
39450         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
39451         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
39452         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
39453
39454 2008-01-09  Bruno Haible  <bruno@clisp.org>
39455
39456         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
39457         (main): Don't perform the tests if setlocale did not install a UTF-8
39458         locale. Needed on OpenBSD 4.0.
39459         * modules/wcwidth-tests (Depends-on): Add localcharset.
39460
39461 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39462
39463         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
39464         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
39465         * NEWS: announce this.
39466         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
39467
39468 2008-01-09  Simon Josefsson  <simon@josefsson.org>
39469         and Eric Blake  <ebb9@byu.net>
39470
39471         Add memmem-simple module.
39472         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
39473         (gl_FUNC_MEMMEM): Separate performance from presence checks.
39474         * modules/memmem-simple: New file.
39475         * modules/memmem (Description): Tweak.
39476         * MODULES.html.sh (string handling): Mention new module.
39477         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
39478         addressed by memmem-simple.
39479         * NEWS: Document the difference.
39480
39481 2008-01-09  Eric Blake  <ebb9@byu.net>
39482
39483         Give gcc some memmem optimization hints.
39484         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
39485         (strcasestr): Declare as pure.
39486         * modules/memmem (Maintainer): Claim my implementation.
39487
39488 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39489
39490         Support AIX 6.1 and higher.
39491         * build-aux/config.libpath: Likewise.
39492         * build-aux/config.rpath: Likewise.
39493
39494 2008-01-08  Jim Meyering  <meyering@redhat.com>
39495             Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
39498         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
39499         Reported by Peter Fales in
39500         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
39501
39502 2008-01-08  Bruno Haible  <bruno@clisp.org>
39503
39504         * modules/unictype/category-of (Depends-on): Add
39505         unictype/category-none.
39506         * modules/unictype/category-and-tests (Depends-on): Add
39507         unictype/category-{L,N,Lu,Nd}.
39508         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
39509         * modules/unictype/category-or-tests (Depends-on): Add
39510         unictype/category-{L,N}.
39511         * modules/unictype/category-name-tests (Depends-on): Add
39512         unictype/category-{Z,Nl}.
39513         Reported by Simon Josefsson.
39514
39515 2008-01-08  Bruno Haible  <bruno@clisp.org>
39516
39517         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
39518         convention better.
39519         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
39520         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
39521         Reported by Peter Miller <millerp@canb.auug.org.au>.
39522
39523 2008-01-08  Eric Blake  <ebb9@byu.net>
39524
39525         Rewrite memmem to guarantee linear complexity without malloc.
39526         * lib/memmem.c (memmem): Use Two-Way rather than
39527         Knuth-Morris-Pratt, to allow O(1) space usage.
39528         (critical_factorization, two_way_short_needle)
39529         (two_way_long_needle): New functions.
39530         (knuth_morris_pratt): Delete.
39531         * modules/memmem (Depends-on): No longer need malloca or stdbool.
39532         Add stdint.
39533         * tests/test-memmem.c (main): Add tests for periodic needle and
39534         sublinear performance.
39535         * doc/functions/memmem.texi (memmem): Document other deficiencies
39536         in cygwin and older glibc.
39537
39538 2008-01-08  Bruno Haible  <bruno@clisp.org>
39539
39540         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
39541         augmentation.
39542
39543 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
39544
39545         Add a configure time option: --disable-acl.
39546         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
39547         AC_ARG_ENABLE(acl).
39548
39549 2008-01-06  Simon Josefsson  <simon@josefsson.org>
39550
39551         * tests/test-localename.c: Don't include obsolete "setenv.h".
39552
39553         * modules/localename-tests (Depends-on): Need unsetenv.
39554
39555 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39556
39557         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
39558
39559 2008-01-06  Colin Watson  <cjwatson@debian.org>
39560
39561         * users.txt: Add man-db.
39562
39563 2008-01-07  Bruno Haible  <bruno@clisp.org>
39564
39565         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
39566         previous section name.
39567
39568 2008-01-07  Bruno Haible  <bruno@clisp.org>
39569
39570         * lib/progname.c (set_program_name): Don't strip off a leading
39571         "lt-" prefix outside a .libs directory.
39572         Suggested by Paul Eggert.
39573
39574 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
39575             Bruno Haible  <bruno@clisp.org>
39576
39577         Improve memory cleanup in 'relocatable' module.
39578         * lib/relocatable.h (compute_curr_prefix): Change return type to
39579         'char *'.
39580         * lib/relocatable.c (compute_curr_prefix): Change return type to
39581         'char *'. Free curr_installdir after use.
39582         (relocate): Free curr_prefix_better after use.
39583         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
39584
39585 2008-01-01  Bruno Haible  <bruno@clisp.org>
39586
39587         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
39588         failure on older glibc systems.
39589         Reported by Peter Fales <psfales@alcatel-lucent.com>.
39590
39591 2008-01-05  Eric Blake  <ebb9@byu.net>
39592
39593         Avoid quadratic system memmem.
39594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
39595         Reported by Ralf Wildenhues.
39596
39597         Fix memmem test for mingw.
39598         * modules/memmem-tests (configure.ac): Check for alarm.
39599         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
39600         it.
39601         * doc/functions/memmem.texi: New file.
39602         * doc/gnulib.texi (Function Substitutes): Add memmem.
39603         Reported by Bruno Haible.
39604
39605 2008-01-04  Bruno Haible  <bruno@clisp.org>
39606
39607         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
39608         Require gl_HEADER_STRINGS_H_DEFAULTS, not
39609         gl_HEADER_STRING_H_DEFAULTS.
39610
39611 2008-01-04  Eric Blake  <ebb9@byu.net>
39612
39613         Shorten duration of memmem test.
39614         * tests/test-memmem.c (main): Use alarm to declare failure if test
39615         is taking too long.
39616         Reported by Ralf Wildenhues.
39617
39618 2007-12-21  Simon Josefsson  <simon@josefsson.org>
39619
39620         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
39621         string, needed by strerror.
39622
39623 2008-01-03  Colin Watson  <cjwatson@debian.org>
39624             Bruno Haible  <bruno@clisp.org>
39625
39626         * doc/gnulib-tool.texi (Localization): New section.
39627
39628 2008-01-02  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
39631         variables to 'unsigned char *' type.
39632         Reported by Paul Eggert.
39633
39634 2008-01-02  Jim Meyering  <jim@meyering.net>
39635
39636         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
39637
39638 2007-12-31  Jim Meyering  <jim@meyering.net>
39639
39640         Avoid use of private FTS type name.
39641         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
39642
39643 2007-12-30  Karl Berry  <karl@gnu.org>
39644
39645         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
39646         work around defect in Texinfo and/or the standalone Info browser.
39647
39648 2007-12-30  Bruno Haible  <bruno@clisp.org>
39649
39650         Unify 5 copies of the KMP code.
39651         * lib/str-kmp.h: New file.
39652         * lib/c-strcasestr.c: Include str-kmp.h.
39653         (knuth_morris_pratt): Remove function.
39654         (c_strcasestr): Update.
39655         * lib/c-strstr.c: Include str-kmp.h.
39656         (knuth_morris_pratt): Remove function.
39657         (c_strcasestr): Update.
39658         * lib/mbscasestr.c: Include str-kmp.h.
39659         (knuth_morris_pratt_unibyte): Remove function.
39660         * lib/mbsstr.c: Include str-kmp.h.
39661         (knuth_morris_pratt_unibyte): Remove function.
39662         * lib/strcasestr.c: Include str-kmp.h.
39663         (knuth_morris_pratt): Remove function.
39664         (strcasestr): Update.
39665         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
39666         * modules/c-strstr (Files): Likewise.
39667         * modules/mbscasestr (Files): Likewise.
39668         * modules/mbsstr (Files): Likewise.
39669         * modules/strcasestr (Files): Likewise.
39670         Suggested by Paul Eggert.
39671
39672 2007-12-30  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
39675         defined.
39676
39677 2007-12-30  Bruno Haible  <bruno@clisp.org>
39678
39679         * lib/xmalloca.h: Include xalloc.h.
39680         (xnmalloca): New macro.
39681
39682 2007-12-30  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/malloca.h (nmalloca): New macro.
39685         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
39686         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
39687         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
39688         knuth_morris_pratt_multibyte): Likewise.
39689         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
39690         knuth_morris_pratt_multibyte): Likewise.
39691         * lib/memmem.c (knuth_morris_pratt): Likewise.
39692         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
39693
39694 2007-12-25  Bruno Haible  <bruno@clisp.org>
39695
39696         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
39697         * lib/glob.c: Don't include openat.h.
39698         (link_exists2_p): Add back the code that deals with the
39699         !GLOB_ALTDIRFUNC case.
39700         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
39701         let it do the filename concatenation.
39702         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
39703         * modules/glob (Depends-on): Remove openat.
39704
39705 2007-12-31  Bruno Haible  <bruno@clisp.org>
39706
39707         * modules/dirfd (License): Change to LGPLv2+.
39708         Approved by Jim Meyering.
39709
39710 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39711
39712         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
39713         when multiplying M by sizeof (size_t).
39714
39715 2007-12-10  Martin Lambers  <marlam@marlam.de>
39716
39717         Override getpagesize on mingw.
39718         * lib/getpagesize.c: New file.
39719         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
39720         * modules/getpagesize (Files): Add lib/getpagesize.c.
39721         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
39722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39723         REPLACE_GETPAGESIZE.
39724         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
39725
39726 2007-12-25  Bruno Haible  <bruno@clisp.org>
39727
39728         * modules/localcharset (Notice): New field.
39729         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
39730         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
39731
39732 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39733             Bruno Haible  <bruno@clisp.org>
39734
39735         Avoid using the syntax symbol() in formatted documentation.
39736         * MODULES.html.sh (func_module): When replacing symbol() with a
39737         hyperlink, remove the parentheses. Show an error if some remain.
39738         Recognize and render the '...' syntax.
39739         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
39740         Rework. Add paragraph about GCC's inlining.
39741         * doc/alloca.texi: Likewise.
39742         * doc/error.texi: Remove parentheses from symbol reference.
39743         * doc/gnulib-intro.texi: Likewise.
39744         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
39745         * modules/fnmatch (Description): Reword to say "the ... function".
39746         * modules/full-read (Description): Likewise.
39747         * modules/full-write (Description): Likewise.
39748         * modules/safe-read (Description): Likewise.
39749         * modules/safe-write (Description): Likewise.
39750         * modules/strchrnul (Description): Likewise.
39751         * modules/trim (Description): Likewise.
39752         * modules/error (Description): Remove parentheses from symbol
39753         references.
39754         * modules/verror (Description): Likewise.
39755         Reported by Karl Berry.
39756
39757 2007-12-25  Bruno Haible  <bruno@clisp.org>
39758
39759         Fixup after 2007-10-16 commit.
39760         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
39761
39762 2007-12-24  Bruno Haible  <bruno@clisp.org>
39763
39764         Make --enable-relocatable work with DESTDIR.
39765         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
39766         to compute installdir from destprog.
39767         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
39768         also set the RELOC_DESTDIR variable.
39769         Reported by Левашев Иван <octagram@bluebottle.com>.
39770
39771 2007-12-24  Bruno Haible  <bruno@clisp.org>
39772
39773         Fix link error due to xalloc_die().
39774         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
39775         of xreadlink.
39776         * lib/relocwrapper.c: Update comments.
39777         * build-aux/install-reloc: Remove xreadlink.c from file list.
39778         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
39779         xreadlink.c.
39780         Reported by Левашев Иван <octagram@bluebottle.com>.
39781
39782 2007-12-24  Bruno Haible  <bruno@clisp.org>
39783
39784         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
39785         * lib/setenv.h: Remove file.
39786         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
39787         lib/setenv.h.
39788         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
39789         (Depends-on): Add stdlib.
39790         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
39791         gl_FUNC_UNSETENV.
39792         (Include): Replace setenv.h with <stdlib.h>.
39793         * modules/unsetenv: New file.
39794         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
39795         * lib/unsetenv.c: Include <stdlib.h> first.
39796         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
39797         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
39798         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
39799         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
39800         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
39801         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
39803         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
39804         * doc/functions/unsetenv.texi: Update.
39805         * modules/xsetenv (Depends-on): Add unsetenv.
39806         * modules/getdate (Depends-on): Likewise.
39807         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
39808         * lib/xsetenv.c: Don't include setenv.h.
39809         * lib/getdate.y: Likewise.
39810         * lib/relocwrapper.c: Likewise.
39811         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
39812         (Depends-on): Add stdlib.
39813         * NEWS: Mention the changes.
39814         Reported by Левашев Иван <octagram@bluebottle.com>.
39815
39816 2007-12-23  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/memmem.c (memmem): Use lowercase variable names. Tab
39819         indentation.
39820
39821 2007-12-23  Bruno Haible  <bruno@clisp.org>
39822
39823         * lib/c-strcasestr.c: Add more comments.
39824         * lib/c-strstr.c: Likewise.
39825         * lib/mbscasestr.c: Likewise.
39826         * lib/mbsstr.c: Likewise.
39827         * lib/strcasestr.c: Likewise.
39828         * lib/memmem.c: Likewise.
39829
39830 2007-12-23  Bruno Haible  <bruno@clisp.org>
39831
39832         * tests/test-memmem.c: Include <string.h> first.
39833
39834 2007-12-22  Bruno Haible  <bruno@clisp.org>
39835
39836         * gnulib-tool (func_create_testdir): Change $auxdir while generating
39837         the contents of $testsbase.
39838         Reported by Ralf Wildenhues.
39839
39840 2007-12-22  Bruno Haible  <bruno@clisp.org>
39841
39842         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
39843         two variables local_ldadd_before, local_ldadd_last.
39844
39845 2007-12-20  Eric Blake  <ebb9@byu.net>
39846
39847         Work around circular library issue when cross-compiling.
39848         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
39849         that progname.o does not need to pull in rpl_memcmp.
39850
39851 2007-12-19  Eric Blake  <ebb9@byu.net>
39852
39853         Fix memmem to avoid O(n^2) worst-case complexity.
39854         * lib/memmem.c (knuth_morris_pratt): New function.
39855         (memmem): Use it if first few naive iterations fail.
39856         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
39857         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
39858         * modules/memchr (License): Likewise.
39859         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
39860         malloca.
39861         * tests/test-memmem.c: Rewrite, borrowing ideas from
39862         test-mbsstr1.c; the old version wouldn't even compile!
39863         * modules/memmem-tests: New file.
39864         * lib/string.in.h (rpl_memmem): Add declaration.
39865         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
39866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
39867         REPLACE_MEMMEM.
39868
39869 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39870
39871         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
39872         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
39873         before any system include files, and undef after them all.  This
39874         should fix a problem on VMS reported by John E. Malmberg in
39875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
39876
39877 2007-12-17  Eric Blake  <ebb9@byu.net>
39878
39879         Revert addition of verify, for BSD/OS.
39880         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
39881         can't handle large files, for the sake of obsolete platforms.
39882         * modules/fseeko (Depends-on): Remove verify.
39883         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
39884         * doc/functions/ftello.texi (ftello): Likewise.
39885         * doc/functions/fgetpos.texi (fgetpos): Likewise.
39886         Reported by Larry Jones.
39887
39888 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
39889
39890         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
39891         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
39892
39893 2007-12-17  Jim Meyering  <meyering@redhat.com>
39894
39895         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
39896         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
39897         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
39898         * modules/getcwd (Depends-on): Add openat.
39899         Reported by Petr Salinger.
39900
39901 2007-12-17  Bruno Haible  <bruno@clisp.org>
39902
39903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
39904         avoid a segmentation fault of the configure test on x86_64 systems.
39905
39906 2007-12-15  Jim Meyering  <meyering@redhat.com>
39907
39908         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
39909
39910 2007-12-13  Eric Blake  <ebb9@byu.net>
39911
39912         Another fseek test.
39913         * tests/test-fseek.c (main): Also test ungetc handling.
39914         * tests/test-fseeko.c (main): Likewise.
39915         * modules/fseeko (Depends-on): Add verify.
39916         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
39917         large.
39918         Reported by Larry Jones.
39919
39920         Fix fseeko on mingw.
39921         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
39922         seek.
39923
39924         Beef up fseek tests.
39925         * tests/test-fseek.c (main): Also test eof handling.
39926         * tests/test-fseeko.c (main): Likewise.
39927         Reported by Larry Jones.
39928
39929 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
39930
39931         Fix fseeko on BSD-based platforms.
39932         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
39933         successful seek.
39934
39935 2007-12-12  Eric Blake  <ebb9@byu.net>
39936
39937         Allow circular dependency of separate libtests.a
39938         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
39939         when use_libtests.
39940
39941 2007-12-11  Eric Blake  <ebb9@byu.net>
39942
39943         Fix bug with -0.0L in previous patch.
39944         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
39945         * tests/test-isnan.c (main): Also test on zeroes.
39946         * tests/test-isnanf.c (main): Likewise.
39947         * tests/test-isnanl.h (main): Likewise.
39948
39949         Detect pseudo-denormals on x86 even when cross-compiling.
39950         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
39951         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
39952         invalid bit patterns that happen to satisfy ==.
39953
39954         Avoid link failures with separate libtests.a.
39955         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
39956         last, to satisfy circular dependencies.
39957
39958 2007-12-11  Eric Blake  <ebb9@byu.net>
39959         and Bruno Haible  <bruno@clisp.org>
39960
39961         Fix OpenBSD 4.0 <float.h> handling of long double.
39962         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
39963         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
39964         * doc/headers/float.texi (float.h): Document OpenBSD bug.
39965
39966 2007-12-11  Jim Meyering  <meyering@redhat.com>
39967
39968         * users.txt: Add libvirt.
39969
39970         Support versions of autoconf prior to 2.59c.
39971         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
39972         if it is not already defined.
39973
39974 2007-12-09  Bruno Haible  <bruno@clisp.org>
39975
39976         Let 'gnulib-tool --import' collect sources needed for the tests in
39977         tests/ rather than in lib/.
39978         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
39979         argument. If true, add rules to generate libtests.a, and put libtests.a
39980         into $(LDADD). Consider source files in subdirectories and set
39981         uses_subdirs.
39982         (func_emit_initmacro_start, func_emit_initmacro_end,
39983         func_emit_initmacro_done): Pass all arguments explicitly.
39984         (func_import): Determine two module lists main_modules,
39985         testsrelated_modules. Determine use_libtests. Determine two variables
39986         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
39987         instead of just sed_transform_lib_file. Determine two variables
39988         main_files and testsrelated_files. Compute 'files' as the union of
39989         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
39990         func_add_or_update. In the generated gnulib-comp.m4, collect the
39991         object files for tests/ in different variables than those for lib/.
39992         Substitute LIBTESTS_LIBDEPS.
39993         (func_create_testdir): Combine the uses_subdirs results from
39994         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
39995
39996 2007-12-09  Bruno Haible  <bruno@clisp.org>
39997
39998         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
39999         the build-aux directory.
40000
40001 2007-12-09  Bruno Haible  <bruno@clisp.org>
40002
40003         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
40004         introduced on 2006-09-09.
40005
40006 2007-12-07  Jim Meyering  <meyering@redhat.com>
40007
40008         Let these macros work also with autoconf-2.59.
40009         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
40010         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
40011         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40012
40013 2007-12-06  Jim Meyering  <meyering@redhat.com>
40014
40015         Avoid a configure-time syntax error in gl_FUNC_ACL.
40016         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
40017         function in each branch, before testing the cache variable.
40018
40019 2007-12-04  Eric Blake  <ebb9@byu.net>
40020
40021         Make scripts executable.
40022         * build-aux/config.guess: Add execute permissions.
40023         * build-aux/config.sub: Likewise.
40024         * build-aux/gendocs.sh: Likewise.
40025
40026         Fix frexp on mingw.
40027         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
40028         cross-compiling.
40029         * doc/functions/frexp.texi (frexp): Document the bug.
40030
40031         Make cygwin fseeko check more reliable.
40032         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
40033         version numbers, rather than unrelated feature check.
40034         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
40035         * doc/functions/ftello.texi (ftello): Likewise.
40036         Reported by Bruno Haible.
40037
40038         * m4/strerror.m4: Bump version number.
40039
40040 2007-12-03  Bruno Haible  <bruno@clisp.org>
40041
40042         * doc/functions/mprotect.texi: Mention the mingw problem.
40043
40044 2007-12-03  Eric Blake  <ebb9@byu.net>
40045
40046         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
40047         REPLACE_STRERROR is initialized before this macro.
40048
40049 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40050
40051         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
40052         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
40053         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
40054         put -lsec in even for programs other than 'ls'.  This fixes a problem
40055         for gettext reported by Bruno Haible in
40056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
40057         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
40058         Add support for Solaris 10.  This isn't efficient, but should get the
40059         job done for now.
40060
40061 2007-12-03  James Youngman  <jay@gnu.org>
40062
40063         * doc/regexprops-generic.texi: change "an close-group" to "a
40064         close-group" and "illegal" to "not allowed".
40065
40066 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40067
40068         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
40069         pr_byname.h. Needed for the rare case when the maintainer has done
40070         "make maintainer-clean" in the source directory and then attempts a
40071         build outside the source directory.
40072         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
40073         scripts_byname.h.
40074
40075 2007-12-02  Martin Lambers <marlam@marlam.de>
40076             Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/getpagesize.h: Remove file.
40079         * lib/unistd.in.h: Include declaration of getpagesize here.
40080         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
40081         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
40082         HAVE_SYS_PARAM_H.
40083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
40084         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40085         * modules/getpagesize (Files): Remove lib/getpagesize.h.
40086         (Depends-on): Add unistd.
40087         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40088         (Include): Use <unistd.h> instead of getpagesize.h.
40089         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
40090         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
40091         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
40092         gl_GETPAGESIZE invocation, already handled by module dependency.
40093         * lib/pagealign_alloc.c: Don't include getpagesize.h.
40094
40095 2007-12-02  Bruno Haible  <bruno@clisp.org>
40096
40097         * modules/strings-tests: New file.
40098         * tests/test-strings.c: New file.
40099
40100         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
40101         * lib/strings.in.h: New file.
40102         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
40103         * m4/strings_h.m4: New file.
40104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
40105         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
40106         * modules/strings: New file.
40107         * modules/string (Makefile.am): Update.
40108         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
40109         Reported by Karl Berry.
40110
40111 2007-12-01  Eric Blake  <ebb9@byu.net>
40112
40113         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
40114         accomodate fix in cygwin 1.5.25.
40115
40116 2007-12-01  Jim Meyering  <meyering@redhat.com>
40117
40118         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
40119         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
40120         that would inhibit utf8-optimization of a regexp containing line-
40121         or buffer-anchors, e.g., `^', `$'.
40122
40123 2007-11-30  Bruno Haible  <bruno@clisp.org>
40124
40125         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
40126         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
40127         glthread_recursive_lock_init.
40128         * lib/lock.c (glthread_recursive_lock_init)
40129         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
40130         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40131
40132 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
40133
40134         New function qset_acl, like set_acl but with syscall semantics.
40135         * lib/acl.h (qset_acl): New decl.
40136         * lib/acl.c (qset_acl): New function.
40137         (set_acl): Use new function.  Use more-consistent diagnostics.
40138
40139 2007-11-28  Jim Meyering  <meyering@redhat.com>
40140
40141         * modules/physmem (License): Change from GPL to LGPLv2+.
40142
40143 2007-11-26  Bruno Haible  <bruno@clisp.org>
40144
40145         * lib/vasnprintf.c (decode_long_double): Don't abort if the
40146         'long double' type has excess precision.
40147         Reported by Jim Meyering in
40148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
40149
40150 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40151
40152         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
40153         Sync from <http://gnu.org/licenses>.
40154         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
40155         with license text from same location.
40156         * doc/maintain.texi, doc/standards.texi:  Sync from
40157         <http://savannah.gnu.org/projects/gnustandards>.
40158
40159 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
40160         and Jim Meyering  <meyering@redhat.com>
40161
40162         Adjust getdate' grammar to accept a slightly more regular language.
40163         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
40164         Before, the former was rejected.
40165         * lib/getdate.y (digits_to_date_time): New function, factored
40166         out of ...
40167         (number): ...here.  Just call digits_to_date_time.
40168         (hybrid): New non-terminal to handle an <unsigned number,
40169         signed relative offset> sequence consistently.
40170
40171 2007-11-18  Jim Meyering  <meyering@redhat.com>
40172
40173         Pull my changes from coreutils:
40174         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
40175         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
40176         use of $gnulib_tool_option_extras, so that it's separated from the
40177         preceding argument.
40178
40179         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
40180         * build-aux/bootstrap (cp_mark_as_generated): Create any required
40181         parent destination directories before copying a file into place.
40182
40183 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40184
40185         bootstrap: work also with 4-argument variant of AC_INIT
40186         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
40187
40188 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40189
40190         Port test-getaddrinfo to Solaris.
40191         Problem reported by Bruno Haible in
40192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
40193         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
40194         explanation of setting 'hints'.
40195         Don't reject an implementation merely because it returns EAI_SERVICE.
40196         (EAI_SERVICE): Define to 0 if not defined.
40197
40198 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
40199
40200         The license of gnu-make and posix-shell is now "GPLed build tool".
40201         * modules/gnu-make (License): Likewise.
40202         * modules/posix-shell (License): Likewise.
40203
40204         New module posix-shell, for determining a POSIX shell
40205         or perhaps something that is close enough to a POSIX shell.
40206         * m4/posix-shell.m4: New file.
40207         * modules/posix-shell: New file.
40208
40209         * MODULES.html.sh: Mention new module.
40210
40211         New module gnu-make, for determining whether we're using GNU Make.
40212         * m4/gnu-make.m4: New file.
40213         * modules/gnu-make: New file.
40214         * MODULES.html.sh: Mention new module.
40215
40216 2007-11-14  Jim Meyering  <meyering@redhat.com>
40217
40218         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
40219         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
40220         use this macro to create a function _definition_.
40221         Remove useless "#undef ARGMATCH_DIE".
40222
40223 2007-11-14  Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/config.charset: Update for OpenBSD 4.1.
40226         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
40227
40228 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
40229
40230         Document 64-bit #if problems in stdint.texi.
40231         * doc/headers/stdint.texi (stdint.h): Mention problems with
40232         64-bit-#if, and how to work around them.
40233
40234         Don't insist on 'long long int' support in the preprocessor.  It
40235         breaks too many things.  For example, PRIdMAX still uses a 'long
40236         long int' format with the latest Sun compiler, even though
40237         HAVE_LONG_LONG_INT isn't defined due to that compiler's
40238         preprocessor problem.  This causes the latest coreutils to dump
40239         core on Solaris 10 sparc with the Sun C compiler.
40240         Instead, fix the 2007-10-16 problem in a different way, by evaluating
40241         the troublesome expressions at configure-time, not at #if-time.
40242         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
40243         preprocessor.
40244         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
40245         compile-time C checks, done at 'configure'-time.
40246         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
40247         * modules/inttypes (Makefile): Substitute the new symbols that
40248         gl_INTTYPES_H now generates.
40249         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
40250
40251 2007-11-12  Bruno Haible  <bruno@clisp.org>
40252
40253         Tests for Unicode character classification functions.
40254
40255         * modules/unictype/bidicategory-byname-tests: New file.
40256         * modules/unictype/bidicategory-name-tests: New file.
40257         * modules/unictype/bidicategory-of-tests: New file.
40258         * modules/unictype/bidicategory-test-tests: New file.
40259         * modules/unictype/block-list-tests: New file.
40260         * modules/unictype/block-of-tests: New file.
40261         * modules/unictype/block-test-tests: New file.
40262         * modules/unictype/category-C-tests: New file.
40263         * modules/unictype/category-Cc-tests: New file.
40264         * modules/unictype/category-Cf-tests: New file.
40265         * modules/unictype/category-Cn-tests: New file.
40266         * modules/unictype/category-Co-tests: New file.
40267         * modules/unictype/category-Cs-tests: New file.
40268         * modules/unictype/category-L-tests: New file.
40269         * modules/unictype/category-Ll-tests: New file.
40270         * modules/unictype/category-Lm-tests: New file.
40271         * modules/unictype/category-Lo-tests: New file.
40272         * modules/unictype/category-Lt-tests: New file.
40273         * modules/unictype/category-Lu-tests: New file.
40274         * modules/unictype/category-M-tests: New file.
40275         * modules/unictype/category-Mc-tests: New file.
40276         * modules/unictype/category-Me-tests: New file.
40277         * modules/unictype/category-Mn-tests: New file.
40278         * modules/unictype/category-N-tests: New file.
40279         * modules/unictype/category-Nd-tests: New file.
40280         * modules/unictype/category-Nl-tests: New file.
40281         * modules/unictype/category-No-tests: New file.
40282         * modules/unictype/category-P-tests: New file.
40283         * modules/unictype/category-Pc-tests: New file.
40284         * modules/unictype/category-Pd-tests: New file.
40285         * modules/unictype/category-Pe-tests: New file.
40286         * modules/unictype/category-Pf-tests: New file.
40287         * modules/unictype/category-Pi-tests: New file.
40288         * modules/unictype/category-Po-tests: New file.
40289         * modules/unictype/category-Ps-tests: New file.
40290         * modules/unictype/category-S-tests: New file.
40291         * modules/unictype/category-Sc-tests: New file.
40292         * modules/unictype/category-Sk-tests: New file.
40293         * modules/unictype/category-Sm-tests: New file.
40294         * modules/unictype/category-So-tests: New file.
40295         * modules/unictype/category-Z-tests: New file.
40296         * modules/unictype/category-Zl-tests: New file.
40297         * modules/unictype/category-Zp-tests: New file.
40298         * modules/unictype/category-Zs-tests: New file.
40299         * modules/unictype/category-and-not-tests: New file.
40300         * modules/unictype/category-and-tests: New file.
40301         * modules/unictype/category-byname-tests: New file.
40302         * modules/unictype/category-name-tests: New file.
40303         * modules/unictype/category-none-tests: New file.
40304         * modules/unictype/category-of-tests: New file.
40305         * modules/unictype/category-or-tests: New file.
40306         * modules/unictype/category-test-withtable-tests: New file.
40307         * modules/unictype/combining-class-tests: New file.
40308         * modules/unictype/ctype-alnum-tests: New file.
40309         * modules/unictype/ctype-alpha-tests: New file.
40310         * modules/unictype/ctype-blank-tests: New file.
40311         * modules/unictype/ctype-cntrl-tests: New file.
40312         * modules/unictype/ctype-digit-tests: New file.
40313         * modules/unictype/ctype-graph-tests: New file.
40314         * modules/unictype/ctype-lower-tests: New file.
40315         * modules/unictype/ctype-print-tests: New file.
40316         * modules/unictype/ctype-punct-tests: New file.
40317         * modules/unictype/ctype-space-tests: New file.
40318         * modules/unictype/ctype-upper-tests: New file.
40319         * modules/unictype/ctype-xdigit-tests: New file.
40320         * modules/unictype/decimal-digit-tests: New file.
40321         * modules/unictype/digit-tests: New file.
40322         * modules/unictype/mirror-tests: New file.
40323         * modules/unictype/numeric-tests: New file.
40324         * modules/unictype/property-alphabetic-tests: New file.
40325         * modules/unictype/property-ascii-hex-digit-tests: New file.
40326         * modules/unictype/property-bidi-arabic-digit-tests: New file.
40327         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
40328         * modules/unictype/property-bidi-block-separator-tests: New file.
40329         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
40330         * modules/unictype/property-bidi-common-separator-tests: New file.
40331         * modules/unictype/property-bidi-control-tests: New file.
40332         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
40333         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
40334         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
40335         * modules/unictype/property-bidi-european-digit-tests: New file.
40336         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
40337         * modules/unictype/property-bidi-left-to-right-tests: New file.
40338         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
40339         * modules/unictype/property-bidi-other-neutral-tests: New file.
40340         * modules/unictype/property-bidi-pdf-tests: New file.
40341         * modules/unictype/property-bidi-segment-separator-tests: New file.
40342         * modules/unictype/property-bidi-whitespace-tests: New file.
40343         * modules/unictype/property-byname-tests: New file.
40344         * modules/unictype/property-combining-tests: New file.
40345         * modules/unictype/property-composite-tests: New file.
40346         * modules/unictype/property-currency-symbol-tests: New file.
40347         * modules/unictype/property-dash-tests: New file.
40348         * modules/unictype/property-decimal-digit-tests: New file.
40349         * modules/unictype/property-default-ignorable-code-point-tests: New file.
40350         * modules/unictype/property-deprecated-tests: New file.
40351         * modules/unictype/property-diacritic-tests: New file.
40352         * modules/unictype/property-extender-tests: New file.
40353         * modules/unictype/property-format-control-tests: New file.
40354         * modules/unictype/property-grapheme-base-tests: New file.
40355         * modules/unictype/property-grapheme-extend-tests: New file.
40356         * modules/unictype/property-grapheme-link-tests: New file.
40357         * modules/unictype/property-hex-digit-tests: New file.
40358         * modules/unictype/property-hyphen-tests: New file.
40359         * modules/unictype/property-id-continue-tests: New file.
40360         * modules/unictype/property-id-start-tests: New file.
40361         * modules/unictype/property-ideographic-tests: New file.
40362         * modules/unictype/property-ids-binary-operator-tests: New file.
40363         * modules/unictype/property-ids-trinary-operator-tests: New file.
40364         * modules/unictype/property-ignorable-control-tests: New file.
40365         * modules/unictype/property-iso-control-tests: New file.
40366         * modules/unictype/property-join-control-tests: New file.
40367         * modules/unictype/property-left-of-pair-tests: New file.
40368         * modules/unictype/property-line-separator-tests: New file.
40369         * modules/unictype/property-logical-order-exception-tests: New file.
40370         * modules/unictype/property-lowercase-tests: New file.
40371         * modules/unictype/property-math-tests: New file.
40372         * modules/unictype/property-non-break-tests: New file.
40373         * modules/unictype/property-not-a-character-tests: New file.
40374         * modules/unictype/property-numeric-tests: New file.
40375         * modules/unictype/property-other-alphabetic-tests: New file.
40376         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
40377         * modules/unictype/property-other-grapheme-extend-tests: New file.
40378         * modules/unictype/property-other-id-continue-tests: New file.
40379         * modules/unictype/property-other-id-start-tests: New file.
40380         * modules/unictype/property-other-lowercase-tests: New file.
40381         * modules/unictype/property-other-math-tests: New file.
40382         * modules/unictype/property-other-uppercase-tests: New file.
40383         * modules/unictype/property-paired-punctuation-tests: New file.
40384         * modules/unictype/property-paragraph-separator-tests: New file.
40385         * modules/unictype/property-pattern-syntax-tests: New file.
40386         * modules/unictype/property-pattern-white-space-tests: New file.
40387         * modules/unictype/property-private-use-tests: New file.
40388         * modules/unictype/property-punctuation-tests: New file.
40389         * modules/unictype/property-quotation-mark-tests: New file.
40390         * modules/unictype/property-radical-tests: New file.
40391         * modules/unictype/property-sentence-terminal-tests: New file.
40392         * modules/unictype/property-soft-dotted-tests: New file.
40393         * modules/unictype/property-space-tests: New file.
40394         * modules/unictype/property-terminal-punctuation-tests: New file.
40395         * modules/unictype/property-test-tests: New file.
40396         * modules/unictype/property-titlecase-tests: New file.
40397         * modules/unictype/property-unassigned-code-value-tests: New file.
40398         * modules/unictype/property-unified-ideograph-tests: New file.
40399         * modules/unictype/property-uppercase-tests: New file.
40400         * modules/unictype/property-variation-selector-tests: New file.
40401         * modules/unictype/property-white-space-tests: New file.
40402         * modules/unictype/property-xid-continue-tests: New file.
40403         * modules/unictype/property-xid-start-tests: New file.
40404         * modules/unictype/property-zero-width-tests: New file.
40405         * modules/unictype/scripts-tests: New file.
40406         * modules/unictype/syntax-c-ident-tests: New file.
40407         * modules/unictype/syntax-c-whitespace-tests: New file.
40408         * modules/unictype/syntax-java-ident-tests: New file.
40409         * modules/unictype/syntax-java-whitespace-tests: New file.
40410         * tests/unictype/test-bidi_byname.c: New file.
40411         * tests/unictype/test-bidi_name.c: New file.
40412         * tests/unictype/test-bidi_of.c: New file.
40413         * tests/unictype/test-bidi_test.c: New file.
40414         * tests/unictype/test-block_list.c: New file.
40415         * tests/unictype/test-block_of.c: New file.
40416         * tests/unictype/test-block_test.c: New file.
40417         * tests/unictype/test-categ_and.c: New file.
40418         * tests/unictype/test-categ_and_not.c: New file.
40419         * tests/unictype/test-categ_byname.c: New file.
40420         * tests/unictype/test-categ_name.c: New file.
40421         * tests/unictype/test-categ_none.c: New file.
40422         * tests/unictype/test-categ_of.c: New file.
40423         * tests/unictype/test-categ_or.c: New file.
40424         * tests/unictype/test-categ_test_withtable.c: New file.
40425         * tests/unictype/test-combining.c: New file.
40426         * tests/unictype/test-decdigit.c: New file.
40427         * tests/unictype/test-digit.c: New file.
40428         * tests/unictype/test-mirror.c: New file.
40429         * tests/unictype/test-numeric.c: New file.
40430         * tests/unictype/test-pr_byname.c: New file.
40431         * tests/unictype/test-pr_test.c: New file.
40432         * tests/unictype/test-predicate-part1.h: New file.
40433         * tests/unictype/test-predicate-part2.h: New file.
40434         * tests/unictype/test-scripts.c: New file.
40435         * tests/unictype/test-sy_c_ident.c: New file.
40436         * tests/unictype/test-sy_java_ident.c: New file.
40437
40438         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
40439         for Unicode 5.0.0.
40440         * tests/unictype/test-categ_Cc.c: Likewise.
40441         * tests/unictype/test-categ_Cf.c: Likewise.
40442         * tests/unictype/test-categ_Cn.c: Likewise.
40443         * tests/unictype/test-categ_Co.c: Likewise.
40444         * tests/unictype/test-categ_Cs.c: Likewise.
40445         * tests/unictype/test-categ_L.c: Likewise.
40446         * tests/unictype/test-categ_Ll.c: Likewise.
40447         * tests/unictype/test-categ_Lm.c: Likewise.
40448         * tests/unictype/test-categ_Lo.c: Likewise.
40449         * tests/unictype/test-categ_Lt.c: Likewise.
40450         * tests/unictype/test-categ_Lu.c: Likewise.
40451         * tests/unictype/test-categ_M.c: Likewise.
40452         * tests/unictype/test-categ_Mc.c: Likewise.
40453         * tests/unictype/test-categ_Me.c: Likewise.
40454         * tests/unictype/test-categ_Mn.c: Likewise.
40455         * tests/unictype/test-categ_N.c: Likewise.
40456         * tests/unictype/test-categ_Nd.c: Likewise.
40457         * tests/unictype/test-categ_Nl.c: Likewise.
40458         * tests/unictype/test-categ_No.c: Likewise.
40459         * tests/unictype/test-categ_P.c: Likewise.
40460         * tests/unictype/test-categ_Pc.c: Likewise.
40461         * tests/unictype/test-categ_Pd.c: Likewise.
40462         * tests/unictype/test-categ_Pe.c: Likewise.
40463         * tests/unictype/test-categ_Pf.c: Likewise.
40464         * tests/unictype/test-categ_Pi.c: Likewise.
40465         * tests/unictype/test-categ_Po.c: Likewise.
40466         * tests/unictype/test-categ_Ps.c: Likewise.
40467         * tests/unictype/test-categ_S.c: Likewise.
40468         * tests/unictype/test-categ_Sc.c: Likewise.
40469         * tests/unictype/test-categ_Sk.c: Likewise.
40470         * tests/unictype/test-categ_Sm.c: Likewise.
40471         * tests/unictype/test-categ_So.c: Likewise.
40472         * tests/unictype/test-categ_Z.c: Likewise.
40473         * tests/unictype/test-categ_Zl.c: Likewise.
40474         * tests/unictype/test-categ_Zp.c: Likewise.
40475         * tests/unictype/test-categ_Zs.c: Likewise.
40476         * tests/unictype/test-ctype_alnum.c: Likewise.
40477         * tests/unictype/test-ctype_alpha.c: Likewise.
40478         * tests/unictype/test-ctype_blank.c: Likewise.
40479         * tests/unictype/test-ctype_cntrl.c: Likewise.
40480         * tests/unictype/test-ctype_digit.c: Likewise.
40481         * tests/unictype/test-ctype_graph.c: Likewise.
40482         * tests/unictype/test-ctype_lower.c: Likewise.
40483         * tests/unictype/test-ctype_print.c: Likewise.
40484         * tests/unictype/test-ctype_punct.c: Likewise.
40485         * tests/unictype/test-ctype_space.c: Likewise.
40486         * tests/unictype/test-ctype_upper.c: Likewise.
40487         * tests/unictype/test-ctype_xdigit.c: Likewise.
40488         * tests/unictype/test-decdigit.h: Likewise.
40489         * tests/unictype/test-digit.h: Likewise.
40490         * tests/unictype/test-numeric.h: Likewise.
40491         * tests/unictype/test-pr_alphabetic.c: Likewise.
40492         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
40493         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40494         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40495         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
40496         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40497         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
40498         * tests/unictype/test-pr_bidi_control.c: Likewise.
40499         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
40500         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
40501         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40502         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
40503         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40504         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40505         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40506         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40507         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
40508         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
40509         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
40510         * tests/unictype/test-pr_combining.c: Likewise.
40511         * tests/unictype/test-pr_composite.c: Likewise.
40512         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40513         * tests/unictype/test-pr_dash.c: Likewise.
40514         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40515         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
40516         * tests/unictype/test-pr_deprecated.c: Likewise.
40517         * tests/unictype/test-pr_diacritic.c: Likewise.
40518         * tests/unictype/test-pr_extender.c: Likewise.
40519         * tests/unictype/test-pr_format_control.c: Likewise.
40520         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40521         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40522         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40523         * tests/unictype/test-pr_hex_digit.c: Likewise.
40524         * tests/unictype/test-pr_hyphen.c: Likewise.
40525         * tests/unictype/test-pr_id_continue.c: Likewise.
40526         * tests/unictype/test-pr_id_start.c: Likewise.
40527         * tests/unictype/test-pr_ideographic.c: Likewise.
40528         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
40529         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
40530         * tests/unictype/test-pr_ignorable_control.c: Likewise.
40531         * tests/unictype/test-pr_iso_control.c: Likewise.
40532         * tests/unictype/test-pr_join_control.c: Likewise.
40533         * tests/unictype/test-pr_left_of_pair.c: Likewise.
40534         * tests/unictype/test-pr_line_separator.c: Likewise.
40535         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
40536         * tests/unictype/test-pr_lowercase.c: Likewise.
40537         * tests/unictype/test-pr_math.c: Likewise.
40538         * tests/unictype/test-pr_non_break.c: Likewise.
40539         * tests/unictype/test-pr_not_a_character.c: Likewise.
40540         * tests/unictype/test-pr_numeric.c: Likewise.
40541         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40542         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
40543         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
40544         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40545         * tests/unictype/test-pr_other_id_start.c: Likewise.
40546         * tests/unictype/test-pr_other_lowercase.c: Likewise.
40547         * tests/unictype/test-pr_other_math.c: Likewise.
40548         * tests/unictype/test-pr_other_uppercase.c: Likewise.
40549         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
40550         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
40551         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
40552         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
40553         * tests/unictype/test-pr_private_use.c: Likewise.
40554         * tests/unictype/test-pr_punctuation.c: Likewise.
40555         * tests/unictype/test-pr_quotation_mark.c: Likewise.
40556         * tests/unictype/test-pr_radical.c: Likewise.
40557         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40558         * tests/unictype/test-pr_soft_dotted.c: Likewise.
40559         * tests/unictype/test-pr_space.c: Likewise.
40560         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40561         * tests/unictype/test-pr_titlecase.c: Likewise.
40562         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40563         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40564         * tests/unictype/test-pr_uppercase.c: Likewise.
40565         * tests/unictype/test-pr_variation_selector.c: Likewise.
40566         * tests/unictype/test-pr_white_space.c: Likewise.
40567         * tests/unictype/test-pr_xid_continue.c: Likewise.
40568         * tests/unictype/test-pr_xid_start.c: Likewise.
40569         * tests/unictype/test-pr_zero_width.c: Likewise.
40570         * tests/unictype/test-sy_c_whitespace.c: Likewise.
40571         * tests/unictype/test-sy_java_whitespace.c: Likewise.
40572
40573 2007-11-12  Bruno Haible  <bruno@clisp.org>
40574
40575         Unicode character classification functions.
40576         * lib/unictype.h: New file.
40577         * modules/unictype/base: New file.
40578         * modules/unictype/category-L: New file.
40579         * modules/unictype/category-Lu: New file.
40580         * modules/unictype/category-Ll: New file.
40581         * modules/unictype/category-Lt: New file.
40582         * modules/unictype/category-Lm: New file.
40583         * modules/unictype/category-Lo: New file.
40584         * modules/unictype/category-M: New file.
40585         * modules/unictype/category-Mn: New file.
40586         * modules/unictype/category-Mc: New file.
40587         * modules/unictype/category-Me: New file.
40588         * modules/unictype/category-N: New file.
40589         * modules/unictype/category-Nd: New file.
40590         * modules/unictype/category-Nl: New file.
40591         * modules/unictype/category-No: New file.
40592         * modules/unictype/category-P: New file.
40593         * modules/unictype/category-Pc: New file.
40594         * modules/unictype/category-Pd: New file.
40595         * modules/unictype/category-Ps: New file.
40596         * modules/unictype/category-Pe: New file.
40597         * modules/unictype/category-Pi: New file.
40598         * modules/unictype/category-Pf: New file.
40599         * modules/unictype/category-Po: New file.
40600         * modules/unictype/category-S: New file.
40601         * modules/unictype/category-Sm: New file.
40602         * modules/unictype/category-Sc: New file.
40603         * modules/unictype/category-Sk: New file.
40604         * modules/unictype/category-So: New file.
40605         * modules/unictype/category-Z: New file.
40606         * modules/unictype/category-Zs: New file.
40607         * modules/unictype/category-Zl: New file.
40608         * modules/unictype/category-Zp: New file.
40609         * modules/unictype/category-C: New file.
40610         * modules/unictype/category-Cc: New file.
40611         * modules/unictype/category-Cf: New file.
40612         * modules/unictype/category-Cs: New file.
40613         * modules/unictype/category-Co: New file.
40614         * modules/unictype/category-Cn: New file.
40615         * modules/unictype/category-or: New file.
40616         * modules/unictype/category-of: New file.
40617         * modules/unictype/category-test: New file.
40618         * modules/unictype/category-test-withtable: New file.
40619         * modules/unictype/category-byname: New file.
40620         * modules/unictype/category-none: New file.
40621         * modules/unictype/category-and: New file.
40622         * modules/unictype/category-and-not: New file.
40623         * modules/unictype/category-name: New file.
40624         * modules/unictype/combining-class: New file.
40625         * modules/unictype/category-all: New file.
40626         * modules/unictype/bidicategory-all: New file.
40627         * modules/unictype/bidicategory-byname: New file.
40628         * modules/unictype/bidicategory-name: New file.
40629         * modules/unictype/bidicategory-of: New file.
40630         * modules/unictype/bidicategory-test: New file.
40631         * modules/unictype/decimal-digit: New file.
40632         * modules/unictype/digit: New file.
40633         * modules/unictype/numeric: New file.
40634         * modules/unictype/mirror: New file.
40635         * modules/unictype/property-white-space: New file.
40636         * modules/unictype/property-alphabetic: New file.
40637         * modules/unictype/property-other-alphabetic: New file.
40638         * modules/unictype/property-not-a-character: New file.
40639         * modules/unictype/property-default-ignorable-code-point: New file.
40640         * modules/unictype/property-other-default-ignorable-code-point: New
40641         file.
40642         * modules/unictype/property-deprecated: New file.
40643         * modules/unictype/property-logical-order-exception: New file.
40644         * modules/unictype/property-variation-selector: New file.
40645         * modules/unictype/property-private-use: New file.
40646         * modules/unictype/property-unassigned-code-value: New file.
40647         * modules/unictype/property-uppercase: New file.
40648         * modules/unictype/property-other-uppercase: New file.
40649         * modules/unictype/property-lowercase: New file.
40650         * modules/unictype/property-other-lowercase: New file.
40651         * modules/unictype/property-titlecase: New file.
40652         * modules/unictype/property-soft-dotted: New file.
40653         * modules/unictype/property-id-start: New file.
40654         * modules/unictype/property-other-id-start: New file.
40655         * modules/unictype/property-id-continue: New file.
40656         * modules/unictype/property-other-id-continue: New file.
40657         * modules/unictype/property-xid-start: New file.
40658         * modules/unictype/property-xid-continue: New file.
40659         * modules/unictype/property-pattern-white-space: New file.
40660         * modules/unictype/property-pattern-syntax: New file.
40661         * modules/unictype/property-join-control: New file.
40662         * modules/unictype/property-grapheme-base: New file.
40663         * modules/unictype/property-grapheme-extend: New file.
40664         * modules/unictype/property-other-grapheme-extend: New file.
40665         * modules/unictype/property-grapheme-link: New file.
40666         * modules/unictype/property-bidi-control: New file.
40667         * modules/unictype/property-bidi-left-to-right: New file.
40668         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
40669         * modules/unictype/property-bidi-arabic-right-to-left: New file.
40670         * modules/unictype/property-bidi-european-digit: New file.
40671         * modules/unictype/property-bidi-eur-num-separator: New file.
40672         * modules/unictype/property-bidi-eur-num-terminator: New file.
40673         * modules/unictype/property-bidi-arabic-digit: New file.
40674         * modules/unictype/property-bidi-common-separator: New file.
40675         * modules/unictype/property-bidi-block-separator: New file.
40676         * modules/unictype/property-bidi-segment-separator: New file.
40677         * modules/unictype/property-bidi-whitespace: New file.
40678         * modules/unictype/property-bidi-non-spacing-mark: New file.
40679         * modules/unictype/property-bidi-boundary-neutral: New file.
40680         * modules/unictype/property-bidi-pdf: New file.
40681         * modules/unictype/property-bidi-embedding-or-override: New file.
40682         * modules/unictype/property-bidi-other-neutral: New file.
40683         * modules/unictype/property-hex-digit: New file.
40684         * modules/unictype/property-ascii-hex-digit: New file.
40685         * modules/unictype/property-ideographic: New file.
40686         * modules/unictype/property-unified-ideograph: New file.
40687         * modules/unictype/property-radical: New file.
40688         * modules/unictype/property-ids-binary-operator: New file.
40689         * modules/unictype/property-ids-trinary-operator: New file.
40690         * modules/unictype/property-zero-width: New file.
40691         * modules/unictype/property-space: New file.
40692         * modules/unictype/property-non-break: New file.
40693         * modules/unictype/property-iso-control: New file.
40694         * modules/unictype/property-format-control: New file.
40695         * modules/unictype/property-dash: New file.
40696         * modules/unictype/property-hyphen: New file.
40697         * modules/unictype/property-punctuation: New file.
40698         * modules/unictype/property-line-separator: New file.
40699         * modules/unictype/property-paragraph-separator: New file.
40700         * modules/unictype/property-quotation-mark: New file.
40701         * modules/unictype/property-sentence-terminal: New file.
40702         * modules/unictype/property-terminal-punctuation: New file.
40703         * modules/unictype/property-currency-symbol: New file.
40704         * modules/unictype/property-math: New file.
40705         * modules/unictype/property-other-math: New file.
40706         * modules/unictype/property-paired-punctuation: New file.
40707         * modules/unictype/property-left-of-pair: New file.
40708         * modules/unictype/property-combining: New file.
40709         * modules/unictype/property-composite: New file.
40710         * modules/unictype/property-decimal-digit: New file.
40711         * modules/unictype/property-numeric: New file.
40712         * modules/unictype/property-diacritic: New file.
40713         * modules/unictype/property-extender: New file.
40714         * modules/unictype/property-ignorable-control: New file.
40715         * modules/unictype/property-test: New file.
40716         * modules/unictype/property-byname: New file.
40717         * modules/unictype/property-all: New file.
40718         * modules/unictype/scripts: New file.
40719         * modules/unictype/scripts-all: New file.
40720         * modules/unictype/block-of: New file.
40721         * modules/unictype/block-test: New file.
40722         * modules/unictype/block-list: New file.
40723         * modules/unictype/block-all: New file.
40724         * modules/unictype/syntax-c-whitespace: New file.
40725         * modules/unictype/syntax-java-whitespace: New file.
40726         * modules/unictype/syntax-c-ident: New file.
40727         * modules/unictype/syntax-java-ident: New file.
40728         * modules/unictype/ctype-alnum: New file.
40729         * modules/unictype/ctype-alpha: New file.
40730         * modules/unictype/ctype-cntrl: New file.
40731         * modules/unictype/ctype-digit: New file.
40732         * modules/unictype/ctype-graph: New file.
40733         * modules/unictype/ctype-lower: New file.
40734         * modules/unictype/ctype-print: New file.
40735         * modules/unictype/ctype-punct: New file.
40736         * modules/unictype/ctype-space: New file.
40737         * modules/unictype/ctype-upper: New file.
40738         * modules/unictype/ctype-xdigit: New file.
40739         * modules/unictype/ctype-blank: New file.
40740         * lib/unictype/bidi_byname.c: New file.
40741         * lib/unictype/bidi_name.c: New file.
40742         * lib/unictype/bidi_of.c: New file.
40743         * lib/unictype/bidi_test.c: New file.
40744         * lib/unictype/bitmap.h: New file.
40745         * lib/unictype/block_test.c: New file.
40746         * lib/unictype/blocks.c: New file.
40747         * lib/unictype/categ_C.c: New file.
40748         * lib/unictype/categ_Cc.c: New file.
40749         * lib/unictype/categ_Cf.c: New file.
40750         * lib/unictype/categ_Cn.c: New file.
40751         * lib/unictype/categ_Co.c: New file.
40752         * lib/unictype/categ_Cs.c: New file.
40753         * lib/unictype/categ_L.c: New file.
40754         * lib/unictype/categ_Ll.c: New file.
40755         * lib/unictype/categ_Lm.c: New file.
40756         * lib/unictype/categ_Lo.c: New file.
40757         * lib/unictype/categ_Lt.c: New file.
40758         * lib/unictype/categ_Lu.c: New file.
40759         * lib/unictype/categ_M.c: New file.
40760         * lib/unictype/categ_Mc.c: New file.
40761         * lib/unictype/categ_Me.c: New file.
40762         * lib/unictype/categ_Mn.c: New file.
40763         * lib/unictype/categ_N.c: New file.
40764         * lib/unictype/categ_Nd.c: New file.
40765         * lib/unictype/categ_Nl.c: New file.
40766         * lib/unictype/categ_No.c: New file.
40767         * lib/unictype/categ_P.c: New file.
40768         * lib/unictype/categ_Pc.c: New file.
40769         * lib/unictype/categ_Pd.c: New file.
40770         * lib/unictype/categ_Pe.c: New file.
40771         * lib/unictype/categ_Pf.c: New file.
40772         * lib/unictype/categ_Pi.c: New file.
40773         * lib/unictype/categ_Po.c: New file.
40774         * lib/unictype/categ_Ps.c: New file.
40775         * lib/unictype/categ_S.c: New file.
40776         * lib/unictype/categ_Sc.c: New file.
40777         * lib/unictype/categ_Sk.c: New file.
40778         * lib/unictype/categ_Sm.c: New file.
40779         * lib/unictype/categ_So.c: New file.
40780         * lib/unictype/categ_Z.c: New file.
40781         * lib/unictype/categ_Zl.c: New file.
40782         * lib/unictype/categ_Zp.c: New file.
40783         * lib/unictype/categ_Zs.c: New file.
40784         * lib/unictype/categ_and.c: New file.
40785         * lib/unictype/categ_and_not.c: New file.
40786         * lib/unictype/categ_byname.c: New file.
40787         * lib/unictype/categ_name.c: New file.
40788         * lib/unictype/categ_none.c: New file.
40789         * lib/unictype/categ_of.c: New file.
40790         * lib/unictype/categ_or.c: New file.
40791         * lib/unictype/categ_test.c: New file.
40792         * lib/unictype/combining.c: New file.
40793         * lib/unictype/ctype_alnum.c: New file.
40794         * lib/unictype/ctype_alpha.c: New file.
40795         * lib/unictype/ctype_blank.c: New file.
40796         * lib/unictype/ctype_cntrl.c: New file.
40797         * lib/unictype/ctype_digit.c: New file.
40798         * lib/unictype/ctype_graph.c: New file.
40799         * lib/unictype/ctype_lower.c: New file.
40800         * lib/unictype/ctype_print.c: New file.
40801         * lib/unictype/ctype_punct.c: New file.
40802         * lib/unictype/ctype_space.c: New file.
40803         * lib/unictype/ctype_upper.c: New file.
40804         * lib/unictype/ctype_xdigit.c: New file.
40805         * lib/unictype/decdigit.c: New file.
40806         * lib/unictype/digit.c: New file.
40807         * lib/unictype/identsyntaxmap.h: New file.
40808         * lib/unictype/mirror.c: New file.
40809         * lib/unictype/numeric.c: New file.
40810         * lib/unictype/pr_alphabetic.c: New file.
40811         * lib/unictype/pr_ascii_hex_digit.c: New file.
40812         * lib/unictype/pr_bidi_arabic_digit.c: New file.
40813         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
40814         * lib/unictype/pr_bidi_block_separator.c: New file.
40815         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
40816         * lib/unictype/pr_bidi_common_separator.c: New file.
40817         * lib/unictype/pr_bidi_control.c: New file.
40818         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
40819         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
40820         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
40821         * lib/unictype/pr_bidi_european_digit.c: New file.
40822         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
40823         * lib/unictype/pr_bidi_left_to_right.c: New file.
40824         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
40825         * lib/unictype/pr_bidi_other_neutral.c: New file.
40826         * lib/unictype/pr_bidi_pdf.c: New file.
40827         * lib/unictype/pr_bidi_segment_separator.c: New file.
40828         * lib/unictype/pr_bidi_whitespace.c: New file.
40829         * lib/unictype/pr_byname.c: New file.
40830         * lib/unictype/pr_byname.gperf: New file.
40831         * lib/unictype/pr_combining.c: New file.
40832         * lib/unictype/pr_composite.c: New file.
40833         * lib/unictype/pr_currency_symbol.c: New file.
40834         * lib/unictype/pr_dash.c: New file.
40835         * lib/unictype/pr_decimal_digit.c: New file.
40836         * lib/unictype/pr_default_ignorable_code_point.c: New file.
40837         * lib/unictype/pr_deprecated.c: New file.
40838         * lib/unictype/pr_diacritic.c: New file.
40839         * lib/unictype/pr_extender.c: New file.
40840         * lib/unictype/pr_format_control.c: New file.
40841         * lib/unictype/pr_grapheme_base.c: New file.
40842         * lib/unictype/pr_grapheme_extend.c: New file.
40843         * lib/unictype/pr_grapheme_link.c: New file.
40844         * lib/unictype/pr_hex_digit.c: New file.
40845         * lib/unictype/pr_hyphen.c: New file.
40846         * lib/unictype/pr_id_continue.c: New file.
40847         * lib/unictype/pr_id_start.c: New file.
40848         * lib/unictype/pr_ideographic.c: New file.
40849         * lib/unictype/pr_ids_binary_operator.c: New file.
40850         * lib/unictype/pr_ids_trinary_operator.c: New file.
40851         * lib/unictype/pr_ignorable_control.c: New file.
40852         * lib/unictype/pr_iso_control.c: New file.
40853         * lib/unictype/pr_join_control.c: New file.
40854         * lib/unictype/pr_left_of_pair.c: New file.
40855         * lib/unictype/pr_line_separator.c: New file.
40856         * lib/unictype/pr_logical_order_exception.c: New file.
40857         * lib/unictype/pr_lowercase.c: New file.
40858         * lib/unictype/pr_math.c: New file.
40859         * lib/unictype/pr_non_break.c: New file.
40860         * lib/unictype/pr_not_a_character.c: New file.
40861         * lib/unictype/pr_numeric.c: New file.
40862         * lib/unictype/pr_other_alphabetic.c: New file.
40863         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
40864         * lib/unictype/pr_other_grapheme_extend.c: New file.
40865         * lib/unictype/pr_other_id_continue.c: New file.
40866         * lib/unictype/pr_other_id_start.c: New file.
40867         * lib/unictype/pr_other_lowercase.c: New file.
40868         * lib/unictype/pr_other_math.c: New file.
40869         * lib/unictype/pr_other_uppercase.c: New file.
40870         * lib/unictype/pr_paired_punctuation.c: New file.
40871         * lib/unictype/pr_paragraph_separator.c: New file.
40872         * lib/unictype/pr_pattern_syntax.c: New file.
40873         * lib/unictype/pr_pattern_white_space.c: New file.
40874         * lib/unictype/pr_private_use.c: New file.
40875         * lib/unictype/pr_punctuation.c: New file.
40876         * lib/unictype/pr_quotation_mark.c: New file.
40877         * lib/unictype/pr_radical.c: New file.
40878         * lib/unictype/pr_sentence_terminal.c: New file.
40879         * lib/unictype/pr_soft_dotted.c: New file.
40880         * lib/unictype/pr_space.c: New file.
40881         * lib/unictype/pr_terminal_punctuation.c: New file.
40882         * lib/unictype/pr_test.c: New file.
40883         * lib/unictype/pr_titlecase.c: New file.
40884         * lib/unictype/pr_unassigned_code_value.c: New file.
40885         * lib/unictype/pr_unified_ideograph.c: New file.
40886         * lib/unictype/pr_uppercase.c: New file.
40887         * lib/unictype/pr_variation_selector.c: New file.
40888         * lib/unictype/pr_white_space.c: New file.
40889         * lib/unictype/pr_xid_continue.c: New file.
40890         * lib/unictype/pr_xid_start.c: New file.
40891         * lib/unictype/pr_zero_width.c: New file.
40892         * lib/unictype/scripts.c: New file.
40893         * lib/unictype/sy_c_ident.c: New file.
40894         * lib/unictype/sy_c_whitespace.c: New file.
40895         * lib/unictype/sy_java_ident.c: New file.
40896         * lib/unictype/sy_java_whitespace.c: New file.
40897
40898         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
40899         Unicode 5.0.0.
40900         * lib/unictype/blocks.h: Likewise.
40901         * lib/unictype/categ_C.h: Likewise.
40902         * lib/unictype/categ_Cc.h: Likewise.
40903         * lib/unictype/categ_Cf.h: Likewise.
40904         * lib/unictype/categ_Cn.h: Likewise.
40905         * lib/unictype/categ_Co.h: Likewise.
40906         * lib/unictype/categ_Cs.h: Likewise.
40907         * lib/unictype/categ_L.h: Likewise.
40908         * lib/unictype/categ_Ll.h: Likewise.
40909         * lib/unictype/categ_Lm.h: Likewise.
40910         * lib/unictype/categ_Lo.h: Likewise.
40911         * lib/unictype/categ_Lt.h: Likewise.
40912         * lib/unictype/categ_Lu.h: Likewise.
40913         * lib/unictype/categ_M.h: Likewise.
40914         * lib/unictype/categ_Mc.h: Likewise.
40915         * lib/unictype/categ_Me.h: Likewise.
40916         * lib/unictype/categ_Mn.h: Likewise.
40917         * lib/unictype/categ_N.h: Likewise.
40918         * lib/unictype/categ_Nd.h: Likewise.
40919         * lib/unictype/categ_Nl.h: Likewise.
40920         * lib/unictype/categ_No.h: Likewise.
40921         * lib/unictype/categ_P.h: Likewise.
40922         * lib/unictype/categ_Pc.h: Likewise.
40923         * lib/unictype/categ_Pd.h: Likewise.
40924         * lib/unictype/categ_Pe.h: Likewise.
40925         * lib/unictype/categ_Pf.h: Likewise.
40926         * lib/unictype/categ_Pi.h: Likewise.
40927         * lib/unictype/categ_Po.h: Likewise.
40928         * lib/unictype/categ_Ps.h: Likewise.
40929         * lib/unictype/categ_S.h: Likewise.
40930         * lib/unictype/categ_Sc.h: Likewise.
40931         * lib/unictype/categ_Sk.h: Likewise.
40932         * lib/unictype/categ_Sm.h: Likewise.
40933         * lib/unictype/categ_So.h: Likewise.
40934         * lib/unictype/categ_Z.h: Likewise.
40935         * lib/unictype/categ_Zl.h: Likewise.
40936         * lib/unictype/categ_Zp.h: Likewise.
40937         * lib/unictype/categ_Zs.h: Likewise.
40938         * lib/unictype/categ_of.h: Likewise.
40939         * lib/unictype/combining.h: Likewise.
40940         * lib/unictype/ctype_alnum.h: Likewise.
40941         * lib/unictype/ctype_alpha.h: Likewise.
40942         * lib/unictype/ctype_blank.h: Likewise.
40943         * lib/unictype/ctype_cntrl.h: Likewise.
40944         * lib/unictype/ctype_digit.h: Likewise.
40945         * lib/unictype/ctype_graph.h: Likewise.
40946         * lib/unictype/ctype_lower.h: Likewise.
40947         * lib/unictype/ctype_print.h: Likewise.
40948         * lib/unictype/ctype_punct.h: Likewise.
40949         * lib/unictype/ctype_space.h: Likewise.
40950         * lib/unictype/ctype_upper.h: Likewise.
40951         * lib/unictype/ctype_xdigit.h: Likewise.
40952         * lib/unictype/decdigit.h: Likewise.
40953         * lib/unictype/digit.h: Likewise.
40954         * lib/unictype/mirror.h: Likewise.
40955         * lib/unictype/numeric.h: Likewise.
40956         * lib/unictype/pr_alphabetic.h: Likewise.
40957         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40958         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40959         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40960         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40961         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40962         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40963         * lib/unictype/pr_bidi_control.h: Likewise.
40964         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40965         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40966         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40967         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40968         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40969         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40970         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40971         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40972         * lib/unictype/pr_bidi_pdf.h: Likewise.
40973         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40974         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40975         * lib/unictype/pr_combining.h: Likewise.
40976         * lib/unictype/pr_composite.h: Likewise.
40977         * lib/unictype/pr_currency_symbol.h: Likewise.
40978         * lib/unictype/pr_dash.h: Likewise.
40979         * lib/unictype/pr_decimal_digit.h: Likewise.
40980         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40981         * lib/unictype/pr_deprecated.h: Likewise.
40982         * lib/unictype/pr_diacritic.h: Likewise.
40983         * lib/unictype/pr_extender.h: Likewise.
40984         * lib/unictype/pr_format_control.h: Likewise.
40985         * lib/unictype/pr_grapheme_base.h: Likewise.
40986         * lib/unictype/pr_grapheme_extend.h: Likewise.
40987         * lib/unictype/pr_grapheme_link.h: Likewise.
40988         * lib/unictype/pr_hex_digit.h: Likewise.
40989         * lib/unictype/pr_hyphen.h: Likewise.
40990         * lib/unictype/pr_id_continue.h: Likewise.
40991         * lib/unictype/pr_id_start.h: Likewise.
40992         * lib/unictype/pr_ideographic.h: Likewise.
40993         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40994         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40995         * lib/unictype/pr_ignorable_control.h: Likewise.
40996         * lib/unictype/pr_iso_control.h: Likewise.
40997         * lib/unictype/pr_join_control.h: Likewise.
40998         * lib/unictype/pr_left_of_pair.h: Likewise.
40999         * lib/unictype/pr_line_separator.h: Likewise.
41000         * lib/unictype/pr_logical_order_exception.h: Likewise.
41001         * lib/unictype/pr_lowercase.h: Likewise.
41002         * lib/unictype/pr_math.h: Likewise.
41003         * lib/unictype/pr_non_break.h: Likewise.
41004         * lib/unictype/pr_not_a_character.h: Likewise.
41005         * lib/unictype/pr_numeric.h: Likewise.
41006         * lib/unictype/pr_other_alphabetic.h: Likewise.
41007         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
41008         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
41009         * lib/unictype/pr_other_id_continue.h: Likewise.
41010         * lib/unictype/pr_other_id_start.h: Likewise.
41011         * lib/unictype/pr_other_lowercase.h: Likewise.
41012         * lib/unictype/pr_other_math.h: Likewise.
41013         * lib/unictype/pr_other_uppercase.h: Likewise.
41014         * lib/unictype/pr_paired_punctuation.h: Likewise.
41015         * lib/unictype/pr_paragraph_separator.h: Likewise.
41016         * lib/unictype/pr_pattern_syntax.h: Likewise.
41017         * lib/unictype/pr_pattern_white_space.h: Likewise.
41018         * lib/unictype/pr_private_use.h: Likewise.
41019         * lib/unictype/pr_punctuation.h: Likewise.
41020         * lib/unictype/pr_quotation_mark.h: Likewise.
41021         * lib/unictype/pr_radical.h: Likewise.
41022         * lib/unictype/pr_sentence_terminal.h: Likewise.
41023         * lib/unictype/pr_soft_dotted.h: Likewise.
41024         * lib/unictype/pr_space.h: Likewise.
41025         * lib/unictype/pr_terminal_punctuation.h: Likewise.
41026         * lib/unictype/pr_titlecase.h: Likewise.
41027         * lib/unictype/pr_unassigned_code_value.h: Likewise.
41028         * lib/unictype/pr_unified_ideograph.h: Likewise.
41029         * lib/unictype/pr_uppercase.h: Likewise.
41030         * lib/unictype/pr_variation_selector.h: Likewise.
41031         * lib/unictype/pr_white_space.h: Likewise.
41032         * lib/unictype/pr_xid_continue.h: Likewise.
41033         * lib/unictype/pr_xid_start.h: Likewise.
41034         * lib/unictype/pr_zero_width.h: Likewise.
41035         * lib/unictype/scripts.h: Likewise.
41036         * lib/unictype/scripts_byname.gperf: Likewise.
41037         * lib/unictype/sy_c_ident.h: Likewise.
41038         * lib/unictype/sy_c_whitespace.h: Likewise.
41039         * lib/unictype/sy_java_ident.h: Likewise.
41040         * lib/unictype/sy_java_whitespace.h: Likewise.
41041
41042         * lib/unictype/Makefile: New file.
41043         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
41044         glibc.
41045         * lib/unictype/3level.h: New file, copied from glibc.
41046         * lib/unictype/3levelbit.h: New file.
41047
41048 2007-11-11  Bruno Haible  <bruno@clisp.org>
41049
41050         * modules/gperf: New file.
41051         * modules/iconv_open (Depends-on): Add it.
41052         (Makefile.am): Remove the GPERF definition.
41053
41054 2007-11-11  Bruno Haible  <bruno@clisp.org>
41055
41056         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
41057         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
41058
41059 2007-11-11  Bruno Haible  <bruno@clisp.org>
41060
41061         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
41062         (usage): Remove function.
41063
41064 2007-11-11  Bruno Haible  <bruno@clisp.org>
41065
41066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
41067         gl_FUNC_CEILF_LIBS.
41068         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
41069         gl_FUNC_CEIL_LIBS.
41070         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
41071         gl_FUNC_CEILL_LIBS.
41072         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
41073         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
41074         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
41075
41076 2007-11-11  Bruno Haible  <bruno@clisp.org>
41077
41078         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
41079         roundf were declared but do not exist on functions.
41080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
41081         roundl were declared but do not exist on functions.
41082         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
41083         HAVE_FLOORL_AND_CEILL, respectively.
41084         Needed for Sun C on Solaris 10.
41085
41086 2007-11-11  Bruno Haible  <bruno@clisp.org>
41087
41088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
41089         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
41090         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
41091         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
41092         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
41093         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
41094         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
41095         HAVE_DECL_ROUNDF.
41096         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
41097         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
41098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
41099         of HAVE_DECL_ROUND*.
41100         * modules/math (Makefile.am): Update.
41101
41102 2007-11-10  Bruno Haible  <bruno@clisp.org>
41103
41104         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
41105         ptrdiff_t as m4/intl.m4.
41106
41107 2007-11-10  Jim Meyering  <meyering@redhat.com>
41108
41109         Avoid link failure for the argmatch test.
41110         * tests/test-argmatch.c (usage): Define function to avoid a link
41111         failure: argmatch_die requires a usage function.
41112
41113 2007-11-09  Bruno Haible  <bruno@clisp.org>
41114
41115         * doc/functions/snprintf.texi: Mention BeOS deficiency.
41116         * doc/functions/vsnprintf.texi: Likewise.
41117         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
41118         with a size argument < 2.
41119
41120 2007-11-09  Bruno Haible  <bruno@clisp.org>
41121
41122         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
41123         buffer. Fixes an inefficiency introduced on 2007-11-03.
41124
41125 2007-11-09  Bruno Haible  <bruno@clisp.org>
41126
41127         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
41128         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
41129
41130 2007-11-08  Jim Meyering  <meyering@redhat.com>
41131
41132         Change cache variable name prefix "jm_" to "gl_" everywhere.
41133         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
41134         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
41135         * m4/uptime.m4: s/gl_/jm_/
41136
41137 2007-11-07  Bruno Haible  <bruno@clisp.org>
41138
41139         Update to GNU gettext 0.17.
41140         * m4/intl.m4: Update to GNU gettext 0.17.
41141         * m4/po.m4: Likewise.
41142         * modules/gettext (Files): Remove m4/ulonglong.m4.
41143         (configure.ac): Require gettext infrastructure from version 0.17.
41144
41145 2007-11-06  Bruno Haible  <bruno@clisp.org>
41146
41147         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
41148         symbolic values are not defined in a public header.
41149         * lib/freadable.c (freadable) [QNX]: Likewise.
41150         * lib/freadahead.c (freadahead) [QNX]: Likewise.
41151         * lib/freading.c (freading) [QNX]: Likewise.
41152         * lib/fseterr.c (fseterr) [QNX]: Likewise.
41153         * lib/fwritable.c (fwritable) [QNX]: Likewise.
41154         * lib/fwriting.c (fwriting) [QNX]: Likewise.
41155         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
41156         Reported by Alain Magloire.
41157
41158         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
41159
41160 2007-11-05  Bruno Haible  <bruno@clisp.org>
41161
41162         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
41163         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
41164         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
41165         Reported by Eric Blake.
41166
41167 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41168             Bruno Haible  <bruno@clisp.org>
41169
41170         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
41171         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
41172         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
41173         (malloc): Undefine also before including <stdlib.h>.
41174         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
41175         Needed on OSF/1 4.0.
41176
41177 2007-11-05  Jim Meyering  <meyering@redhat.com>
41178
41179         git-version-gen: sync from coreutils.
41180         * build-aux/git-version-gen: Add comments.
41181         Change the first '-' to '.' in the snapshot version string,
41182         e.g., 6.9-377-08144 -> 6.9.377-08144
41183         Remove first parameter.
41184         Don't declare a version "-dirty" merely because a time
41185         stamp has changed.
41186
41187 2007-11-04  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/lock.h: Protect all macro definitions containing an 'if'
41190         statement through a "do { ... } while (0)".
41191         * lib/tls.h: Likewise.
41192
41193 2007-11-04  Bruno Haible  <bruno@clisp.org>
41194
41195         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
41196
41197 2007-11-04  Bruno Haible  <bruno@clisp.org>
41198
41199         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
41200         * modules/fprintf-posix (Depends-on): Add nocrash.
41201         * modules/snprintf-posix (Depends-on): Likewise.
41202         * modules/sprintf-posix (Depends-on): Likewise.
41203         * modules/vasnprintf-posix (Depends-on): Likewise.
41204         * modules/vasprintf-posix (Depends-on): Likewise.
41205         * modules/vfprintf-posix (Depends-on): Likewise.
41206         * modules/vsnprintf-posix (Depends-on): Likewise.
41207         * modules/vsprintf-posix (Depends-on): Likewise.
41208         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41209         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41210         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41211         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41212         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41213         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41214         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41215
41216 2007-11-04  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/nocrash: New file.
41219         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
41220         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
41221
41222 2007-11-04  Bruno Haible  <bruno@clisp.org>
41223
41224         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
41225         precision handling.
41226         * tests/test-vasprintf-posix.c (test_function): Likewise.
41227         * tests/test-snprintf-posix.h (test_function): Likewise.
41228         * tests/test-sprintf-posix.h (test_function): Likewise.
41229
41230         Fix *printf behaviour for large precisions on mingw and BeOS.
41231         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
41232         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
41233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
41234         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41235         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41236         gl_PRINTF_PRECISION and test its result. Invoke
41237         gl_PREREQ_VASNPRINTF_PRECISION.
41238         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41242         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41244         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41245         * doc/functions/fprintf.texi: Update.
41246         * doc/functions/printf.texi: Update.
41247         * doc/functions/snprintf.texi: Update.
41248         * doc/functions/sprintf.texi: Update.
41249         * doc/functions/vfprintf.texi: Update.
41250         * doc/functions/vprintf.texi: Update.
41251         * doc/functions/vsnprintf.texi: Update.
41252         * doc/functions/vsprintf.texi: Update.
41253
41254 2007-11-04  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
41257
41258 2007-11-04  Bruno Haible  <bruno@clisp.org>
41259
41260         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
41261         Reported by Sylvain Beucler <beuc@gnu.org>.
41262
41263 2007-11-03  Bruno Haible  <bruno@clisp.org>
41264
41265         * tests/test-fprintf-posix2.sh: New file.
41266         * tests/test-fprintf-posix2.c: New file.
41267         * modules/fprintf-posix-tests (Files): Add them.
41268         (TESTS): Add test-fprintf-posix2.sh.
41269         (configure.ac): Check for getrlimit and setrlimit.
41270         (check_PROGRAMS): Add test-fprintf-posix2.
41271
41272         * tests/test-printf-posix2.sh: New file.
41273         * tests/test-printf-posix2.c: New file.
41274         * modules/printf-posix-tests (Files): Add them.
41275         (TESTS): Add test-printf-posix2.sh.
41276         (configure.ac): Check for getrlimit and setrlimit.
41277         (check_PROGRAMS): Add test-printf-posix2.
41278
41279         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
41280         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
41281         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
41282         (decode_double): New function, copied from decode_long_double.
41283         (scale10_round_decimal_decoded): New function, extracted from
41284         scale10_round_decimal_long_double.
41285         (scale10_round_decimal_long_double): Use it.
41286         (scale10_round_decimal_double): New function.
41287         (floorlog10): New function.
41288         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
41289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
41290         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41291         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41292         gl_PRINTF_ENOMEM and test its result. Invoke
41293         gl_PREREQ_VASNPRINTF_ENOMEM.
41294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41301         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
41302         * modules/snprintf-posix (Depends-on): Likewise.
41303         * modules/sprintf-posix (Depends-on): Likewise.
41304         * modules/vasnprintf-posix (Depends-on): Likewise.
41305         * modules/vasprintf-posix (Depends-on): Likewise.
41306         * modules/vfprintf-posix (Depends-on): Likewise.
41307         * modules/vsnprintf-posix (Depends-on): Likewise.
41308         * modules/vsprintf-posix (Depends-on): Likewise.
41309         * doc/functions/fprintf.texi: Update.
41310         * doc/functions/printf.texi: Update.
41311         * doc/functions/snprintf.texi: Update.
41312         * doc/functions/sprintf.texi: Update.
41313         * doc/functions/vfprintf.texi: Update.
41314         * doc/functions/vprintf.texi: Update.
41315         * doc/functions/vsnprintf.texi: Update.
41316         * doc/functions/vsprintf.texi: Update.
41317
41318 2007-11-03  Bruno Haible  <bruno@clisp.org>
41319
41320         * modules/frexp-nolibm-tests: New file.
41321
41322         * modules/frexp-nolibm: New file.
41323         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
41324
41325 2007-11-03  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
41328         value is C99 compliant.
41329         Needed for OSF/1 5.1.
41330
41331 2007-11-03  Bruno Haible  <bruno@clisp.org>
41332
41333         Fix out-of-memory handling of vasnprintf.
41334         * lib/printf-parse.c: Include <errno.h>.
41335         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
41336         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
41337         is already set.
41338
41339 2007-11-02  Eric Blake  <ebb9@byu.net>
41340
41341         Fix tests on cygwin.
41342         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
41343
41344 2007-11-01  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
41347         warning.
41348         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
41349         needed for POSIX compatibility.
41350
41351 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41352
41353         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
41354         for compatibility with GNU.
41355
41356 2007-11-01  Bruno Haible  <bruno@clisp.org>
41357
41358         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
41359         (putenv): Renamed from rpl_putenv. Change argument type from
41360         'const char *' to 'char *'.
41361         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
41362         of defining putenv in config.h, just set REPLACE_PUTENV.
41363         * modules/putenv (Depends-on): Add stdlib.
41364         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41365         (Include): Use <stdlib.h>.
41366         * lib/stdlib.in.h (putenv): New declaration.
41367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
41368         REPLACE_PUTENV.
41369         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
41370         REPLACE_PUTENV.
41371         Needed for MacOS X 10.5.0.
41372         Reported by Peter O'Gorman <peter@pogma.com>.
41373
41374 2007-11-01  Jim Meyering  <meyering@redhat.com>
41375
41376         Treat an empty date string exactly like "0".
41377         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
41378         if the remaining date string (to be parsed) is empty, use "0".
41379         Reported by Mischa Molhoek and discussed in this thread:
41380         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
41381
41382 2007-10-31  Bruno Haible  <bruno@clisp.org>
41383
41384         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
41385         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
41386         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
41387         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
41388         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
41389         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
41390
41391 2007-10-31  Bruno Haible  <bruno@clisp.org>
41392
41393         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
41394         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
41395         (AC_TYPE_LONG_LONG_INT): Use it.
41396         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
41397         it as well.
41398         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
41399         to m4/longlong.m4.
41400         * modules/stdint (Files): Remove m4/ulonglong.m4.
41401         * modules/strtoull (Files): Use m4/longlong.m4 instead of
41402         m4/ulonglong.m4.
41403         * modules/strtoumax (Files): Likewise.
41404
41405 2007-10-30  Bruno Haible  <bruno@clisp.org>
41406
41407         * modules/xvasprintf-posix: New file.
41408         Suggested by Eric Blake.
41409
41410 2007-10-30  Bruno Haible  <bruno@clisp.org>
41411
41412         * modules/xprintf-posix-tests: New file.
41413         * tests/test-xprintf-posix.sh: New file.
41414         * tests/test-xprintf-posix.c: New file.
41415         * tests/test-xfprintf-posix.c: New file.
41416
41417         * modules/xprintf-posix: New file.
41418
41419 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41420
41421         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
41422         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
41423         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
41424
41425 2007-10-29  Bruno Haible  <bruno@clisp.org>
41426
41427         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
41428         contain the special marker '_cv_'.
41429         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41430         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41431         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41432         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
41433         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41434         Reported by Ralf Wildenhues.
41435
41436 2007-10-29  Bruno Haible  <bruno@clisp.org>
41437
41438         * gnulib-tool (func_import): When --lgpl is not specified, set
41439         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
41440         GPLv3.
41441         Reported by Simon Josefsson.
41442
41443 2007-10-28  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
41446         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
41447         HAVE_DECL_ISFINITE.
41448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41449         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
41450         HAVE_DECL_ISFINITE.
41451
41452 2007-10-28  Bruno Haible  <bruno@clisp.org>
41453
41454         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
41455         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
41456
41457 2007-10-28  Bruno Haible  <bruno@clisp.org>
41458
41459         Fix link errors with Sun C 5.0 on Solaris 10.
41460         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
41461         function is declared but not present in the compiler's libm.
41462         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
41463         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41464         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
41465         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
41466         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
41467         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
41468         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
41469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
41470         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
41471         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
41472         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
41473         HAVE_DECL_FLOORL.
41474
41475 2007-10-28  Bruno Haible  <bruno@clisp.org>
41476
41477         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
41478         gl_FUNC_FLOORL. Cache the result.
41479         (gl_FUNC_FLOORL): Use it.
41480         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
41481         gl_FUNC_CEILL. Cache the result.
41482         (gl_FUNC_CEILL): Use it.
41483
41484         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
41485         gl_FUNC_FLOOR. Cache the result.
41486         (gl_FUNC_FLOOR): Use it.
41487         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
41488         gl_FUNC_CEIL. Cache the result.
41489         (gl_FUNC_CEIL): Use it.
41490
41491         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
41492         gl_FUNC_FLOORF. Cache the result.
41493         (gl_FUNC_FLOORF): Use it.
41494         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
41495         gl_FUNC_CEILF. Cache the result.
41496         (gl_FUNC_CEILF): Use it.
41497
41498 2007-10-28  Bruno Haible  <bruno@clisp.org>
41499
41500         * gnulib-tool: Allow specifying the LGPL version number through
41501         --lgpl=2 or --lgpl=3.
41502         (func_usage): Document --lgpl with argument.
41503         Handle --lgpl=... arguments.
41504         (func_import): Recognize also gl_LGPL calls with an argument. When
41505         --lgpl=2 is used and the module's license is just LGPL, report an
41506         error. Set sed_transform_lib_file according to the lgpl variable. In
41507         the generated files, use --lgpl or gl_LGPL invocations with argument,
41508         if necessary.
41509         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
41510         an LGPv2+ license.
41511         * doc/gnulib-tool.texi (Modified imports): Update explanation of
41512         gl_LGPL macro.
41513
41514 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41515             Bruno Haible  <bruno@clisp.org>
41516
41517         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
41518         (u16_uctomb_aux): Likewise.
41519         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
41520         !HAVE_INLINE.
41521         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
41522
41523 2007-10-28  Bruno Haible  <bruno@clisp.org>
41524
41525         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
41526         Invoke AM_GETTEXT_OPTION if it exists.
41527         * modules/vasprintf: Likewise.
41528         * modules/verror: Likewise.
41529         * modules/xprintf: Likewise.
41530         * modules/xvasprintf: Likewise.
41531
41532 2007-10-27  Ben Pfaff  <blp@gnu.org>
41533
41534         * lib/math.in.h: Define isfinite macro and prototypes for
41535         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
41536         implementations.
41537         * m4/math_h.m4: New substitutions for isfinite module.
41538         * lib/isfinite.c: New file.
41539         * m4/isfinite.m4: New file.
41540         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
41541         * modules/isfinite: New file.
41542         * modules/isfinite-tests: New file.
41543         * tests/tests-isfinite.c: New file.
41544         * doc/functions/isfinite.texi: Mention isfinite module.
41545         * MODULES.html.sh: Mention new module.
41546
41547 2007-10-27  Ben Pfaff  <blp@gnu.org>
41548
41549         Ralf Wildenhues reported that Tru64 4.0D declares the round
41550         functions but does not have definitions.
41551         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
41552         cannot be found in any library, set the output variable to
41553         "missing" instead of "".
41554         * m4/round.m4: Also use our substitute if we cannot find round in
41555         any library, even if it is declared.
41556         * m4/roundf.m4: Likewise for roundf.
41557         * m4/roundl.m4: Likewise for roundl.
41558         * lib/math.in.h: Undefine roundf, round, roundl before defining
41559         their replacements, to allow for hypothetical systems where these
41560         may be defined as macros but not available in libraries.
41561
41562 2007-10-27  Bruno Haible  <bruno@clisp.org>
41563
41564         * doc/gnulib.texi: Invoke @firstparagraphindent.
41565         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
41566         changes in gnulib.
41567         (Source changes): New section.
41568
41569 2007-10-26  Bruno Haible  <bruno@clisp.org>
41570
41571         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
41572         borrowed from autoconf.
41573
41574 2007-10-26  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
41577         strerror returned the empty string. Needed on HP-UX 11.00.
41578
41579 2007-10-24  Micah Cowan  <micah@cowan.name>
41580
41581         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
41582         * build-aux/bootstrap: Remove support for now-unnecessary option,
41583         --cvs-user, and envvars CVS_USER, CVS_RSH.
41584
41585 2007-10-24  Jim Meyering  <meyering@redhat.com>
41586
41587         Avoid diagnostics from sha1sum when there is no cached checksum.
41588         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
41589         if the po.s1 file hasn't been created yet.
41590
41591         * build-aux/bootstrap: Sync from coreutils:
41592         2007-10-24  Jim Meyering  <meyering@redhat.com>
41593         Get gnulib from the git repository, not from an obsolete cvs one.
41594         * build-aux/bootstrap: Suggestion from Micah Cowan.
41595         2007-10-04  Jim Meyering  <jim@meyering.net>
41596         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
41597         (update_po_files): Work also when there are no .po files in po/.
41598
41599 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41600
41601         * README: Append ".git" to git and cg examples.
41602         Problem reported by Benoit Sigoure.
41603
41604 2007-10-23  Micah Cowan  <micah@cowan.name>
41605
41606         * users.txt: Add wget.
41607
41608 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41609
41610         Fix linking of some unistdio tests on FreeBSD.
41611         * modules/unistdio/u16-vsnprintf-tests
41612         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
41613         * modules/unistdio/u16-vsprintf-tests
41614         (test_u16_vsnprintf1_LDADD): Likewise.
41615         * modules/unistdio/u32-vsnprintf-tests
41616         (test_u32_vsnprintf1_LDADD): Likewise.
41617         * modules/unistdio/u32-vsprintf-tests
41618         (test_u32_vsprintf1_LDADD): Likewise.
41619         * modules/unistdio/u8-vsnprintf-tests
41620         (test_u8_vsnprintf1_LDADD): Likewise.
41621         * modules/unistdio/u8-vsprintf-tests
41622         (test_u8_vsprintf1_LDADD): Likewise.
41623         * modules/unistdio/ulc-vsnprintf-tests
41624         (test_ulc_vsnprintf1_LDADD): Likewise.
41625         * modules/unistdio/ulc-vsprintf-tests
41626         (test_ulc_vsprintf1_LDADD): Likewise.
41627
41628         Fix linking of some uniconv tests on FreeBSD.
41629         * modules/uniconv/u16-conv-from-enc-tests
41630         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
41631         * modules/uniconv/u16-conv-to-enc-tests
41632         (test_u16_conv_to_enc_LDADD): Likewise.
41633         * modules/uniconv/u16-strconv-from-enc-tests
41634         (test_u16_strconv_from_enc_LDADD): Likewise.
41635         * modules/uniconv/u16-strconv-to-enc-tests
41636         (test_u16_strconv_to_enc_LDADD): Likewise.
41637         * modules/uniconv/u32-conv-from-enc-tests
41638         (test_u32_conv_from_enc_LDADD): Likewise.
41639         * modules/uniconv/u32-conv-to-enc-tests
41640         (test_u32_conv_to_enc_LDADD): Likewise.
41641         * modules/uniconv/u32-strconv-from-enc-tests
41642         (test_u32_strconv_from_enc_LDADD): Likewise.
41643         * modules/uniconv/u32-strconv-to-enc-tests
41644         (test_u32_strconv_to_enc_LDADD): Likewise.
41645         * modules/uniconv/u8-conv-from-enc-tests
41646         (test_u8_conv_from_enc_LDADD): Likewise.
41647         * modules/uniconv/u8-conv-to-enc-tests
41648         (test_u8_conv_to_enc_LDADD): Likewise.
41649         * modules/uniconv/u8-strconv-from-enc-tests
41650         (test_u8_strconv_from_enc_LDADD): Likewise.
41651         * modules/uniconv/u8-strconv-to-enc-tests
41652         (test_u8_strconv_to_enc_LDADD): Likewise.
41653
41654 2007-10-22  Bruno Haible  <bruno@clisp.org>
41655
41656         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
41657         size.
41658
41659 2007-10-22  Eric Blake  <ebb9@byu.net>
41660
41661         Tweak x*printf documentation.
41662         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
41663         variable name and comments.
41664         Suggested by Bruno Haible.
41665
41666 2007-10-22  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/acl.c (copy_acl): Fix file name in comment.
41669
41670 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41671
41672         Fix Tru64 problem with stdbool.h.
41673         * lib/stdbool.in.h (false, true):
41674         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
41675         Don't declare as an enum in this situation; it runs afoul of Tru64.
41676         Problem reported by Steven M. Schweda in
41677         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
41678
41679 2007-10-22  Eric Blake  <ebb9@byu.net>
41680
41681         Also wrap vf?printf.
41682         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
41683         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
41684         (xvprintf, xvfprintf): New functions.
41685
41686 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41687
41688         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
41689         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
41690
41691         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
41692         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
41693
41694 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
41695
41696         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
41697         by Bruno Haible.
41698
41699 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41700
41701         * lib/getloadavg.c
41702         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
41703         Undef `sys' after including sys/table.h, for Tru64 4.0D.
41704
41705         * tests/test-i-ring.c: Work for C89.
41706
41707 2007-10-22  Bruno Haible  <bruno@clisp.org>
41708
41709         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
41710         -1u, in preprocessor expression, so that we don't test for the bug
41711         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
41712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
41713
41714 2007-10-22  Eric Blake  <ebb9@byu.net>
41715
41716         * tests/test-yesno.sh: Silence stderr during test.
41717
41718 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41719
41720         * modules/crypto/gc-camellia: New file.
41721
41722         * m4/gc-camellia.m4: New file.
41723
41724         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
41725
41726         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
41727
41728 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41729
41730         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
41731         --help to stdout.  Reported by sms@antinode.org (Steven
41732         M. Schweda).
41733
41734 2007-10-22  Simon Josefsson  <simon@josefsson.org>
41735
41736         * users.txt: Fix link to libksba.
41737
41738 2007-10-21  Ben Pfaff  <blp@gnu.org>
41739
41740         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
41741         round.c roundf implementation that depends on floorf and ceilf to
41742         be tested unconditionally.
41743
41744 2007-10-21  Ben Pfaff  <blp@gnu.org>
41745
41746         * m4/check-libm-func.m4: Removed.
41747         * m4/check-math-lib.m4: New file.
41748         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
41749         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
41750         definition and lack of AC_LIBOBJ([roundf]).
41751         * m4/roundl.m4: Ditto, and similarly for roundl.
41752         * modules/round: Reference new m4 file.
41753         * modules/roundf: Ditto.
41754         * modules/roundl: Ditto.
41755         * tests/test-round2.c (main): Use ROUND instead of round.
41756         Bug report from Bruno Haible.
41757
41758 2007-10-21  Bruno Haible  <bruno@clisp.org>
41759
41760         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
41761         context.
41762
41763 2007-10-21  Bruno Haible  <bruno@clisp.org>
41764
41765         * tests/test-wcwidth.c (main): Allow negative result for some control
41766         characters.
41767
41768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
41769         Needed on OSF/1 5.1.
41770
41771 2007-10-21  Bruno Haible  <bruno@clisp.org>
41772
41773         * tests/test-floorf1.c: Include isnanf.h.
41774         (main): Use isnanf() instead of isnan().
41775         * tests/test-ceilf1.c: Include isnanf.h.
41776         (main): Use isnanf() instead of isnan().
41777         * tests/test-truncf1.c: Include isnanf.h.
41778         (main): Use isnanf() instead of isnan().
41779         * tests/test-roundf1.c: Include isnanf.h.
41780         (main): Use isnanf() instead of isnan().
41781
41782 2007-10-21  Eric Blake  <ebb9@byu.net>
41783
41784         * users.txt: Update URL for m4.
41785
41786 2007-10-21  Bruno Haible  <bruno@clisp.org>
41787
41788         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
41789
41790 2007-10-21  Bruno Haible  <bruno@clisp.org>
41791
41792         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
41793         Git's management files if the CVS files are not present.
41794
41795 2007-10-20  Bruno Haible  <bruno@clisp.org>
41796
41797         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
41798         gcc-3.4.x.
41799
41800 2007-10-20  Ben Pfaff  <blp@gnu.org>
41801
41802         * lib/math.in.h: Declare round, roundf, roundl if we are providing
41803         implementations.
41804         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
41805         * lib/round.c: New file.
41806         * lib/roundf.c: New file.
41807         * lib/roundl.c: New file.
41808         * m4/round.m4: New file.
41809         * m4/roundf.m4: New file.
41810         * m4/roundl.m4: New file.
41811         * m4/check-libm-func-m4: New file.
41812         * modules/math: Replace round, roundf, roundl related @VARS@ in
41813         math.in.h.
41814         * modules/round: New file.
41815         * modules/round-tests: New file.
41816         * modules/roundf: New file.
41817         * modules/roundf-tests: New file.
41818         * modules/roundl: New file.
41819         * modules/roundl-tests: New file.
41820         * tests/test-round1.c: New file.
41821         * tests/test-round2.c: New file.
41822         * tests/test-roundf1.c: New file.
41823         * tests/test-roundf2.c: New file.
41824         * tests/test-roundl.c: New file.
41825         * doc/functions/round.texi: Mention round module.
41826         * doc/functions/roundf.texi: Mention roundf module.
41827         * doc/functions/roundl.texi: Mention roundl module.
41828         * MODULES.html.sh: Mention new modules.
41829         Thanks to Bruno Haible for suggestions.
41830
41831 2007-10-20  Jim Meyering  <meyering@redhat.com>
41832
41833         * lib/xprintf.c: Include <config.h> unconditionally.
41834
41835         Change xprintf's license to GPL.
41836         * modules/xprintf (License): s/LGPL/GPL/, since this module
41837         depends on modules (exit and exitfail) which are GPL.
41838         Suggestion from Bruno Haible.
41839
41840         xprintf fixes.
41841         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
41842         Use a clearer diagnostic.
41843         Patch from Bruno Haible.
41844
41845 2007-10-20  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
41848         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
41849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41850
41851 2007-10-20  Bruno Haible  <bruno@clisp.org>
41852
41853         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
41854         precision in the comparison result > x - 1 or similar.
41855         * tests/test-ceilf2.c (correct_result_p): Likewise.
41856         * tests/test-truncf2.c (correct_result_p): Likewise.
41857         * tests/test-trunc2.c (correct_result_p): Likewise.
41858         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41859
41860 2007-10-20  Bruno Haible  <bruno@clisp.org>
41861
41862         * modules/ceil: New file.
41863         * m4/ceil.m4: New file.
41864         * doc/functions/ceil.texi: Mention the 'ceil' module.
41865
41866 2007-10-20  Bruno Haible  <bruno@clisp.org>
41867
41868         * modules/floor: New file.
41869         * m4/floor.m4: New file.
41870         * doc/functions/floor.texi: Mention the 'floor' module.
41871
41872 2007-10-20  Bruno Haible  <bruno@clisp.org>
41873
41874         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
41875         of %a.
41876         * modules/floorf-tests (Depends-on): Likewise.
41877         * modules/truncf-tests (Depends-on): Likewise.
41878         * modules/trunc-tests (Depends-on): Likewise.
41879         Reported by Ben Pfaff.
41880
41881 2007-10-19  Jim Meyering  <meyering@redhat.com>
41882
41883         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
41884         Don't bother testing specific errno values.  Just test ferror.
41885
41886         New module: xprintf
41887         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
41888
41889 2007-10-19  Bruno Haible  <bruno@clisp.org>
41890
41891         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
41892         syntax.
41893         * modules/javaexec (Makefile.am): Likewise.
41894         * modules/relocatable-prog (Makefile.am): Likewise.
41895         Suggested by Jim Meyering.
41896
41897 2007-10-18  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
41900         Reported by Jim Meyering.
41901
41902 2007-10-18  Eric Blake  <ebb9@byu.net>
41903
41904         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
41905
41906 2007-10-18  Bruno Haible  <bruno@clisp.org>
41907
41908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
41909         the format string into writable memory. Needed in Fortify conditions.
41910
41911 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
41912             Bruno Haible  <bruno@clisp.org>
41913
41914         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
41915         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
41916         * modules/trim (Depends-on): Add mbchar.
41917         (configure.ac): Add gl_FUNC_MBRTOWC.
41918         (Makefile.am): Augment lib_SOURCES.
41919
41920 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41921
41922         Modify glob.c to use fstatat and dirfd, to simplify it.
41923         Suggested by Eric Blake.
41924         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
41925         Don't include <stdbool.h>; not used.
41926         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
41927         (link_exists_p): Simplify implementation, since we can now assume
41928         dirfd and fstatat.
41929         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
41930
41931 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41932
41933         * gnulib-tool (func_get_dependencies): Fix sed script to
41934         match only tests.
41935
41936 2007-10-17  Bruno Haible  <bruno@clisp.org>
41937
41938         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
41939         allow locale names without encoding suffix.
41940         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41942
41943 2007-10-16  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
41946         * lib/getgroups.c (getgroups): Likewise.
41947         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
41948
41949 2007-10-16  Bruno Haible  <bruno@clisp.org>
41950
41951         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
41952         * modules/malloc-posix (License): Likewise.
41953         * modules/realloc-posix (License): Likewise.
41954         * modules/calloc-posix (License): Likewise.
41955         * modules/intprops (License): Change from GPL to LGPL, with
41956         Paul Eggert's approval.
41957
41958 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41959
41960         Merge glibc changes into lib/glob.c.
41961
41962         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
41963         2007-10-15 04:59:03 UTC.  Here are the changes:
41964
41965         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
41966
41967         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
41968
41969         * lib/glob.c: Add some branch prediction throughout.
41970
41971         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
41972
41973         [BZ #5103]
41974         * lib/glob.c (glob): Recognize patterns starting \/.
41975
41976         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
41977
41978         [BZ #3996]
41979         * lib/glob.c (attribute_hidden): Define if not defined.
41980         (glob): Unescape dirname, filename or username when needed and not
41981         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
41982         is NULL.  Handle unescaped [ in pattern without closing ].
41983         Don't pass GLOB_CHECK down to recursive glob for directories.
41984         (__glob_pattern_type): New function.
41985         (__glob_pattern_p): Implement using __glob_pattern_type.
41986         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
41987         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
41988         Remove unreachable code.
41989
41990         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
41991
41992         * lib/glob.c (glob_in_dir): Add some comments and asserts to
41993         explain why there are no leaks.
41994
41995         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
41996
41997         [BZ #3253]
41998         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
41999         time, rather allocate increasingly bigger arrays of pointers, if
42000         possible with alloca, if too large with malloc.
42001
42002 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42003
42004         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
42005         Problem reported by H.Merijn Brand in
42006         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
42007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
42008         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42009
42010 2007-10-15  Bruno Haible  <bruno@clisp.org>
42011
42012         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
42013         with explicit rpl_ prefix.
42014         * lib/fopen.c (fopen): Likewise.
42015         * lib/freopen.c (freopen): Likewise.
42016         * lib/iconv.c (iconv): Likewise.
42017         * lib/iconv_close.c (iconv_close): Likewise.
42018
42019 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42020
42021         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
42022
42023 2007-10-15  Bruno Haible  <bruno@clisp.org>
42024
42025         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
42026         <stddef.h> instead of <stdlib.h> since we only need NULL.
42027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42028
42029 2007-10-15  Bruno Haible  <bruno@clisp.org>
42030
42031         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
42032         Replace paragraph talking about LIBOBJS.
42033         Reported by Colin Watson <cjwatson@debian.org>.
42034
42035 2007-10-15  Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
42038         <stdlib.h> before using NULL.
42039
42040 2007-10-15  Simon Josefsson  <simon@josefsson.org>
42041
42042         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
42043         Reported by Albert Chin <china@thewrittenword.com>.
42044
42045 2007-10-14  Bruno Haible  <bruno@clisp.org>
42046
42047         * modules/iconv_open-utf-tests: New file.
42048         * tests/test-iconv-utf.c: New file.
42049
42050         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
42051         * modules/iconv_open-utf: New file.
42052         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
42053         (iconv, iconv_close): New declarations.
42054         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
42055         be defined.
42056         (iconv_open): Add special handling of conversion between UTF-8 and
42057         UTF-{16,32}{BE,LE}.
42058         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
42059         * lib/iconv_close.c: New file.
42060         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
42061         gl_FUNC_ICONV_OPEN.
42062         (gl_FUNC_ICONV_OPEN): Use it.
42063         (gl_FUNC_ICONV_OPEN_UTF): New macro.
42064         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
42065         and REPLACE_ICONV_UTF.
42066         * modules/iconv_open (Depends-on): Add c-strcase.
42067         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
42068         ICONV_CONST.
42069         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
42070
42071 2007-10-13  Albert Chin  <china@thewrittenword.com>
42072             Bruno Haible  <bruno@clisp.org>
42073
42074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
42075         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
42076
42077 2007-10-13  Bruno Haible  <bruno@clisp.org>
42078
42079         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
42080         defined, use the ISO C99 inline semantics.
42081         * lib/argp.h (ARGP_EI): Likewise.
42082
42083 2007-10-13  Bruno Haible  <bruno@clisp.org>
42084
42085         Handle 'inline' change in gcc 4.3.0.
42086         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
42087         argp_fmtstream_write, argp_fmtstream_set_lmargin,
42088         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
42089         argp_fmtstream_point): Disable 'extern' declaration if the function
42090         definition is going to be provided inline.
42091         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
42092         semantics, not the ISO C99 inline semantics.
42093         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
42094         'extern' declaration if the function definition is going to be provided
42095         inline.
42096         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
42097         the GNU C inline semantics, not the ISO C99 inline semantics. With
42098         GCC 4.2, avoid a warning.
42099
42100 2007-10-13  Bruno Haible  <bruno@clisp.org>
42101
42102         * lib/freading.h (freading): Enable the use of __freading for
42103         glibc >= 2.7.
42104         * lib/freading.c (freading): Likewise.
42105
42106 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42107
42108         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
42109         "warning: C99 inline functions are not supported; using GNU89".
42110
42111 2007-10-12  Bruno Haible  <bruno@clisp.org>
42112
42113         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
42114         of 2.
42115         * tests/test-ceilf2.c: New file.
42116         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
42117
42118         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
42119         * modules/ceilf-tests: Update.
42120
42121 2007-10-12  Bruno Haible  <bruno@clisp.org>
42122
42123         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
42124         of 2.
42125         * tests/test-floorf2.c: New file.
42126         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
42127
42128         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
42129         * modules/floorf-tests: Update.
42130
42131 2007-10-12  Bruno Haible  <bruno@clisp.org>
42132
42133         * tests/test-trunc2.c: New file.
42134         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
42135
42136         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
42137         * modules/trunc-tests: Update.
42138
42139 2007-10-12  Bruno Haible  <bruno@clisp.org>
42140
42141         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
42142         of 2.
42143         * tests/test-truncf2.c: New file.
42144         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
42145
42146         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
42147         * modules/truncf-tests: Update.
42148
42149 2007-10-11  Eric Blake  <ebb9@byu.net>
42150
42151         Don't claim strerror is broken on Interix.
42152         * doc/functions/strerror.texi (strerror): Known broken systems are
42153         now Solaris 8, and not Interix.
42154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
42155         Interix on cross-compile.
42156         Reported by Martin Koeppe in
42157         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
42158
42159 2007-10-11  Bruno Haible  <bruno@clisp.org>
42160
42161         * modules/i-ring-tests: New file.
42162         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
42163         instead of assert.
42164
42165 2007-10-11  Bruno Haible  <bruno@clisp.org>
42166
42167         * modules/filenamecat-tests: New file.
42168         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
42169         * lib/filenamecat.c: Remove test code.
42170
42171 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42172
42173         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
42174
42175         * lib/strerror.c: Include <string.h> always, to test interface,
42176         and to remove the need for the dummy.
42177         Include intprops.h to compute width instead of doing it ourselves
42178         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
42179         (strerror): Define it to return NULL if there's no system strerror.
42180         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
42181         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
42182         ancient pre-strerror Unix systems well any more.  Saying "unknown
42183         system error" is enough.
42184         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
42185         simpler strerror.c implementation.
42186         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
42187         Simplify the tests to reflect the simpler strerror implementation.
42188         * modules/strerror (Depends-on): Add intprops.
42189
42190 2007-10-09  Eric Blake  <ebb9@byu.net>
42191
42192         Silence test-fpending.
42193         * modules/fpending-tests (Files): Add wrapper script.
42194         * tests/test-fpending.sh: New file.
42195
42196 2007-10-09  Bruno Haible  <bruno@clisp.org>
42197
42198         * MODULES.html.sh (func_module): Don't create a hyperlink for
42199         function names like 'printf_frexp'.
42200         (Misc): Add crc, memxor.
42201         (Characteristics of floating types): New section.
42202         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
42203         isnanf-nolibm, signbit, trunc, truncf, truncl.
42204         (Enhancements for ISO C 99 functions): New subsection Input/output.
42205         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
42206         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
42207         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
42208         (Compatibility checks for POSIX:2001 functions): Add clock-time.
42209         (Enhancements for POSIX:2001 functions): Add chdir-long.
42210         (File system functions): Add areadlink, chdir-safer, read-file.
42211         Remove cycle-check.
42212         (File system as inode set): New section.
42213         (Date and time): Add gethrxtime.
42214         (Multithreading): Add openmp.
42215         (Internationalization functions): Add localename.
42216         (Unicode string functions): Add unistr/u*-mbsnlen.
42217         (Support for maintaining and releasing projects): Add git-version-gen.
42218         (Lone files): Remove directories.
42219
42220 2007-10-08  Ben Pfaff  <blp@gnu.org>
42221
42222         * lib/xmalloca.h: Fix typo in comment.
42223
42224 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42225
42226         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
42227         when avoiding problems with integer overflow.  Use a portable test
42228         instead.
42229
42230 2007-10-08  Simon Josefsson  <simon@josefsson.org>
42231
42232         * modules/dummy (License): Change to LGPLv2+.
42233         * modules/float (License): Likewise
42234         * modules/realloc (License): Likewise
42235         * modules/stdlib (License): Likewise
42236
42237 2007-10-07  Bruno Haible  <bruno@clisp.org>
42238
42239         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
42240         * floor.c (TWO_MANT_DIG): Likewise.
42241         * ceil.c (TWO_MANT_DIG): Likewise.
42242         Reported by Ben Pfaff.
42243
42244 2007-10-07  Bruno Haible  <bruno@clisp.org>
42245
42246         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
42247         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
42248         * lib/frexp.c (FUNC): Likewise.
42249         * lib/printf-frexp.h (printf_frexp): Likewise.
42250         * lib/printf-frexpl.h (printf_frexpl): Likewise.
42251         * lib/printf-frexp.c (FUNC): Likewise.
42252         Suggested by Jim Meyering.
42253
42254 2007-10-07  Jim Meyering  <meyering@redhat.com>
42255
42256         Make xnanosleep's integer overflow test more robust.
42257         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
42258         so that gcc-4.3.0 doesn't optimize away this test for overflow.
42259
42260 2007-10-07  Bruno Haible  <bruno@clisp.org>
42261
42262         * NEWS: Mention the license change.
42263
42264         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
42265         abbreviations in the modules files.
42266
42267         Change copyright notice from GPLv2+ to GPLv3+.
42268         * README: Change copyright notice.
42269         * MODULES.html.sh: Likewise.
42270         * build-aux/bootstrap.conf: Likewise.
42271         * build-aux/config.libpath: Likewise.
42272         * build-aux/csharpcomp.sh.in: Likewise.
42273         * build-aux/csharpexec.sh.in: Likewise.
42274         * build-aux/install-reloc: Likewise.
42275         * build-aux/javacomp.sh.in: Likewise.
42276         * build-aux/javaexec.sh.in: Likewise.
42277         * build-aux/ldd.sh.in: Likewise.
42278         * build-aux/reloc-ldflags: Likewise.
42279         * build-aux/relocatable.sh.in: Likewise.
42280         * build-aux/x-to-1.in: Likewise.
42281         * check-module: Likewise.
42282         * config/srclistvars.sh: Likewise.
42283         * gnulib-tool: Likewise.
42284         * lib/acl-internal.h: Likewise.
42285         * lib/acl.c: Likewise.
42286         * lib/acl.h: Likewise.
42287         * lib/acl_entries.c: Likewise.
42288         * lib/areadlink-with-size.c: Likewise.
42289         * lib/areadlink.c: Likewise.
42290         * lib/areadlink.h: Likewise.
42291         * lib/argmatch.c: Likewise.
42292         * lib/argmatch.h: Likewise.
42293         * lib/argp-ba.c: Likewise.
42294         * lib/argp-eexst.c: Likewise.
42295         * lib/argp-fmtstream.c: Likewise.
42296         * lib/argp-fmtstream.h: Likewise.
42297         * lib/argp-fs-xinl.c: Likewise.
42298         * lib/argp-help.c: Likewise.
42299         * lib/argp-namefrob.h: Likewise.
42300         * lib/argp-parse.c: Likewise.
42301         * lib/argp-pin.c: Likewise.
42302         * lib/argp-pv.c: Likewise.
42303         * lib/argp-pvh.c: Likewise.
42304         * lib/argp-xinl.c: Likewise.
42305         * lib/argp.h: Likewise.
42306         * lib/at-func.c: Likewise.
42307         * lib/atanl.c: Likewise.
42308         * lib/backupfile.c: Likewise.
42309         * lib/backupfile.h: Likewise.
42310         * lib/basename.c: Likewise.
42311         * lib/binary-io.h: Likewise.
42312         * lib/byteswap.in.h: Likewise.
42313         * lib/c-stack.c: Likewise.
42314         * lib/c-stack.h: Likewise.
42315         * lib/c-strcasestr.c: Likewise.
42316         * lib/c-strcasestr.h: Likewise.
42317         * lib/c-strstr.c: Likewise.
42318         * lib/c-strstr.h: Likewise.
42319         * lib/c-strtod.c: Likewise.
42320         * lib/calloc.c: Likewise.
42321         * lib/canon-host.c: Likewise.
42322         * lib/canon-host.h: Likewise.
42323         * lib/canonicalize-lgpl.c: Likewise.
42324         * lib/canonicalize.c: Likewise.
42325         * lib/canonicalize.h: Likewise.
42326         * lib/ceil.c: Likewise.
42327         * lib/ceilf.c: Likewise.
42328         * lib/ceill.c: Likewise.
42329         * lib/chdir-long.c: Likewise.
42330         * lib/chdir-long.h: Likewise.
42331         * lib/chdir-safer.c: Likewise.
42332         * lib/chdir-safer.h: Likewise.
42333         * lib/chown.c: Likewise.
42334         * lib/classpath.c: Likewise.
42335         * lib/classpath.h: Likewise.
42336         * lib/clean-temp.c: Likewise.
42337         * lib/clean-temp.h: Likewise.
42338         * lib/cloexec.c: Likewise.
42339         * lib/close-stream.c: Likewise.
42340         * lib/closein.c: Likewise.
42341         * lib/closein.h: Likewise.
42342         * lib/closeout.c: Likewise.
42343         * lib/closeout.h: Likewise.
42344         * lib/concat-filename.c: Likewise.
42345         * lib/copy-file.c: Likewise.
42346         * lib/copy-file.h: Likewise.
42347         * lib/count-one-bits.h: Likewise.
42348         * lib/crc.c: Likewise.
42349         * lib/crc.h: Likewise.
42350         * lib/creat-safer.c: Likewise.
42351         * lib/csharpcomp.c: Likewise.
42352         * lib/csharpcomp.h: Likewise.
42353         * lib/csharpexec.c: Likewise.
42354         * lib/csharpexec.h: Likewise.
42355         * lib/cycle-check.c: Likewise.
42356         * lib/cycle-check.h: Likewise.
42357         * lib/diacrit.c: Likewise.
42358         * lib/diacrit.h: Likewise.
42359         * lib/diffseq.h: Likewise.
42360         * lib/dirchownmod.c: Likewise.
42361         * lib/dirent.in.h: Likewise.
42362         * lib/dirfd.c: Likewise.
42363         * lib/dirfd.h: Likewise.
42364         * lib/dirname.c: Likewise.
42365         * lib/dirname.h: Likewise.
42366         * lib/dummy.c: Likewise.
42367         * lib/dup-safer.c: Likewise.
42368         * lib/dup2.c: Likewise.
42369         * lib/eealloc.h: Likewise.
42370         * lib/error.c: Likewise.
42371         * lib/error.h: Likewise.
42372         * lib/euidaccess.c: Likewise.
42373         * lib/exclude.c: Likewise.
42374         * lib/exclude.h: Likewise.
42375         * lib/execute.c: Likewise.
42376         * lib/execute.h: Likewise.
42377         * lib/exitfail.c: Likewise.
42378         * lib/exitfail.h: Likewise.
42379         * lib/expl.c: Likewise.
42380         * lib/fatal-signal.c: Likewise.
42381         * lib/fatal-signal.h: Likewise.
42382         * lib/fbufmode.c: Likewise.
42383         * lib/fbufmode.h: Likewise.
42384         * lib/fchdir.c: Likewise.
42385         * lib/fchmodat.c: Likewise.
42386         * lib/fchownat.c: Likewise.
42387         * lib/fcntl--.h: Likewise.
42388         * lib/fcntl-safer.h: Likewise.
42389         * lib/fcntl.in.h: Likewise.
42390         * lib/fd-safer.c: Likewise.
42391         * lib/fflush.c: Likewise.
42392         * lib/file-has-acl.c: Likewise.
42393         * lib/file-set.c: Likewise.
42394         * lib/file-type.c: Likewise.
42395         * lib/file-type.h: Likewise.
42396         * lib/fileblocks.c: Likewise.
42397         * lib/filemode.c: Likewise.
42398         * lib/filemode.h: Likewise.
42399         * lib/filename.h: Likewise.
42400         * lib/filenamecat.c: Likewise.
42401         * lib/filenamecat.h: Likewise.
42402         * lib/findprog.c: Likewise.
42403         * lib/findprog.h: Likewise.
42404         * lib/float.in.h: Likewise.
42405         * lib/floor.c: Likewise.
42406         * lib/floorf.c: Likewise.
42407         * lib/floorl.c: Likewise.
42408         * lib/fopen-safer.c: Likewise.
42409         * lib/fopen.c: Likewise.
42410         * lib/fpending.c: Likewise.
42411         * lib/fpending.h: Likewise.
42412         * lib/fprintf.c: Likewise.
42413         * lib/fprintftime.h: Likewise.
42414         * lib/fpucw.h: Likewise.
42415         * lib/fpurge.c: Likewise.
42416         * lib/fpurge.h: Likewise.
42417         * lib/freadable.c: Likewise.
42418         * lib/freadable.h: Likewise.
42419         * lib/freadahead.c: Likewise.
42420         * lib/freadahead.h: Likewise.
42421         * lib/freading.c: Likewise.
42422         * lib/freading.h: Likewise.
42423         * lib/free.c: Likewise.
42424         * lib/freopen.c: Likewise.
42425         * lib/frexp.c: Likewise.
42426         * lib/frexpl.c: Likewise.
42427         * lib/fseek.c: Likewise.
42428         * lib/fseterr.c: Likewise.
42429         * lib/fseterr.h: Likewise.
42430         * lib/fstatat.c: Likewise.
42431         * lib/fstrcmp.c: Likewise.
42432         * lib/fstrcmp.h: Likewise.
42433         * lib/fsusage.c: Likewise.
42434         * lib/fsusage.h: Likewise.
42435         * lib/ftell.c: Likewise.
42436         * lib/ftello.c: Likewise.
42437         * lib/fts-cycle.c: Likewise.
42438         * lib/fts.c: Likewise.
42439         * lib/fts_.h: Likewise.
42440         * lib/full-read.c: Likewise.
42441         * lib/full-read.h: Likewise.
42442         * lib/full-write.c: Likewise.
42443         * lib/full-write.h: Likewise.
42444         * lib/fwritable.c: Likewise.
42445         * lib/fwritable.h: Likewise.
42446         * lib/fwriteerror.c: Likewise.
42447         * lib/fwriteerror.h: Likewise.
42448         * lib/fwriting.c: Likewise.
42449         * lib/fwriting.h: Likewise.
42450         * lib/gcd.c: Likewise.
42451         * lib/gcd.h: Likewise.
42452         * lib/getcwd.c: Likewise.
42453         * lib/getdate.h: Likewise.
42454         * lib/getdate.y: Likewise.
42455         * lib/getdomainname.c: Likewise.
42456         * lib/getdomainname.h: Likewise.
42457         * lib/getgroups.c: Likewise.
42458         * lib/gethostname.c: Likewise.
42459         * lib/gethrxtime.c: Likewise.
42460         * lib/gethrxtime.h: Likewise.
42461         * lib/getloadavg.c: Likewise.
42462         * lib/getndelim2.c: Likewise.
42463         * lib/getndelim2.h: Likewise.
42464         * lib/getnline.c: Likewise.
42465         * lib/getnline.h: Likewise.
42466         * lib/getopt.c: Likewise.
42467         * lib/getopt.in.h: Likewise.
42468         * lib/getopt1.c: Likewise.
42469         * lib/getopt_int.h: Likewise.
42470         * lib/getpagesize.h: Likewise.
42471         * lib/getsubopt.c: Likewise.
42472         * lib/gettime.c: Likewise.
42473         * lib/getugroups.c: Likewise.
42474         * lib/getugroups.h: Likewise.
42475         * lib/getusershell.c: Likewise.
42476         * lib/gl_anyavltree_list1.h: Likewise.
42477         * lib/gl_anyavltree_list2.h: Likewise.
42478         * lib/gl_anyhash_list1.h: Likewise.
42479         * lib/gl_anyhash_list2.h: Likewise.
42480         * lib/gl_anylinked_list1.h: Likewise.
42481         * lib/gl_anylinked_list2.h: Likewise.
42482         * lib/gl_anyrbtree_list1.h: Likewise.
42483         * lib/gl_anyrbtree_list2.h: Likewise.
42484         * lib/gl_anytree_list1.h: Likewise.
42485         * lib/gl_anytree_list2.h: Likewise.
42486         * lib/gl_anytree_oset.h: Likewise.
42487         * lib/gl_anytreehash_list1.h: Likewise.
42488         * lib/gl_anytreehash_list2.h: Likewise.
42489         * lib/gl_array_list.c: Likewise.
42490         * lib/gl_array_list.h: Likewise.
42491         * lib/gl_array_oset.c: Likewise.
42492         * lib/gl_array_oset.h: Likewise.
42493         * lib/gl_avltree_list.c: Likewise.
42494         * lib/gl_avltree_list.h: Likewise.
42495         * lib/gl_avltree_oset.c: Likewise.
42496         * lib/gl_avltree_oset.h: Likewise.
42497         * lib/gl_avltreehash_list.c: Likewise.
42498         * lib/gl_avltreehash_list.h: Likewise.
42499         * lib/gl_carray_list.c: Likewise.
42500         * lib/gl_carray_list.h: Likewise.
42501         * lib/gl_linked_list.c: Likewise.
42502         * lib/gl_linked_list.h: Likewise.
42503         * lib/gl_linkedhash_list.c: Likewise.
42504         * lib/gl_linkedhash_list.h: Likewise.
42505         * lib/gl_list.c: Likewise.
42506         * lib/gl_list.h: Likewise.
42507         * lib/gl_oset.c: Likewise.
42508         * lib/gl_oset.h: Likewise.
42509         * lib/gl_rbtree_list.c: Likewise.
42510         * lib/gl_rbtree_list.h: Likewise.
42511         * lib/gl_rbtree_oset.c: Likewise.
42512         * lib/gl_rbtree_oset.h: Likewise.
42513         * lib/gl_rbtreehash_list.c: Likewise.
42514         * lib/gl_rbtreehash_list.h: Likewise.
42515         * lib/gl_sublist.c: Likewise.
42516         * lib/gl_sublist.h: Likewise.
42517         * lib/group-member.c: Likewise.
42518         * lib/group-member.h: Likewise.
42519         * lib/hard-locale.c: Likewise.
42520         * lib/hard-locale.h: Likewise.
42521         * lib/hash-pjw.c: Likewise.
42522         * lib/hash-pjw.h: Likewise.
42523         * lib/hash-triple.c: Likewise.
42524         * lib/hash.c: Likewise.
42525         * lib/hash.h: Likewise.
42526         * lib/human.c: Likewise.
42527         * lib/human.h: Likewise.
42528         * lib/i-ring.c: Likewise.
42529         * lib/i-ring.h: Likewise.
42530         * lib/idcache.c: Likewise.
42531         * lib/imaxabs.c: Likewise.
42532         * lib/imaxdiv.c: Likewise.
42533         * lib/inet_pton.c: Likewise.
42534         * lib/inet_pton.h: Likewise.
42535         * lib/intprops.h: Likewise.
42536         * lib/inttostr.c: Likewise.
42537         * lib/inttostr.h: Likewise.
42538         * lib/inttypes.in.h: Likewise.
42539         * lib/isapipe.c: Likewise.
42540         * lib/isdir.c: Likewise.
42541         * lib/isnan.c: Likewise.
42542         * lib/isnan.h: Likewise.
42543         * lib/isnanf.c: Likewise.
42544         * lib/isnanf.h: Likewise.
42545         * lib/isnanl-nolibm.h: Likewise.
42546         * lib/isnanl.c: Likewise.
42547         * lib/isnanl.h: Likewise.
42548         * lib/javacomp.c: Likewise.
42549         * lib/javacomp.h: Likewise.
42550         * lib/javaexec.c: Likewise.
42551         * lib/javaexec.h: Likewise.
42552         * lib/javaversion.c: Likewise.
42553         * lib/javaversion.h: Likewise.
42554         * lib/javaversion.java: Likewise.
42555         * lib/lbrkprop.h: Likewise.
42556         * lib/lchmod.h: Likewise.
42557         * lib/lchown.c: Likewise.
42558         * lib/ldexpl.c: Likewise.
42559         * lib/linebreak.c: Likewise.
42560         * lib/linebreak.h: Likewise.
42561         * lib/linebuffer.c: Likewise.
42562         * lib/linebuffer.h: Likewise.
42563         * lib/locale.in.h: Likewise.
42564         * lib/logl.c: Likewise.
42565         * lib/long-options.c: Likewise.
42566         * lib/long-options.h: Likewise.
42567         * lib/lstat.c: Likewise.
42568         * lib/lstat.h: Likewise.
42569         * lib/math.in.h: Likewise.
42570         * lib/mbchar.c: Likewise.
42571         * lib/mbchar.h: Likewise.
42572         * lib/mbfile.h: Likewise.
42573         * lib/mbiter.h: Likewise.
42574         * lib/mbscasecmp.c: Likewise.
42575         * lib/mbscasestr.c: Likewise.
42576         * lib/mbschr.c: Likewise.
42577         * lib/mbscspn.c: Likewise.
42578         * lib/mbslen.c: Likewise.
42579         * lib/mbsncasecmp.c: Likewise.
42580         * lib/mbsnlen.c: Likewise.
42581         * lib/mbspbrk.c: Likewise.
42582         * lib/mbspcasecmp.c: Likewise.
42583         * lib/mbsrchr.c: Likewise.
42584         * lib/mbssep.c: Likewise.
42585         * lib/mbsspn.c: Likewise.
42586         * lib/mbsstr.c: Likewise.
42587         * lib/mbstok_r.c: Likewise.
42588         * lib/mbswidth.c: Likewise.
42589         * lib/mbswidth.h: Likewise.
42590         * lib/mbuiter.h: Likewise.
42591         * lib/memcasecmp.c: Likewise.
42592         * lib/memcasecmp.h: Likewise.
42593         * lib/memchr.c: Likewise.
42594         * lib/memcmp.c: Likewise.
42595         * lib/memcoll.c: Likewise.
42596         * lib/memcoll.h: Likewise.
42597         * lib/memcpy.c: Likewise.
42598         * lib/memrchr.c: Likewise.
42599         * lib/mkancesdirs.c: Likewise.
42600         * lib/mkdir-p.c: Likewise.
42601         * lib/mkdir-p.h: Likewise.
42602         * lib/mkdir.c: Likewise.
42603         * lib/mkdirat.c: Likewise.
42604         * lib/mkdtemp.c: Likewise.
42605         * lib/mkstemp-safer.c: Likewise.
42606         * lib/mkstemp.c: Likewise.
42607         * lib/modechange.c: Likewise.
42608         * lib/modechange.h: Likewise.
42609         * lib/mountlist.c: Likewise.
42610         * lib/mountlist.h: Likewise.
42611         * lib/mpsort.c: Likewise.
42612         * lib/nanosleep.c: Likewise.
42613         * lib/obstack.c: Likewise.
42614         * lib/obstack.h: Likewise.
42615         * lib/open-safer.c: Likewise.
42616         * lib/open.c: Likewise.
42617         * lib/openat-die.c: Likewise.
42618         * lib/openat-priv.h: Likewise.
42619         * lib/openat-proc.c: Likewise.
42620         * lib/openat.c: Likewise.
42621         * lib/openat.h: Likewise.
42622         * lib/pagealign_alloc.c: Likewise.
42623         * lib/pagealign_alloc.h: Likewise.
42624         * lib/physmem.c: Likewise.
42625         * lib/physmem.h: Likewise.
42626         * lib/pipe-safer.c: Likewise.
42627         * lib/pipe.c: Likewise.
42628         * lib/pipe.h: Likewise.
42629         * lib/posixtm.c: Likewise.
42630         * lib/posixtm.h: Likewise.
42631         * lib/posixver.c: Likewise.
42632         * lib/printf-frexp.c: Likewise.
42633         * lib/printf-frexp.h: Likewise.
42634         * lib/printf-frexpl.c: Likewise.
42635         * lib/printf-frexpl.h: Likewise.
42636         * lib/printf.c: Likewise.
42637         * lib/progname.c: Likewise.
42638         * lib/progname.h: Likewise.
42639         * lib/progreloc.c: Likewise.
42640         * lib/putenv.c: Likewise.
42641         * lib/quote.c: Likewise.
42642         * lib/quote.h: Likewise.
42643         * lib/quotearg.c: Likewise.
42644         * lib/quotearg.h: Likewise.
42645         * lib/raise.c: Likewise.
42646         * lib/readline.c: Likewise.
42647         * lib/readline.h: Likewise.
42648         * lib/readlink.c: Likewise.
42649         * lib/readtokens.c: Likewise.
42650         * lib/readtokens.h: Likewise.
42651         * lib/readtokens0.c: Likewise.
42652         * lib/readtokens0.h: Likewise.
42653         * lib/readutmp.c: Likewise.
42654         * lib/readutmp.h: Likewise.
42655         * lib/realloc.c: Likewise.
42656         * lib/relocwrapper.c: Likewise.
42657         * lib/rename-dest-slash.c: Likewise.
42658         * lib/rename.c: Likewise.
42659         * lib/rmdir.c: Likewise.
42660         * lib/rpmatch.c: Likewise.
42661         * lib/safe-read.c: Likewise.
42662         * lib/safe-read.h: Likewise.
42663         * lib/safe-write.c: Likewise.
42664         * lib/safe-write.h: Likewise.
42665         * lib/same-inode.h: Likewise.
42666         * lib/same.c: Likewise.
42667         * lib/same.h: Likewise.
42668         * lib/save-cwd.c: Likewise.
42669         * lib/save-cwd.h: Likewise.
42670         * lib/savedir.c: Likewise.
42671         * lib/savedir.h: Likewise.
42672         * lib/savewd.c: Likewise.
42673         * lib/savewd.h: Likewise.
42674         * lib/search.in.h: Likewise.
42675         * lib/setenv.c: Likewise.
42676         * lib/setenv.h: Likewise.
42677         * lib/settime.c: Likewise.
42678         * lib/sh-quote.c: Likewise.
42679         * lib/sh-quote.h: Likewise.
42680         * lib/sig2str.c: Likewise.
42681         * lib/sig2str.h: Likewise.
42682         * lib/signal.in.h: Likewise.
42683         * lib/signbitd.c: Likewise.
42684         * lib/signbitf.c: Likewise.
42685         * lib/signbitl.c: Likewise.
42686         * lib/sigprocmask.c: Likewise.
42687         * lib/sincosl.c: Likewise.
42688         * lib/sleep.c: Likewise.
42689         * lib/sprintf.c: Likewise.
42690         * lib/sqrtl.c: Likewise.
42691         * lib/stat-time.h: Likewise.
42692         * lib/stdio--.h: Likewise.
42693         * lib/stdio-safer.h: Likewise.
42694         * lib/stdlib--.h: Likewise.
42695         * lib/stdlib-safer.h: Likewise.
42696         * lib/stdlib.in.h: Likewise.
42697         * lib/stpcpy.c: Likewise.
42698         * lib/stpncpy.c: Likewise.
42699         * lib/strchrnul.c: Likewise.
42700         * lib/strcspn.c: Likewise.
42701         * lib/strerror.c: Likewise.
42702         * lib/strftime.c: Likewise.
42703         * lib/strftime.h: Likewise.
42704         * lib/striconveh.c: Likewise.
42705         * lib/striconveh.h: Likewise.
42706         * lib/striconveha.c: Likewise.
42707         * lib/striconveha.h: Likewise.
42708         * lib/stripslash.c: Likewise.
42709         * lib/strnlen1.c: Likewise.
42710         * lib/strnlen1.h: Likewise.
42711         * lib/strtod.c: Likewise.
42712         * lib/strtoimax.c: Likewise.
42713         * lib/strtok_r.c: Likewise.
42714         * lib/strtol.c: Likewise.
42715         * lib/strtoll.c: Likewise.
42716         * lib/strtoul.c: Likewise.
42717         * lib/strtoull.c: Likewise.
42718         * lib/sysexits.in.h: Likewise.
42719         * lib/tempname.c: Likewise.
42720         * lib/tempname.h: Likewise.
42721         * lib/timespec.h: Likewise.
42722         * lib/tls.c: Likewise.
42723         * lib/tls.h: Likewise.
42724         * lib/tmpdir.c: Likewise.
42725         * lib/tmpdir.h: Likewise.
42726         * lib/tmpfile-safer.c: Likewise.
42727         * lib/tmpfile.c: Likewise.
42728         * lib/trigl.c: Likewise.
42729         * lib/trigl.h: Likewise.
42730         * lib/trim.c: Likewise.
42731         * lib/trim.h: Likewise.
42732         * lib/trunc.c: Likewise.
42733         * lib/truncf.c: Likewise.
42734         * lib/truncl.c: Likewise.
42735         * lib/tsearch.c: Likewise.
42736         * lib/unicodeio.c: Likewise.
42737         * lib/unicodeio.h: Likewise.
42738         * lib/unistd--.h: Likewise.
42739         * lib/unistd-safer.h: Likewise.
42740         * lib/unistdio/ulc-fprintf.c: Likewise.
42741         * lib/unistdio/ulc-vfprintf.c: Likewise.
42742         * lib/unlinkdir.c: Likewise.
42743         * lib/unlinkdir.h: Likewise.
42744         * lib/unlocked-io.h: Likewise.
42745         * lib/unsetenv.c: Likewise.
42746         * lib/userspec.c: Likewise.
42747         * lib/utime.c: Likewise.
42748         * lib/utimecmp.c: Likewise.
42749         * lib/utimecmp.h: Likewise.
42750         * lib/utimens.c: Likewise.
42751         * lib/verify.h: Likewise.
42752         * lib/verror.c: Likewise.
42753         * lib/verror.h: Likewise.
42754         * lib/version-etc-fsf.c: Likewise.
42755         * lib/version-etc.c: Likewise.
42756         * lib/version-etc.h: Likewise.
42757         * lib/vfprintf.c: Likewise.
42758         * lib/vprintf.c: Likewise.
42759         * lib/vsprintf.c: Likewise.
42760         * lib/w32spawn.h: Likewise.
42761         * lib/wait-process.c: Likewise.
42762         * lib/wait-process.h: Likewise.
42763         * lib/wcwidth.c: Likewise.
42764         * lib/write-any-file.c: Likewise.
42765         * lib/xalloc-die.c: Likewise.
42766         * lib/xalloc.h: Likewise.
42767         * lib/xasprintf.c: Likewise.
42768         * lib/xgetcwd.c: Likewise.
42769         * lib/xgetcwd.h: Likewise.
42770         * lib/xgetdomainname.c: Likewise.
42771         * lib/xgetdomainname.h: Likewise.
42772         * lib/xgethostname.c: Likewise.
42773         * lib/xmalloc.c: Likewise.
42774         * lib/xmalloca.c: Likewise.
42775         * lib/xmalloca.h: Likewise.
42776         * lib/xmemcoll.c: Likewise.
42777         * lib/xnanosleep.c: Likewise.
42778         * lib/xreadlink.c: Likewise.
42779         * lib/xreadlink.h: Likewise.
42780         * lib/xsetenv.c: Likewise.
42781         * lib/xsetenv.h: Likewise.
42782         * lib/xstriconv.c: Likewise.
42783         * lib/xstriconv.h: Likewise.
42784         * lib/xstrndup.c: Likewise.
42785         * lib/xstrndup.h: Likewise.
42786         * lib/xstrtod.c: Likewise.
42787         * lib/xstrtod.h: Likewise.
42788         * lib/xstrtol-error.c: Likewise.
42789         * lib/xstrtol.c: Likewise.
42790         * lib/xstrtol.h: Likewise.
42791         * lib/xtime.h: Likewise.
42792         * lib/xvasprintf.c: Likewise.
42793         * lib/xvasprintf.h: Likewise.
42794         * lib/yesno.c: Likewise.
42795         * lib/yesno.h: Likewise.
42796         * posix-modules: Likewise.
42797         * tests/test-alloca-opt.c: Likewise.
42798         * tests/test-arcfour.c: Likewise.
42799         * tests/test-arctwo.c: Likewise.
42800         * tests/test-argmatch.c: Likewise.
42801         * tests/test-argp-2.sh: Likewise.
42802         * tests/test-argp.c: Likewise.
42803         * tests/test-arpa_inet.c: Likewise.
42804         * tests/test-array_list.c: Likewise.
42805         * tests/test-array_oset.c: Likewise.
42806         * tests/test-atexit.c: Likewise.
42807         * tests/test-avltree_list.c: Likewise.
42808         * tests/test-avltree_oset.c: Likewise.
42809         * tests/test-avltreehash_list.c: Likewise.
42810         * tests/test-base64.c: Likewise.
42811         * tests/test-binary-io.c: Likewise.
42812         * tests/test-byteswap.c: Likewise.
42813         * tests/test-c-ctype.c: Likewise.
42814         * tests/test-c-strcasecmp.c: Likewise.
42815         * tests/test-c-strcasestr.c: Likewise.
42816         * tests/test-c-strncasecmp.c: Likewise.
42817         * tests/test-c-strstr.c: Likewise.
42818         * tests/test-canonicalize-lgpl.c: Likewise.
42819         * tests/test-canonicalize.c: Likewise.
42820         * tests/test-carray_list.c: Likewise.
42821         * tests/test-ceilf.c: Likewise.
42822         * tests/test-ceill.c: Likewise.
42823         * tests/test-count-one-bits.c: Likewise.
42824         * tests/test-crc.c: Likewise.
42825         * tests/test-dirname.c: Likewise.
42826         * tests/test-fbufmode.c: Likewise.
42827         * tests/test-fcntl.c: Likewise.
42828         * tests/test-fflush.c: Likewise.
42829         * tests/test-floorf.c: Likewise.
42830         * tests/test-floorl.c: Likewise.
42831         * tests/test-fopen.c: Likewise.
42832         * tests/test-fprintf-posix.c: Likewise.
42833         * tests/test-fprintf-posix.h: Likewise.
42834         * tests/test-fpurge.c: Likewise.
42835         * tests/test-freadable.c: Likewise.
42836         * tests/test-freadahead.c: Likewise.
42837         * tests/test-freading.c: Likewise.
42838         * tests/test-freopen.c: Likewise.
42839         * tests/test-frexp.c: Likewise.
42840         * tests/test-frexpl.c: Likewise.
42841         * tests/test-fseek.c: Likewise.
42842         * tests/test-fseeko.c: Likewise.
42843         * tests/test-fseterr.c: Likewise.
42844         * tests/test-fstrcmp.c: Likewise.
42845         * tests/test-ftell.c: Likewise.
42846         * tests/test-ftello.c: Likewise.
42847         * tests/test-fwritable.c: Likewise.
42848         * tests/test-fwriting.c: Likewise.
42849         * tests/test-getaddrinfo.c: Likewise.
42850         * tests/test-getpass.c: Likewise.
42851         * tests/test-gettimeofday.c: Likewise.
42852         * tests/test-hmac-md5.c: Likewise.
42853         * tests/test-hmac-sha1.c: Likewise.
42854         * tests/test-iconv.c: Likewise.
42855         * tests/test-iconvme.c: Likewise.
42856         * tests/test-inttypes.c: Likewise.
42857         * tests/test-isnan.c: Likewise.
42858         * tests/test-isnanf.c: Likewise.
42859         * tests/test-isnanl-nolibm.c: Likewise.
42860         * tests/test-isnanl.c: Likewise.
42861         * tests/test-isnanl.h: Likewise.
42862         * tests/test-ldexpl.c: Likewise.
42863         * tests/test-linked_list.c: Likewise.
42864         * tests/test-linkedhash_list.c: Likewise.
42865         * tests/test-locale.c: Likewise.
42866         * tests/test-localename.c: Likewise.
42867         * tests/test-lock.c: Likewise.
42868         * tests/test-lseek.c: Likewise.
42869         * tests/test-malloca.c: Likewise.
42870         * tests/test-math.c: Likewise.
42871         * tests/test-mbscasecmp.c: Likewise.
42872         * tests/test-mbscasestr1.c: Likewise.
42873         * tests/test-mbscasestr2.c: Likewise.
42874         * tests/test-mbscasestr3.c: Likewise.
42875         * tests/test-mbscasestr4.c: Likewise.
42876         * tests/test-mbschr.c: Likewise.
42877         * tests/test-mbscspn.c: Likewise.
42878         * tests/test-mbsncasecmp.c: Likewise.
42879         * tests/test-mbspbrk.c: Likewise.
42880         * tests/test-mbspcasecmp.c: Likewise.
42881         * tests/test-mbsrchr.c: Likewise.
42882         * tests/test-mbsspn.c: Likewise.
42883         * tests/test-mbsstr1.c: Likewise.
42884         * tests/test-mbsstr2.c: Likewise.
42885         * tests/test-mbsstr3.c: Likewise.
42886         * tests/test-md5.c: Likewise.
42887         * tests/test-memmem.c: Likewise.
42888         * tests/test-netinet_in.c: Likewise.
42889         * tests/test-open.c: Likewise.
42890         * tests/test-printf-frexp.c: Likewise.
42891         * tests/test-printf-frexpl.c: Likewise.
42892         * tests/test-printf-posix.c: Likewise.
42893         * tests/test-printf-posix.h: Likewise.
42894         * tests/test-rbtree_list.c: Likewise.
42895         * tests/test-rbtree_oset.c: Likewise.
42896         * tests/test-rbtreehash_list.c: Likewise.
42897         * tests/test-read-file.c: Likewise.
42898         * tests/test-rijndael.c: Likewise.
42899         * tests/test-search.c: Likewise.
42900         * tests/test-signbit.c: Likewise.
42901         * tests/test-sleep.c: Likewise.
42902         * tests/test-snprintf-posix.c: Likewise.
42903         * tests/test-snprintf-posix.h: Likewise.
42904         * tests/test-snprintf.c: Likewise.
42905         * tests/test-sprintf-posix.c: Likewise.
42906         * tests/test-sprintf-posix.h: Likewise.
42907         * tests/test-stat-time.c: Likewise.
42908         * tests/test-stdbool.c: Likewise.
42909         * tests/test-stdint.c: Likewise.
42910         * tests/test-stdio.c: Likewise.
42911         * tests/test-stdlib.c: Likewise.
42912         * tests/test-stpncpy.c: Likewise.
42913         * tests/test-strcasestr.c: Likewise.
42914         * tests/test-striconv.c: Likewise.
42915         * tests/test-striconveh.c: Likewise.
42916         * tests/test-striconveha.c: Likewise.
42917         * tests/test-string.c: Likewise.
42918         * tests/test-sys_select.c: Likewise.
42919         * tests/test-sys_socket.c: Likewise.
42920         * tests/test-sys_stat.c: Likewise.
42921         * tests/test-sys_time.c: Likewise.
42922         * tests/test-sysexits.c: Likewise.
42923         * tests/test-time.c: Likewise.
42924         * tests/test-tls.c: Likewise.
42925         * tests/test-trunc.c: Likewise.
42926         * tests/test-truncf.c: Likewise.
42927         * tests/test-truncl.c: Likewise.
42928         * tests/test-unistd.c: Likewise.
42929         * tests/test-vasnprintf-posix.c: Likewise.
42930         * tests/test-vasnprintf-posix2.c: Likewise.
42931         * tests/test-vasnprintf.c: Likewise.
42932         * tests/test-vasprintf-posix.c: Likewise.
42933         * tests/test-vasprintf.c: Likewise.
42934         * tests/test-verify.c: Likewise.
42935         * tests/test-vfprintf-posix.c: Likewise.
42936         * tests/test-vprintf-posix.c: Likewise.
42937         * tests/test-vsnprintf-posix.c: Likewise.
42938         * tests/test-vsnprintf.c: Likewise.
42939         * tests/test-vsprintf-posix.c: Likewise.
42940         * tests/test-wchar.c: Likewise.
42941         * tests/test-wctype.c: Likewise.
42942         * tests/test-wcwidth.c: Likewise.
42943         * tests/test-xstrtol.c: Likewise.
42944         * tests/test-xvasprintf.c: Likewise.
42945         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
42946         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
42947         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42948         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42949         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42950         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
42951         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42952         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42953         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42954         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
42955         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42956         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42957         * tests/uniname/test-uninames.c: Likewise.
42958         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
42959         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
42960         * tests/unistdio/test-u16-printf1.h: Likewise.
42961         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
42962         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
42963         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
42964         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
42965         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
42966         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
42967         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
42968         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
42969         * tests/unistdio/test-u32-printf1.h: Likewise.
42970         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
42971         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
42972         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
42973         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
42974         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
42975         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
42976         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
42977         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
42978         * tests/unistdio/test-u8-printf1.h: Likewise.
42979         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
42980         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
42981         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
42982         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
42983         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
42984         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
42985         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
42986         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
42987         * tests/unistdio/test-ulc-printf1.h: Likewise.
42988         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
42989         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
42990         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
42991         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
42992         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
42993         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
42994         * tests/uniwidth/test-u16-strwidth.c: Likewise.
42995         * tests/uniwidth/test-u16-width.c: Likewise.
42996         * tests/uniwidth/test-u32-strwidth.c: Likewise.
42997         * tests/uniwidth/test-u32-width.c: Likewise.
42998         * tests/uniwidth/test-u8-strwidth.c: Likewise.
42999         * tests/uniwidth/test-u8-width.c: Likewise.
43000         * tests/uniwidth/test-uc_width.c: Likewise.
43001         * config/srclist-update: Likewise.
43002         (fixlicense): Update to GPLv3+.
43003
43004         Change copyright notice from LGPLv2.1+ to LGPLv3+.
43005         * tests/test-tsearch.c: Change copyright notice.
43006
43007         Change copyright notice from LGPLv2.0+ to LGPLv3+.
43008         * lib/c-strcaseeq.h: Change copyright notice.
43009         * lib/streq.h: Likewise.
43010         * lib/uniconv.h: Likewise.
43011         * lib/uniconv/u-conv-from-enc.h: Likewise.
43012         * lib/uniconv/u-conv-to-enc.h: Likewise.
43013         * lib/uniconv/u-strconv-from-enc.h: Likewise.
43014         * lib/uniconv/u-strconv-to-enc.h: Likewise.
43015         * lib/uniconv/u16-conv-from-enc.c: Likewise.
43016         * lib/uniconv/u16-conv-to-enc.c: Likewise.
43017         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
43018         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
43019         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
43020         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
43021         * lib/uniconv/u32-conv-from-enc.c: Likewise.
43022         * lib/uniconv/u32-conv-to-enc.c: Likewise.
43023         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
43024         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
43025         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
43026         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
43027         * lib/uniconv/u8-conv-from-enc.c: Likewise.
43028         * lib/uniconv/u8-conv-to-enc.c: Likewise.
43029         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
43030         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
43031         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
43032         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
43033         * lib/uniname.h: Likewise.
43034         * lib/uniname/uniname.c: Likewise.
43035         * lib/unistdio.h: Likewise.
43036         * lib/unistdio/u-asnprintf.h: Likewise.
43037         * lib/unistdio/u-asprintf.h: Likewise.
43038         * lib/unistdio/u-printf-args.c: Likewise.
43039         * lib/unistdio/u-printf-args.h: Likewise.
43040         * lib/unistdio/u-printf-parse.h: Likewise.
43041         * lib/unistdio/u-snprintf.h: Likewise.
43042         * lib/unistdio/u-sprintf.h: Likewise.
43043         * lib/unistdio/u-vasprintf.h: Likewise.
43044         * lib/unistdio/u-vsnprintf.h: Likewise.
43045         * lib/unistdio/u-vsprintf.h: Likewise.
43046         * lib/unistdio/u16-asnprintf.c: Likewise.
43047         * lib/unistdio/u16-asprintf.c: Likewise.
43048         * lib/unistdio/u16-printf-parse.c: Likewise.
43049         * lib/unistdio/u16-snprintf.c: Likewise.
43050         * lib/unistdio/u16-sprintf.c: Likewise.
43051         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
43052         * lib/unistdio/u16-u16-asprintf.c: Likewise.
43053         * lib/unistdio/u16-u16-snprintf.c: Likewise.
43054         * lib/unistdio/u16-u16-sprintf.c: Likewise.
43055         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
43056         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
43057         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
43058         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
43059         * lib/unistdio/u16-vasnprintf.c: Likewise.
43060         * lib/unistdio/u16-vasprintf.c: Likewise.
43061         * lib/unistdio/u16-vsnprintf.c: Likewise.
43062         * lib/unistdio/u16-vsprintf.c: Likewise.
43063         * lib/unistdio/u32-asnprintf.c: Likewise.
43064         * lib/unistdio/u32-asprintf.c: Likewise.
43065         * lib/unistdio/u32-printf-parse.c: Likewise.
43066         * lib/unistdio/u32-snprintf.c: Likewise.
43067         * lib/unistdio/u32-sprintf.c: Likewise.
43068         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
43069         * lib/unistdio/u32-u32-asprintf.c: Likewise.
43070         * lib/unistdio/u32-u32-snprintf.c: Likewise.
43071         * lib/unistdio/u32-u32-sprintf.c: Likewise.
43072         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
43073         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
43074         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
43075         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
43076         * lib/unistdio/u32-vasnprintf.c: Likewise.
43077         * lib/unistdio/u32-vasprintf.c: Likewise.
43078         * lib/unistdio/u32-vsnprintf.c: Likewise.
43079         * lib/unistdio/u32-vsprintf.c: Likewise.
43080         * lib/unistdio/u8-asnprintf.c: Likewise.
43081         * lib/unistdio/u8-asprintf.c: Likewise.
43082         * lib/unistdio/u8-printf-parse.c: Likewise.
43083         * lib/unistdio/u8-snprintf.c: Likewise.
43084         * lib/unistdio/u8-sprintf.c: Likewise.
43085         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
43086         * lib/unistdio/u8-u8-asprintf.c: Likewise.
43087         * lib/unistdio/u8-u8-snprintf.c: Likewise.
43088         * lib/unistdio/u8-u8-sprintf.c: Likewise.
43089         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
43090         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
43091         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
43092         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
43093         * lib/unistdio/u8-vasnprintf.c: Likewise.
43094         * lib/unistdio/u8-vasprintf.c: Likewise.
43095         * lib/unistdio/u8-vsnprintf.c: Likewise.
43096         * lib/unistdio/u8-vsprintf.c: Likewise.
43097         * lib/unistdio/ulc-asnprintf.c: Likewise.
43098         * lib/unistdio/ulc-asprintf.c: Likewise.
43099         * lib/unistdio/ulc-printf-parse.c: Likewise.
43100         * lib/unistdio/ulc-snprintf.c: Likewise.
43101         * lib/unistdio/ulc-sprintf.c: Likewise.
43102         * lib/unistdio/ulc-vasnprintf.c: Likewise.
43103         * lib/unistdio/ulc-vasprintf.c: Likewise.
43104         * lib/unistdio/ulc-vsnprintf.c: Likewise.
43105         * lib/unistdio/ulc-vsprintf.c: Likewise.
43106         * lib/unistr.h: Likewise.
43107         * lib/unistr/u-cpy-alloc.h: Likewise.
43108         * lib/unistr/u-cpy.h: Likewise.
43109         * lib/unistr/u-endswith.h: Likewise.
43110         * lib/unistr/u-move.h: Likewise.
43111         * lib/unistr/u-set.h: Likewise.
43112         * lib/unistr/u-startswith.h: Likewise.
43113         * lib/unistr/u-stpcpy.h: Likewise.
43114         * lib/unistr/u-stpncpy.h: Likewise.
43115         * lib/unistr/u-strcat.h: Likewise.
43116         * lib/unistr/u-strcpy.h: Likewise.
43117         * lib/unistr/u-strcspn.h: Likewise.
43118         * lib/unistr/u-strdup.h: Likewise.
43119         * lib/unistr/u-strlen.h: Likewise.
43120         * lib/unistr/u-strncat.h: Likewise.
43121         * lib/unistr/u-strncpy.h: Likewise.
43122         * lib/unistr/u-strnlen.h: Likewise.
43123         * lib/unistr/u-strpbrk.h: Likewise.
43124         * lib/unistr/u-strspn.h: Likewise.
43125         * lib/unistr/u-strstr.h: Likewise.
43126         * lib/unistr/u-strtok.h: Likewise.
43127         * lib/unistr/u16-check.c: Likewise.
43128         * lib/unistr/u16-chr.c: Likewise.
43129         * lib/unistr/u16-cmp.c: Likewise.
43130         * lib/unistr/u16-cpy-alloc.c: Likewise.
43131         * lib/unistr/u16-cpy.c: Likewise.
43132         * lib/unistr/u16-endswith.c: Likewise.
43133         * lib/unistr/u16-mblen.c: Likewise.
43134         * lib/unistr/u16-mbsnlen.c: Likewise.
43135         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43136         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43137         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43138         * lib/unistr/u16-mbtouc.c: Likewise.
43139         * lib/unistr/u16-mbtoucr.c: Likewise.
43140         * lib/unistr/u16-move.c: Likewise.
43141         * lib/unistr/u16-next.c: Likewise.
43142         * lib/unistr/u16-prev.c: Likewise.
43143         * lib/unistr/u16-set.c: Likewise.
43144         * lib/unistr/u16-startswith.c: Likewise.
43145         * lib/unistr/u16-stpcpy.c: Likewise.
43146         * lib/unistr/u16-stpncpy.c: Likewise.
43147         * lib/unistr/u16-strcat.c: Likewise.
43148         * lib/unistr/u16-strchr.c: Likewise.
43149         * lib/unistr/u16-strcmp.c: Likewise.
43150         * lib/unistr/u16-strcpy.c: Likewise.
43151         * lib/unistr/u16-strcspn.c: Likewise.
43152         * lib/unistr/u16-strdup.c: Likewise.
43153         * lib/unistr/u16-strlen.c: Likewise.
43154         * lib/unistr/u16-strmblen.c: Likewise.
43155         * lib/unistr/u16-strmbtouc.c: Likewise.
43156         * lib/unistr/u16-strncat.c: Likewise.
43157         * lib/unistr/u16-strncmp.c: Likewise.
43158         * lib/unistr/u16-strncpy.c: Likewise.
43159         * lib/unistr/u16-strnlen.c: Likewise.
43160         * lib/unistr/u16-strpbrk.c: Likewise.
43161         * lib/unistr/u16-strrchr.c: Likewise.
43162         * lib/unistr/u16-strspn.c: Likewise.
43163         * lib/unistr/u16-strstr.c: Likewise.
43164         * lib/unistr/u16-strtok.c: Likewise.
43165         * lib/unistr/u16-to-u32.c: Likewise.
43166         * lib/unistr/u16-to-u8.c: Likewise.
43167         * lib/unistr/u16-uctomb-aux.c: Likewise.
43168         * lib/unistr/u16-uctomb.c: Likewise.
43169         * lib/unistr/u32-check.c: Likewise.
43170         * lib/unistr/u32-chr.c: Likewise.
43171         * lib/unistr/u32-cmp.c: Likewise.
43172         * lib/unistr/u32-cpy-alloc.c: Likewise.
43173         * lib/unistr/u32-cpy.c: Likewise.
43174         * lib/unistr/u32-endswith.c: Likewise.
43175         * lib/unistr/u32-mblen.c: Likewise.
43176         * lib/unistr/u32-mbsnlen.c: Likewise.
43177         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43178         * lib/unistr/u32-mbtouc.c: Likewise.
43179         * lib/unistr/u32-mbtoucr.c: Likewise.
43180         * lib/unistr/u32-move.c: Likewise.
43181         * lib/unistr/u32-next.c: Likewise.
43182         * lib/unistr/u32-prev.c: Likewise.
43183         * lib/unistr/u32-set.c: Likewise.
43184         * lib/unistr/u32-startswith.c: Likewise.
43185         * lib/unistr/u32-stpcpy.c: Likewise.
43186         * lib/unistr/u32-stpncpy.c: Likewise.
43187         * lib/unistr/u32-strcat.c: Likewise.
43188         * lib/unistr/u32-strchr.c: Likewise.
43189         * lib/unistr/u32-strcmp.c: Likewise.
43190         * lib/unistr/u32-strcpy.c: Likewise.
43191         * lib/unistr/u32-strcspn.c: Likewise.
43192         * lib/unistr/u32-strdup.c: Likewise.
43193         * lib/unistr/u32-strlen.c: Likewise.
43194         * lib/unistr/u32-strmblen.c: Likewise.
43195         * lib/unistr/u32-strmbtouc.c: Likewise.
43196         * lib/unistr/u32-strncat.c: Likewise.
43197         * lib/unistr/u32-strncmp.c: Likewise.
43198         * lib/unistr/u32-strncpy.c: Likewise.
43199         * lib/unistr/u32-strnlen.c: Likewise.
43200         * lib/unistr/u32-strpbrk.c: Likewise.
43201         * lib/unistr/u32-strrchr.c: Likewise.
43202         * lib/unistr/u32-strspn.c: Likewise.
43203         * lib/unistr/u32-strstr.c: Likewise.
43204         * lib/unistr/u32-strtok.c: Likewise.
43205         * lib/unistr/u32-to-u16.c: Likewise.
43206         * lib/unistr/u32-to-u8.c: Likewise.
43207         * lib/unistr/u32-uctomb.c: Likewise.
43208         * lib/unistr/u8-check.c: Likewise.
43209         * lib/unistr/u8-chr.c: Likewise.
43210         * lib/unistr/u8-cmp.c: Likewise.
43211         * lib/unistr/u8-cpy-alloc.c: Likewise.
43212         * lib/unistr/u8-cpy.c: Likewise.
43213         * lib/unistr/u8-endswith.c: Likewise.
43214         * lib/unistr/u8-mblen.c: Likewise.
43215         * lib/unistr/u8-mbsnlen.c: Likewise.
43216         * lib/unistr/u8-mbtouc-aux.c: Likewise.
43217         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43218         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43219         * lib/unistr/u8-mbtouc.c: Likewise.
43220         * lib/unistr/u8-mbtoucr.c: Likewise.
43221         * lib/unistr/u8-move.c: Likewise.
43222         * lib/unistr/u8-next.c: Likewise.
43223         * lib/unistr/u8-prev.c: Likewise.
43224         * lib/unistr/u8-set.c: Likewise.
43225         * lib/unistr/u8-startswith.c: Likewise.
43226         * lib/unistr/u8-stpcpy.c: Likewise.
43227         * lib/unistr/u8-stpncpy.c: Likewise.
43228         * lib/unistr/u8-strcat.c: Likewise.
43229         * lib/unistr/u8-strchr.c: Likewise.
43230         * lib/unistr/u8-strcmp.c: Likewise.
43231         * lib/unistr/u8-strcpy.c: Likewise.
43232         * lib/unistr/u8-strcspn.c: Likewise.
43233         * lib/unistr/u8-strdup.c: Likewise.
43234         * lib/unistr/u8-strlen.c: Likewise.
43235         * lib/unistr/u8-strmblen.c: Likewise.
43236         * lib/unistr/u8-strmbtouc.c: Likewise.
43237         * lib/unistr/u8-strncat.c: Likewise.
43238         * lib/unistr/u8-strncmp.c: Likewise.
43239         * lib/unistr/u8-strncpy.c: Likewise.
43240         * lib/unistr/u8-strnlen.c: Likewise.
43241         * lib/unistr/u8-strpbrk.c: Likewise.
43242         * lib/unistr/u8-strrchr.c: Likewise.
43243         * lib/unistr/u8-strspn.c: Likewise.
43244         * lib/unistr/u8-strstr.c: Likewise.
43245         * lib/unistr/u8-strtok.c: Likewise.
43246         * lib/unistr/u8-to-u16.c: Likewise.
43247         * lib/unistr/u8-to-u32.c: Likewise.
43248         * lib/unistr/u8-uctomb-aux.c: Likewise.
43249         * lib/unistr/u8-uctomb.c: Likewise.
43250         * lib/unitypes.h: Likewise.
43251         * lib/uniwidth.h: Likewise.
43252         * lib/uniwidth/cjk.h: Likewise.
43253         * lib/uniwidth/u16-strwidth.c: Likewise.
43254         * lib/uniwidth/u16-width.c: Likewise.
43255         * lib/uniwidth/u32-strwidth.c: Likewise.
43256         * lib/uniwidth/u32-width.c: Likewise.
43257         * lib/uniwidth/u8-strwidth.c: Likewise.
43258         * lib/uniwidth/u8-width.c: Likewise.
43259         * lib/uniwidth/width.c: Likewise.
43260
43261 2007-10-07  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
43264         The file is still under LGPL (see modules/inttypes).
43265
43266 2007-10-06  Bruno Haible  <bruno@clisp.org>
43267
43268         * modules/trunc (Dependencies): Add 'extensions'.
43269         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
43270         Reported by Ben Pfaff <blp@gnu.org>.
43271
43272 2007-10-06  Bruno Haible  <bruno@clisp.org>
43273
43274         * modules/freopen-tests: New file.
43275         * tests/test-freopen.c: New file.
43276
43277         * modules/fopen-tests: New file.
43278         * tests/test-fopen.c: New file.
43279
43280         * modules/fopen: New file.
43281         * lib/fopen.c: New file.
43282         * m4/fopen.m4: New file.
43283         * modules/freopen: New file.
43284         * lib/freopen.c: New file.
43285         * m4/freopen.m4: New file.
43286         * lib/stdio.in.h (fopen, freopen): New declarations.
43287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
43288         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43289         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
43290         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
43291         * doc/functions/fopen.texi: Mention the 'fopen' module.
43292         * doc/functions/freopen.texi: Mention the 'freopen' module.
43293
43294 2007-10-06  Bruno Haible  <bruno@clisp.org>
43295
43296         * modules/open-tests: New file.
43297         * tests/test-open.c: New file.
43298
43299         * modules/open: New file.
43300         * lib/open.c: New file.
43301         * m4/open.m4: New file.
43302         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
43303         lib/open.c does.
43304         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
43305         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
43306         macros.
43307         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
43308         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
43309         REPLACE_OPEN.
43310         * doc/functions/open.texi: Mention the 'open' module.
43311
43312 2007-10-04  Bruno Haible  <bruno@clisp.org>
43313
43314         * modules/ceill-tests: New file.
43315         * tests/test-ceill.c: New file.
43316
43317         * modules/ceill: New file.
43318         * lib/ceill.c: Replace entire file.
43319         * m4/ceill.m4: New file.
43320         * lib/math.in.h (ceill): Replace declaration.
43321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
43322         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
43323         * doc/functions/ceill.texi: Mention the 'ceill' module.
43324         * modules/mathl (Files): Remove lib/ceill.c.
43325         (Depends-on): Add ceill.
43326
43327 2007-10-04  Bruno Haible  <bruno@clisp.org>
43328
43329         * modules/ceilf-tests: New file.
43330         * tests/test-ceilf.c: New file.
43331
43332         * modules/ceilf: New file.
43333         * lib/ceil.c: New file.
43334         * lib/ceilf.c: New file.
43335         * m4/ceilf.m4: New file.
43336         * lib/math.in.h (ceilf): New declaration.
43337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
43338         HAVE_DECL_CEILF.
43339         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
43340         HAVE_DECL_CEILF.
43341         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
43342
43343 2007-10-04  Bruno Haible  <bruno@clisp.org>
43344
43345         * modules/floorl-tests: New file.
43346         * tests/test-floorl.c: New file.
43347
43348         * modules/floorl: New file.
43349         * lib/floorl.c: Replace entire file.
43350         * m4/floorl.m4: New file.
43351         * lib/math.in.h (floorl): Replace declaration.
43352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
43353         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
43354         * doc/functions/floorl.texi: Mention the 'floorl' module.
43355         * modules/mathl (Files): Remove lib/floorl.c.
43356         (Depends-on): Add floorl.
43357
43358 2007-10-04  Bruno Haible  <bruno@clisp.org>
43359
43360         * modules/floorf-tests: New file.
43361         * tests/test-floorf.c: New file.
43362
43363         * modules/floorf: New file.
43364         * lib/floor.c: New file.
43365         * lib/floorf.c: New file.
43366         * m4/floorf.m4: New file.
43367         * lib/math.in.h (floorf): New declaration.
43368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
43369         HAVE_DECL_FLOORF.
43370         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
43371         HAVE_DECL_FLOORF.
43372         * doc/functions/floorf.texi: Mention the 'floorf' module.
43373
43374 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
43375             Bruno Haible  <bruno@clisp.org>
43376
43377         Advertise for the Git server instead of the CVS server.
43378         * doc/gnulib-intro.texi (Steady Development): Mention the Git
43379         repository instead of the CVS one.
43380         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
43381         about all VCS systems generically.
43382         * doc/gnulib.texi (Introduction): Capitalize `Git'.
43383
43384 2007-10-04  Bruno Haible  <bruno@clisp.org>
43385
43386         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
43387         means.
43388         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
43389
43390 2007-10-04  Bruno Haible  <bruno@clisp.org>
43391
43392         * modules/truncl-tests: New file.
43393         * tests/test-truncl.c: New file.
43394
43395         * modules/truncl: New file.
43396         * lib/truncl.c: New file.
43397         * m4/truncl.m4: New file.
43398         * lib/math.in.h (truncl): New declaration.
43399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
43400         HAVE_DECL_TRUNCL.
43401         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
43402         HAVE_DECL_TRUNCL.
43403         * doc/functions/truncl.texi: Mention the 'truncl' module.
43404
43405 2007-10-04  Bruno Haible  <bruno@clisp.org>
43406
43407         * modules/truncf-tests: New file.
43408         * tests/test-truncf.c: New file.
43409
43410         * modules/truncf: New file.
43411         * lib/trunc.c: Make paramerizable through USE_* macros.
43412         * lib/truncf.c: New file.
43413         * m4/truncf.m4: New file.
43414         * lib/math.in.h (truncf): New declaration.
43415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
43416         HAVE_DECL_TRUNCF.
43417         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
43418         HAVE_DECL_TRUNCF.
43419         * doc/functions/truncf.texi: Mention the 'truncf' module.
43420
43421 2007-10-03  Bruno Haible  <bruno@clisp.org>
43422
43423         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43424         augmentation also for tests modules.
43425         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
43426         * modules/atexit-tests (Makefile.am): Likewise.
43427         * modules/binary-io-tests (Makefile.am): Likewise.
43428         * modules/c-strcase-tests (Makefile.am): Likewise.
43429         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
43430         * modules/canonicalize-tests (Makefile.am): Likewise.
43431         * modules/closein-tests (Makefile.am): Likewise.
43432         * modules/fprintf-posix-tests (Makefile.am): Likewise.
43433         * modules/freadahead-tests (Makefile.am): Likewise.
43434         * modules/fseek-tests (Makefile.am): Likewise.
43435         * modules/fseeko-tests (Makefile.am): Likewise.
43436         * modules/ftell-tests (Makefile.am): Likewise.
43437         * modules/ftello-tests (Makefile.am): Likewise.
43438         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
43439         * modules/isnanl-tests (Makefile.am): Likewise.
43440         * modules/lseek-tests (Makefile.am): Likewise.
43441         * modules/mbscasecmp-tests (Makefile.am): Likewise.
43442         * modules/mbscasestr-tests (Makefile.am): Likewise.
43443         * modules/mbschr-tests (Makefile.am): Likewise.
43444         * modules/mbscspn-tests (Makefile.am): Likewise.
43445         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
43446         * modules/mbspbrk-tests (Makefile.am): Likewise.
43447         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
43448         * modules/mbsrchr-tests (Makefile.am): Likewise.
43449         * modules/mbsspn-tests (Makefile.am): Likewise.
43450         * modules/mbsstr-tests (Makefile.am): Likewise.
43451         * modules/printf-posix-tests (Makefile.am): Likewise.
43452         * modules/snprintf-posix-tests (Makefile.am): Likewise.
43453         * modules/sprintf-posix-tests (Makefile.am): Likewise.
43454         * modules/tsearch-tests (Makefile.am): Likewise.
43455         * modules/uniname/uniname-tests (Makefile.am): Likewise.
43456         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
43457         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
43458         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
43459         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
43460         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
43461         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
43462         * modules/vprintf-posix-tests (Makefile.am): Likewise.
43463         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
43464         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
43465         * modules/xstrtoimax-tests (Makefile.am): Likewise.
43466         * modules/xstrtol-tests (Makefile.am): Likewise.
43467         * modules/xstrtoumax-tests (Makefile.am): Likewise.
43468         * modules/yesno-tests (Makefile.am): Likewise.
43469
43470 2007-10-03  Bruno Haible  <bruno@clisp.org>
43471
43472         * modules/trunc-tests: New file.
43473         * tests/test-trunc.c: New file.
43474
43475         * modules/trunc: New file.
43476         * lib/trunc.c: New file.
43477         * m4/trunc.m4: New file.
43478         * lib/math.in.h (trunc): New declaration.
43479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
43480         HAVE_DECL_TRUNC.
43481         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
43482         HAVE_DECL_TRUNC.
43483         * doc/functions/trunc.texi: Mention the 'trunc' module.
43484
43485 2007-10-03  Bruno Haible  <bruno@clisp.org>
43486
43487         * tests/test-fpending.c: New file, mostly copied
43488         from coreutils/lib/t-fpending.c.
43489         * modules/fpending-tests: New file.
43490
43491 2007-10-03  Bruno Haible  <bruno@clisp.org>
43492
43493         Port the stdio extensions to QNX (untested).
43494         * lib/fseterr.c (fseterr): Add support for QNX.
43495         * lib/fbufmode.c (fbufmode): Likewise.
43496         * lib/freadable.c (freadable): Likewise.
43497         * lib/fwritable.c (fwritable): Likewise.
43498         * lib/freading.c (freading): Likewise.
43499         * lib/fwriting.c (fwriting): Likewise.
43500         * lib/freadahead.c (freadahed): Likewise.
43501         * lib/fpurge.c (fpurge): Likewise.
43502         * lib/fseeko.c (rpl_fseeko): Likewise.
43503
43504 2007-10-03  Bruno Haible  <bruno@clisp.org>
43505             Jim Meyering  <jim@meyering.net>
43506             Eric Blake  <ebb9@byu.net>
43507
43508         * doc/relocatable.texi: Use @command instead of @program.
43509
43510 2007-10-02  Jim Meyering  <jim@meyering.net>
43511
43512         Perform one more "_.h" -> ".in.h" substitution.
43513         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
43514         instead of unistd_.h here, too.
43515
43516 2007-10-01  Bruno Haible  <bruno@clisp.org>
43517
43518         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
43519         Needed for the alloca-opt module.
43520
43521 2007-09-30  Bruno Haible  <bruno@clisp.org>
43522
43523         * lib/alloca.in.h: Renamed from lib/alloca_.h.
43524         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
43525         alloca_.h.
43526         * lib/argz.in.h: Renamed from lib/argz_.h.
43527         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
43528         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
43529         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
43530         byteswap_.h.
43531         * lib/dirent.in.h: Renamed from lib/dirent_.h.
43532         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
43533         dirent_.h.
43534         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
43535         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
43536         fcntl_.h.
43537         * lib/float.in.h: Renamed from lib/float_.h.
43538         * modules/float (Files, Makefile.am): Use float.in.h instead of
43539         float_.h.
43540         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
43541         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
43542         fnmatch_.h.
43543         * lib/getopt.in.h: Renamed from lib/getopt_.h.
43544         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
43545         getopt_.h.
43546         * lib/glob.in.h: Renamed from lib/glob_.h.
43547         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
43548         * lib/iconv.in.h: Renamed from lib/iconv_.h.
43549         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
43550         iconv_.h.
43551         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
43552         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
43553         inttypes_.h.
43554         * lib/locale.in.h: Renamed from lib/locale_.h.
43555         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
43556         locale_.h.
43557         * lib/math.in.h: Renamed from lib/math_.h.
43558         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
43559         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
43560         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
43561         of netinet_in_.h. Add dependency.
43562         * lib/poll.in.h: Renamed from lib/poll_.h.
43563         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
43564         * lib/search.in.h: Renamed from lib/search_.h.
43565         * modules/search (Files, Makefile.am): Use search.in.h instead of
43566         search_.h.
43567         * lib/signal.in.h: Renamed from lib/signal_.h.
43568         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
43569         _signal.h.
43570         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
43571         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
43572         stdbool_.h.
43573         * lib/stdint.in.h: Renamed from lib/stdint_.h.
43574         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
43575         stdint_.h.
43576         * lib/stdio.in.h: Renamed from lib/stdio_.h.
43577         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
43578         stdio_.h.
43579         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
43580         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
43581         stdlib_.h.
43582         * lib/string.in.h: Renamed from lib/string_.h.
43583         * modules/string (Files, Makefile.am): Use string.in.h instead of
43584         string_.h.
43585         * doc/gnulib-tool.texi (Initial import): Update.
43586         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
43587         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
43588         of sys_select_.h. Add dependency.
43589         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
43590         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
43591         of sys_socket_.h.
43592         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
43593         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
43594         sys_stat_.h.
43595         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
43596         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
43597         sys_time_.h.
43598         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
43599         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
43600         sysexits_.h.
43601         * lib/time.in.h: Renamed from lib/time_.h.
43602         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
43603         * lib/unistd.in.h: Renamed from lib/unistd_.h.
43604         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
43605         unistd_.h.
43606         * lib/wchar.in.h: Renamed from lib/wchar_.h.
43607         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
43608         wchar_.h.
43609         * lib/wctype.in.h: Renamed from lib/wctype_.h.
43610         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
43611         wctype_.h.
43612         * build-aux/bootstrap (slurp): Update.
43613         * lib/.cppi-disable: Update.
43614
43615 2007-09-30  Bruno Haible  <bruno@clisp.org>
43616
43617         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
43618         Needed on BeOS.
43619
43620 2007-09-30  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
43623
43624 2007-09-29  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
43627
43628 2007-09-29  Bruno Haible  <bruno@clisp.org>
43629
43630         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
43631         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
43632         * build-aux/install-reloc: Compile also areadlink.c.
43633         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
43634
43635 2007-09-29  Bruno Haible  <bruno@clisp.org>
43636
43637         * gnulib-tool (func_emit_initmacro_done): Indentation.
43638
43639 2007-09-29  Bruno Haible  <bruno@clisp.org>
43640
43641         * README: Add CVS checkout update instructions.
43642         Info from Bob Proulx <bob@proulx.com>.
43643
43644 2007-09-28  Eric Blake  <ebb9@byu.net>
43645
43646         Provide move-if-change.
43647         * build-aux/move-if-change: New file, based on best practice
43648         rather than any canonical upstream location.
43649
43650 2007-09-28  Jim Meyering  <jim@meyering.net>
43651
43652         Fix canonicalize loop-detection corner case.
43653         Do not attempt to stat the symlink values stored via seen_triple.
43654         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
43655         on linux-2.6.18, (but not 2.6.22).
43656         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
43657         triple_compare.  The former compares dev,ino,filename, while the latter
43658         would actually stat dirname(filename) when dev and ino were equal.
43659         * lib/hash-triple.c: Install <string.h>.
43660         (STREQ): Define.
43661         (triple_compare_ino_str): New function.
43662         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
43663
43664 2007-09-28  Eric Blake  <ebb9@byu.net>
43665
43666         Enforce that AC_REPLACE_FUNCS files exist.
43667         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
43668         override check for typos.
43669
43670         Fix test-closein on Solaris 10.
43671         * tests/test-closein.c (main): Don't assume stdin can be inherited
43672         closed on all systems.
43673         * tests/test-closein.sh: Likewise.
43674         Reported by Piotr Tarnowski.
43675
43676 2007-09-28  Jim Meyering  <jim@meyering.net>
43677
43678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
43679
43680 2007-09-27  Jim Meyering  <jim@meyering.net>
43681
43682         canonicalize: Avoid a false-positive cycle failure.
43683         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
43684         Sort.  Remove cycle-check.
43685         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
43686         not cycle-check.h.
43687         (seen_triple): New function.
43688         (canonicalize_filename_mode): Use it instead of cycle-check.
43689         * tests/test-canonicalize.c: Add a test for this bug.
43690         * tests/test-canonicalize.sh: Set up and run the test.
43691
43692         New module, file-set, from coreutils.
43693         * modules/file-set: Define it.
43694         * lib/file-set.c, lib/file-set.h: Implement.
43695
43696         New module, hash-triple, from coreutils.
43697         * modules/hash-triple: Define it.
43698         * lib/hash-triple.c, lib/hash-triple.h: Implement.
43699
43700 2007-09-25  Eric Blake  <ebb9@byu.net>
43701
43702         Fix strerror on Interix.
43703         * lib/string_.h (strerror): Declare replacement.
43704         * doc/functions/strerror.texi (strerror): Document the Interix
43705         shortcoming.
43706         * modules/string (Makefile.am): Support new hooks.
43707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
43708         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
43709         gl_FUNC_STRERROR_SEPARATE.
43710         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
43711         * lib/strerror.c (rpl_strerror): Provide replacement.
43712         * modules/strerror (Depends-on): Add string.
43713         (configure.ac): Detect use of module.
43714         * tests/test-strerror.c: New file.
43715         * modules/strerror-tests: New test module.
43716         * modules/argp (Depends-on): Add strerror.
43717         * modules/error (Depends-on): Likewise.
43718         Reported by Martin Koeppe.
43719
43720 2007-09-24  Bruno Haible  <bruno@clisp.org>
43721
43722         * README: Update git instructions.
43723
43724 2007-09-24  Eric Blake  <ebb9@byu.net>
43725
43726         Revert fpending breakage from 2007-09-08.
43727         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
43728         __fpending.c.
43729
43730 2007-09-24  Jim Meyering  <jim@meyering.net>
43731
43732         filenamecat.c: Add a test.
43733         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
43734         showing how the function works when DIR is the empty string.
43735
43736 2007-09-21  Simon Josefsson  <simon@josefsson.org>
43737
43738         * tests/test-canonicalize.sh: Turn on executable bit.
43739
43740 2007-09-19  Eric Blake  <ebb9@byu.net>
43741
43742         * README: Update CVS instructions.
43743
43744 2007-09-18  Bruno Haible  <bruno@clisp.org>
43745
43746         * modules/areadlink: New file.
43747         * lib/areadlink.h (areadlink): New declaration.
43748         * lib/areadlink.c: New file, based on lib/xreadlink.c.
43749
43750 2007-09-17  Jim Meyering  <jim@meyering.net>
43751
43752         * lib/savewd.c (ESTALE) [!defined]: Define.
43753         Reported to be required on Interix by Martin Koeppe.
43754
43755 2007-09-17  Bruno Haible  <bruno@clisp.org>
43756
43757         * gnulib-tool (func_version): Use $version.
43758
43759 2007-09-16  Bruno Haible  <bruno@clisp.org>
43760
43761         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
43762         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
43763         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
43764         Reported by Greg Schafer <gschafer@zip.com.au>.
43765
43766 2007-09-15  Bruno Haible  <bruno@clisp.org>
43767
43768         * gnulib-tool (sed): Try a little harder to make bash understand the
43769         alias.
43770         Reported by Bruce Korb <bruce.korb@gmail.com>.
43771
43772 2007-09-13  Eric Blake  <ebb9@byu.net>
43773
43774         * ChangeLog: Remove conflict markers.
43775
43776 2007-09-13  Simon Josefsson  <simon@josefsson.org>
43777
43778         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
43779         Reported by Bruno Haible <bruno@clisp.org>.
43780
43781 2007-09-12  Bruno Haible  <bruno@clisp.org>
43782
43783         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
43784         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
43785         is not defined.
43786
43787 2007-09-12  Eric Blake  <ebb9@byu.net>
43788
43789         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
43790         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
43791         Autoconf definition.
43792         * modules/euidaccess (Depends-on): Add extensions, for
43793         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
43794         * modules/fnmatch (Depends-on): Likewise.
43795         * modules/getaddrinfo (Depends-on): Likewise.
43796         * modules/getdelim (Depends-on): Likewise.
43797         * modules/getline (Depends-on): Likewise.
43798         * modules/getsubopt (Depends-on): Likewise.
43799         * modules/gettext (Depends-on): Likewise.
43800         * modules/group-member (Depends-on): Likewise.
43801         * modules/mbchar (Depends-on): Likewise.
43802         * modules/memmem (Depends-on): Likewise.
43803         * modules/mempcpy (Depends-on): Likewise.
43804         * modules/memrchr (Depends-on): Likewise.
43805         * modules/pagealign_alloc (Depends-on): Likewise.
43806         * modules/readutmp (Depends-on): Likewise.
43807         * modules/stpcpy (Depends-on): Likewise.
43808         * modules/stpncpy (Depends-on): Likewise.
43809         * modules/strchrnul (Depends-on): Likewise.
43810         * modules/strndup (Depends-on): Likewise.
43811         * modules/strsep (Depends-on): Likewise.
43812         * modules/strverscmp (Depends-on): Likewise.
43813         * modules/vasprintf (Depends-on): Likewise.
43814         * modules/wcwidth (Depends-on): Likewise.
43815         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
43816         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
43817         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
43818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
43819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43820         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43821         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
43822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43823         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
43824         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
43825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43826         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
43827         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
43828         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43829         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
43830         * m4/readutmp.m4 (gl_READUTMP): Likewise.
43831         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43832         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
43833         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43834         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
43835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43836         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
43837         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
43838         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
43839         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
43840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43841         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
43842         so that lock.m4 can be used in gettext without extensions module.
43843
43844 2007-09-11  Bruno Haible  <bruno@clisp.org>
43845
43846         * m4/isc-posix.m4: Remove file.
43847         Suggested by Eric Blake.
43848
43849 2007-09-11  Eric Blake  <ebb9@byu.net>
43850
43851         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
43852
43853 2007-09-10  Bruno Haible  <bruno@clisp.org>
43854
43855         * posix-modules: Fix typo in error message.
43856         Reported by Matt <mkraai@beckman.com>.
43857
43858 2007-09-09  Bruno Haible  <bruno@clisp.org>
43859
43860         * doc/functions/getdelim.texi: Update list of platforms lacking the
43861         function.
43862         * doc/functions/getline.texi: Likewise.
43863
43864 2007-09-09  Jim Meyering  <jim@meyering.net>
43865
43866         * lib/hash.c (hash_initialize): Detect calloc failure.
43867         Reported by Bruno Haible.
43868
43869 2007-09-09  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
43872         malloc or realloc fails.
43873
43874 2007-09-09  Bruno Haible  <bruno@clisp.org>
43875
43876         * modules/getcwd (Depends-on): Add malloc-posix.
43877         * modules/glob (Depends-on): Likewise.
43878         * modules/putenv (Depends-on): Likewise.
43879         * modules/strdup (Depends-on): Likewise.
43880         * modules/getdelim (Depends-on): Add realloc-posix.
43881         * modules/read-file (Depends-on): Likewise.
43882
43883 2007-09-09  Bruno Haible  <bruno@clisp.org>
43884
43885         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
43886         (gl_FUNC_MALLOC_POSIX): Require it.
43887         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
43888         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
43889         * modules/realloc (Files): Add m4/malloc.m4.
43890         * modules/calloc (Files): Likewise.
43891
43892 2007-09-09  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/malloc-posix: New file.
43895         * modules/malloc (Depends-on): Add malloc-posix.
43896         * lib/malloc.c: Include errno.h.
43897         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
43898         and a POSIX-compatible malloc into a single function. Set ENOMEM
43899         when returning NULL.
43900         * m4/malloc.m4: New file.
43901         * doc/functions/malloc.texi: Mention the malloc-posix module.
43902         * lib/stdlib_.h (malloc): New declaration.
43903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43904         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
43905         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
43906         and HAVE_MALLOC_POSIX.
43907
43908 2007-09-09  Bruno Haible  <bruno@clisp.org>
43909
43910         * modules/realloc-posix: New file.
43911         * modules/realloc (Depends-on): Add realloc-posix.
43912         * lib/realloc.c: Include errno.h.
43913         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
43914         and a POSIX-compatible realloc into a single function. Set ENOMEM
43915         when returning NULL.
43916         * m4/realloc.m4: New file.
43917         * doc/functions/realloc.texi: Mention the realloc-posix module.
43918         * lib/stdlib_.h (realloc): New declaration.
43919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43920         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
43921         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
43922         and HAVE_REALLOC_POSIX.
43923
43924 2007-09-09  Bruno Haible  <bruno@clisp.org>
43925
43926         * modules/calloc-posix: New file.
43927         * modules/calloc (Depends-on): Add calloc-posix.
43928         * lib/calloc.c: Include errno.h.
43929         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
43930         and a POSIX-compatible calloc into a single function. Set ENOMEM
43931         when returning NULL.
43932         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
43933         * doc/functions/calloc.texi: Mention the calloc-posix module.
43934         * lib/stdlib_.h (calloc): New declaration.
43935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43936         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
43937         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
43938         and HAVE_CALLOC_POSIX.
43939
43940 2007-09-09  Bruno Haible  <bruno@clisp.org>
43941
43942         Allow for modules to show an arbitrary notice.
43943         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
43944         * gnulib-tool: New option --extract-notice.
43945         (func_usage): Document it.
43946         (sed_extract_prog): Update.
43947         (func_get_notice): New function.
43948         (func_modules_notice): New function.
43949         (func_import, func_create_testdir): Invoke it.
43950         Suggested by Jim Meyering.
43951
43952 2007-09-09  Bruno Haible  <bruno@clisp.org>
43953
43954         * gnulib-tool: New options --verbose, --quiet.
43955         (func_usage): Document them.
43956         (verbose): New variable.
43957         (func_execute_command): New function.
43958         (func_import): Don't show the module list and the file list if
43959         $verbose < 0.
43960         (func_create_testdir): Likewise. Use func_execute_command.
43961         (func_create_megatestdir): Use func_execute_command.
43962
43963 2007-09-08  Bruno Haible  <bruno@clisp.org>
43964
43965         * gnulib-tool (func_import): Prefer rsync over wget when available,
43966         for fetching the PO files.
43967
43968 2007-09-08  Bruno Haible  <bruno@clisp.org>
43969
43970         * posix-modules: New file. Portions copied from gnulib-tool.
43971         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
43972
43973 2007-09-08  Jim Meyering  <jim@meyering.net>
43974
43975         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
43976         * lib/fpending.h: Rename from __fpending.h.
43977         * lib/fpending.c: Rename from __fpending.c.
43978         Include "fpending.h", not "__fpending.h".
43979         * lib/__fpending.h, lib/__fpending.c: Remove files.
43980         * modules/fpending (Files): Reflect new file names.
43981         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
43982
43983 2007-09-08  Bruno Haible  <bruno@clisp.org>
43984
43985         * m4/inttypes-h.m4: Remove stub file.
43986
43987 2007-09-07  Simon Josefsson  <simon@josefsson.org>
43988
43989         * doc/headers/stdint.texi: Discuss #include_next issue.
43990
43991 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43992
43993         * build-aux/bootstrap: Remove obsolete comment about wget --help.
43994
43995 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43996
43997         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
43998         in variable name.
43999
44000 2007-09-03  Jim Meyering  <jim@meyering.net>
44001
44002         New module: git-version-gen.
44003         * modules/git-version-gen: New file.
44004
44005         Import changes from coreutils for bootstrap script.
44006
44007         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
44008
44009         bootstrap: uses rsync to download the .po files
44010         * build-aux/bootstrap (po_download_command_format): New global.
44011         (download_po_files): Use rsync.
44012         (update_po_files): Don't remove .po files after download,
44013         so future rsync runs can take advantage of the copies.
44014
44015         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
44016
44017         Solve the unnecessary-.po-file-regeneration problem once and for all.
44018         * build-aux/bootstrap (download_po_files): New function, renamed from
44019         get_translations.  Now, downloads, but doesn't update LINGUAS.
44020         (update_po_files): New function.
44021
44022         bootstrap: Ignore more.
44023         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
44024         uniwidth to e.g., lib/.gitignore.
44025         (slurp): Handle the sys_stat_.h -> sys mapping, too.
44026
44027         * build-aux/bootstrap: New setting: vc_ignore.
44028         (insert_sorted_if_absent): Create $file if absent.
44029         Adapt to new, possibly empty, list: $vc_ignore.
44030
44031         bootstrap: generate more ignorable names
44032         * build-aux/bootstrap (slurp): When generating ignorable names,
44033         also map .sin to .sed, .gperf to .c, and .y to .c.
44034
44035 2007-09-03  Jim Meyering  <jim@meyering.net>
44036
44037         * build-aux/git-version-gen: New file, from coreutils.  For details, see
44038         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
44039
44040 2007-09-02  Bruno Haible  <bruno@clisp.org>
44041
44042         Fix mis-recognition of 'mcs' on QNX 6.
44043         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
44044         output contains the string "Mono".
44045         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
44046         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
44047
44048 2007-09-01  Bruno Haible  <bruno@clisp.org>
44049
44050         Fix collision between uniwidth/* and linebreak modules.
44051         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
44052         u32_width): Remove declarations.
44053         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
44054         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
44055         streq3, streq2, streq1, streq0): Remove functions.
44056         (STREQ): Remove macro.
44057         (is_cjk_encoding): Remove function.
44058         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
44059         (uc_width, u8_width, u16_width, u32_width): Remove functions.
44060         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
44061         * NEWS: Document the change.
44062
44063 2007-09-01  Bruno Haible  <bruno@clisp.org>
44064
44065         * lib/streq.h: Add double-inclusion guard.
44066
44067 2007-09-01  Karl Berry  <karl@gnu.org>
44068
44069         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
44070
44071 2007-08-28  Jim Meyering  <jim@meyering.net>
44072
44073         Rename mreadlink_with_size to areadlink_with_size.
44074         * NEWS: Document the change.
44075         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
44076         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
44077         * lib/mreadlink.h: Rename this to...
44078         * lib/areadlink.h: ...this.
44079         * modules/mreadlink-with-size: Rename this to...
44080         * modules/areadlink-with-size: ...this.
44081         * lib/canonicalize.c: Reflect the renaming.
44082         * modules/canonicalize: Likewise.
44083
44084 2007-08-26  Bruno Haible  <bruno@clisp.org>
44085
44086         * gnulib-tool (func_import): When deciding which files to remove,
44087         consider also dangling symbolic links.
44088         Reported by Eric Blake.
44089
44090 2007-08-26  Bruno Haible  <bruno@clisp.org>
44091
44092         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
44093
44094 2007-08-23  Simon Josefsson  <simon@josefsson.org>
44095
44096         * lib/readline.c: Don't include getline.h, the prototype is now
44097         found in stdio.h.
44098
44099 2007-08-23  Jim Meyering  <jim@meyering.net>
44100
44101         Getdelim touchup.
44102         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
44103         around the funlockfile call, since funlockfile never sets errno.
44104         Don't set errno upon failed realloc.
44105
44106 2007-08-22  Eric Blake  <ebb9@byu.net>
44107
44108         Getline touchups.
44109         * lib/getdelim.c (getdelim): Revert regression that required *n to
44110         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
44111         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
44112         getdelim, rather than whether implementation is missing.
44113         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
44114         * lib/stdio_.h (getline): Also declare if replacement is
44115         required.
44116         * doc/functions/getdelim.texi: New file.
44117         * doc/functions/getline.texi: Likewise.
44118         * doc/gnulib.texi (Function Substitutes): Add new files.
44119         Reported by Bruno Haible.
44120
44121 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
44122
44123         * users.txt: Add Guile.
44124
44125 2007-08-22  Eric Blake  <ebb9@byu.net>
44126
44127         * tests/test-getdelim.c (main): Use remove, not unlink.
44128         * tests/test-getline.c (main): Likewise.
44129
44130         Move getline and getdelim into stdio.h, per POSIX 200x.
44131         * modules/getline (Files): Remove getline.h.
44132         (Depends-on): Add stdio.
44133         (configure.ac): Add module indicator.
44134         * modules/getdelim (Files): Remove getdelim.h.
44135         (Depends-on): Add stdio.
44136         (configure.ac): Add module indicator.
44137         * modules/stdio (Makefile.am): Work with new indicators.
44138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
44140         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44141         * lib/getdelim.h: Delete.
44142         * lib/getline.h: Delete.
44143         * lib/stdio_.h (getdelim, getline): Declare.
44144         * modules/getdelim-tests: New module.
44145         * modules/getline-tests: Likewise.
44146         * tests/test-getdelim.c: New file.
44147         * tests/test-getline.c: Likewise.
44148         * NEWS: Document the change.
44149         * lib/getline.c: Update choice of header.
44150         * lib/csharpcomp.c: Likewise.
44151         * lib/getpass.c: Likewise.
44152         * lib/javacomp.c: Likewise.
44153         * lib/javaversion.c: Likewise.
44154         * lib/yesno.c: Likewise.
44155         * lib/getdelim.c: Likewise.
44156         (getdelim): Set errno on failure, and avoid memory leak.
44157
44158 2007-08-19  Bruno Haible  <bruno@clisp.org>
44159
44160         * modules/closein (Depends-on): Add freadahead.
44161         * lib/closein.c: Include freadahead.h.
44162         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
44163         is zero.
44164
44165 2007-08-19  Bruno Haible  <bruno@clisp.org>
44166
44167         * modules/freadahead-tests: New file.
44168         * tests/test-freadahead.sh: New file.
44169         * tests/test-freadahead.c: New file.
44170
44171         * modules/freadahead: New file.
44172         * lib/freadahead.h: New file.
44173         * lib/freadahead.c: New file.
44174         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
44175         fbufmode, fpurge, freadable, fwritable.
44176
44177 2007-08-19  Eric Blake  <ebb9@byu.net>
44178
44179         Test yesno in combination with closein.
44180         * lib/yesno.c (yesno): Document use of stdin.
44181         * modules/yesno-tests (Files): New module.
44182         * tests/test-yesno.c (main): New file.
44183         * tests/test-yesno.sh: Likewise.
44184
44185 2007-08-19  Bruno Haible  <bruno@clisp.org>
44186
44187         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
44188         * lib/fseeko.c (rpl_fseeko): Likewise.
44189         * lib/fseterr.c (fseterr): Likewise.
44190
44191 2007-08-19  Bruno Haible  <bruno@clisp.org>
44192
44193         * tests/test-lseek.c (main): Disable a test for BeOS.
44194         * doc/functions/lseek.texi: Document the BeOS bug.
44195
44196 2007-08-19  Bruno Haible  <bruno@clisp.org>
44197             Eric Blake  <ebb9@byu.net>
44198
44199         * lib/lseek.c: Include <sys/stat.h>.
44200         (rpl_lseek): Add workaround code also for Unix platforms.
44201         Needed for BeOS.
44202         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
44203         * doc/functions/lseek.texi: Document BeOS definiency.
44204
44205 2007-08-18  Bruno Haible  <bruno@clisp.org>
44206
44207         * modules/fstrcmp-tests: New file.
44208         * tests/test-fstrcmp.c: New file.
44209
44210 2007-08-18  Bruno Haible  <bruno@clisp.org>
44211
44212         * modules/fstrcmp: New file, from GNU gettext with modifications.
44213         * lib/fstrcmp.h: New file, from GNU gettext.
44214         * lib/fstrcmp.c: New file, from GNU gettext.
44215         * MODULES.html.sh (String handling): Add fstrcmp.
44216
44217 2007-08-18  Bruno Haible  <bruno@clisp.org>
44218
44219         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
44220         'bool'.
44221         (diag, compareseq): Remove const from the ctxt argument.
44222         (USE_HEURISTIC): Undefine at the end.
44223
44224 2007-08-18  Jim Meyering  <jim@meyering.net>
44225
44226         New file: lib/idcache.h
44227         * NEWS: Mention the addition.
44228         * modules/idcache (Files): Add lib/idcache.h
44229         * lib/idcache.c: Include "idcache.h".
44230         Don't include <sys/types.h>.
44231         Add a FIXME comment.
44232         Move file-scoped "static" declarations to the top.
44233         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
44234
44235 2007-08-17  Bruno Haible  <bruno@clisp.org>
44236         and Paul Eggert  <eggert@cs.ucla.edu>
44237
44238         * MODULES.html.sh: Add diffseq.
44239         * modules/diffseq: New file.
44240         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
44241         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
44242
44243 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         Import changes from coreutils for bootstrap script.
44246
44247         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         * build-aux/bootstrap (slurp): Work even in environments where
44250         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
44251         current code does not slurp files whose names start with ".", and
44252         this looks like it might be a troublesome area.
44253
44254         2007-07-11  Jim Meyering  <jim@meyering.net>
44255
44256         If there's a GPL vN copyright comment, require that N == 3.
44257
44258         2007-07-08  Jim Meyering  <jim@meyering.net>
44259
44260         Run the coreutils-specific code only if tests/Makefile.am.in exists.
44261         * build-aux/bootstrap (mam_template): Move definition out of loop.
44262
44263         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
44264
44265         * build-aux/bootstrap (symlink_to_dir): Rename function from
44266         symlink_to_gnulib.  Add a directory parameter.  Update all
44267         callers.
44268         (cp_mark_as_generated): Also check for -- and link to -- files in
44269         gl/.
44270
44271         2007-07-08  Jim Meyering  <jim@meyering.net>
44272
44273         Adapt to deeper hierarchy in gnulib.
44274         * build-aux/bootstrap (symlink_to_dir): If the destination
44275         directory doesn't exist, create it. This is required at least for
44276         "lib/uniwidth/cjk.h".
44277
44278         2007-05-15  Jim Meyering  <jim@meyering.net>
44279
44280         * build-aux/bootstrap: Now that generated Makefile.am files
44281         are no longer under version control, they must be created at
44282         bootstrap time.
44283
44284 2007-08-14  Ben Pfaff  <blp@gnu.org>
44285
44286         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
44287
44288 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44289
44290         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
44291         given the changes below.
44292         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
44293         even on hosts that have padding bits beyond the supported 64.
44294
44295 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
44298         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
44299         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
44300         depends on it.
44301         (xstrtol_error): Remove.
44302         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
44303         but with a different signature.
44304         (ATTRIBUTE_NORETURN, __attribute__): New macros.
44305         * lib/xstrtol-error.c: Include exitfail.h.
44306         (xstrtol_fatal): New function, with a different signature from the
44307         old xstrtol_error, so that the caller need not worry about passing
44308         in an exit status, or about storage management of the option argument.
44309         (xstrtol_error): Now a static function.  Redo signature to
44310         implement xstrtol_fatal.  Output the correct number of hyphens in
44311         front of the option so that the caller need not worry about
44312         storage management.
44313         (N_): New macro.
44314         (_): Remove; not used now.
44315         * modules/xstrtol: Depend on getopt.
44316         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
44317         of old STRTOL_FATAL_ERROR macro.
44318         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
44319         of test program.
44320         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
44321         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
44322
44323 2007-08-08  Eric Blake  <ebb9@byu.net>
44324
44325         * lib/xstrtol-error.c: Add missing include.
44326
44327         Move xstrtol messages into gnulib domain, when --pobase is used.
44328         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
44329         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
44330         * modules/xstrtol (Files): Distribute new file.
44331         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
44332         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
44333         * tests/test-xstrtol.c: ...into new file.
44334         * tests/test-xstrtoul.c: Also test xstrtoul.
44335         * tests/test-xstrtoimax.c: Also test xstrtoimax.
44336         * tests/test-xstrtoumax.c: Also test xstrtoumax.
44337         * tests/test-xstrtol.sh: Drive the tests.
44338         * tests/test-xstrtoimax.sh: Likewise.
44339         * tests/test-xstrtoumax.sh: Likewise.
44340         * modules/xstrtol-tests: New module.
44341         * modules/xstrtoimax-tests: Likewise.
44342         * modules/xstrtoumax-tests: Likewise.
44343
44344 2007-08-08  Jim Meyering  <jim@meyering.net>
44345
44346         New function: mfile_name_concat.
44347         * lib/filenamecat.c (mfile_name_concat): New function, just like
44348         file_name_concat, but return NULL upon failure rather than exiting
44349         with a diagnostic.
44350         * lib/filenamecat.h: Declare it.
44351
44352 2007-08-07  Bruno Haible  <bruno@clisp.org>
44353
44354         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
44355         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
44356         warning from gcc.
44357         Reported by Eric Blake.
44358
44359 2007-08-07  Simon Josefsson  <simon@josefsson.org>
44360
44361         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
44362         * modules/crypto/arcfour (License): Likewise.
44363         * modules/crypto/des-tests (License): Likewise.
44364         * modules/crypto/gc-arctwo-tests (License): Likewise.
44365         * modules/crypto/gc-des-tests (License): Likewise.
44366         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
44367         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
44368         * modules/crypto/gc-md2-tests (License): Likewise.
44369         * modules/crypto/gc-md4-tests (License): Likewise.
44370         * modules/crypto/gc-md5-tests (License): Likewise.
44371         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
44372         * modules/crypto/gc-rijndael-tests (License): Likewise.
44373         * modules/crypto/gc-sha1-tests (License): Likewise.
44374         * modules/crypto/gc-tests (License): Likewise.
44375         * modules/crypto/hmac-md5 (License): Likewise.
44376         * modules/crypto/hmac-sha1 (License): Likewise.
44377         * modules/crypto/md2-tests (License): Likewise.
44378         * modules/crypto/md4-tests (License): Likewise.
44379         * modules/crypto/md5 (License): Likewise.
44380         * modules/crypto/rijndael (License): Likewise.
44381         * modules/crypto/sha1 (License): Likewise.
44382         * modules/memxor (License): Likewise.
44383
44384 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
44385         and Bruno Haible  <bruno@clisp.org>
44386
44387         * NEWS: Describe interface changes to human, xstrtol.
44388         * lib/human.h: Include <xstrtol.h>.
44389         (human_options): Return enum strtol_error, not int.  Remove
44390         bool arg; take int * instead.
44391         * lib/human.c: Don't include "gettext.h".
44392         (_): Remove; no longer used.
44393         Don't include <xstrtol.h>, since human.h does it.
44394         (human_options): Adjust to abovementioned interface changes.
44395         Do not report error to stderr; that's now the caller's
44396         responsibility.
44397         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
44398         interface change.
44399         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
44400         Str, Argument_type_string.  All uses changed.  Put " argument"
44401         in diagnostics to make them clearer.  Change wording of suffix
44402         message for clarity.
44403         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
44404         Argument_type_string.
44405         (STRTOL_FATAL_WARN): Remove; no longer used.
44406         * modules/human (Depends-on): Remove gettext-h.
44407
44408 2007-08-06  Simon Josefsson  <simon@josefsson.org>
44409
44410         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
44411
44412 2007-07-31  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
44415         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
44416         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
44417
44418 2007-07-31  Bruno Haible  <bruno@clisp.org>
44419
44420         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
44421         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
44422
44423 2007-07-30  Bruno Haible  <bruno@clisp.org>
44424
44425         * modules/base64 (License): Use the synonymous term "LGPLv2+".
44426         * modules/c-ctype (License): Likewise.
44427         * modules/c-strcase (License): Likewise.
44428         * modules/check-version (License): Likewise.
44429         * modules/iconv (License): Likewise.
44430         * modules/iconv_open (License): Likewise.
44431         * modules/read-file (License): Likewise.
44432         * modules/striconv (License): Likewise.
44433         * modules/strverscmp (License): Likewise.
44434         * modules/vasprintf (License): Likewise.
44435         * modules/crypto/des (License): Likewise.
44436         * modules/crypto/gc (License): Likewise.
44437         * modules/crypto/gc-arcfour (License): Likewise.
44438         * modules/crypto/gc-arctwo (License): Likewise.
44439         * modules/crypto/gc-des (License): Likewise.
44440         * modules/crypto/gc-hmac-md5 (License): Likewise.
44441         * modules/crypto/gc-hmac-sha1 (License): Likewise.
44442         * modules/crypto/gc-md2 (License): Likewise.
44443         * modules/crypto/gc-md4 (License): Likewise.
44444         * modules/crypto/gc-md5 (License): Likewise.
44445         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
44446         * modules/crypto/gc-random (License): Likewise.
44447         * modules/crypto/gc-rijndael (License): Likewise.
44448         * modules/crypto/gc-sha1 (License): Likewise.
44449         * modules/crypto/md2 (License): Likewise.
44450         * modules/crypto/md4 (License): Likewise.
44451
44452 2007-07-30  Jim Meyering  <jim@meyering.net>
44453
44454         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
44455         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
44456         it has valid stat data.  This bug would cause du not to count the
44457         sizes of inaccessible directories.
44458         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
44459         in <http://bugzilla.redhat.com/250077>.
44460
44461 2007-07-25  Peter O'Gorman  <peter@pogma.com>
44462             Bruno Haible  <bruno@clisp.org>
44463
44464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
44465         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
44466         #include_next, gives a diagnostic about it, but reports no error in
44467         the exit code.
44468         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44469
44470 2007-07-24  Ben Pfaff  <blp@gnu.org>
44471
44472         Improve name: "count-one-bits" is better than "popcount".
44473         * MODULES.html.sh: Update name.
44474         * lib/popcount.h: Renamed lib/count-one-bits.h.
44475         (popcount): Renamed count_one_bits.
44476         (popcountl): Renamed count_one_bits_l.
44477         (popcountll): Renamed count_one_bits_ll.
44478         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
44479         * modules/popcount: Renamed module/count-one-bits.
44480         * modules/popcount-tests: Renamed module/count-one-bits-tests.
44481         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
44482
44483 2007-07-23  Ben Pfaff  <blp@gnu.org>
44484
44485         * lib/popcount.h (popcount32): Reduce size of constants, to allow
44486         better code generation, and add U to large constants to avoid
44487         warnings, in non-GCC case.
44488         Suggested by Bruno Haible.
44489
44490 2007-07-23  Ben Pfaff  <blp@gnu.org>
44491
44492         * lib/popcount.h: Use verify_true instead of if...abort.
44493         * modules/popcount: Depend on verify module.
44494         Suggested by Jim Meyering.
44495
44496 2007-07-23  Bruno Haible  <bruno@clisp.org>
44497
44498         * gnulib-tool (func_import): Create a .cvsignore file also when the
44499         directory is not yet in CVS but the toplevel directory is. When
44500         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
44501         Reported by Karl Berry.
44502
44503 2007-07-22  Ben Pfaff  <blp@gnu.org>
44504
44505         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
44506         case.
44507         Suggested by Eric Blake.
44508
44509 2007-07-22  Ben Pfaff  <blp@gnu.org>
44510
44511         New module: popcount.
44512         * MODULES.html.sh: Add popcount.
44513         * modules/popcount: New file.
44514         * modules/popcount-tests: New file.
44515         * tests/test-popcount.c: New file.
44516         * lib/popcount.h: New file.
44517         * m4/popcount.m4: New file.
44518
44519 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * build-aux/announce-gen: Update to GPLv3.
44522
44523         * build-aux/config.guess: Update from config.
44524
44525 2007-07-21  Bruno Haible  <bruno@clisp.org>
44526
44527         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
44528         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
44529
44530 2007-07-20  Jim Meyering  <jim@meyering.net>
44531
44532         * check-module: Diagnose a self-dependency.
44533
44534 2007-07-19  Bruno Haible  <bruno@clisp.org>
44535
44536         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
44537         empty.
44538         Reported by Eric Blake.
44539
44540 2007-07-18  Bruno Haible  <bruno@clisp.org>
44541
44542         * gnulib-tool: New options --po-base, --po-domain.
44543         (func_usage): Document them.
44544         (pobase, po_domain): New variables.
44545         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
44546         DEFAULT_TEXT_DOMAIN.
44547         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
44548         (func_import): Consider pobase and po_domain. Create a po/ directory.
44549         (func_create_testdir): Set pobase and po_domain to empty.
44550         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
44551         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
44552
44553 2007-07-18  Bruno Haible  <bruno@clisp.org>
44554
44555         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44556         EXTRA_DIST augmentation for files in build-aux/.
44557
44558 2007-07-16  Bruno Haible  <bruno@clisp.org>
44559
44560         * modules/lseek (License): Use the synonymous term "LGPLv2+".
44561         * modules/getdelim (License): Likewise.
44562
44563 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44564
44565         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
44566         * modules/d-type (License): Likewise.
44567         * modules/extensions (License): Likewise.
44568         * modules/fnmatch (License): Likewise.
44569         * modules/fseeko (License): Likewise.
44570         * modules/getaddrinfo (License): Likewise.
44571         * modules/getline (License): Likewise.
44572         * modules/getlogin_r (License): Likewise.
44573         * modules/getpass (License): Likewise.
44574         * modules/gettimeofday (License): Likewise.
44575         * modules/glob (License): Likewise.
44576         * modules/inet_ntop (License): Likewise.
44577         * modules/malloc (License): Likewise.
44578         * modules/malloca (License): Likewise.
44579         * modules/memmem (License): Likewise.
44580         * modules/mempcpy (License): Likewise.
44581         * modules/memset (License): Likewise.
44582         * modules/minmax (License): Likewise.
44583         * modules/mktime (License): Likewise.
44584         * modules/netinet_in (License): Likewise.
44585         * modules/pathmax (License): Likewise.
44586         * modules/poll (License): Likewise.
44587         * modules/regex (License): Likewise.
44588         * modules/snprintf (License): Likewise.
44589         * modules/stdbool (License): Likewise.
44590         * modules/stdint (License): Likewise.
44591         * modules/stdio (License): Likewise.
44592         * modules/strcase (License): Likewise.
44593         * modules/strcasestr (License): Likewise.
44594         * modules/strdup (License): Likewise.
44595         * modules/string (License): Likewise.
44596         * modules/strndup (License): Likewise.
44597         * modules/strnlen (License): Likewise.
44598         * modules/strpbrk (License): Likewise.
44599         * modules/strptime (License): Likewise.
44600         * modules/strsep (License): Likewise.
44601         * modules/sys_select (License): Likewise.
44602         * modules/sys_socket (License): Likewise.
44603         * modules/sys_stat (License): Likewise.
44604         * modules/sys_time (License): Likewise.
44605         * modules/time (License): Likewise.
44606         * modules/time_r (License): Likewise.
44607         * modules/timegm (License): Likewise.
44608         * modules/unistd (License): Likewise.
44609         * modules/vsnprintf (License): Likewise.
44610         * modules/wctype (License): Likewise.
44611
44612 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44613
44614         * modules/argz (License): LGPLv2+.
44615
44616 2007-07-15  Karl Berry  <karl@gnu.org>
44617
44618         * doc/gnulib.texi: revise node structure per new fdl.texi.
44619
44620 2007-07-14  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
44623         the output file.
44624         * lib/uniname/uninames.h: Regenerated.
44625
44626 2007-07-14  Karl Berry  <karl@gnu.org>
44627
44628         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
44629         omitting sectioning and index commands.
44630
44631 2007-07-13  Bruno Haible  <bruno@clisp.org>
44632
44633         New gnulib-tool option --more-symlinks.
44634         * gnulib-tool (func_usage): Document --more-symlinks.
44635         (do_copyrights): New variable.
44636         Recognize option --more-symlinks.
44637         (func_import): Don't add a copyright notice transform to
44638         sed_transform_lib_file if do_copyrights is empty.
44639
44640 2007-07-13  Bruno Haible  <bruno@clisp.org>
44641
44642         * lib/vasnprintf.c (decimal_point_char): Define also if
44643         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
44644         && !NEED_PRINTF_DIRECTIVE_A.
44645         Reported by Clemens Koller <clemens.koller@anagramm.de> via
44646         Gary V. Vaughan <gary@gnu.org>.
44647
44648 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
44649
44650         * lib/inttypes_.h: Undo previous change, since it was fixed
44651         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
44652
44653 2007-07-13  Bruno Haible  <bruno@clisp.org>
44654
44655         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
44656         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
44657
44658 2007-07-13  Jim Meyering  <jim@meyering.net>
44659
44660         df: Don't fail for Tru64's "file-on-file mount".
44661         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
44662         so we fall through and use statfs instead.  Details here:
44663         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
44664         Reported by Albert Chin.
44665
44666 2007-07-13  Bruno Haible  <bruno@clisp.org>
44667
44668         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
44669         * modules/configmake (License): Likewise.
44670         * modules/gettext (License): Likewise.
44671         * modules/gettext-h (License): Likewise.
44672         * modules/include_next (License): Likewise.
44673         * modules/link-warning (License): Likewise.
44674         * modules/localcharset (License): Likewise.
44675         * modules/localename (License): Likewise.
44676         * modules/lock (License): Likewise.
44677         * modules/relocatable-lib-lgpl (License): Likewise.
44678         * modules/size_max (License): Likewise.
44679         * modules/vasnprintf (License): Likewise.
44680         * modules/wchar (License): Likewise.
44681         * modules/xsize (License): Likewise.
44682
44683 2007-07-13  Bruno Haible  <bruno@clisp.org>
44684
44685         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
44686         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
44687
44688 2007-07-12  Bruno Haible  <bruno@clisp.org>
44689
44690         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
44691         in the modules files.
44692
44693 2007-07-11  Karl Berry  <karl@gnu.org>
44694
44695         * MODULES.html.sh (func_module): use
44696          sed -e '\|^'"${includefile}"'$|d'
44697          instead of /.../d, to avoid errors on $includefile's containing /.
44698
44699 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44700
44701         * gnulib-tool (func_import): Avoid duplication of --avoid
44702         statements
44703         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
44704         names to `_' in variable names.
44705
44706 2007-07-10  Eric Blake  <ebb9@byu.net>
44707
44708         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
44709         * NEWS: Document this change.
44710
44711 2007-07-08  Bruno Haible  <bruno@clisp.org>
44712
44713         Update to Unicode 5.0.
44714         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
44715         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
44716         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
44717         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
44718         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
44719         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
44720         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
44721         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
44722         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
44723         U+10A3F, U+1D242..U+1D244.
44724         (nonspacing_table_ind): Update.
44725         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
44726         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
44727
44728 2007-07-08  Bruno Haible  <bruno@clisp.org>
44729
44730         Update to Unicode 5.0.
44731         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
44732         code transform. Extend the name index field of unicode_name_to_code and
44733         unicode_code_to_name from 16 to 24 bits.
44734         * lib/uniname/uniname.c (unicode_character_name,
44735         unicode_name_character): Add the range 0x12xxx to the code transform.
44736         * lib/uniname/uninames.h: Regenerated.
44737         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
44738
44739 2007-07-07  Bruno Haible  <bruno@clisp.org>
44740
44741         * modules/wcwidth-tests: New file.
44742         * tests/test-wcwidth.c: New file.
44743
44744         Work around MacOS X wcwidth() bug.
44745         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
44746         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
44747         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
44748         original wcwidth in non-UTF-8 locales.
44749         * modules/wcwidth (Depends-on): Add localcharset, streq,
44750         uniwidth/width.
44751         * doc/functions/wcwidth.texi: Update.
44752
44753 2007-07-07  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
44756         (wcwidth): New declaration.
44757         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
44758         macros.
44759         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
44760         here. Prepare for creating <wchar.h> unconditionally.
44761         * modules/wchar (Depends-on): Add link-warning.
44762         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
44763         REPLACE_WCWIDTH, and GL_LINK_WARNING.
44764         * lib/wcwidth.h: Remove file.
44765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
44766         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
44767         * modules/wcwidth (Files): Remove lib/wcwidth.h.
44768         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
44769         (Include): Replace wcwidth.h with <wchar.h>.
44770         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
44771         * lib/mbchar.h: Don't include wcwidth.h.
44772         * lib/mbswidth.c: Likewise.
44773         * NEWS: Mention the change.
44774
44775 2007-07-07  Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
44778         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
44779         definition with an external declaration.
44780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
44781         defined as a function. Remove AC_C_INLINE requirement.
44782         * modules/wcwidth (Files): Add lib/wcwidth.c.
44783         (Makefile.am): Remove redundant statement.
44784
44785 2007-07-07  Bruno Haible  <bruno@clisp.org>
44786
44787         * MODULES.html.sh (Unicode string functions): Add the new modules.
44788
44789         * tests/uniwidth/test-u32-strwidth.c: New file.
44790         * modules/uniwidth/u32-strwidth-tests: New file.
44791
44792         * lib/uniwidth/u32-strwidth.c: New file.
44793         * modules/uniwidth/u32-strwidth: New file.
44794
44795         * tests/uniwidth/test-u16-strwidth.c: New file.
44796         * modules/uniwidth/u16-strwidth-tests: New file.
44797
44798         * lib/uniwidth/u16-strwidth.c: New file.
44799         * modules/uniwidth/u16-strwidth: New file.
44800
44801         * tests/uniwidth/test-u8-strwidth.c: New file.
44802         * modules/uniwidth/u8-strwidth-tests: New file.
44803
44804         * lib/uniwidth/u8-strwidth.c: New file.
44805         * modules/uniwidth/u8-strwidth: New file.
44806
44807         * tests/uniwidth/test-u32-width.c: New file.
44808         * modules/uniwidth/u32-width-tests: New file.
44809
44810         * lib/uniwidth/u32-width.c: New file.
44811         * modules/uniwidth/u32-width: New file.
44812
44813         * tests/uniwidth/test-u16-width.c: New file.
44814         * modules/uniwidth/u16-width-tests: New file.
44815
44816         * lib/uniwidth/u16-width.c: New file.
44817         * modules/uniwidth/u16-width: New file.
44818
44819         * tests/uniwidth/test-u8-width.c: New file.
44820         * modules/uniwidth/u8-width-tests: New file.
44821
44822         * lib/uniwidth/u8-width.c: New file.
44823         * modules/uniwidth/u8-width: New file.
44824
44825         * tests/uniwidth/test-uc_width.c: New file.
44826         * modules/uniwidth/width-tests: New file.
44827
44828         * lib/uniwidth/width.c: New file, from GNU libiconv.
44829         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
44830         * modules/uniwidth/width: New file.
44831
44832         * lib/uniwidth.h: New file, from GNU libiconv.
44833         * modules/uniwidth/base: New file.
44834
44835 2007-07-07  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/uniname.h: New file, from GNU gettext.
44838         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
44839         * lib/uniname/uninames.h: New file, from GNU gettext.
44840         * lib/uniname/uniname.c: New file, from GNU gettext.
44841         * tests/uniname/test-uninames.sh: New file.
44842         * tests/uniname/test-uninames.c: New file, from GNU gettext.
44843         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
44844         * modules/uniname/base: New file.
44845         * modules/uniname/uniname: New file.
44846         * modules/uniname/uniname-tests: New file.
44847         * MODULES.html.sh (Unicode string functions): Add the new modules.
44848
44849 2007-07-06  Bruno Haible  <bruno@clisp.org>
44850
44851         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
44852
44853 2007-07-06  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
44856         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
44857         includes <cygwin/sys_time.h> which includes <sys/select.h> which
44858         include <sys/time.h>.
44859         Reported by Eric Blake.
44860
44861 2007-07-06  Eric Blake  <ebb9@byu.net>
44862
44863         Fix testing canonicalize on cygwin.
44864         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44865         Revert patch from 2007-06-19.
44866         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
44867         canonicalize module is also in use.
44868         * tests/test-canonicalize.c: New file.
44869         * tests/test-canonicalize.sh: Likewise.
44870         * modules/canonicalize-tests: Likewise.
44871
44872 2007-07-06  Jim Meyering  <jim@meyering.net>
44873
44874         * lib/getugroups.c (getugroups): Detect getgrent failure.
44875         Adjust comment to reflect reality: this function may return -1.
44876
44877 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
44878
44879         * build-aux/bootstrap (TP_URL,get_translations): Update to use
44880         the new TP address.
44881         (usage): Fix typo
44882         (gnulib_mk): New variable.
44883
44884 2007-07-05  Jim Meyering  <jim@meyering.net>
44885
44886         Don't let endgrent clobber errno, no matter how improbable.
44887         * lib/getugroups.c (getugroups): Save and restore errno around
44888         endgrent call.
44889
44890         Close the group DB even when failing with 2^31 or more members.
44891         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
44892
44893 2007-07-04  Jim Meyering  <jim@meyering.net>
44894
44895         * lib/getugroups.h: New file.
44896         * lib/getugroups.c: Include "getugroups.h".
44897         Remove uses of "register" keyword.
44898         Move local variable, "cp", down into scope where used.
44899         Give "username" parameter the "const" attribute.
44900         * modules/getugroups (Files): Add lib/getugroups.h
44901
44902 2007-07-04  Karl Berry  <karl@gnu.org>
44903
44904         * MODULES.html.sh (func_all_modules): Complete rename of
44905         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
44906
44907 2007-07-02  Bruno Haible  <bruno@clisp.org>
44908
44909         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
44910         mode, when inttypes.h comes from gnulib.
44911         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44912
44913 2007-07-02  Simon Josefsson  <simon@josefsson.org>
44914
44915         * NEWS: Mention lgpl module name change.
44916
44917         * modules/lgpl-2.1: Renamed from lgpl.
44918
44919         * NEWS: Mention gpl module name change.
44920
44921         * modules/gpl-3.0: New file, based on gpl-2.0.
44922
44923         * modules/gpl-2.0: Renamed from gpl.
44924
44925         * modules/gpl: Fix filename, doc/gpl.texi is now found at
44926         doc/gpl-2.0.texi.
44927
44928 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44929
44930         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
44931         #define __STDC_LIMIT_MACROS temporarily while including
44932         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
44933         Problem reported by Joel E. Denny in
44934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
44935
44936 2007-07-01  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/unistdio.h: New file.
44939         * lib/unistdio/u-asnprintf.h: New file.
44940         * lib/unistdio/u-asprintf.h: New file.
44941         * lib/unistdio/u-printf-args.c: New file.
44942         * lib/unistdio/u-printf-args.h: New file.
44943         * lib/unistdio/u-printf-parse.h: New file.
44944         * lib/unistdio/u-snprintf.h: New file.
44945         * lib/unistdio/u-sprintf.h: New file.
44946         * lib/unistdio/u-vasprintf.h: New file.
44947         * lib/unistdio/u-vsnprintf.h: New file.
44948         * lib/unistdio/u-vsprintf.h: New file.
44949         * lib/unistdio/ulc-asnprintf.c: New file.
44950         * lib/unistdio/ulc-asprintf.c: New file.
44951         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
44952         * lib/unistdio/ulc-printf-parse.c: New file.
44953         * lib/unistdio/ulc-snprintf.c: New file.
44954         * lib/unistdio/ulc-sprintf.c: New file.
44955         * lib/unistdio/ulc-vasnprintf.c: New file.
44956         * lib/unistdio/ulc-vasprintf.c: New file.
44957         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
44958         * lib/unistdio/ulc-vsnprintf.c: New file.
44959         * lib/unistdio/ulc-vsprintf.c: New file.
44960         * lib/unistdio/u8-asnprintf.c: New file.
44961         * lib/unistdio/u8-asprintf.c: New file.
44962         * lib/unistdio/u8-printf-parse.c: New file.
44963         * lib/unistdio/u8-snprintf.c: New file.
44964         * lib/unistdio/u8-sprintf.c: New file.
44965         * lib/unistdio/u8-vasnprintf.c: New file.
44966         * lib/unistdio/u8-vasprintf.c: New file.
44967         * lib/unistdio/u8-vsnprintf.c: New file.
44968         * lib/unistdio/u8-vsprintf.c: New file.
44969         * lib/unistdio/u8-u8-asnprintf.c: New file.
44970         * lib/unistdio/u8-u8-asprintf.c: New file.
44971         * lib/unistdio/u8-u8-snprintf.c: New file.
44972         * lib/unistdio/u8-u8-sprintf.c: New file.
44973         * lib/unistdio/u8-u8-vasnprintf.c: New file.
44974         * lib/unistdio/u8-u8-vasprintf.c: New file.
44975         * lib/unistdio/u8-u8-vsnprintf.c: New file.
44976         * lib/unistdio/u8-u8-vsprintf.c: New file.
44977         * lib/unistdio/u16-asnprintf.c: New file.
44978         * lib/unistdio/u16-asprintf.c: New file.
44979         * lib/unistdio/u16-printf-parse.c: New file.
44980         * lib/unistdio/u16-snprintf.c: New file.
44981         * lib/unistdio/u16-sprintf.c: New file.
44982         * lib/unistdio/u16-vasnprintf.c: New file.
44983         * lib/unistdio/u16-vasprintf.c: New file.
44984         * lib/unistdio/u16-vsnprintf.c: New file.
44985         * lib/unistdio/u16-vsprintf.c: New file.
44986         * lib/unistdio/u16-u16-asnprintf.c: New file.
44987         * lib/unistdio/u16-u16-asprintf.c: New file.
44988         * lib/unistdio/u16-u16-snprintf.c: New file.
44989         * lib/unistdio/u16-u16-sprintf.c: New file.
44990         * lib/unistdio/u16-u16-vasnprintf.c: New file.
44991         * lib/unistdio/u16-u16-vasprintf.c: New file.
44992         * lib/unistdio/u16-u16-vsnprintf.c: New file.
44993         * lib/unistdio/u16-u16-vsprintf.c: New file.
44994         * lib/unistdio/u32-asnprintf.c: New file.
44995         * lib/unistdio/u32-asprintf.c: New file.
44996         * lib/unistdio/u32-printf-parse.c: New file.
44997         * lib/unistdio/u32-snprintf.c: New file.
44998         * lib/unistdio/u32-sprintf.c: New file.
44999         * lib/unistdio/u32-vasnprintf.c: New file.
45000         * lib/unistdio/u32-vasprintf.c: New file.
45001         * lib/unistdio/u32-vsnprintf.c: New file.
45002         * lib/unistdio/u32-vsprintf.c: New file.
45003         * lib/unistdio/u32-u32-asnprintf.c: New file.
45004         * lib/unistdio/u32-u32-asprintf.c: New file.
45005         * lib/unistdio/u32-u32-snprintf.c: New file.
45006         * lib/unistdio/u32-u32-sprintf.c: New file.
45007         * lib/unistdio/u32-u32-vasnprintf.c: New file.
45008         * lib/unistdio/u32-u32-vasprintf.c: New file.
45009         * lib/unistdio/u32-u32-vsnprintf.c: New file.
45010         * lib/unistdio/u32-u32-vsprintf.c: New file.
45011         * tests/unistdio/test-ulc-asnprintf1.c: New file.
45012         * tests/unistdio/test-ulc-asnprintf1.h: New file.
45013         * tests/unistdio/test-ulc-printf1.h: New file.
45014         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
45015         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
45016         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
45017         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
45018         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
45019         * tests/unistdio/test-ulc-vasprintf1.c: New file.
45020         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
45021         * tests/unistdio/test-ulc-vsprintf1.c: New file.
45022         * tests/unistdio/test-u8-asnprintf1.c: New file.
45023         * tests/unistdio/test-u8-asnprintf1.h: New file.
45024         * tests/unistdio/test-u8-printf1.h: New file.
45025         * tests/unistdio/test-u8-vasnprintf1.c: New file.
45026         * tests/unistdio/test-u8-vasnprintf2.c: New file.
45027         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
45028         * tests/unistdio/test-u8-vasnprintf3.c: New file.
45029         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
45030         * tests/unistdio/test-u8-vasprintf1.c: New file.
45031         * tests/unistdio/test-u8-vsnprintf1.c: New file.
45032         * tests/unistdio/test-u8-vsprintf1.c: New file.
45033         * tests/unistdio/test-u16-asnprintf1.c: New file.
45034         * tests/unistdio/test-u16-asnprintf1.h: New file.
45035         * tests/unistdio/test-u16-printf1.h: New file.
45036         * tests/unistdio/test-u16-vasnprintf1.c: New file.
45037         * tests/unistdio/test-u16-vasnprintf2.c: New file.
45038         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
45039         * tests/unistdio/test-u16-vasnprintf3.c: New file.
45040         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
45041         * tests/unistdio/test-u16-vasprintf1.c: New file.
45042         * tests/unistdio/test-u16-vsnprintf1.c: New file.
45043         * tests/unistdio/test-u16-vsprintf1.c: New file.
45044         * tests/unistdio/test-u32-asnprintf1.c: New file.
45045         * tests/unistdio/test-u32-asnprintf1.h: New file.
45046         * tests/unistdio/test-u32-printf1.h: New file.
45047         * tests/unistdio/test-u32-vasnprintf1.c: New file.
45048         * tests/unistdio/test-u32-vasnprintf2.c: New file.
45049         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
45050         * tests/unistdio/test-u32-vasnprintf3.c: New file.
45051         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
45052         * tests/unistdio/test-u32-vasprintf1.c: New file.
45053         * tests/unistdio/test-u32-vsnprintf1.c: New file.
45054         * tests/unistdio/test-u32-vsprintf1.c: New file.
45055         * modules/unistdio/base: New file.
45056         * modules/unistdio/u-printf-args: New file.
45057         * modules/unistdio/ulc-asnprintf: New file.
45058         * modules/unistdio/ulc-asprintf: New file.
45059         * modules/unistdio/ulc-fprintf: New file.
45060         * modules/unistdio/ulc-printf-parse: New file.
45061         * modules/unistdio/ulc-snprintf: New file.
45062         * modules/unistdio/ulc-sprintf: New file.
45063         * modules/unistdio/ulc-vasnprintf: New file.
45064         * modules/unistdio/ulc-vasprintf: New file.
45065         * modules/unistdio/ulc-vfprintf: New file.
45066         * modules/unistdio/ulc-vsnprintf: New file.
45067         * modules/unistdio/ulc-vsprintf: New file.
45068         * modules/unistdio/u8-asnprintf: New file.
45069         * modules/unistdio/u8-asprintf: New file.
45070         * modules/unistdio/u8-printf-parse: New file.
45071         * modules/unistdio/u8-snprintf: New file.
45072         * modules/unistdio/u8-sprintf: New file.
45073         * modules/unistdio/u8-vasnprintf: New file.
45074         * modules/unistdio/u8-vasprintf: New file.
45075         * modules/unistdio/u8-vsnprintf: New file.
45076         * modules/unistdio/u8-vsprintf: New file.
45077         * modules/unistdio/u8-u8-asnprintf: New file.
45078         * modules/unistdio/u8-u8-asprintf: New file.
45079         * modules/unistdio/u8-u8-snprintf: New file.
45080         * modules/unistdio/u8-u8-sprintf: New file.
45081         * modules/unistdio/u8-u8-vasnprintf: New file.
45082         * modules/unistdio/u8-u8-vasprintf: New file.
45083         * modules/unistdio/u8-u8-vsnprintf: New file.
45084         * modules/unistdio/u8-u8-vsprintf: New file.
45085         * modules/unistdio/u16-asnprintf: New file.
45086         * modules/unistdio/u16-asprintf: New file.
45087         * modules/unistdio/u16-printf-parse: New file.
45088         * modules/unistdio/u16-snprintf: New file.
45089         * modules/unistdio/u16-sprintf: New file.
45090         * modules/unistdio/u16-vasnprintf: New file.
45091         * modules/unistdio/u16-vasprintf: New file.
45092         * modules/unistdio/u16-vsnprintf: New file.
45093         * modules/unistdio/u16-vsprintf: New file.
45094         * modules/unistdio/u16-u16-asnprintf: New file.
45095         * modules/unistdio/u16-u16-asprintf: New file.
45096         * modules/unistdio/u16-u16-snprintf: New file.
45097         * modules/unistdio/u16-u16-sprintf: New file.
45098         * modules/unistdio/u16-u16-vasnprintf: New file.
45099         * modules/unistdio/u16-u16-vasprintf: New file.
45100         * modules/unistdio/u16-u16-vsnprintf: New file.
45101         * modules/unistdio/u16-u16-vsprintf: New file.
45102         * modules/unistdio/u32-asnprintf: New file.
45103         * modules/unistdio/u32-asprintf: New file.
45104         * modules/unistdio/u32-printf-parse: New file.
45105         * modules/unistdio/u32-snprintf: New file.
45106         * modules/unistdio/u32-sprintf: New file.
45107         * modules/unistdio/u32-vasnprintf: New file.
45108         * modules/unistdio/u32-vasprintf: New file.
45109         * modules/unistdio/u32-vsnprintf: New file.
45110         * modules/unistdio/u32-vsprintf: New file.
45111         * modules/unistdio/u32-u32-asnprintf: New file.
45112         * modules/unistdio/u32-u32-asprintf: New file.
45113         * modules/unistdio/u32-u32-snprintf: New file.
45114         * modules/unistdio/u32-u32-sprintf: New file.
45115         * modules/unistdio/u32-u32-vasnprintf: New file.
45116         * modules/unistdio/u32-u32-vasprintf: New file.
45117         * modules/unistdio/u32-u32-vsnprintf: New file.
45118         * modules/unistdio/u32-u32-vsprintf: New file.
45119         * modules/unistdio/ulc-asnprintf-tests: New file.
45120         * modules/unistdio/ulc-vasnprintf-tests: New file.
45121         * modules/unistdio/ulc-vasprintf-tests: New file.
45122         * modules/unistdio/ulc-vsnprintf-tests: New file.
45123         * modules/unistdio/ulc-vsprintf-tests: New file.
45124         * modules/unistdio/u8-asnprintf-tests: New file.
45125         * modules/unistdio/u8-vasnprintf-tests: New file.
45126         * modules/unistdio/u8-vasprintf-tests: New file.
45127         * modules/unistdio/u8-vsnprintf-tests: New file.
45128         * modules/unistdio/u8-vsprintf-tests: New file.
45129         * modules/unistdio/u16-asnprintf-tests: New file.
45130         * modules/unistdio/u16-vasnprintf-tests: New file.
45131         * modules/unistdio/u16-vasprintf-tests: New file.
45132         * modules/unistdio/u16-vsnprintf-tests: New file.
45133         * modules/unistdio/u16-vsprintf-tests: New file.
45134         * modules/unistdio/u32-asnprintf-tests: New file.
45135         * modules/unistdio/u32-vasnprintf-tests: New file.
45136         * modules/unistdio/u32-vasprintf-tests: New file.
45137         * modules/unistdio/u32-vsnprintf-tests: New file.
45138         * modules/unistdio/u32-vsprintf-tests: New file.
45139         * MODULES.html.sh (Unicode string functions): Add the new modules.
45140
45141 2007-07-01  Bruno Haible  <bruno@clisp.org>
45142
45143         * lib/sprintf.c (sprintf): Limit the available length estimation,
45144         to avoid address wraparound.
45145         * lib/vsprintf.c (vsprintf): Likewise.
45146         * modules/sprintf-posix (Dependencies): Add stdint.
45147         * modules/vsprintf-posix (Dependencies): Likewise.
45148
45149 2007-07-01  Bruno Haible  <bruno@clisp.org>
45150
45151         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
45152         Windows PATH as well. Conservative double-quoting. Comments.
45153
45154 2007-07-01  Bruno Haible  <bruno@clisp.org>
45155             Eric Blake  <ebb9@byu.net>
45156             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45157
45158         * gnulib-tool (self_abspathname): Fix algorithm to cope with
45159         empty components in $PATH, denoting '.'.
45160
45161 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45162
45163         * gnulib-tool: Fix indentation.
45164         (func_create_megatestdir): Likewise.
45165         Report by Bruno Haible.
45166
45167 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45168
45169         Sync from Automake.
45170         * build-aux/gnupload: Fix shell portability issues with for loops.
45171         Report by Karl Berry.
45172
45173 2007-06-29  Simon Josefsson  <simon@josefsson.org>
45174
45175         * build-aux/maint.mk (POURL): Use translationproject.org.
45176
45177 2007-06-27  Simon Josefsson  <simon@josefsson.org>
45178             Bruno Haible  <bruno@clisp.org>
45179
45180         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
45181         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
45182         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
45183         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
45184         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
45185
45186 2007-06-27  Bruno Haible  <bruno@clisp.org>
45187
45188         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
45189         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
45190
45191 2007-06-26  Karl Berry  <karl@gnu.org>
45192
45193         * MODULES.html.sh: remove xreadlink-with-size.
45194
45195 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45196
45197         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
45198         method that I hope also handles the double-include problem noted
45199         by Bruno Haible in
45200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
45201
45202 2007-06-23  Bruno Haible  <bruno@clisp.org>
45203
45204         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45205         Don't let the 'mostlyclean' target fail if the last subdirectory could
45206         not be removed.
45207         Reported by Karl Berry.
45208
45209 2007-06-23  Bruno Haible  <bruno@clisp.org>
45210
45211         * gnulib-tool (echo): Add a speedier workaround for ksh.
45212         * tests/test-echo.sh: Likewise.
45213
45214 2007-06-23  Bruno Haible  <bruno@clisp.org>
45215
45216         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
45217         * tests/test-echo.sh: Likewise.
45218
45219 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45220
45221         * gnulib-tool (IFS): Initialize early, so we don't set it to
45222         empty later.
45223         (self_abspathname): Rewrite algorithm to set it, reindent.
45224         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
45225         (func_create_megatestdir): Merge some sed scripts.
45226
45227 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45228
45229         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
45230         exposed by Sun Studio 11 cc on Solaris 8.
45231
45232 2007-06-22  Bruno Haible  <bruno@clisp.org>
45233
45234         * gnulib-tool (echo): Ensure the echo primitive does not interpret
45235         backslashes.
45236         * tests/test-echo.sh: New file.
45237
45238 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45239
45240         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
45241         simplify `sed_replace_build_aux' scripts, they are portable but
45242         echoing them with `echo' is not.
45243         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
45244
45245 2007-06-21  Karl Berry  <karl@gnu.org>
45246
45247         * config/srclist.txt: guess we can't handle the licenses via
45248         srclist at the moment.
45249
45250 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45251
45252         * MODULES.html.sh: Add include_next.
45253         * modules/include_next: New file.
45254
45255 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45256
45257         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
45258         INCLUDE_NEXT.
45259         (gl_CHECK_NEXT_HEADERS): New macro.
45260         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
45261         the obsolescent gl_ABSOLUTE_HEADER.
45262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
45263         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
45264         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
45265         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
45266         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45267         * m4/math_h.m4 (gl_MATH_H): Likewise.
45268         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
45269         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
45270         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45271         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45272         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
45273         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
45274         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
45275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45276         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45277         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
45279         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45280         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45281         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45282         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45283         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45284         * m4/inttypes.m4 (gl_INTTYPES_H): Define
45285         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
45286         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
45287         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
45288         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
45289         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
45290         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
45291         * lib/float_.h: Likewise.
45292         * lib/inttypes_.h: Likewise.
45293         * lib/math_.h: Likewise.
45294         * lib/search_.h: Likewise.
45295         * lib/signal_.h: Likewise.
45296         * lib/stdint_.h: Likewise.
45297         * lib/stdio_.h: Likewise.
45298         * lib/stdlib_.h: Likewise.
45299         * lib/string_.h: Likewise.
45300         * lib/sys_stat_.h: Likewise.
45301         * lib/sys_time_.h: Likewise.
45302         * lib/time_.h: Likewise.
45303         * lib/unistd_.h: Likewise.
45304         * lib/wchar_.h: Likewise.
45305         * lib/wctype_.h: Likewise.
45306         * lib/dirent_.h: Likewise.
45307         * lib/iconv_.h: Likewise.
45308         * lib/locale_.h: Likewise.
45309         * lib/netinet_in_.h: Likewise.
45310         * lib/sys_select_.h: Likewise.
45311         * lib/sys_socket_.h: Likewise.
45312         * lib/sysexits_.h: Likewise.
45313         * modules/fcntl (Depends-on): Depend on include_next, not
45314         absolute_header.
45315         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
45316         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
45317         * modules/fchdir: Likewise.
45318         * modules/float: Likewise.
45319         * modules/iconv_open: Likewise.
45320         * modules/inttypes: Likewise.
45321         * modules/locale: Likewise.
45322         * modules/math: Likewise.
45323         * modules/netinet_in: Likewise.
45324         * modules/search: Likewise.
45325         * modules/signal: Likewise.
45326         * modules/stdint: Likewise.
45327         * modules/stdio: Likewise.
45328         * modules/stdlib: Likewise.
45329         * modules/string: Likewise.
45330         * modules/sys_select: Likewise.
45331         * modules/sys_socket: Likewise.
45332         * modules/sys_stat: Likewise.
45333         * modules/sys_time: Likewise.
45334         * modules/sysexits: Likewise.
45335         * modules/time: Likewise.
45336         * modules/unistd: Likewise.
45337         * modules/wchar: Likewise.
45338         * modules/wctype: Likewise.
45339         * modules/sys_stat: Change maintainer to "all".
45340         * modules/unistd: Likewise.
45341
45342 2007-06-20  Karl Berry  <karl@gnu.org>
45343
45344         * config/srclist.txt: track www changes in license files.
45345
45346 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
45347
45348         * build-aux/bootstrap: Remove stray dot.
45349         Make sure build_aux settings are honored when linking
45350         gnulib_extra_files.
45351
45352 2007-06-19  Eric Blake  <ebb9@byu.net>
45353
45354         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
45355         Allow compilation on cygwin.
45356
45357 2007-06-19  Jim Meyering  <jim@meyering.net>
45358
45359         xreadlink-with-size: Remove module.  No longer used.
45360         Ex-callers now use xreadlink or mreadlink-with-size.
45361         * modules/xreadlink-with-size: Remove module.
45362         * lib/xreadlink-with-size.c: Remove file.
45363         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
45364         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
45365         just before the function definition *is* accurate.
45366
45367         Eliminate one way canonicalize_filename_mode could exit.
45368         * lib/canonicalize.c (canonicalize_filename_mode):
45369         Use mreadlink_with_size, not xreadlink_with_size.
45370
45371 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
45372
45373         Detect porting problems to FreeBSD/arm, which has time_t wider than
45374         long int.  Original problem reported for GNU diff by Xin Li in
45375         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
45376         * modules/getdate (Depends-on): Add intprops, verify.
45377         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
45378         is an integer type no wider than long int.
45379
45380 2007-06-18  Jim Meyering  <jim@meyering.net>
45381
45382         New module: mreadlink-with-size.
45383         * MODULES.html.sh: Add mreadlink-with-size.
45384         * modules/mreadlink-with-size: New module
45385         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
45386         not xreadlink-with-size.
45387         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
45388
45389 2007-06-16  Bruno Haible  <bruno@clisp.org>
45390
45391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
45392         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
45393         Reported by Gary V. Vaughan <gary@gnu.org>.
45394
45395 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
45396
45397         Revamp lchown so that it lives in unistd.h where it belongs.
45398         * lib/lchown.h: Remove.
45399         * lib/dirchownmod.c: Don't include lib/lchown.h.
45400         * lib/fchownat.c: Likewise.
45401         * lib/openat.c: Likewise.
45402         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
45403         does not follow symlinks.
45404         (EOPNOTSUPP): Define if not defined.
45405         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
45406         is defined to 0.
45407         (lchown): New decl.
45408         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
45409         Do not check for lchown decl.
45410         Set REPLACE_LCHOWN.
45411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
45412         REPLACE_LCHOWN.
45413         * modules/chown: Make it clear it follows symlinks.
45414         * modules/lchown: Make it clear it doesn't follow symlinks.
45415         (Files): Remove lib/lchown.h
45416         (Depends-on): Add unistd.
45417         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
45418         (Include): Include <unistd.h>, not "lchown.h".
45419         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
45420         REPLACE_LCHOWN.
45421
45422 2007-06-15  Jim Meyering  <jim@meyering.net>
45423
45424         Change license (GPL to LGPL) of fsusage and dependents.
45425         * modules/fsusage (License): Change to LGPL.
45426         * modules/full-read (License): Likewise.
45427         * modules/full-write (License): Likewise.
45428         * modules/safe-read (License): Likewise.
45429         * modules/safe-write (License): Likewise.
45430
45431 2007-06-14  Ben Pfaff  <blp@gnu.org>
45432
45433         Missing part of allocsa -> malloca transition.
45434         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
45435         gl_MALLOCA.
45436
45437 2007-06-12  Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
45440         to ia64, x86_64, i386.
45441         Reported by Eric Blake.
45442
45443 2007-06-12  Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
45446         cross-compiling to x86_64.
45447
45448 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
45449
45450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
45451         glitch reported by Ralf Wildenhues in
45452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
45453
45454         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
45455         Vin Shelton.
45456
45457 2007-06-11  Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
45460         replacement string.
45461         Reported by Eric Blake.
45462
45463 2007-06-10  Bruno Haible  <bruno@clisp.org>
45464
45465         Prepare vasnprintf code for use with Unicode strings.
45466         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
45467         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
45468         TYPE_U32_STRING.
45469         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
45470         a_u32_string variants.
45471         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45472         * lib/printf-args.c: Don't include config.h and the specification
45473         header if PRINTF_FETCHARGS is already defined.
45474         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
45475         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
45476         TYPE_U16_STRING, TYPE_U32_STRING.
45477         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
45478         u16_directive, u16_directives, u32_directive, u32_directives): New
45479         types.
45480         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
45481         New declarations.
45482         * lib/printf-parse.c: Don't include config.h and the specification
45483         header if PRINTF_PARSE is already defined. Eliminate the set of
45484         parameters for WIDE_CHAR_VERSION; the user of this file must provide
45485         them now. Include c-ctype.h.
45486         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
45487         directive and CHAR_T_ONLY_ASCII.
45488         * lib/vasnprintf.c: Don't include config.h and the specification header
45489         if VASNPRINTF is already defined.
45490         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
45491         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
45492         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
45493         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
45494         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
45495         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
45496         code accordingly.
45497         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
45498         pad_ourselves also in this case, with the 'c' and 's' directives, and
45499         with a different notion of "width".
45500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
45501
45502 2007-06-10  Bruno Haible  <bruno@clisp.org>
45503
45504         * modules/unistr/u32-mbsnlen: New file.
45505         * lib/unistr/u32-mbsnlen.c: New file.
45506
45507         * modules/unistr/u16-mbsnlen: New file.
45508         * lib/unistr/u16-mbsnlen.c: New file.
45509
45510         * modules/unistr/u8-mbsnlen: New file.
45511         * lib/unistr/u8-mbsnlen.c: New file.
45512
45513         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
45514         declarations.
45515
45516 2007-06-10  Bruno Haible  <bruno@clisp.org>
45517
45518         * lib/string_.h (mbsnlen): New declaration.
45519         * lib/mbsnlen.c: New file.
45520         * m4/mbsnlen.m4: New file.
45521         * modules/mbsnlen: New file.
45522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
45523         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
45524         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
45525
45526 2007-06-10  Bruno Haible  <bruno@clisp.org>
45527
45528         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
45529
45530 2007-06-10  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
45533         * lib/mbuiter.h: Likewise.
45534
45535 2007-06-10  Bruno Haible  <bruno@clisp.org>
45536
45537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
45538         declaration.
45539
45540 2007-06-10  Karl Berry  <karl@gnu.org>
45541
45542         * config/srclist.txt: remove gettext entries, Bruno prefers
45543         to update individually.
45544
45545 2007-06-10  Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
45548         'maxlen'. Ensure only length + width bytes are allocated, not
45549         length + 1 + width.
45550
45551 2007-06-09  Bruno Haible  <bruno@clisp.org>
45552
45553         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
45554         (CHAR_T): Remove macro.
45555         (VASNPRINTF): Update.
45556
45557 2007-06-09  Bruno Haible  <bruno@clisp.org>
45558
45559         * MODULES.html.sh (Unicode string functions): Add the new modules.
45560
45561         * modules/uniconv/u32-conv-to-enc: New file.
45562         * lib/uniconv/u32-conv-to-enc.c: New file.
45563         * modules/uniconv/u32-conv-to-enc-tests: New file.
45564         * tests/uniconv/test-u32-conv-to-enc.c: New file.
45565
45566         * modules/uniconv/u16-conv-to-enc: New file.
45567         * lib/uniconv/u16-conv-to-enc.c: New file.
45568         * lib/uniconv/u-conv-to-enc.h: New file.
45569         * modules/uniconv/u16-conv-to-enc-tests: New file.
45570         * tests/uniconv/test-u16-conv-to-enc.c: New file.
45571
45572         * modules/uniconv/u8-conv-to-enc: New file.
45573         * lib/uniconv/u8-conv-to-enc.c: New file.
45574         * modules/uniconv/u8-conv-to-enc-tests: New file.
45575         * tests/uniconv/test-u8-conv-to-enc.c: New file.
45576
45577         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45578         u32_conv_to_encoding): New declarations.
45579
45580 2007-06-09  Bruno Haible  <bruno@clisp.org>
45581
45582         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
45583
45584 2007-06-09  Bruno Haible  <bruno@clisp.org>
45585
45586         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
45587         * modules/malloca: Renamed from modules/allocsa, updated.
45588         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
45589         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
45590         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
45591         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
45592         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
45593         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
45594         * modules/xmalloca: Renamed from modules/xallocsa, updated.
45595         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
45596         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
45597         * modules/c-strcasestr (Depends-on): Update.
45598         * lib/c-strcasestr.c: Update.
45599         * modules/c-strstr (Depends-on): Update.
45600         * lib/c-strstr.c: Update.
45601         * modules/canonicalize-lgpl (Depends-on): Update.
45602         * lib/canonicalize-lgpl.c: Update.
45603         * modules/clean-temp (Depends-on): Update.
45604         * lib/clean-temp.c: Update.
45605         * modules/csharpcomp (Depends-on): Update.
45606         * lib/csharpcomp.c: Update.
45607         * modules/csharpexec (Depends-on): Update.
45608         * lib/csharpexec.c: Update.
45609         * modules/javacomp (Depends-on): Update.
45610         * lib/javacomp.c: Update.
45611         * modules/javaexec (Depends-on): Update.
45612         * lib/javaexec.c: Update.
45613         * modules/mbscasestr (Depends-on): Update.
45614         * lib/mbscasestr.c: Update.
45615         * modules/mbsstr (Depends-on): Update.
45616         * lib/mbsstr.c: Update.
45617         * modules/setenv (Depends-on): Update.
45618         * lib/setenv.c: Update.
45619         * modules/strcasestr (Depends-on): Update.
45620         * lib/strcasestr.c: Update.
45621         * modules/striconveha (Depends-on): Update.
45622         * lib/striconveha.c: Update.
45623         * modules/relocatable-prog-wrapper (Files): Update.
45624         * lib/relocwrapper.c: Update.
45625         * build-aux/install-reloc: Update.
45626         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
45627
45628 2007-06-08  Bruno Haible  <bruno@clisp.org>
45629
45630         Port to uClibc.
45631         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
45632         * lib/fpurge.c (fpurge): Likewise.
45633         * lib/freading.c (freading): Likewise.
45634         * lib/fseeko.c (rpl_fseeko): Likewise.
45635         * lib/fseterr.c (fseterr): Likewise.
45636         * lib/fwriting.c (fwriting): Likewise.
45637         * tests/test-fflush.c (main): Avoid a failure on uClibc.
45638
45639 2007-06-08  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
45642         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
45643         * modules/gettext (Files): Add m4/intlmacosx.m4.
45644
45645 2007-06-07  Bruno Haible  <bruno@clisp.org>
45646
45647         * modules/localename-tests: New file.
45648         * tests/test-localename.c: New file.
45649
45650         New module 'localename'.
45651         * lib/localename.h: New file.
45652         * lib/localename.c: New file, from GNU gettext.
45653         * m4/localename.m4: New file.
45654         * modules/localename: New file.
45655
45656 2007-06-07  Bruno Haible  <bruno@clisp.org>
45657
45658         Work around the lack of <wchar.h> on some builds of uClibc.
45659         * doc/headers/wchar.texi: Update.
45660         * lib/wchar_.h: Include <wchar.h> only if it exists.
45661         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
45662         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
45663         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
45664         doesn't exist.
45665         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
45666         * modules/mbfile (Depends-on): Add wchar.
45667         * modules/mbiter (Depends-on): Likewise.
45668         * modules/mbuiter (Depends-on): Likewise.
45669         Reported by Simon Josefsson.
45670
45671 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
45672
45673         Work around problem reported by Steven M. Schweda in
45674         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
45675         Tru64 5.1B with the Compaq compiler environment installed declares
45676         an 'isblank' function but does not define it in the C library.
45677         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
45678         * lib/regex_internal.h (isblank): Likewise.
45679         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
45680         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45681
45682 2007-06-05  Bruno Haible  <bruno@clisp.org>
45683
45684         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
45685         ia64.
45686         * modules/printf-safe: New file.
45687         * modules/fprintf-posix (Depends-on): Add printf-safe.
45688         * modules/printf-posix (Depends-on): Likewise.
45689         * modules/snprintf-posix (Depends-on): Likewise.
45690         * modules/sprintf-posix (Depends-on): Likewise.
45691         * modules/vasnprintf-posix (Depends-on): Likewise.
45692         * modules/vasprintf-posix (Depends-on): Likewise.
45693         * modules/vfprintf-posix (Depends-on): Likewise.
45694         * modules/vprintf-posix (Depends-on): Likewise.
45695         * modules/vsnprintf-posix (Depends-on): Likewise.
45696         * modules/vsprintf-posix (Depends-on): Likewise.
45697         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45698         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
45699         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
45700         "no" on i386, x86_64, ia64.
45701         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
45702         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45703         on i386, x86_64, ia64.
45704         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
45705         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45706         on i386, x86_64, ia64.
45707         * tests/test-vasnprintf-posix.c: Include float.h.
45708         (LDBL80_WORDS): New macro.
45709         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45710         on i386, x86_64, ia64.
45711         * tests/test-vasprintf-posix.c: Include float.h.
45712         (LDBL80_WORDS): New macro.
45713         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
45714         on i386, x86_64, ia64.
45715         * tests/test-snprintf-posix.c: Include float.h.
45716         * tests/test-sprintf-posix.c: Likewise.
45717         * tests/test-vsnprintf-posix.c: Likewise.
45718         * tests/test-vsprintf-posix.c: Likewise.
45719
45720 2007-06-05  Bruno Haible  <bruno@clisp.org>
45721
45722         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
45723         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
45724         non-IEEE numbers on i386, x86_64, ia64.
45725         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
45726         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
45727         * tests/test-isnanl.h: Include float.h.
45728         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
45729
45730 2007-06-05  Bruno Haible  <bruno@clisp.org>
45731
45732         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
45733         also the %a / %A. Handle the %a / %A code before this extra handling.
45734
45735 2007-06-05  Bruno Haible  <bruno@clisp.org>
45736
45737         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
45738         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
45739
45740 2007-06-05  Bruno Haible  <bruno@clisp.org>
45741
45742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
45743         typo in variable name.
45744
45745 2007-06-05  Eric Blake  <ebb9@byu.net>
45746
45747         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
45748         Reported by Simon Josefsson.
45749
45750 2007-06-04  Bruno Haible  <bruno@clisp.org>
45751
45752         Avoid test failures on some PowerPC platforms.
45753         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
45754         Define differently for PowerPC.
45755         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
45756         Reported by Gary V. Vaughan <gary@gnu.org>.
45757
45758 2007-06-02  Bruno Haible  <bruno@clisp.org>
45759
45760         Fix test-stdint failure on FreeBSD/ia64.
45761         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
45762         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
45763         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
45764         * doc/headers/stdint.texi: Update.
45765
45766 2007-06-01  Bruno Haible  <bruno@clisp.org>
45767
45768         * tests/test-binary-io.c (main): Pass a third argument to open().
45769         Reported by Gary V. Vaughan <gary@gnu.org>.
45770
45771 2007-06-01  Bruno Haible  <bruno@clisp.org>
45772
45773         * doc/functions/frexpl.texi: Update for mingw.
45774
45775 2007-06-01  Bruno Haible  <bruno@clisp.org>
45776
45777         * tests/test-lseek.c (main): Disable test of errno for invalid third
45778         argument.
45779         * doc/functions/lseek.texi: Update.
45780         Reported by Gary V. Vaughan <gary@gnu.org>.
45781
45782 2007-05-28  Bruno Haible  <bruno@clisp.org>
45783
45784         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
45785
45786 2007-05-31  Eric Blake  <ebb9@byu.net>
45787
45788         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
45789         cross compiling.
45790
45791 2007-05-30  Eric Blake  <ebb9@byu.net>
45792         and Bruno Haible  <bruno@clisp.org>
45793
45794         Work around mingw test failures exposed by m4-1.4.9b.
45795         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
45796         * tests/test-unistd.c: Disable uid_t and git_t tests for the
45797         moment.
45798
45799 2007-05-30  Bruno Haible  <bruno@clisp.org>
45800
45801         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
45802         assuming that they are closed. Needed on HP-UX 11.
45803
45804 2007-05-29  Bruno Haible  <bruno@clisp.org>
45805
45806         Fix a problem with #include_next.
45807         * lib/dirent_.h: Split the double-inclusion guard.
45808         * lib/fcntl_.h: Likewise.
45809         * lib/float_.h: Likewise.
45810         * lib/iconv_.h: Likewise.
45811         * lib/inttypes_.h: Likewise.
45812         * lib/locale_.h: Likewise.
45813         * lib/math_.h: Likewise.
45814         * lib/netinet_in_.h: Likewise.
45815         * lib/search_.h: Likewise.
45816         * lib/signal_.h: Likewise.
45817         * lib/stdint_.h: Likewise.
45818         * lib/stdio_.h: Likewise.
45819         * lib/stdlib_.h: Likewise.
45820         * lib/string_.h: Likewise.
45821         * lib/sys_select_.h: Likewise.
45822         * lib/sys_socket_.h: Likewise.
45823         * lib/sys_stat_.h: Likewise.
45824         * lib/sys_time_.h: Likewise.
45825         * lib/sysexits_.h: Likewise.
45826         * lib/time_.h: Likewise.
45827         * lib/unistd_.h: Likewise.
45828         * lib/wchar_.h: Likewise.
45829         * lib/wctype_.h: Likewise.
45830
45831 2007-05-29  Bruno Haible  <bruno@clisp.org>
45832
45833         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
45834         for the moment.
45835
45836 2007-05-29  Bruno Haible  <bruno@clisp.org>
45837
45838         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
45839         invocation.
45840         Reported by Eric Blake.
45841
45842 2007-05-29  Bruno Haible  <bruno@clisp.org>
45843
45844         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
45845         compiling case.
45846
45847 2007-05-29  Eric Blake  <ebb9@byu.net>
45848             Bruno Haible  <bruno@clisp.org>
45849
45850         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
45851         cross compiles.
45852
45853 2007-05-28  Eric Blake  <ebb9@byu.net>
45854
45855         * modules/closein-tests (test_closein_LDADD): Support test on
45856         cygwin with libtool.
45857
45858 2007-05-28  Bruno Haible  <bruno@clisp.org>
45859
45860         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
45861         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45862         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45863         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45864         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45865         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45866         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45867         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45868         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45869
45870 2007-05-28  Eric Blake  <ebb9@byu.net>
45871
45872         Unconditionally include <config.h> in unit tests.
45873         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
45874         * tests/test-allocsa.c, tests/test-arcfour.c,
45875         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
45876         tests/test-array_list.c, tests/test-array_oset.c,
45877         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
45878         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
45879         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
45880         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
45881         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
45882         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
45883         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
45884         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
45885         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
45886         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
45887         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
45888         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
45889         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
45890         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
45891         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
45892         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
45893         test-md5.c, test-memmem.c, test-printf-posix.c,
45894         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
45895         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
45896         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
45897         test-strcasestr.c, test-striconv.c, test-striconveh.c,
45898         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
45899         test-vasnprintf-posix2.c, test-vasnprintf.c,
45900         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
45901         test-vfprintf-posix.c, test-vprintf-posix.c,
45902         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
45903         test-xvasprintf.c: Likewise.
45904
45905 2007-05-28  Bruno Haible  <bruno@clisp.org>
45906
45907         * gnulib-tool (func_import): Remember the --with-tests command-line
45908         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
45909         Reported by Eric Blake.
45910
45911 2007-05-28  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/ftell-tests: New file.
45914         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
45915         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
45916
45917         * lib/ftell.c: New file.
45918         * modules/ftell: New file.
45919         * m4/ftell.m4: New file.
45920         * doc/functions/ftell.texi: Update.
45921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
45922         REPLACE_FTELL.
45923         * lib/stdio_.h (rpl_ftell): New declaration.
45924         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
45925         REPLACE_FTELL.
45926
45927 2007-05-28  Eric Blake  <ebb9@byu.net>
45928
45929         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
45930
45931 2007-05-28  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/fseek-tests: New file.
45934         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
45935         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
45936
45937         * lib/fseek.c: New file.
45938         * modules/fseek: New file.
45939         * m4/fseek.m4: New file.
45940         * doc/functions/fseek.texi: Update.
45941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
45942         REPLACE_FSEEK.
45943         * lib/stdio_.h (rpl_fseek): New declaration.
45944         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
45945         REPLACE_FSEEK.
45946
45947 2007-05-28  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/stdio_.h (fflush): More comments.
45950
45951 2007-05-28  Bruno Haible  <bruno@clisp.org>
45952
45953         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
45954         runtime test.
45955
45956 2007-05-28  Eric Blake  <ebb9@byu.net>
45957
45958         Improve lseek module.
45959         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
45960         * lib/unistd_.h (lseek): Scale back link warning message.
45961         * tests/test-lseek.c: Beef up test.
45962         * tests/test-lseek.sh: Exercise more facets of lseek.
45963         Reported by Bruno Haible.
45964
45965 2007-05-28  Bruno Haible  <bruno@clisp.org>
45966
45967         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
45968         to define.
45969
45970 2007-05-27  Bruno Haible  <bruno@clisp.org>
45971
45972         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
45973
45974 2007-05-27  Bruno Haible  <bruno@clisp.org>
45975
45976         * modules/openmp: New file.
45977         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
45978         Noah Misch.
45979
45980 2007-05-26  Bruno Haible  <bruno@clisp.org>
45981
45982         * modules/chdir-long (Depends-on): Add fchdir.
45983         * modules/chdir-safer (Depends-on): Likewise.
45984         * modules/fts (Depends-on): Likewise.
45985         * modules/fts-lgpl (Depends-on): Likewise.
45986         * modules/openat (Depends-on): Likewise.
45987         * modules/savewd (Depends-on): Likewise.
45988
45989 2007-05-24  Eric Blake  <ebb9@byu.net>
45990
45991         Fix lseek on mingw.
45992         * modules/lseek: New module.
45993         * m4/lseek.m4: New file.
45994         * lib/lseek.c: New file.
45995         * modules/lseek-tests: New file.
45996         * tests/test-lseek.c: New file.
45997         * tests/test-lseek.sh: New file.
45998         * MODULES.html.sh: Document lseek module.
45999         * modules/fflush (Depends-on): Add lseek, fseeko.
46000         * modules/fseeko (Depends-on): Likewise.
46001         * modules/ftello (Depends-on): Likewise.
46002         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
46003         broken.
46004         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
46005         broken.
46006         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
46007         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
46008         * lib/ftello.c (rpl_ftello): Likewise.
46009         * tests/test-fseeko.c (main): Test this.
46010         * tests/test-fseeko.sh: Likewise.
46011         * tests/test-ftello.c (main): Likewise.
46012         * tests/test-ftello.sh: Likewise.
46013         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
46014         implies replacing fseek.
46015         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
46016         HAVE_FTELLO.
46017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
46018         * modules/unistd (Makefile.am): Likewise.
46019         * lib/unistd_.h (lseek): Declare a replacement.
46020         * doc/functions/lseek.texi (lseek): Document this fix.
46021         * doc/functions/fseek.texi (fseek): Likewise.
46022         * doc/functions/ftell.texi (ftell): Likewise.
46023
46024 2007-05-24  Bruno Haible  <bruno@clisp.org>
46025
46026         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
46027         in the printed representation of a NaN.
46028         * tests/test-vasprintf-posix.c (test_function): Likewise.
46029         * tests/test-snprintf-posix.h (test_function): Likewise.
46030         * tests/test-sprintf-posix.h (test_function): Likewise.
46031         Reported by Eric Blake.
46032
46033 2007-05-23  Eric Blake  <ebb9@byu.net>
46034
46035         Fix fseeko/ftello on cygwin 1.5.24.
46036         * doc/functions/fseeko.texi (fseeko): Document the fix.
46037         * doc/functions/ftello.texi (ftello): Document the fix.
46038         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
46039         * doc/functions/stdout.text (stdout): New file.
46040         * doc/functions/stderr.text (stderr): New file.
46041         * doc/gnulib.texi (Function Substitutes): Use new files.
46042         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
46043         prior to 1.7.0.
46044         * tests/test-ftello.c (main): Likewise for ftello.
46045         * tests/test-fseeko.sh: New file.
46046         * tests/test-ftello.sh: New file.
46047         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
46048         with seekable stdin.
46049         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
46050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
46051         (gl_REPLACE_FSEEKO): New macro.
46052         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
46053         * modules/fseeko (Files): Distribute fseeko.c.
46054         * modules/ftello (Files): Distribute ftello.c.
46055         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
46056         mode.
46057         * lib/ftello.c (rpl_ftello): New file.
46058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
46059         fseeko, ftello.
46060         (gl_STDIN_LARGE_OFFSET): New macro.
46061         * modules/stdio (Makefile.am): Perform the replacement.
46062         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
46063
46064 2007-05-23  Bruno Haible  <bruno@clisp.org>
46065
46066         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
46067         GNULIB_POSIXCHECK is defined.
46068
46069 2007-05-21  Bruno Haible  <bruno@clisp.org>
46070
46071         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
46072         Check also the output for NaN arguments. When cross-compiling, guess
46073         no on IRIX.
46074         * lib/vasnprintf.c: Update comments.
46075         * tests/test-vasnprintf-posix.c (strisnan): New function.
46076         (test_function): Use it.
46077         * tests/test-vasprintf-posix.c (strisnan): New function.
46078         (test_function): Use it.
46079         * tests/test-snprintf-posix.h (strisnan): New function.
46080         (test_function): Use it.
46081         * tests/test-sprintf-posix.h (strisnan): New function.
46082         (test_function): Use it.
46083         Reported by Eric Blake.
46084
46085 2007-05-20  Bruno Haible  <bruno@clisp.org>
46086
46087         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
46088         numbers that fails on BeOS.
46089         * doc/functions/frexpl.texi: Update.
46090
46091 2007-05-20  Jim Meyering  <jim@meyering.net>
46092
46093         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
46094         forced upon us by glibc-2.6.
46095
46096 2007-05-20  Bruno Haible  <bruno@clisp.org>
46097
46098         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
46099         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
46100         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
46101         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
46102         NEED_PRINTF_INFINITE.
46103         (is_infinitel): New function.
46104         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
46105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
46106         gl_PREREQ_VASNPRINTF_INFINITE.
46107         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
46108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46109         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
46110         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
46111         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
46112         gl_PREREQ_VASNPRINTF_INFINITE.
46113         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46114         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46115         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46116         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46120         * doc/functions/fprintf.texi: Update.
46121         * doc/functions/printf.texi: Update.
46122         * doc/functions/snprintf.texi: Update.
46123         * doc/functions/sprintf.texi: Update.
46124         * doc/functions/vfprintf.texi: Update.
46125         * doc/functions/vprintf.texi: Update.
46126         * doc/functions/vsnprintf.texi: Update.
46127         * doc/functions/vsprintf.texi: Update.
46128
46129 2007-05-20  Bruno Haible  <bruno@clisp.org>
46130
46131         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
46132         was not found in libc.
46133         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46134
46135 2007-05-20  Bruno Haible  <bruno@clisp.org>
46136
46137         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46138         printed as "-nan" instead of "nan".
46139         * tests/test-vasprintf-posix.c (test_function): Likewise.
46140         * tests/test-snprintf-posix.h (test_function): Likewise.
46141         * tests/test-sprintf-posix.h (test_function): Likewise.
46142         Needed for HP-UX 11.
46143
46144 2007-05-20  Jim Meyering  <jim@meyering.net>
46145
46146         Fix buggy test for the fchownat-deref bug.
46147         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
46148         symlink required for the run-test.  Without it, this test would
46149         always declare that fchownat doesn't work, and client code would
46150         unnecessarily use the replacement function with fixed libc.
46151         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
46152         Reported by Greg Schafer.
46153
46154 2007-05-19  Bruno Haible  <bruno@clisp.org>
46155
46156         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
46157         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
46158         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
46159         Needed for IRIX 6.5 and Solaris 2.5.1.
46160
46161 2007-05-19  Bruno Haible  <bruno@clisp.org>
46162
46163         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
46164         (test_function): Skip tests involving -0.0 on platforms where
46165         -0.0 = 0.0.
46166         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
46167         (test_function): Skip tests involving -0.0 on platforms where
46168         -0.0 = 0.0.
46169         * tests/test-snprintf-posix.h (have_minus_zero): New function.
46170         (test_function): Skip tests involving -0.0 on platforms where
46171         -0.0 = 0.0.
46172         * tests/test-sprintf-posix.h (have_minus_zero): New function.
46173         (test_function): Skip tests involving -0.0 on platforms where
46174         -0.0 = 0.0.
46175         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
46176         tests.
46177         * tests/test-printf-posix.h (test_function): Likewise.
46178         * tests/test-printf-posix.output: Remove all -0.0 related results.
46179         Needed for IRIX 6.5.
46180
46181 2007-05-19  Bruno Haible  <bruno@clisp.org>
46182
46183         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
46184         printed as "nan0x7fffffff" instead of "nan".
46185         * tests/test-vasprintf-posix.c (test_function): Likewise.
46186         * tests/test-snprintf-posix.h (test_function): Likewise.
46187         * tests/test-sprintf-posix.h (test_function): Likewise.
46188         * tests/test-fprintf-posix.h (NaN): Remove macro.
46189         (test_function): Remove all NaN related tests.
46190         * tests/test-printf-posix.h (NaN): Remove macro.
46191         (test_function): Remove all NaN related tests.
46192         * tests/test-printf-posix.output: Remove all NaN related results.
46193         Needed for IRIX 6.5.
46194
46195 2007-05-19  Bruno Haible  <bruno@clisp.org>
46196
46197         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
46198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46199
46200 2007-05-19  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/float_.h: New file.
46203         * m4/float_h.m4: New file.
46204         * modules/float: New file.
46205         * modules/isnanl (Dependencies): Add float.
46206         * modules/isnanl-nolibm (Dependencies): Likewise.
46207         * modules/mathl (Dependencies): Likewise.
46208         * modules/printf-frexpl (Dependencies): Likewise.
46209         * modules/signbit (Dependencies): Likewise.
46210         * modules/vasnprintf (Dependencies): Likewise.
46211         * doc/headers/float.texi: Update.
46212
46213 2007-05-19  Jim Meyering  <jim@meyering.net>
46214
46215         * lib/utimens.c (gl_futimens): Rename from futimens,
46216         now that glibc-2.6 declares futimens.
46217         * lib/utimens.h: Likewise.
46218
46219 2007-05-19  Bruno Haible  <bruno@clisp.org>
46220
46221         Avoid test failures on mingw.
46222         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
46223         * tests/test-printf-posix.sh: Likewise.
46224         * tests/test-vfprintf-posix.sh: Likewise.
46225         * tests/test-vprintf-posix.sh: Likewise.
46226
46227 2007-05-19  Bruno Haible  <bruno@clisp.org>
46228
46229         Fix *printf result for NaN, Inf, -0.0 on mingw.
46230         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
46231         * lib/vasnprintf.c: Include math.h and isnan.h.
46232         (is_infinite_or_zero): New function.
46233         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
46234         values in the %f, %F, %e, %E, %g, %G directives.
46235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
46236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46237         gl_PRINTF_INFINITE and test its result. Invoke
46238         gl_PREREQ_VASNPRINTF_INFINITE.
46239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46246         * doc/functions/fprintf.texi: Update.
46247         * doc/functions/printf.texi: Update.
46248         * doc/functions/snprintf.texi: Update.
46249         * doc/functions/sprintf.texi: Update.
46250         * doc/functions/vfprintf.texi: Update.
46251         * doc/functions/vprintf.texi: Update.
46252         * doc/functions/vsnprintf.texi: Update.
46253         * doc/functions/vsprintf.texi: Update.
46254
46255 2007-05-19  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
46258         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
46259         Instead of multiplying with 10^k, set extra_zeroes to k.
46260         (scale10_round_long_double): Remove function.
46261
46262 2007-05-18  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
46265         introduced on 2007-05-06.
46266
46267 2007-05-18  Bruno Haible  <bruno@clisp.org>
46268
46269         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
46270         %g directives.
46271         * tests/test-vasprintf-posix.c (test_function): Likewise.
46272         * tests/test-snprintf-posix.h (test_function): Likewise.
46273         * tests/test-sprintf-posix.h (test_function): Likewise.
46274
46275 2007-05-18  Bruno Haible  <bruno@clisp.org>
46276
46277         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
46278         (strmatch): New function.
46279         (test_function): Test the %f directive on numbers of various exponents.
46280         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
46281         (strmatch): New function.
46282         (test_function): Test the %f directive on numbers of various exponents.
46283         * tests/test-snprintf-posix.h (strmatch): New function.
46284         (test_function): Test the %f directive on numbers of various exponents.
46285         * tests/test-sprintf-posix.h (strmatch): New function.
46286         (test_function): Test the %f directive on numbers of various exponents.
46287         * tests/test-snprintf-posix.c (SIZEOF): New macro.
46288         * tests/test-sprintf-posix.c (SIZEOF): New macro.
46289         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
46290         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
46291
46292 2007-05-18  Bruno Haible  <bruno@clisp.org>
46293
46294         Add support for 'long double' number output.
46295         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
46296         * lib/vasnprintf.c: Include math.h and float+.h.
46297         (mp_limb_t): New type.
46298         (GMP_LIMB_BITS): New macro.
46299         (mp_twolimb_t): New type.
46300         (GMP_TWOLIMB_BITS): New macro.
46301         (mpn_t): New type.
46302         (multiply, divide, convert_to_decimal, decode_long_double,
46303         scale10_round_long_double, scale10_round_decimal_long_double,
46304         floorlog10l): New functions.
46305         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
46306         for the %f, %F, %e, %E, %g, %G directives.
46307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
46308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46309         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
46310         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
46311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46318         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
46319         * modules/snprintf-posix (Depends-on): Likewise.
46320         * modules/sprintf-posix (Depends-on): Likewise.
46321         * modules/vasnprintf-posix (Depends-on): Likewise.
46322         * modules/vasprintf-posix (Depends-on): Likewise.
46323         * modules/vfprintf-posix (Depends-on): Likewise.
46324         * modules/vsnprintf-posix (Depends-on): Likewise.
46325         * modules/vsprintf-posix (Depends-on): Likewise.
46326         * modules/vasnprintf (Files): Add lib/float+.h.
46327         * doc/functions/fprintf.texi: Update.
46328         * doc/functions/printf.texi: Update.
46329         * doc/functions/snprintf.texi: Update.
46330         * doc/functions/sprintf.texi: Update.
46331         * doc/functions/vfprintf.texi: Update.
46332         * doc/functions/vprintf.texi: Update.
46333         * doc/functions/vsnprintf.texi: Update.
46334         * doc/functions/vsprintf.texi: Update.
46335
46336 2007-05-18  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
46339
46340 2007-05-18  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
46343         for printing 64-bit integers. Needed for mingw.
46344
46345 2007-05-18  Bruno Haible  <bruno@clisp.org>
46346
46347         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46348         gl_FUNC_FREXPL_WORKS.
46349         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
46350
46351 2007-05-18  Bruno Haible  <bruno@clisp.org>
46352
46353         * modules/frexpl-nolibm-tests: New file.
46354
46355         * modules/frexpl-nolibm: New file.
46356         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
46357
46358 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46359
46360         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
46361         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46362         GCC 4.2, which otherwise issues a lot of warnings.
46363         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
46364         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
46365         Likewise.
46366         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
46367         * modules/iconv_open (iconv.h): Likewise.
46368         * modules/locale (locale.h): Likewise.
46369         * modules/netinet_in (netinet/in.h): Likewise.
46370         * modules/sys_select (sys_select.h): Likewise.
46371         * modules/sys_socket (sys/socket.h): Likewise.
46372         * modules/sys_stat (sys/stat.h): Likewise.
46373         * modules/sysexits (sysexits.h): Likewise.
46374         * modules/unistd (unistd.h): Likewise.
46375
46376 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46377
46378         * modules/closein-tests (Makefile.am): Distribute
46379         `test-closein.sh'.
46380
46381 2007-05-17  Bruno Haible  <bruno@clisp.org>
46382
46383         * tests/test-printf-posix.output: Renamed from
46384         tests/test-fprintf-posix.out.
46385         * modules/fprintf-posix-tests: Update.
46386         * modules/printf-posix-tests: Update.
46387         * modules/vfprintf-posix-tests: Update.
46388         * modules/vprintf-posix-tests: Update.
46389         * tests/test-fprintf-posix.sh: Update.
46390         * tests/test-printf-posix.sh: Update.
46391         * tests/test-vfprintf-posix.sh: Update.
46392         * tests/test-vprintf-posix.sh: Update.
46393         Reported by Ralf Wildenhues.
46394
46395 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46396
46397         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
46398         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
46399         GCC 4.2, which otherwise issues a lot of warnings.
46400         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
46401         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
46402         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
46403         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
46404         it should no longer be needed.
46405         * lib/string_.h: Likewise.
46406         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
46407         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
46408         * modules/inttypes (inttypes.h): Likewise.
46409         * modules/math (math.h): Likewise.
46410         * modules/search (search.h): Likewise.
46411         * modules/signal (signal.h): Likewise.
46412         * modules/stdint (stdint.h): Likewise.
46413         * modules/stdio (stdio.h): Likewise.
46414         * modules/stdlib (stdlib.h): Likewise.
46415         * modules/string (string.h): Likewise.
46416         * modules/sys_time (sys/time.h): Likewise.
46417         * modules/time (time.h): Likewise.
46418         * modules/wchar (wchar.h): Likewise.
46419         * modules/wctype (wtype.h): Likewise.
46420
46421 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46422
46423         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
46424
46425 2007-05-13  Bruno Haible  <bruno@clisp.org>
46426
46427         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
46428         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46429         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
46430         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46431         (gl_PREREQ_STRTOK_R): Don't require it here.
46432
46433 2007-05-13  Bruno Haible  <bruno@clisp.org>
46434
46435         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
46436         when used in C++ mode.
46437
46438 2007-05-12  Bruno Haible  <bruno@clisp.org>
46439
46440         * lib/linebuffer.h: Tweak doc.
46441         * lib/linebuffer.c: Likewise.
46442
46443 2007-05-12  James Youngman  <jay@gnu.org>
46444
46445         * lib/linebuffer.c (readlinebuffer_delim): New function,
46446         like readlinebuffer, but use a caller-specified delimiter.
46447         (readlinebuffer): Just call readlinebuffer_delim with '\n'
46448         as the delimiter.
46449         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
46450
46451 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46452
46453         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
46454         * modules/openat (Files): Remove openat-die.c.
46455         (Depends-on): Add openat-die.
46456         * modules/openat-die: New module.
46457
46458 2007-05-06  Bruno Haible  <bruno@clisp.org>
46459
46460         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
46461         Update with info about Cygwin.
46462         * doc/functions/fprintf.texi: Update.
46463         * doc/functions/printf.texi: Update.
46464         * doc/functions/snprintf.texi: Update.
46465         * doc/functions/sprintf.texi: Update.
46466         * doc/functions/vfprintf.texi: Update.
46467         * doc/functions/vprintf.texi: Update.
46468         * doc/functions/vsnprintf.texi: Update.
46469         * doc/functions/vsprintf.texi: Update.
46470         Reported by Eric Blake.
46471
46472 2007-05-06  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
46475         padding ourselves for the floating-point directives.
46476         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
46477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
46478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46479         gl_PRINTF_FLAG_ZERO and test its result. Invoke
46480         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
46481         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46482         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46488         * tests/test-snprintf-posix.h (test_function): Also check the width
46489         and some flags in the %f directive.
46490         * tests/test-sprintf-posix.h (test_function): Likewise.
46491         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46492         * tests/test-vasprintf-posix.c (test_function): Likewise.
46493         * doc/functions/fprintf.texi: Update.
46494         * doc/functions/printf.texi: Update.
46495         * doc/functions/snprintf.texi: Update.
46496         * doc/functions/sprintf.texi: Update.
46497         * doc/functions/vfprintf.texi: Update.
46498         * doc/functions/vprintf.texi: Update.
46499         * doc/functions/vsnprintf.texi: Update.
46500         * doc/functions/vsprintf.texi: Update.
46501
46502 2007-05-06  Bruno Haible  <bruno@clisp.org>
46503
46504         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
46505         pass the ' flag character to sprintf or snprintf.
46506         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
46507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
46508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46509         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
46510         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
46511         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
46513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46515         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46518         * tests/test-snprintf-posix.h (test_function): Also check the grouping
46519         flag.
46520         * tests/test-sprintf-posix.h (test_function): Likewise.
46521         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46522         * tests/test-vasprintf-posix.c (test_function): Likewise.
46523         * doc/functions/fprintf.texi: Update.
46524         * doc/functions/printf.texi: Update.
46525         * doc/functions/snprintf.texi: Update.
46526         * doc/functions/sprintf.texi: Update.
46527         * doc/functions/vfprintf.texi: Update.
46528         * doc/functions/vprintf.texi: Update.
46529         * doc/functions/vsnprintf.texi: Update.
46530         * doc/functions/vsprintf.texi: Update.
46531
46532 2007-05-01  Bruno Haible  <bruno@clisp.org>
46533
46534         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
46535
46536 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
46537
46538         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
46539         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
46540
46541 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46542
46543         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
46544         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
46545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
46546
46547 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
46548
46549         * lib/argp-help.c (struct hol_entry): New member `ord'.
46550         (HOL_ENTRY_PTRCMP): Use ord for comparison
46551         (hol_sort): Initialize ord.
46552
46553 2007-05-01  Bruno Haible  <bruno@clisp.org>
46554
46555         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
46556         Reported by Eric Blake.
46557         * doc/gnulib.texi (Function Substitutes): Update.
46558
46559 2007-05-01  Bruno Haible  <bruno@clisp.org>
46560
46561         * doc/functions.texi: Remove file, now redundant through
46562         doc/functions/*.texi.
46563
46564 2007-05-01  Bruno Haible  <bruno@clisp.org>
46565
46566         * modules/argp (Depends-on): Add sleep.
46567
46568 2007-05-01  Bruno Haible  <bruno@clisp.org>
46569
46570         * modules/sleep-tests: New file.
46571         * tests/test-sleep.c: New file.
46572
46573         * modules/sleep: New file.
46574         * lib/sleep.c: New file.
46575         * m4/sleep.m4: New file.
46576         * lib/unistd_.h (sleep): New declaration.
46577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
46578         HAVE_SLEEP.
46579         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
46580         * doc/functions/sleep.texi: Document the sleep module.
46581
46582 2007-05-01  Bruno Haible  <bruno@clisp.org>
46583
46584         * lib/sigprocmask.h: Remove file.
46585         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
46586         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
46587         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
46588         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
46589         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46590         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
46591         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
46592         HAVE_SIGSET_T as a shell variable.
46593         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
46594         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
46595         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
46596         (Depends-on): Add signal. Remove verify.
46597         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
46598         (Include): Mention <signal.h> instead of sigprocmask.h.
46599         * NEWS: Mention the change.
46600         * lib/fatal-signal.c: Don't include sigprocmask.h.
46601
46602 2007-05-01  Bruno Haible  <bruno@clisp.org>
46603
46604         * modules/signal: New file.
46605         * lib/signal_.h: New file.
46606         * m4/signal_h.m4: New file.
46607
46608 2007-05-01  Bruno Haible  <bruno@clisp.org>
46609
46610         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
46611         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
46612         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
46613         HAVE_WCTYPE_CTMP_BUG into wctype.h.
46614
46615 2007-05-01  Bruno Haible  <bruno@clisp.org>
46616
46617         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
46618         configure time.
46619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
46620         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
46621         * modules/sys_stat (Makefile.am): Substitute their values into
46622         sys/stat.h.
46623
46624 2007-05-01  Bruno Haible  <bruno@clisp.org>
46625
46626         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
46627         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
46628         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
46629
46630 2007-05-01  Bruno Haible  <bruno@clisp.org>
46631
46632         * doc/header/assert.texi: Undo last change: don't mention the gnulib
46633         'assert' module here.
46634
46635 2007-05-01  Bruno Haible  <bruno@clisp.org>
46636
46637         * doc/functions/*.texi: New files.
46638         * doc/functions/google-ranking.txt: New file.
46639         * doc/gnulib.texi (Function Substitutes): New chapter.
46640         (ctime, inet_ntoa): Remove sections.
46641         * doc/ctime.texi: Remove file.
46642         * doc/inet_ntoa.texi: Remove file.
46643         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
46644         dependencies.
46645         (%.info): New rule, specifying a --reference-limit.
46646
46647 2007-05-01  Bruno Haible  <bruno@clisp.org>
46648
46649         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
46650
46651 2007-05-01  Bruno Haible  <bruno@clisp.org>
46652
46653         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
46654         the portability of 'mkdir' to mingw systems.
46655
46656 2007-05-01  Bruno Haible  <bruno@clisp.org>
46657
46658         * doc/headers/google-ranking.txt: New file.
46659
46660 2007-04-30  Eric Blake  <ebb9@byu.net>
46661
46662         Prefer fseeko to fseek.
46663         * modules/getpass (Depends-on): Add fseeko.
46664         * lib/getpass.c (getpass): Use fseeko, not fseek.
46665
46666 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
46667
46668         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
46669         assumes the sorting is stable, while most qsort implementations
46670         are not.  Use argument addresses to ensure they never compare as
46671         equal.
46672
46673         * tests/test-argp-2.sh (usage-indent test): Fix output
46674         (func_compare): Restore diff options
46675         * tests/test-argp.c: Restore #include "progname.h"
46676
46677 2007-04-29  Bruno Haible  <bruno@clisp.org>
46678
46679         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
46680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46681         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
46682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46683         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
46684         (configure.ac): Define CHECK_SNPRINTF_POSIX.
46685         (TESTS, check_PROGRAMS): Add test-snprintf.
46686         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
46687         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
46688         (TESTS, check_PROGRAMS): Add test-vsnprintf.
46689         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
46690         assertions that fail on HP-UX, OSF/1, or IRIX.
46691         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
46692
46693 2007-04-29  Bruno Haible  <bruno@clisp.org>
46694
46695         * MODULES.html.sh (posix_functions): Remove 'contents'.
46696
46697 2007-04-29  Karl Berry  <karl@gnu.org>
46698
46699         * config/srclist.txt (gendocs_template_min): new entry.
46700
46701 2007-04-29  Bruno Haible  <bruno@clisp.org>
46702
46703         Work around fpurge bug on BSD systems.
46704         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
46705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
46706         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
46707         fpurge to rpl_fpurge if the system already has this function.
46708         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
46709         the case where the system already has this function. Correct invariants
46710         on BSD systems.
46711         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
46712         BSD systems.
46713
46714 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
46715
46716         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
46717         proposed by Sven Verdoolaege.
46718
46719         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
46720         options.
46721         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
46722         (usage and help tests): Update
46723
46724 2007-04-29  Bruno Haible  <bruno@clisp.org>
46725
46726         * tests/test-fflush.c (main): Use a file of size 17, not 10.
46727         Print more information in case of failure. Disable a test on BeOS.
46728
46729 2007-04-29  Bruno Haible  <bruno@clisp.org>
46730
46731         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
46732         This helps debugging on systems on which no gdb is available.
46733
46734 2007-04-29  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/freading.h: Improve comments.
46737         * lib/fwriting.h: Likewise.
46738         * tests/test-freading.c (main): Don't check freading immediately after
46739         repositioning. Needed for glibc.
46740
46741 2007-04-29  Bruno Haible  <bruno@clisp.org>
46742
46743         * lib/freading.c (freading): Trivial simplification.
46744
46745 2007-04-28  Bruno Haible  <bruno@clisp.org>
46746
46747         * tests/test-fwriting.c (main): Also test the interaction between
46748         fflush and fwriting.
46749         * modules/fwriting-tests (Depends-on): Add fflush.
46750
46751         * tests/test-freading.c (main): Also test the interaction between
46752         fflush and freading.
46753         * modules/freading-tests (Depends-on): Add fflush.
46754
46755 2007-04-28  Bruno Haible  <bruno@clisp.org>
46756
46757         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
46758         fseeko and ftello.
46759         Suggested by Eric Blake.
46760
46761 2007-04-28  Jim Meyering  <jim@meyering.net>
46762
46763         Avoid false-negative in gl_STDINT_H's C99 conformance test.
46764         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
46765         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
46766
46767 2007-04-27  Eric Blake  <ebb9@byu.net>
46768
46769         * doc/headers/assert.texi (assert.h): Document assert module use.
46770
46771 2007-04-27  Bruno Haible  <bruno@clisp.org>
46772
46773         * doc/headers/*.texi: New files.
46774         * doc/gnulib.texi (Header File Substitutes): New chapter.
46775         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
46776         dependencies.
46777         (standards.info ,standards.html, standards.dvi): Update dependencies.
46778         (mostlyclean, clean): New targets.
46779
46780 2007-04-27  Bruno Haible  <bruno@clisp.org>
46781
46782         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
46783         * modules/sysexits (Files, Makefile.am): Update.
46784
46785         * lib/sys_socket_.h: Renamed from lib/socket_.h.
46786         * modules/sys_socket (Files, Makefile.am): Update.
46787
46788         * lib/sys_stat_.h: Renamed from lib/stat_.h.
46789         * modules/sys_stat (Files, Makefile.am): Update.
46790
46791 2007-04-27  Eric Blake  <ebb9@byu.net>
46792
46793         * lib/freading.h: Improve comments.
46794         * lib/fwriting.h: Likewise.
46795         * lib/fflush.c: Likewise.
46796
46797         Fix closein for mingw.
46798         * modules/closein-tests: Add tests for closein.
46799         * tests/test-closein.c: New file.
46800         * tests/test-closein.sh: Likewise.
46801         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
46802         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
46803
46804 2007-04-27  Bruno Haible  <bruno@clisp.org>
46805
46806         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
46807         version is < 6.
46808         * lib/math_.h [__DECC]: Likewise.
46809         * lib/stdio_.h [__DECC]: Likewise.
46810         * lib/stdlib_.h [__DECC]: Likewise.
46811         * lib/string_.h [__DECC]: Likewise.
46812         * lib/time_.h [__DECC]: Likewise.
46813         * lib/wchar_.h [__DECC]: Likewise.
46814         * lib/wctype_.h [__DECC]: Likewise.
46815
46816 2007-04-27  Bruno Haible  <bruno@clisp.org>
46817
46818         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
46819
46820 2007-04-27  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/fflush.c: Add comments.
46823         * modules/fpurge-tests (Depends-on): Add fflush.
46824         * modules/freadable-tests (Depends-on): Likewise.
46825         * modules/fwritable-tests (Depends-on): Likewise.
46826
46827 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
46828
46829         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
46830         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
46831         Report by Bruno Haible <bruno@clisp.org>.
46832
46833 2007-04-26  Eric Blake  <ebb9@byu.net>
46834
46835         Fix fflush on mingw.
46836         * modules/fflush (Depends-on): Add freading.
46837         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
46838         but unread data.
46839
46840 2007-04-26  Eric Blake  <ebb9@byu.net>
46841         and Bruno Haible  <bruno@clisp.org>
46842
46843         Implement freading and fwriting.
46844         * lib/freading.c: New file.
46845         * lib/freading.h: Likewise.
46846         * m4/freading.m4: Likewise.
46847         * modules/freading: Likewise.
46848         * modules/freading-tests: Likewise.
46849         * tests/test-freading.c: Likewise.
46850         * lib/fwriting.c: New file.
46851         * lib/fwriting.h: Likewise.
46852         * m4/fwriting.m4: Likewise.
46853         * modules/fwriting: Likewise.
46854         * modules/fwriting-tests: Likewise.
46855         * tests/test-fwriting.c: Likewise.
46856         * MODULES.html.sh (File stream based Input/Output): Mention them.
46857
46858 2007-04-26  Bruno Haible  <bruno@clisp.org>
46859
46860         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
46861         'long' when we assume it.
46862         Suggested by Eric Blake.
46863
46864 2007-04-26  Bruno Haible  <bruno@clisp.org>
46865
46866         Ensure fseeko, ftello are declared on glibc systems.
46867         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
46868         * modules/fseeko (configure.ac-early): Likewise.
46869         * modules/ftello (configure.ac-early): Likewise.
46870         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
46871         AC_FUNC_FSEEKO for this.
46872         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
46873         (gl_CHECK_FSEEKO): Remove macro.
46874
46875 2007-04-26  Bruno Haible  <bruno@clisp.org>
46876
46877         * tests/test-fflush.c (main): Also check the ftell result after
46878         fflush and fseek/fseeko.
46879         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
46880         file descriptor position cache in the stream.
46881         * lib/fseeko.c (rpl_fseeko): Likewise.
46882
46883 2007-04-26  Bruno Haible  <bruno@clisp.org>
46884
46885         * modules/fflush-tests (Depends-on): Add fseeko.
46886
46887 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
46888             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46889
46890         * lib/argz_.h: ensure error_t definition is obtained in same
46891         mechanism system argz.h would have.
46892         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
46893         argz facilities are known bad.  Err on the side of caution if
46894         cross-compiling.
46895
46896 2007-04-25  Eric Blake  <ebb9@byu.net>
46897
46898         * lib/fpurge.c (includes): Use stdlib.h for free.
46899         * tests/test-fflush.c (main): Also test fflush-fseeko.
46900
46901 2007-04-25  Bruno Haible  <bruno@clisp.org>
46902
46903         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
46904         * lib/fseeko.c: New file.
46905         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
46906         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
46907         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
46908         gl_FUNC_FSEEKO.
46909         (gl_FUNC_FSEEKO): Invoke it.
46910         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
46911         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
46912         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
46913
46914 2007-04-25  Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/fflush (Depends-on): Add ftello.
46917
46918 2007-04-25  Bruno Haible  <bruno@clisp.org>
46919
46920         * modules/ftello-tests: New file.
46921         * tests/test-ftello.c: New file.
46922
46923         * modules/ftello: New file.
46924         * m4/ftello.m4: New file.
46925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
46926         HAVE_FTELLO.
46927         * lib/stdio_.h (ftello): New declaration.
46928         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
46929         HAVE_FTELLO.
46930
46931 2007-04-25  Bruno Haible  <bruno@clisp.org>
46932
46933         * modules/fseeko-tests: New file.
46934         * tests/test-fseeko.c: New file.
46935
46936         * modules/fseeko: New file.
46937         * m4/fseeko.m4: New file.
46938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
46939         HAVE_FSEEKO.
46940         * lib/stdio_.h (fseeko): New declaration.
46941         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
46942         HAVE_FSEEKO.
46943
46944 2007-04-25  Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
46947
46948 2007-04-25  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
46951         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
46952         * tests/test-unistd.c: Likewise.
46953         * tests/test-fcntl.c: Likewise.
46954
46955 2007-04-23  Eric Blake  <ebb9@byu.net>
46956
46957         * lib/fflush.c: Fix missing include.
46958         Reported by Bruno Haible.
46959
46960 2007-04-23  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
46963         Reported by Eric Blake.
46964
46965 2007-04-23  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
46968
46969 2007-04-23  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
46972
46973 2007-04-23  Bruno Haible  <bruno@clisp.org>
46974
46975         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
46976         Needed on HP-UX 11.
46977
46978 2007-04-16  Eric Blake  <ebb9@byu.net>
46979
46980         Make fflush rely on fpurge.
46981         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
46982         open coding all variants.
46983         * modules/fflush (Depends-on): Add fpurge and unistd.
46984         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
46985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
46986
46987         Fix --with-tests compilation on cygwin.
46988         * modules/argmatch-tests (Makefile.am): List gnulib library first
46989         in LDADD.
46990         * modules/argp-tests (Makefile.am): Likewise.
46991         * modules/array-list-tests (Makefile.am): Likewise.
46992         * modules/array-oset-tests (Makefile.am): Likewise.
46993         * modules/avltree-list-tests (Makefile.am): Likewise.
46994         * modules/avltree-oset-tests (Makefile.am): Likewise.
46995         * modules/avltreehash-list-tests (Makefile.am): Likewise.
46996         * modules/carray-list-tests (Makefile.am): Likewise.
46997         * modules/dirname-tests (Makefile.am): Likewise.
46998         * modules/frexp-tests (Makefile.am): Likewise.
46999         * modules/isnanl-tests (Makefile.am): Likewise.
47000         * modules/linked-list-tests (Makefile.am): Likewise.
47001         * modules/linkedhash-list-tests (Makefile.am): Likewise.
47002         * modules/lock-tests (Makefile.am): Likewise.
47003         * modules/rbtree-list-tests (Makefile.am): Likewise.
47004         * modules/rbtree-oset-tests (Makefile.am): Likewise.
47005         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
47006         * modules/tls-tests (Makefile.am): Likewise.
47007         * modules/tsearch-tests (Makefile.am): Likewise.
47008         * modules/xvasprintf-tests (Makefile.am): Likewise.
47009
47010         Fix fpurge for cygwin.
47011         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
47012         value.
47013         * modules/fpurge-tests (Depends-on): Clean up trash.
47014
47015 2007-04-16  Simon Josefsson  <simon@josefsson.org>
47016
47017         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
47018
47019         * m4/autobuild.m4: Re-indent.
47020
47021 2007-04-13  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/fpurge-tests: New file.
47024         * tests/test-fpurge.c: New file.
47025
47026         * modules/fpurge: New file.
47027         * lib/fpurge.h: New file.
47028         * lib/fpurge.c: New file.
47029         * m4/fpurge.m4: New file.
47030
47031 2007-04-13  Bruno Haible  <bruno@clisp.org>
47032
47033         * modules/fbufmode-tests: New file.
47034         * tests/test-fbufmode.c: New file.
47035
47036         * modules/fbufmode: New file.
47037         * lib/fbufmode.h: New file.
47038         * lib/fbufmode.c: New file.
47039         * m4/fbufmode.m4: New file.
47040
47041 2007-04-13  Bruno Haible  <bruno@clisp.org>
47042
47043         * modules/fwritable-tests: New file.
47044         * tests/test-fwritable.c: New file.
47045
47046         * modules/fwritable: New file.
47047         * lib/fwritable.h: New file.
47048         * lib/fwritable.c: New file.
47049         * m4/fwritable.m4: New file.
47050
47051 2007-04-13  Bruno Haible  <bruno@clisp.org>
47052
47053         * modules/freadable-tests: New file.
47054         * tests/test-freadable.c: New file.
47055
47056         * modules/freadable: New file.
47057         * lib/freadable.h: New file.
47058         * lib/freadable.c: New file.
47059         * m4/freadable.m4: New file.
47060
47061 2007-04-13  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
47064         MOSTLYCLEANFILES.
47065
47066 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47067
47068         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
47069         gzip bootstrap.conf to avoid dragging in i18n machinery.
47070         (gnulib_tool_option): Use it.
47071
47072 2007-04-13  Bruno Haible  <bruno@clisp.org>
47073
47074         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
47075         %F directives.
47076         * tests/test-vasprintf-posix.c (test_function): Likewise.
47077         * tests/test-snprintf-posix.h (test_function): Likewise.
47078         * tests/test-sprintf-posix.h (test_function): Likewise.
47079         * tests/test-fprintf-posix.h (test_function): Likewise.
47080         * tests/test-printf-posix.h (test_function): Likewise.
47081         * tests/test-fprintf-posix.out: Likewise.
47082
47083 2007-04-13  Bruno Haible  <bruno@clisp.org>
47084
47085         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
47086         * modules/tls-tests (configure.ac): Likewise.
47087         Reported by Arto C. Nirkko <anirkko@insel.ch>.
47088
47089 2007-04-13  Bruno Haible  <bruno@clisp.org>
47090
47091         * lib/tls.c (glthread_tls_get): Fix return type.
47092         Patch by Arto C. Nirkko <anirkko@insel.ch>.
47093
47094 2007-04-12  Eric Blake  <ebb9@byu.net>
47095
47096         * modules/gettime (Depends-on): Remove gettime.
47097         Reported by Dmitry V. Levin.
47098
47099 2007-04-12  Bruno Haible  <bruno@clisp.org>
47100
47101         * modules/fflush (Include): Mention <stdio.h>.
47102         * modules/strtoimax (Include): Mention <inttypes.h>.
47103         * modules/strtoumax (Include): Likewise.
47104
47105 2007-04-12  Eric Blake  <ebb9@byu.net>
47106
47107         * .cvsignore: New file.
47108         * .gitignore: Likewise.
47109
47110 2007-04-12  Bruno Haible  <bruno@clisp.org>
47111
47112         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
47113         not before, since $(LDADD) often contains libgnu.a.
47114         * modules/striconv-tests (test_striconv_LDADD): Likewise.
47115         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
47116         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
47117         Needed on Cygwin.
47118
47119 2007-04-12  Eric Blake  <ebb9@byu.net>
47120
47121         Work around glibc's failure to flush stdin on fclose.
47122         * lib/closein.c (close_stdin): Flush stdin before closing.
47123
47124         Work around glibc's failure to reset seekable stdin on exit.
47125         * modules/closein: New module.
47126         * lib/closein.c: New file.
47127         * lib/closein.h: Likewise.
47128         * m4/closein.m4: Likewise.
47129         * MODULES.html.sh (File stream based Input/Output): Document it.
47130
47131 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47132
47133         * gnulib-tool: Rename generated 'autobuild' script to
47134         'do-autobuild' in --create-megatestdir output.
47135
47136         * doc/gnulib.texi (Build robot for gnulib): Fix.
47137
47138 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47139
47140         * modules/sysexits (Depends-on): Add absolute-header.
47141
47142 2007-04-12  Eric Blake  <ebb9@byu.net>
47143
47144         No need to preserve errno on success.
47145         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
47146         Reported by Bruno Haible.
47147
47148 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47149
47150         * MODULES.html.sh (Support for maintaining and releasing
47151         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
47152
47153 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47154
47155         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
47156
47157 2007-04-12  Simon Josefsson  <simon@josefsson.org>
47158
47159         * modules/autobuild: New module.
47160
47161         * m4/autobuild.m4: New file.
47162
47163 2007-04-11  Bruno Haible  <bruno@clisp.org>
47164
47165         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
47166         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
47167         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
47168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
47169         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47175         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
47176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47178         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
47179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
47182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
47185         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47186         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
47188         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47189         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
47191         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
47192         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
47193         Reported by Eric Blake.
47194
47195 2007-04-11  Bruno Haible  <bruno@clisp.org>
47196
47197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
47198
47199 2007-04-10  Bruno Haible  <bruno@clisp.org>
47200
47201         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
47202         for NaN and Infinity. Needed on FreeBSD 6.1.
47203         * tests/test-vasnprintf-posix.c (test_function): Undo last change
47204         regarding results for "%010a" of Infinity and NaN.
47205         * tests/test-vasprintf-posix.c (test_function): Likewise.
47206         * tests/test-snprintf-posix.h (test_function): Likewise.
47207         * tests/test-sprintf-posix.h (test_function): Likewise.
47208         * tests/test-fprintf-posix.h (test_function): Likewise.
47209         * tests/test-printf-posix.h (test_function): Likewise.
47210         * tests/test-fprintf-posix.out: Likewise.
47211
47212 2007-04-10  Bruno Haible  <bruno@clisp.org>
47213
47214         * modules/locale-tests: New file.
47215         * tests/test-locale.c: New file.
47216
47217         * modules/locale: New file.
47218         * lib/locale_.h: New file.
47219         * m4/locale_h.m4: New file.
47220
47221 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
47222             Bruno Haible  <bruno@clisp.org>
47223
47224         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
47225         be determined, test for availability of the copysignf, copysign,
47226         copysignl functions.
47227         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
47228         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
47229         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
47230
47231 2007-04-09  Eric Blake  <ebb9@byu.net>
47232
47233         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
47234         * modules/stdio (Makefile.am): Support fflush.
47235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47236         * modules/fflush: New file.
47237         * lib/fflush.c: Likewise.
47238         * m4/fflush.m4: Likewise.
47239         * modules/fflush-tests: New test.
47240         * tests/test-fflush.c: Likewise.
47241         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
47242
47243 2007-04-06  Bruno Haible  <bruno@clisp.org>
47244
47245         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
47246         (VASNPRINTF): Use signbit for faster determination whether to print a
47247         minus sign.
47248         * modules/vasnprintf (Files): Remove lib/float+.h.
47249         * modules/fprintf-posix (Depends-on): Add signbit.
47250         * modules/snprintf-posix (Depends-on): Likewise.
47251         * modules/sprintf-posix (Depends-on): Likewise.
47252         * modules/vasnprintf-posix (Depends-on): Likewise.
47253         * modules/vasprintf-posix (Depends-on): Likewise.
47254         * modules/vfprintf-posix (Depends-on): Likewise.
47255         * modules/vsnprintf-posix (Depends-on): Likewise.
47256         * modules/vsprintf-posix (Depends-on): Likewise.
47257
47258 2007-04-06  Bruno Haible  <bruno@clisp.org>
47259
47260         * tests/test-frexp.c (main): Test also the sign bit of zero results.
47261         * tests/test-frexpl.c (main): Likewise.
47262         * tests/test-ldexpl.c (main): Likewise.
47263         * modules/frexp-tests (Depends-on): Add signbit.
47264         * modules/frexpl-tests (Depdends-on): Likewise.
47265         * modules/ldexpl-tests (Depdends-on): Likewise.
47266
47267 2007-04-06  Bruno Haible  <bruno@clisp.org>
47268
47269         * modules/signbit-tests: New file.
47270         * tests/test-signbit.c: New file.
47271
47272         * modules/signbit: New file.
47273         * lib/signbitf.c: New file.
47274         * lib/signbitd.c: New file.
47275         * lib/signbitl.c: New file.
47276         * m4/signbit.m4: New file.
47277         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
47278         (signbit): New macro.
47279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
47280         REPLACE_SIGNBIT.
47281         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
47282         REPLACE_FREXPL into math.h.
47283
47284 2007-04-06  Bruno Haible  <bruno@clisp.org>
47285
47286         * modules/isnanf-nolibm-tests: New file.
47287         * tests/test-isnanf.c: New file.
47288
47289         * modules/isnanf-nolibm: New file.
47290         * lib/isnanf.h: New file.
47291         * lib/isnanf.c: New file.
47292         * lib/isnan.c: Consider the USE_FLOAT macro.
47293         * m4/isnanf.m4: New file.
47294
47295 2007-04-06  Bruno Haible  <bruno@clisp.org>
47296
47297         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
47298         (Link): New section.
47299
47300         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
47301
47302 2007-04-06  Bruno Haible  <bruno@clisp.org>
47303
47304         Assume the 'long double' type.
47305         * m4/longdouble.m4: Remove file.
47306         * config/srclist.txt: Don't mention longdouble.m4.
47307         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
47308         * lib/float+.h: Likewise.
47309         * lib/frexp.c: Likewise.
47310         * lib/printf-args.h: Likewise.
47311         * lib/printf-args.c: Likewise.
47312         * lib/printf-frexp.c: Likewise.
47313         * lib/printf-parse.c: Likewise.
47314         * lib/vasnprintf.c: Likewise.
47315         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
47316         * m4/intl.m4: Likewise.
47317         * m4/isnanl.m4: Likewise.
47318         * m4/printf.m4: Likewise.
47319         * m4/printf-frexpl.m4: Likewise.
47320         * m4/vasnprintf.m4: Likewise.
47321         * modules/allocsa (Files): Remove m4/longdouble.m4.
47322         * modules/gettext (Files): Likewise.
47323         * modules/relocatable-prog-wrapper (Files): Likewise.
47324         * modules/vasnprintf (Files): Likewise.
47325         * modules/isnanl (Files): Likewise.
47326         (Include): Simplify.
47327         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
47328         (Include): Simplify.
47329         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
47330         (Include): Simplify.
47331         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
47332         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47333         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
47334         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47335         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47336         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47337         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
47338         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47339         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
47340         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47341         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
47342         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
47343         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
47344         * tests/test-isnanl.c: Likewise.
47345         * tests/test-snprintf-posix.h: Likewise.
47346         * tests/test-sprintf-posix.h: Likewise.
47347         * tests/test-vasnprintf-posix.c: Likewise.
47348         * tests/test-vasnprintf-posix2.c: Likewise.
47349         * tests/test-vasprintf-posix.c: Likewise.
47350
47351 2007-04-06  Bruno Haible  <bruno@clisp.org>
47352
47353         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
47354         * lib/math_.h [__DECC]: Include the overridden include file through
47355         #include_next, outside the double-inclusion guard.
47356         * lib/stdio_.h [__DECC]: Likewise.
47357         * lib/stdlib_.h [__DECC]: Likewise.
47358         * lib/string_.h [__DECC]: Likewise.
47359         * lib/time_.h [__DECC]: Likewise.
47360         * lib/wchar_.h [__DECC]: Likewise.
47361         * lib/wctype_.h [__DECC]: Likewise.
47362         * lib/inttypes_.h [__DECC]: Likewise.
47363         Reported by Albert Chin <china@thewrittenword.com> in
47364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
47365
47366 2007-04-04  Eric Blake  <ebb9@byu.net>
47367
47368         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
47369         1.5.x.
47370
47371 2007-04-04  Bruno Haible  <bruno@clisp.org>
47372
47373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
47374         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
47375
47376 2007-04-04  Bruno Haible  <bruno@clisp.org>
47377
47378         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
47379         results for "%010a" of Infinity and NaN.
47380         * tests/test-vasprintf-posix.c (test_function): Likewise.
47381         * tests/test-snprintf-posix.h (test_function): Likewise.
47382         * tests/test-sprintf-posix.h (test_function): Likewise.
47383         * tests/test-fprintf-posix.h (test_function): Remove these tests.
47384         * tests/test-printf-posix.h (test_function): Likewise.
47385         * tests/test-fprintf-posix.out: Update.
47386         Needed for FreeBSD 6.1.
47387
47388 2007-04-04  Bruno Haible  <bruno@clisp.org>
47389
47390         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
47391         directly used by the gnulib modules nor by gnulib-tool.
47392
47393 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * DEPENDENCIES: Give overall description of version dependency
47396         desirability.  Use more-typical names for apps.
47397         Add shell, coreutils, diffutils, grep, tar, gzip.
47398
47399 2007-04-04  Simon Josefsson  <simon@josefsson.org>
47400
47401         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
47402
47403 2007-04-04  Karl Berry  <karl@gnu.org>
47404
47405         * MODULES.html.sh (func_module): missing '.
47406
47407 2007-04-03  Bruno Haible  <bruno@clisp.org>
47408
47409         * modules/argmatch-tests (Makefile.am): New variable
47410         test_argmatch_LDADD.
47411         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
47412         * modules/array-list-tests (Makefile.am): New variable
47413         test_array_list_LDADD.
47414         * modules/array-oset-tests (Makefile.am): New variable
47415         test_array_oset_LDADD.
47416         * modules/avltree-list-tests (Makefile.am): New variable
47417         test_avltree_list_LDADD.
47418         * modules/avltree-oset-tests (Makefile.am): New variable
47419         test_avltree_oset_LDADD.
47420         * modules/avltreehash-list-tests (Makefile.am): New variable
47421         test_avltreehash_list_LDADD.
47422         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
47423         test_canonicalize_lgpl_LDADD.
47424         * modules/carray-list-tests (Makefile.am): New variable
47425         test_carray_list_LDADD.
47426         * modules/dirname-tests (Makefile.am): New variable
47427         test_dirname_LDADD.
47428         * modules/linked-list-tests (Makefile.am): New variable
47429         test_linked_list_LDADD.
47430         * modules/linkedhash-list-tests (Makefile.am): New variable
47431         test_linkedhash_list_LDADD.
47432         * modules/rbtree-list-tests (Makefile.am): New variable
47433         test_rbtree_list_LDADD.
47434         * modules/rbtree-oset-tests (Makefile.am): New variable
47435         test_rbtree_oset_LDADD.
47436         * modules/rbtreehash-list-tests (Makefile.am): New variable
47437         test_rbtreehash_list_LDADD.
47438         * modules/xvasprintf-tests (Makefile.am): New variable
47439         test_xvasprintf_LDADD.
47440         Reported by Eric Blake.
47441
47442 2007-04-03  Eric Blake  <ebb9@byu.net>
47443
47444         * DEPENDENCIES: Weaken m4 requirements.
47445
47446 2007-04-03  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
47449         * modules/isnanl-tests (configure.ac): Likewise.
47450
47451 2007-04-03  Ben Pfaff  <blp@gnu.org>
47452
47453         * modules/iconv_open: Add $(srcdir)/ to source directory
47454         references in Makefile fragments that call gperf, to fix VPATH
47455         builds.
47456
47457 2007-04-03  Bruno Haible  <bruno@clisp.org>
47458
47459         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
47460         * lib/ldexpl.c: Undo last change.
47461
47462 2007-04-03  Bruno Haible  <bruno@clisp.org>
47463
47464         * modules/printf-frexpl (Depends-on): Undo last change.
47465         (Files): Add m4/ldexpl.m4.
47466
47467 2007-04-03  Bruno Haible  <bruno@clisp.org>
47468
47469         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
47470         * modules/isnanl (Link): New section.
47471
47472         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
47473         * modules/frexp (Link): New section.
47474
47475         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
47476         * modules/frexpl (Link): New section.
47477
47478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
47479         * modules/ldexpl (Link): New section.
47480
47481 2007-04-03  Bruno Haible  <bruno@clisp.org>
47482
47483         * modules/TEMPLATE-EXTENDED: New file.
47484         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
47485
47486 2007-04-03  Bruno Haible  <bruno@clisp.org>
47487
47488         * DEPENDENCIES: New file.
47489         Suggested by Simon Josefsson.
47490
47491 2007-04-03  Bruno Haible  <bruno@clisp.org>
47492
47493         * doc/gnulib.texi: Escape @.
47494
47495 2007-04-03  James Youngman  <jay@gnu.org>
47496         and Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
47499         birthtime on all systems that have birthtime, not just those which
47500         use st_birthtimensec rather than st_birthtim.  Putting zero in
47501         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
47502         that the birth time is not available for files on an NFS mount.
47503
47504 2007-04-03  Simon Josefsson  <simon@josefsson.org>
47505
47506         * modules/memxor: Move back from crypto/, suggested by Bruno.
47507         * modules/crypto/hmac-sha1: Fix memxor dependency.
47508
47509         * modules/crypto/gc: Moved from ../.
47510
47511 2007-04-02  Eric Blake  <ebb9@byu.net>
47512
47513         * lib/ldexpl.c (includes): Avoid libm.
47514
47515         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
47516
47517 2007-04-02  Bruno Haible  <bruno@clisp.org>
47518
47519         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
47520         on IRIX.
47521
47522 2007-04-02  Bruno Haible  <bruno@clisp.org>
47523
47524         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
47525         x86 or x86_64 platforms running MacOS X.
47526         Reported by Ryan Schmidt <@ryandesign.com>.
47527
47528 2007-04-02  Bruno Haible  <bruno@clisp.org>
47529
47530         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
47531         i386.
47532
47533 2007-04-01  Simon Josefsson  <simon@josefsson.org>
47534
47535         * modules/crypto/arcfour: Moved from ../.
47536         * modules/crypto/arcfour-tests: Moved from ../.
47537         * modules/crypto/arctwo: Moved from ../.
47538         * modules/crypto/arctwo-tests: Moved from ../.
47539         * modules/crypto/des: Moved from ../.
47540         * modules/crypto/des-tests: Moved from ../.
47541         * modules/crypto/gc-arcfour: Moved from ../.
47542         * modules/crypto/gc-arcfour-tests: Moved from ../.
47543         * modules/crypto/gc-arctwo: Moved from ../.
47544         * modules/crypto/gc-arctwo-tests: Moved from ../.
47545         * modules/crypto/gc-des: Moved from ../.
47546         * modules/crypto/gc-des-tests: Moved from ../.
47547         * modules/crypto/gc-hmac-md5: Moved from ../.
47548         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
47549         * modules/crypto/gc-hmac-sha1: Moved from ../.
47550         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
47551         * modules/crypto/gc-md2: Moved from ../.
47552         * modules/crypto/gc-md2-tests: Moved from ../.
47553         * modules/crypto/gc-md4: Moved from ../.
47554         * modules/crypto/gc-md4-tests: Moved from ../.
47555         * modules/crypto/gc-md5: Moved from ../.
47556         * modules/crypto/gc-md5-tests: Moved from ../.
47557         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
47558         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
47559         * modules/crypto/gc-random: Moved from ../.
47560         * modules/crypto/gc-rijndael: Moved from ../.
47561         * modules/crypto/gc-rijndael-tests: Moved from ../.
47562         * modules/crypto/gc-sha1: Moved from ../.
47563         * modules/crypto/gc-sha1-tests: Moved from ../.
47564         * modules/crypto/gc-tests: Moved from ../.
47565         * modules/crypto/hmac-md5: Moved from ../.
47566         * modules/crypto/hmac-md5-tests: Moved from ../.
47567         * modules/crypto/hmac-sha1: Moved from ../.
47568         * modules/crypto/hmac-sha1-tests: Moved from ../.
47569         * modules/crypto/md2: Moved from ../.
47570         * modules/crypto/md2-tests: Moved from ../.
47571         * modules/crypto/md4: Moved from ../.
47572         * modules/crypto/md4-tests: Moved from ../.
47573         * modules/crypto/md5: Moved from ../.
47574         * modules/crypto/md5-tests: Moved from ../.
47575         * modules/crypto/memxor: Moved from ../.
47576         * modules/crypto/rijndael: Moved from ../.
47577         * modules/crypto/rijndael-tests: Moved from ../.
47578         * modules/crypto/sha1: Moved from ../.
47579
47580 2007-03-30  James Youngman  <jay@gnu.org>
47581
47582         * tests/test-stat-time.c (prepare_test): use chmod() rather than
47583         rename() to change the ctime of a file (because ctime is unaffected
47584         by rename on jfs2 on AIX 5.1).
47585         (main): Start by doing cleanup, in case a previous run failed leaving
47586         test files behind.
47587
47588 2007-03-31  Bruno Haible  <bruno@clisp.org>
47589
47590         Support old proprietary implementations of iconv.
47591         * modules/iconv_open: New file.
47592         * lib/iconv_.h: New file.
47593         * m4/iconv_h.m4: New file.
47594         * lib/iconv_open.c: New file.
47595         * lib/iconv_open-aix.gperf: New file.
47596         * lib/iconv_open-hpux.gperf: New file.
47597         * lib/iconv_open-irix.gperf: New file.
47598         * lib/iconv_open-osf.gperf: New file.
47599         * m4/iconv_open.m4: New file.
47600         * modules/linebreak (Depends-on): Add iconv_open.
47601         * modules/striconv (Depends-on): Likewise.
47602         * modules/striconveh (Depends-on): Likewise.
47603         * modules/unicodeio (Depends-on): Likewise.
47604         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
47605         (iconv_t)(-1).
47606         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
47607         conversion if cd is (iconv_t)(-1).
47608         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
47609         is not possible.
47610
47611 2007-03-31  Bruno Haible  <bruno@clisp.org>
47612
47613         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47614         work on Solaris either. Protect also second use of "autodetect_jp".
47615
47616 2007-03-31  Bruno Haible  <bruno@clisp.org>
47617
47618         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
47619         the function is not present.
47620
47621 2007-03-31  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
47624         the function is not present.
47625
47626 2007-03-31  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
47629         a bug in HP-UX iconv_open().
47630
47631 2007-03-31  Bruno Haible  <bruno@clisp.org>
47632
47633         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
47634         (Mathematics <math.h>): New section, add fpieee.
47635         (Input/output <stdio.h>): Add fseterr.
47636         (Mathematics <math.h>): New section, add printf-frexp.
47637         (Container data structures): Add sublist.
47638         (Core language properties): Add fpucw, inline.
47639         (Functions for greatest-width integer types <inttypes.h>): Add
47640         imaxabs, imaxdiv, inttypes.
47641         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
47642         isnanl-nolibm, ldexp.
47643         (Mathematics <math.h>): New section, add printf-frexpl.
47644         (Support for systems lacking POSIX:2001): Add fprintf-posix,
47645         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
47646         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
47647         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
47648         (Unicode string functions): Add unistr/u*-mbtoucr.
47649         (Java): Add javacomp-script, javaexec-script.
47650         (C#): Add csharpcomp-script, csharpexec-script.
47651         (Support for building libraries and executables): Add havelib,
47652         relocatable-*.
47653         (Support for maintaining and releasing projects): Renamed from
47654         'Support for maintaining and release projects'. Add announce-gen.
47655
47656 2007-03-31  Bruno Haible  <bruno@clisp.org>
47657
47658         * README: Talk primarily about git.
47659         (git and CVS): Renamed from CVS.
47660         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
47661         gnulib is available through git.
47662         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
47663
47664 2007-03-30  Bruno Haible  <bruno@clisp.org>
47665
47666         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
47667         * lib/poll_.h: Likewise.
47668         * lib/stat_.h: Likewise.
47669         * lib/sys_time_.h: Likewise.
47670         * lib/sysexit_.h: Likewise.
47671         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
47672         * lib/stdbool_.h: Likewise.
47673         * lib/byteswap_.h: Add double-inclusion guard.
47674
47675 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
47676
47677         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
47678
47679 2007-03-30  Karl Berry  <karl@gnu.org>
47680
47681         * config/srclist-update: double space after USA in the license
47682         substitution, since that's how it's usually (?) written.
47683
47684 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47685
47686         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
47687         reported by Bruno Haible.
47688
47689 2007-03-29  Bruno Haible  <bruno@clisp.org>
47690
47691         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
47692         a bug in AIX iconv().
47693
47694 2007-03-29  Bruno Haible  <bruno@clisp.org>
47695
47696         * modules/ldexpl-tests: New file.
47697         * tests/test-ldexpl.c: New file.
47698
47699 2007-03-29  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/ldexpl.c: Include fpucw.h.
47702         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
47703         multiplication.
47704         * modules/ldexpl (Depends-on): Add fpucw.
47705
47706 2007-03-29  Bruno Haible  <bruno@clisp.org>
47707
47708         * modules/ldexpl: New file.
47709         * m4/ldexpl.m4: New file.
47710         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
47711         set.
47712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
47713         REPLACE_LDEXPL.
47714         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
47715         REPLACE_LDEXPL.
47716         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
47717         gl_FUNC_LDEXPL_WORKS.
47718         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
47719         * modules/mathl (Files): Remove lib/ldexpl.c.
47720         (Depends-on): Add ldexpl.
47721
47722 2007-03-29  Bruno Haible  <bruno@clisp.org>
47723
47724         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
47725
47726 2007-03-29  Bruno Haible  <bruno@clisp.org>
47727
47728         * tests/test-striconveh.c (main): Don't assume that a direct conversion
47729         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
47730         and possibly also HP-UX.
47731         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
47732         work on AIX, IRIX, HP-UX, OSF/1.
47733         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47734         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47735         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47736         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47737         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
47738         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47739
47740 2007-03-29  Bruno Haible  <bruno@clisp.org>
47741
47742         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
47743
47744 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
47747         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
47748
47749 2007-03-29  Eric Blake  <ebb9@byu.net>
47750
47751         * lib/acl-internal.h: Remove redundant include.
47752         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
47753         Cygwin when a file is locked.
47754
47755 2007-03-29  Bruno Haible  <bruno@clisp.org>
47756
47757         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
47758         file.
47759         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
47760
47761 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
47762
47763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
47764         try to remove a parent directory if the child couldn't be removed
47765         (except for the first rmdir, which could fail because the child
47766         doesn't exist).  Problem reported by Jeff Blaine in
47767         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
47768
47769 2007-03-28  Bruno Haible  <bruno@clisp.org>
47770
47771         * lib/striconveh.c (utf8conv_carefully): New function.
47772         (mem_cd_iconveh_internal): Invoke it.
47773
47774 2007-03-28  Bruno Haible  <bruno@clisp.org>
47775
47776         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
47777         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
47778         input.
47779         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
47780         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
47781         unistr/u8-uctomb.
47782
47783 2007-03-28  Bruno Haible  <bruno@clisp.org>
47784
47785         * modules/unistr/u8-mbtoucr: New file.
47786         * lib/unistr/u8-mbtoucr.c: New file.
47787         * modules/unistr/u16-mbtoucr: New file.
47788         * lib/unistr/u16-mbtoucr.c: New file.
47789         * modules/unistr/u16-mbtoucr: New file.
47790         * lib/unistr/u16-mbtoucr.c: New file.
47791         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
47792
47793 2007-03-27  Simon Josefsson  <simon@josefsson.org>
47794             Bruno Haible  <bruno@clisp.org>
47795
47796         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
47797         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
47798         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
47799
47800         * m4/stdio_h.m4: Add stubs for vasprintf too.
47801
47802         * modules/stdio: Support vasprintf in sed command.
47803
47804         * modules/vasprintf: Depend on stdio for prototypes.  Remove
47805         vasprintf.h.  Add stdio module indicator.
47806
47807         * lib/stdio_.h: Declare asprintf and vasprintf, based on
47808         vasprintf.h.
47809
47810         * lib/vasprintf.h: File removed.
47811
47812         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
47813         * lib/vasprintf.c: Ditto.
47814         * lib/xvasprintf.c: Ditto.
47815         * tests/test-vasprintf-posix.c: Ditto.
47816         * tests/test-vasprintf.c: Ditto.
47817
47818 2007-03-27  Bruno Haible  <bruno@clisp.org>
47819
47820         Make vasnprintf multithread-safe.
47821         * lib/vasnprintf.c (decimal_point_char): New function.
47822         (VASNPRINTF): Use it.
47823         Suggested by Simon Josefsson.
47824
47825 2007-03-27  Eric Blake  <ebb9@byu.net>
47826
47827         Support sub-second birthtime on cygwin.
47828         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
47829         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
47830         (get_stat_birthtime): Also work with st_birthtim.
47831
47832 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
47833
47834         * lib/stat-time.h (USE_BIRTHTIME): Remove.
47835         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
47836         (get_stat_birthtime_ns): Do not try to use "spare" fields.
47837         (get_stat_birthtime_ns): Simplify compile-time tests.
47838         (get_stat_birthtime): Change the API to look like
47839         get_stat_mtime etc., except return a negative tv_nsec on error.
47840         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
47841         Don't check for "spare" fields.
47842         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
47843         or for struct stat.st_birthtime, as these tests aren't used.
47844         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
47845
47846 2007-03-27  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/stat-time.h: Include <sys/stat.h>.
47849
47850 2007-03-27  James Youngman  <jay@gnu.org>
47851
47852         * lib/stat-time.h (get_stat_birthtime): New function for
47853           retrieving st_birthtime as provided by UFS2 (hence *BSD).
47854         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
47855           and its variants.
47856         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
47857         * modules/stat-time-test: New file.
47858         * tests/test-stat-time.c: New test, devised by Bruno Haible.
47859
47860 2007-03-26  Bruno Haible  <bruno@clisp.org>
47861
47862         Better support of signalling NaNs.
47863         * lib/atanl.c: Include isnanl.h.
47864         (atanl): Perform test for NaN at the beginning of the function and
47865         through a call to isnanl.
47866         * lib/cosl.c: Include isnanl.h.
47867         (cosl): Perform test for NaN at the beginning of the function and
47868         through a call to isnanl.
47869         * lib/ldexpl.c: Include isnanl.h.
47870         (ldexpl): Perform test for NaN through a call to isnanl.
47871         * lib/logl.c: Include isnanl.h.
47872         (logl): Perform test for NaN at the beginning of the function and
47873         through a call to isnanl.
47874         * lib/sinl.c: Include isnanl.h.
47875         (sinl): Perform test for NaN at the beginning of the function and
47876         through a call to isnanl.
47877         * lib/sqrtl.c: Include isnanl.h.
47878         (sqrtl): Perform test for NaN at the beginning of the function and
47879         through a call to isnanl.
47880         * lib/tanl.c: Include isnanl.h.
47881         (tanl): Perform test for NaN at the beginning of the function and
47882         through a call to isnanl.
47883         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
47884         * modules/mathl (Depends-on): Add isnanl.
47885
47886 2007-03-26  Eric Blake  <ebb9@byu.net>
47887
47888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
47889         regression in logic sense of previous patch.
47890
47891 2007-03-26  Bruno Haible  <bruno@clisp.org>
47892
47893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
47894         unportable shell command "if ! ...".
47895         Reported by Ralf Wildenhues.
47896
47897 2007-03-25  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
47900         <sysexits.h> file, and only add EX_CONFIG.
47901         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
47902         absolute file name and whether it is sufficient. Substitute also
47903         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
47904         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
47905         ABSOLUTE_SYSEXITS_H into sysexits.h.
47906
47907 2007-03-25  Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
47910         hints is NULL.
47911
47912 2007-03-25  Bruno Haible  <bruno@clisp.org>
47913
47914         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
47915         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
47916
47917 2007-03-25  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/vasnprintf.c: Include langinfo.h.
47920         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
47921         multithread-safe.
47922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
47923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
47924         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47925         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47926         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47928         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47929         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
47930         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47931         Reported by Simon Josefsson.
47932
47933 2007-03-25  Bruno Haible  <bruno@clisp.org>
47934
47935         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
47936         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
47937         * modules/vasnprintf (Depends-on): Add stdint.
47938
47939 2007-03-25  Bruno Haible  <bruno@clisp.org>
47940
47941         * modules/fpieee: New file.
47942         * m4/fpieee.m4: New file.
47943         * modules/isnan-nolibm (Depends-on): Add fpieee.
47944         * modules/isnanl-nolibm (Depends-on): Add fpieee.
47945         * modules/isnanl (Depends-on): Add fpieee.
47946
47947 2007-03-25  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
47950
47951 2007-03-25  Bruno Haible  <bruno@clisp.org>
47952
47953         Avoid test failures on IRIX 6.5.
47954         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
47955         (main): Use it.
47956         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
47957         macros.
47958         (main): Use them.
47959
47960 2007-03-25  Bruno Haible  <bruno@clisp.org>
47961
47962         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
47963         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
47964         exists but doesn't work.
47965         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
47966         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
47967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
47968         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
47969
47970 2007-03-25  Bruno Haible  <bruno@clisp.org>
47971
47972         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
47973         returns inf. Needed on IRIX 6.5.
47974
47975 2007-03-25  Bruno Haible  <bruno@clisp.org>
47976
47977         * tests/test-frexpl.c: Include isnanl-nolibm.h.
47978         (main): Use isnanl instead of x != x idiom.
47979         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
47980
47981         * tests/test-frexp.c: Include isnan.h.
47982         (main): Use isnan instead of x != x idiom.
47983         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
47984
47985 2007-03-25  Bruno Haible  <bruno@clisp.org>
47986
47987         * tests/test-frexp.c (NaN): New function/macro.
47988         (main): Use it instead of 0.0 / 0.0.
47989         * tests/test-isnan.c (NaN): New function/macro.
47990         (main): Use it instead of 0.0 / 0.0.
47991         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
47992         (test_function): Use it instead of 0.0 / 0.0.
47993         * tests/test-vasprintf-posix.c (NaN): New function/macro.
47994         (test_function): Use it instead of 0.0 / 0.0.
47995         * tests/test-snprintf-posix.h (NaN): New function/macro.
47996         (test_function): Use it instead of 0.0 / 0.0.
47997         * tests/test-sprintf-posix.h (NaN): New function/macro.
47998         (test_function): Use it instead of 0.0 / 0.0.
47999         * tests/test-fprintf-posix.h (NaN): New function/macro.
48000         (test_function): Use it instead of 0.0 / 0.0.
48001         * tests/test-printf-posix.h (NaN): New function/macro.
48002         (test_function): Use it instead of 0.0 / 0.0.
48003
48004         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
48005
48006 2007-03-25  Bruno Haible  <bruno@clisp.org>
48007
48008         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
48009
48010 2007-03-25  Bruno Haible  <bruno@clisp.org>
48011
48012         * lib/regexec.c (merge_state_with_log): Make static.
48013
48014 2007-03-25  Bruno Haible  <bruno@clisp.org>
48015
48016         * lib/trigl.c (kernel_rem_pio2): Make static.
48017
48018 2007-03-25  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/sincosl.c (sincosl_table): Make static.
48021
48022 2007-03-25  Bruno Haible  <bruno@clisp.org>
48023
48024         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
48025         if the compiler does not support C99.
48026
48027 2007-03-25  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/time (Makefile.am): Ensure all rule action lines start with a
48030         tab.
48031
48032 2007-03-24  Bruno Haible  <bruno@clisp.org>
48033
48034         * modules/tsearch-tests: New file.
48035         * tests/test-tsearch.sh: New file.
48036         * tests/test-tsearch.c: New file, mostly copied from glibc.
48037
48038         * modules/search-tests: New file.
48039         * tests/test-search.c: New file.
48040
48041         * modules/search: New file.
48042         * lib/search_.h: New file, incorporating lib/tsearch.h.
48043         * m4/search_h.m4: New file.
48044         * lib/tsearch.h: Remove file.
48045         * lib/tsearch.c: Include search.h instead of tsearch.h.
48046         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
48047         HAVE_TSEARCH.
48048         * modules/tsearch (Files): Remove lib/tsearch.h.
48049         (Depends-on): Add search.
48050         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
48051         (Include): Change tsearch.h into search.h.
48052
48053 2007-03-24  Bruno Haible  <bruno@clisp.org>
48054
48055         * modules/fpucw: New file.
48056         * lib/fpucw.h: New file.
48057         * lib/frexp.c: Include fpucw.h.
48058         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48059         (FUNC): Use them.
48060         * lib/printf-frexp.c: Include fpucw.h.
48061         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
48062         (FUNC): Use them.
48063         * lib/vasnprintf.c: Include fpucw.h.
48064         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
48065         'long double' calculations.
48066         * tests/test-frexpl.c: Include fpucw.h.
48067         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48068         * tests/test-printf-frexpl.c: Include fpucw.h.
48069         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
48070         * modules/frexpl (Depends-on): Add fpucw.
48071         * modules/printf-frexpl (Depends-on): Likewise.
48072         * modules/fprintf-posix (Depends-on): Likewise.
48073         * modules/snprintf-posix (Depends-on): Likewise.
48074         * modules/sprintf-posix (Depends-on): Likewise.
48075         * modules/vasnprintf-posix (Depends-on): Likewise.
48076         * modules/vasprintf-posix (Depends-on): Likewise.
48077         * modules/vfprintf-posix (Depends-on): Likewise.
48078         * modules/vsnprintf-posix (Depends-on): Likewise.
48079         * modules/vsprintf-posix (Depends-on): Likewise.
48080         * modules/frexpl-tests (Depends-on): Likewise.
48081         * modules/printf-frexpl-tests (Depends-on): Likewise.
48082
48083 2007-03-24  Bruno Haible  <bruno@clisp.org>
48084
48085         * lib/float+.h: New file.
48086         * lib/isnan.c: Include float+.h.
48087         (SIZE): New macro.
48088         (FUNC): Compare only SIZE bytes of the value.
48089         * lib/vasnprintf.c: Include float+.h.
48090         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
48091         SIZEOF_LDBL or SIZEOF_DBL bytes.
48092         * modules/isnan-nolibm (Files): Add lib/float+.h.
48093         * modules/isnanl-nolibm (Files): Add lib/float+.h.
48094         * modules/isnanl (Files): Add lib/float+.h.
48095         * modules/vasnprintf (Files): Add lib/float+.h.
48096
48097 2007-03-24  Bruno Haible  <bruno@clisp.org>
48098
48099         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
48100         include isnanl-nolibm.h.
48101
48102 2007-03-24  Bruno Haible  <bruno@clisp.org>
48103
48104         * tests/test-read-file.c (main): Don't produce spurious output for
48105         expected situations. Make the test fail if it encountered unexpected
48106         results.
48107
48108 2007-03-24  Bruno Haible  <bruno@clisp.org>
48109
48110         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
48111         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
48112
48113 2007-03-24  Bruno Haible  <bruno@clisp.org>
48114
48115         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
48116
48117 2007-03-24  Bruno Haible  <bruno@clisp.org>
48118
48119         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
48120         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
48121
48122         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
48123         * modules/utf8-ucs4: Turn into a symbolic link to module
48124         unistr/u8-mbtouc.
48125
48126         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
48127         utf8-ucs4-unsafe.
48128         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
48129         unistr/u8-mbtouc-unsafe.
48130
48131         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
48132         * modules/utf16-ucs4: Turn into a symbolic link to module
48133         unistr/u16-mbtouc.
48134
48135         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
48136         utf16-ucs4-unsafe.
48137         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
48138         unistr/u16-mbtouc-unsafe.
48139
48140         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
48141         * modules/ucs4-utf8: Turn into a symbolic link to module
48142         unistr/u8-ubtomb.
48143
48144         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
48145         * modules/ucs4-utf16: Turn into a symbolic link to module
48146         unistr/u16-ubtomb.
48147
48148 2007-03-24  Bruno Haible  <bruno@clisp.org>
48149
48150         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
48151         Enable the function only if HAVE_INLINE.
48152         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
48153         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48154         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
48155         Enable the function only if HAVE_INLINE.
48156         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
48157         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
48158         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
48159         Enable the function only if HAVE_INLINE.
48160         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
48161         Enable the function only if HAVE_INLINE.
48162         * modules/utf8-ucs4: Update.
48163         * modules/utf8-ucs4-unsafe: Update.
48164         * modules/utf16-ucs4: Update.
48165         * modules/utf16-ucs4-unsafe: Update.
48166         * modules/ucs4-utf8: Update.
48167         * modules/ucs4-utf16: Update.
48168
48169 2007-03-24  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/utf8-ucs4.h: Remove file.
48172         * lib/utf8-ucs4-unsafe.h: Remove file.
48173         * lib/utf16-ucs4.h: Remove file.
48174         * lib/utf16-ucs4-unsafe.h: Remove file.
48175         * lib/ucs4-utf8.h: Remove file.
48176         * lib/ucs4-utf16.h: Remove file.
48177         * lib/unistr.h: Include their previous contents.
48178         * m4/utf-ucs4.m4: Remove file.
48179         * m4/ucs4-utf.m4: Remove file.
48180         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
48181         (Depends-on): Add unistr/base.
48182         (configure.ac): Remove gl_UTF_UCS4.
48183         (Makefile.am): Update.
48184         (Include): Change to unistr.h.
48185         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
48186         (Depends-on): Add unistr/base.
48187         (configure.ac): Remove gl_UTF_UCS4.
48188         (Makefile.am): Update.
48189         (Include): Change to unistr.h.
48190         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
48191         (Depends-on): Add unistr/base.
48192         (configure.ac): Remove gl_UTF_UCS4.
48193         (Makefile.am): Update.
48194         (Include): Change to unistr.h.
48195         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
48196         (Depends-on): Add unistr/base.
48197         (configure.ac): Remove gl_UTF_UCS4.
48198         (Makefile.am): Update.
48199         (Include): Change to unistr.h.
48200         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
48201         (Depends-on): Add unistr/base.
48202         (configure.ac): Remove gl_UCS4_UTF.
48203         (Makefile.am): Update.
48204         (Include): Change to unistr.h.
48205         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
48206         (Depends-on): Add unistr/base.
48207         (configure.ac): Remove gl_UCS4_UTF.
48208         (Makefile.am): Update.
48209         (Include): Change to unistr.h.
48210         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
48211         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
48212         utf8-ucs4-unsafe.h.
48213         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
48214         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
48215         utf16-ucs4-unsafe.h.
48216         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
48217         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
48218         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
48219         * lib/unistr/u8-strchr.c: Likewise.
48220         * lib/unistr/u8-strrchr.c: Likewise.
48221         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
48222         * lib/unistr/u16-strchr.c: Likewise.
48223         * lib/unistr/u16-strrchr.c: Likewise.
48224         * lib/striconveh.c: Update.
48225         * lib/linebreak.c: Update.
48226
48227 2007-03-24  Bruno Haible  <bruno@clisp.org>
48228
48229         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
48230         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
48231
48232 2007-03-22  Bruno Haible  <bruno@clisp.org>
48233
48234         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
48235
48236 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48237
48238         * MODULES.html.sh (File system functions): New module write-any-file.
48239         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
48240         * m4/write-any-file.m4: New files.
48241
48242 2007-03-23  Eric Blake  <ebb9@byu.net>
48243
48244         * gnulib-tool: Rearrange space-tab sequences, since some editors
48245         like to eat them.
48246
48247 2007-03-23  Eric Blake  <ebb9@byu.net>
48248
48249         * lib/version-etc.c (version_etc_va): Update license wording to
48250         be more concise.  Recommended by Richard Stallman.
48251
48252 2007-03-22  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/poll.c (MSG_PEEK): New fallback definition.
48255
48256 2007-03-22  Bruno Haible  <bruno@clisp.org>
48257
48258         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
48259         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
48260         (main): Update.
48261         Fixes a compilation error on BeOS.
48262
48263 2007-03-22  Bruno Haible  <bruno@clisp.org>
48264
48265         * modules/frexpl-tests: New file.
48266         * tests/test-frexpl.c: New file.
48267
48268         * modules/frexpl: New file.
48269         * m4/frexpl.m4: New file.
48270         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
48271         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
48272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
48273         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
48274         (Depends-on): Add frexpl. Remove isnanl-nolibm.
48275         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
48276
48277 2007-03-22  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/frexpl.c: Share code with lib/frexp.c.
48280         * modules/mathl (Files): Add lib/frexp.c.
48281         (Depends-on): Add isnanl-nolibm.
48282
48283 2007-03-22  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/printf-frexp (Files): Add m4/frexp.m4.
48286         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
48287         only if the found frexp function actually works.
48288
48289 2007-03-22  Bruno Haible  <bruno@clisp.org>
48290
48291         * lib/frexp.c: Remove older implementation that uses divisions.
48292
48293 2007-03-21  Bruno Haible  <bruno@clisp.org>
48294
48295         * modules/frexp-tests: New file.
48296         * tests/test-frexp.c: New file.
48297
48298         * modules/frexp: New file.
48299         * lib/frexp.c: New file.
48300         * m4/frexp.m4: New file.
48301         * lib/math_.h (frexp): New declaration.
48302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
48303         REPLACE_FREXP.
48304         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
48305
48306 2007-03-21  Bruno Haible  <bruno@clisp.org>
48307
48308         * modules/isnanl-tests: New file.
48309         * tests/test-isnanl.c: New file.
48310
48311         * modules/isnanl: New file.
48312         * lib/isnanl.h: New file.
48313         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
48314         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
48315         gl_FUNC_ISNANL_WORKS.
48316         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
48317         New macros.
48318
48319 2007-03-21  Bruno Haible  <bruno@clisp.org>
48320
48321         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
48322         lib/isnanl.h.
48323         (Include): Update.
48324         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
48325         * lib/vasnprintf.c: Update.
48326         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
48327         tests/test-isnanl.h, remove tests/test-isnanl.c.
48328         (Makefile.am): Update.
48329         * tests/test-isnanl-nolibm.c: New file.
48330         * tests/test-isnanl.h: New file.
48331         * tests/test-isnanl.c: Remove file.
48332
48333 2007-03-21  Jim Meyering  <jim@meyering.net>
48334
48335         When trying to open ".", treat ESTALE like EACCES.
48336         * lib/savewd.c (savewd_save): Resort to forking not just upon
48337         failure with EACCES, but also when errno is ESTALE.
48338
48339 2007-03-20  Bruno Haible  <bruno@clisp.org>
48340
48341         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
48342         Needed on AIX 5.1. Reported by Matthew Woehlke.
48343
48344 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48345
48346         Suggestions by Bruno Haible:
48347         * lib/acl-internal.h: Include "gettext.h" rather than rolling
48348         our own.
48349         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
48350         * modules/acl (Depends-on): Add gettext.
48351
48352 2007-03-19  Bruno Haible  <bruno@clisp.org>
48353
48354         * modules/iconvme: Remove file.
48355         * lib/iconvme.h: Remove file.
48356         * lib/iconvme.c: Remove file.
48357         * m4/iconvme.m4: Remove file.
48358
48359 2007-03-19  Bruno Haible  <bruno@clisp.org>
48360
48361         * doc/relocatable-maint.texi: Break long shell script line.
48362         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48363
48364 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48365
48366         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
48367         handle file_has_acl.
48368         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
48369         * lib/acl.c: Move header inclusions and related macro defns into
48370         lib/acl-internal.h.
48371         (S_ISLNK): Remove defn, since that's now done for us.
48372         (file_has_acl): Move to lib/file-has-acl.c.
48373         Call acl_trivial if available.  This is the crucial part of the fix.
48374         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
48375         shared within the library.  Rewrite a bit, partly to make it compatible
48376         with the GNU coding style.
48377         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
48378         Remove unnecessary double-quotes.
48379         Don't test for acl_to_text; the build will catch that.
48380         Replace acl_entries if it doesn't exist and it is needed.
48381         Check for -lsec and acl_trivial (as used on Solaris 10).
48382         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
48383         lib/file-has-acl.c.
48384         (Depends-on): Add sys_stat, for S_ISLNK.
48385
48386 2007-03-19  Ben Pfaff  <blp@gnu.org>
48387
48388         * doc/gnulib.texi: Fix typos.
48389         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
48390
48391 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48392
48393         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
48394         If size is zero here, buf must be zero.
48395
48396 2007-03-19  Simon Josefsson  <simon@josefsson.org>
48397
48398         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
48399         <bruno@clisp.org>.
48400
48401 2007-03-18  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
48404         Suggested by Eric Blake.
48405
48406 2007-03-18  Ben Pfaff  <blp@gnu.org>
48407
48408         * doc/relocatable.texi: Recommend using as prefix a directory
48409         that does not exist and will never be created.  Based on
48410         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
48411         and others.
48412
48413 2007-03-17  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/fchownat.c: Include lchown.h.
48416
48417 2007-03-17  Bruno Haible  <bruno@clisp.org>
48418
48419         Fix endless loop when the given allocated size was > INT_MAX.
48420         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
48421         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
48422         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
48423         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
48424         * lib/sprintf.c (sprintf): Likewise.
48425
48426 2007-03-17  Bruno Haible  <bruno@clisp.org>
48427
48428         * tests/test-argp-2.sh (func_compare): Output a context diff.
48429
48430 2007-03-17  Bruno Haible  <bruno@clisp.org>
48431
48432         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
48433         locale's decimal-point character.
48434
48435 2007-03-17  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
48438         before comparing it. Needed because on some platforms (e.g. x86) a
48439         'long double' occupies less bytes than sizeof (long double).
48440
48441 2007-03-17  Bruno Haible  <bruno@clisp.org>
48442
48443         * tests/test-crc.c (main): Make printf statements 64-bit clean.
48444         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
48445         * tests/test-getaddrinfo.c (simple): Likewise.
48446         * tests/test-read-file.c (main): Likewise.
48447
48448 2007-03-17  Bruno Haible  <bruno@clisp.org>
48449
48450         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
48451
48452 2007-03-17  Bruno Haible  <bruno@clisp.org>
48453
48454         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
48455         unused variable.
48456
48457 2007-03-17  Bruno Haible  <bruno@clisp.org>
48458
48459         * tests/test-c-strcasecmp.c: Include c-strcase.h.
48460         * tests/test-c-strncasecmp.c: Likewise.
48461
48462 2007-03-17  Bruno Haible  <bruno@clisp.org>
48463
48464         * modules/stdlib (Depends-on): Add unistd.
48465         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
48466         Needed for MacOS X 10.3.
48467
48468 2007-03-17  Bruno Haible  <bruno@clisp.org>
48469
48470         * lib/unistr/u-strdup.h: Include <stdlib.h>.
48471
48472 2007-03-17  Bruno Haible  <bruno@clisp.org>
48473
48474         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
48475
48476 2007-03-17  Bruno Haible  <bruno@clisp.org>
48477
48478         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
48479         to reflect files copied from gnulib (with or without modifications).
48480         Suggested by Jim Meyering.
48481
48482 2007-03-17  Eric Blake  <ebb9@byu.net>
48483
48484         * NEWS: Document stdlib change from 2007-02-18.
48485
48486 2007-03-17  Jim Meyering  <jim@meyering.net>
48487
48488         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
48489         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
48490         someone uses a name containing shell meta-characters.
48491         Reported by Alfred M. Szmidt.
48492
48493         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
48494
48495 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48496
48497         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
48498         and copy gettext configuration files only if configure.ac contains
48499         a use of AM_GNU_GETTEXT_VERSION.
48500
48501 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
48502
48503         * build-aux/bootstrap (gnulib_name): New variable.
48504         (gnulib_tool_options): Use it.
48505
48506 2007-03-13  Simon Josefsson  <simon@josefsson.org>
48507
48508         * tests/test-des.c: Use new namespace.
48509
48510 2007-03-15  Bruno Haible  <bruno@clisp.org>
48511
48512         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
48513         Reported by James Youngman <jay@gnu.org>.
48514
48515 2007-03-15  Bruno Haible  <bruno@clisp.org>
48516
48517         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
48518         declared prototype. Needed with cc on OSF/1 5.1.
48519
48520 2007-03-15  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
48523         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
48524         (struct gl_list_implementation): Add dispose_fn argument to the
48525         'create_empty', 'create' methods.
48526         (struct gl_list_impl_base): Add field 'dispose_fn'.
48527         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
48528         argument.
48529         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
48530         dispose_fn argument.
48531         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
48532         dispose_fn on the dropped values.
48533         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
48534         dispose_fn argument.
48535         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
48536         dropped values.
48537         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
48538         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48539         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
48540         (gl_tree_remove_node): Call dispose_fn on the dropped value.
48541         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
48542         argument.
48543         (gl_tree_list_free): Call dispose_fn on the dropped values.
48544         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
48545         the dropped values.
48546         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48547         Add dispose_fn argument.
48548         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
48549         Call dispose_fn on the dropped values.
48550         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
48551         Add dispose_fn argument.
48552         (gl_sublist_create): Initialize the 'dispose_fn' field.
48553         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
48554         * tests/test-array_list.c (main): Update.
48555         * tests/test-carray_list.c (main): Update.
48556         * tests/test-avltree_list.c (main): Update.
48557         * tests/test-rbtree_list.c (main): Update.
48558         * tests/test-avltreehash_list.c (main): Update.
48559         * tests/test-rbtreehash_list.c (main): Update.
48560         * tests/test-linked_list.c (main): Update.
48561         * tests/test-linkedhash_list.c (main): Update.
48562         * tests/test-array_oset.c (main): Update.
48563
48564 2007-03-15  Bruno Haible  <bruno@clisp.org>
48565
48566         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
48567         (gl_oset_create_empty): Add dispose_fn argument.
48568         (struct gl_oset_implementation): Add dispose_fn argument to
48569         'create_empty' method.
48570         (struct gl_oset_impl_base): Add dispose_fn field.
48571         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
48572         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
48573         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
48574         values.
48575         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
48576         (gl_tree_oset_free): Call dispose_fn on the dropped values.
48577         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48578         dropped value.
48579         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
48580         dropped value.
48581         * tests/test-array_oset.c (main): Update.
48582         * tests/test-avltree_oset.c (main): Update.
48583         * tests/test-rbtree_oset.c (main): Update.
48584         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
48585
48586 2007-03-13  Bruno Haible  <bruno@clisp.org>
48587
48588         * tests/test-stdbool.c (i): Update after last patch.
48589
48590 2007-03-12  Bruno Haible  <bruno@clisp.org>
48591
48592         * lib/quotearg.c: Include <wctype.h> early, before the definition of
48593         the iswprint macro. Needed on Solaris 2.5.1.
48594
48595 2007-03-12  Bruno Haible  <bruno@clisp.org>
48596
48597         * tests/test-printf-frexp.c (main): Declare x as volatile.
48598
48599 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48600
48601         * doc/gnulib.texi (Build robot for gnulib): New section.
48602
48603 2007-03-12  Jim Meyering  <jim@meyering.net>
48604
48605         * build-aux/bootstrap: New file.
48606         * build-aux/bootstrap.conf: New file, from coreutils.
48607
48608 2007-03-11  Bruno Haible  <bruno@clisp.org>
48609
48610         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
48611
48612 2007-03-12  Simon Josefsson  <simon@josefsson.org>
48613
48614         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
48615         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
48616         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
48617
48618 2007-03-11  Bruno Haible  <bruno@clisp.org>
48619
48620         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
48621         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
48622
48623 2007-03-11  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
48626         formula. Needed for SunPRO C 5.0.
48627
48628 2007-03-11  Bruno Haible  <bruno@clisp.org>
48629
48630         * modules/long-options (Depends-on): Add getopt.
48631
48632 2007-03-11  Bruno Haible  <bruno@clisp.org>
48633
48634         * modules/modechange (Depends-on): Add stdbool.
48635
48636 2007-03-11  Bruno Haible  <bruno@clisp.org>
48637
48638         * modules/i-ring (Depends-on): Add stdbool.
48639
48640 2007-03-11  Bruno Haible  <bruno@clisp.org>
48641
48642         * modules/gc-des (Depends-on): Add stdbool.
48643
48644 2007-03-11  Bruno Haible  <bruno@clisp.org>
48645
48646         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
48647
48648 2007-03-11  Bruno Haible  <bruno@clisp.org>
48649
48650         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
48651
48652 2007-03-11  Bruno Haible  <bruno@clisp.org>
48653
48654         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
48655
48656 2007-03-11  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/vasnprintf.c (sprintf): Undefine.
48659
48660 2007-03-11  Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
48663         initializers in SunPRO C and Compaq C compilers.
48664
48665 2007-03-11  Bruno Haible  <bruno@clisp.org>
48666
48667         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
48668         decrementing code ANSI C compliant.
48669
48670 2007-03-11  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
48673         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
48674
48675 2007-03-11  Bruno Haible  <bruno@clisp.org>
48676
48677         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
48678         <stdbool.h> substitute doesn't pass.
48679
48680 2007-03-11  Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
48683
48684 2007-03-11  Bruno Haible  <bruno@clisp.org>
48685
48686         * gnulib-tool (func_create_megatestdir): Create also an autobuild
48687         script, for submission to autobuild.josefsson.org.
48688
48689 2007-03-10  Bruno Haible  <bruno@clisp.org>
48690
48691         * modules/canonicalize-lgpl-tests: New file.
48692         * tests/test-canonicalize-lgpl.sh: New file.
48693         * tests/test-canonicalize-lgpl.c: New file.
48694
48695         * modules/c-strcase-tests: New file.
48696         * tests/test-c-strcase.sh: New file.
48697         * tests/test-c-strcasecmp.c: New file.
48698         * tests/test-c-strncasecmp.c: New file.
48699
48700         * modules/atexit-tests: New file.
48701         * tests/test-atexit.sh: New file.
48702         * tests/test-atexit.c: New file.
48703
48704 2007-03-10  Bruno Haible  <bruno@clisp.org>
48705
48706         * tests/test-binary-io.sh: Use temporary filenames that are not so
48707         likely to clash with those of other tests (in a parallel make).
48708         * tests/test-binary-io.c: Likewise.
48709
48710 2007-03-10  Bruno Haible  <bruno@clisp.org>
48711
48712         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
48713         fallback; use #error instead.
48714         Suggested by Simon Josefsson.
48715
48716 2007-03-10  Bruno Haible  <bruno@clisp.org>
48717
48718         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
48719         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
48720         first and the last.
48721
48722 2007-03-10  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
48725
48726 2007-03-10  Bruno Haible  <bruno@clisp.org>
48727
48728         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
48729         "make distcheck".
48730         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
48731         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
48732         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
48733
48734 2007-03-10  Bruno Haible  <bruno@clisp.org>
48735
48736         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
48737         variable.
48738         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
48739         variable.
48740
48741 2007-03-09  Eric Blake  <ebb9@byu.net>
48742         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
48743
48744         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
48745         types are not being provided by gnulib.
48746         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
48747         types are supported.
48748
48749 2007-03-10  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/stdio_.h (__attribute__): New macro.
48752         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
48753         vsprintf): Specify __attribute__ __format__ for GCC.
48754         Suggested by Eric Blake.
48755
48756 2007-03-09  Bruno Haible  <bruno@clisp.org>
48757
48758         * modules/printf-posix-tests: New file.
48759         * tests/test-printf-posix.sh: New file.
48760         * tests/test-printf-posix.c: New file.
48761
48762         * modules/printf-posix: New file.
48763         * lib/printf.c: New file.
48764         * m4/printf-posix-rpl.m4: New file.
48765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
48766         REPLACE_PRINTF.
48767         * lib/stdio_.h (printf): New declaration.
48768         (format, __format__, ____printf____, ____scanf____, ____strftime____,
48769         ____strfmon____): New macros.
48770         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
48771         REPLACE_PRINTF.
48772
48773 2007-03-09  Bruno Haible  <bruno@clisp.org>
48774
48775         * tests/test-vasnprintf-posix2.sh: New file.
48776         * tests/test-vasnprintf-posix2.c: New file.
48777         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
48778         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48779         (Makefile.am): Activate test-vasnprintf-posix2.sh.
48780
48781         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
48782         a locale dependent decimal point, rather than always '.'.
48783
48784 2007-03-09  Eric Blake  <ebb9@byu.net>
48785
48786         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
48787         spite of platforms like Tandem/NSK that define it to -1.
48788
48789 2007-03-08  Bruno Haible  <bruno@clisp.org>
48790
48791         * modules/vprintf-posix-tests: New file.
48792         * tests/test-vprintf-posix.sh: New file.
48793         * tests/test-vprintf-posix.c: New file.
48794         * tests/test-printf-posix.h: New file.
48795
48796         * modules/vprintf-posix: New file.
48797         * lib/vprintf.c: New file.
48798         * m4/vprintf-posix.m4: New file.
48799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
48800         REPLACE_VPRINTF.
48801         * lib/stdio_.h (vprintf): New declaration.
48802         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
48803         REPLACE_VPRINTF.
48804
48805 2007-03-08  Bruno Haible  <bruno@clisp.org>
48806
48807         * modules/fprintf-posix-tests: New file.
48808         * tests/test-fprintf-posix.sh: New file.
48809         * tests/test-fprintf-posix.c: New file.
48810
48811         * modules/fprintf-posix: New file.
48812         * lib/fprintf.c: New file.
48813         * m4/fprintf-posix.m4: New file.
48814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
48815         REPLACE_FPRINTF.
48816         * lib/stdio_.h (fprintf): New declaration.
48817         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
48818         REPLACE_FPRINTF.
48819
48820 2007-03-08  Bruno Haible  <bruno@clisp.org>
48821
48822         * modules/vfprintf-posix-tests: New file.
48823         * tests/test-vfprintf-posix.sh: New file.
48824         * tests/test-vfprintf-posix.c: New file.
48825         * tests/test-fprintf-posix.h: New file.
48826         * tests/test-fprintf-posix.out: New file.
48827
48828         * modules/vfprintf-posix: New file.
48829         * lib/vfprintf.c: New file.
48830         * m4/vfprintf-posix.m4: New file.
48831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
48832         REPLACE_VFPRINTF.
48833         * lib/stdio_.h (vfprintf): New declaration.
48834         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
48835         REPLACE_VFPRINTF.
48836
48837 2007-03-08  Bruno Haible  <bruno@clisp.org>
48838
48839         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
48840
48841 2007-03-08  Bruno Haible  <bruno@clisp.org>
48842
48843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
48844         instead of 'expr' invocations.
48845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48850         Suggested by Paul Eggert.
48851
48852 2007-03-08  Bruno Haible  <bruno@clisp.org>
48853
48854         * modules/fseterr-tests: New file.
48855         * tests/test-fseterr.c: New file.
48856
48857         * modules/fseterr: New file.
48858         * lib/fseterr.h: New file.
48859         * lib/fseterr.c: New file.
48860
48861 2007-03-08  Bruno Haible  <bruno@clisp.org>
48862
48863         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
48864         * lib/getopt_.h: Likewise.
48865         * lib/mbswidth.h: Likewise.
48866         * lib/setenv.h: Likewise.
48867         * lib/vasnprintf.h: Likewise.
48868         * lib/vasprintf.h: Likewise.
48869         * lib/verror.h: Likewise.
48870         * lib/xsetenv.h: Likewise.
48871         * lib/xvasprintf.h: Likewise.
48872
48873 2007-03-08  Jim Meyering  <jim@meyering.net>
48874
48875         * users.txt: Add parted.
48876
48877         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
48878
48879 2007-03-07  Bruno Haible  <bruno@clisp.org>
48880
48881         * m4/printf.m4: Make the shell script snippets copy&pastable.
48882
48883 2007-03-02  Bruno Haible  <bruno@clisp.org>
48884
48885         * lib/netinet_in_.h: New file.
48886         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
48887         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
48888         * modules/netinet_in (Files): Add lib/netinet_in_.h.
48889         (Depends-on): Add absolute-header.
48890         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
48891         into netinet/in.h.
48892
48893 2007-03-03  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/sys_select_.h: New file.
48896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
48897         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
48898         * modules/sys_select (Files): Add lib/sys_select_.h.
48899         (Depends-on): Add absolute-header.
48900         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
48901         into sys/select.h.
48902
48903 2007-03-02  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
48906         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
48907         values.
48908         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
48909         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
48910         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
48911         * modules/sys_socket (Depends-on): Add absolute-header.
48912         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
48913         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
48914         (Include): Remove requirement of inclusion of <sys/types.h>.
48915
48916 2007-03-02  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/byteswap_.h (bswap_32): Fix formula.
48919
48920 2007-03-06  Bruno Haible  <bruno@clisp.org>
48921
48922         * modules/sprintf-posix-tests: New file.
48923         * tests/test-sprintf-posix.c: New file.
48924
48925         * modules/sprintf-posix: New file.
48926         * lib/sprintf.c: New file.
48927         * m4/sprintf-posix.m4: New file.
48928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
48929         REPLACE_SPRINTF.
48930         * lib/stdio_.h (sprintf): New declaration.
48931         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
48932         REPLACE_SPRINTF.
48933
48934 2007-03-06  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/vsprintf-posix-tests: New file.
48937         * tests/test-vsprintf-posix.c: New file.
48938         * tests/test-sprintf-posix.h: New file.
48939
48940         * modules/vsprintf-posix: New file.
48941         * lib/vsprintf.c: New file.
48942         * m4/vsprintf-posix.m4: New file.
48943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
48944         REPLACE_VSPRINTF.
48945         * lib/stdio_.h (vsprintf): New declaration.
48946         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
48947         REPLACE_VSPRINTF.
48948
48949 2007-03-06  Bruno Haible  <bruno@clisp.org>
48950
48951         * modules/vsnprintf (Depend-on): Remove minmax.
48952
48953 2007-03-06  Bruno Haible  <bruno@clisp.org>
48954
48955         * modules/snprintf-posix-tests: New file.
48956         * tests/test-snprintf-posix.c: New file.
48957
48958         * modules/snprintf-posix: New file.
48959         * m4/snprintf-posix.m4: New file.
48960         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
48961         gl_FUNC_SNPRINTF.
48962         (gl_FUNC_SNPRINTF): Invoke it.
48963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
48964         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
48965         is set.
48966         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
48967
48968 2007-03-06  Bruno Haible  <bruno@clisp.org>
48969
48970         * modules/vsnprintf-posix-tests: New file.
48971         * tests/test-vsnprintf-posix.c: New file.
48972         * tests/test-snprintf-posix.h: New file.
48973
48974         * modules/vsnprintf-posix: New file.
48975         * m4/vsnprintf-posix.m4: New file.
48976         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
48977         gl_FUNC_VSNPRINTF.
48978         (gl_FUNC_VSNPRINTF): Invoke it.
48979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
48980         * lib/stdio_.h (vsnprintf): Define as a replacement if
48981         REPLACE_VSNPRINTF is set.
48982         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
48983
48984 2007-03-06  Bruno Haible  <bruno@clisp.org>
48985
48986         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
48987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
48988
48989 2007-03-06  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
48992         (asinl): Declare also if HAVE_DECL_ASINL is set.
48993         (atanl): Declare also if HAVE_DECL_ATANL is set.
48994         (ceill): Declare also if HAVE_DECL_CEILL is set.
48995         (cosl): Declare also if HAVE_DECL_COSL is set.
48996         (expl): Declare also if HAVE_DECL_EXPL is set.
48997         (floorl): Declare also if HAVE_DECL_FLOORL is set.
48998         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
48999         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
49000         (logl): Declare also if HAVE_DECL_LOGL is set.
49001         (sinl): Declare also if HAVE_DECL_SINL is set.
49002         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
49003         (tanl): Declare also if HAVE_DECL_TANL is set.
49004         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
49005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
49006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
49007         declaration of frexpl, ldexpl.
49008         * modules/printf-frexpl (Depends-on): Add math.
49009         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
49010
49011 2007-03-05  Bruno Haible  <bruno@clisp.org>
49012
49013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
49014         frexpl and ldexpl are declared.
49015         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
49016
49017 2007-03-05  Bruno Haible  <bruno@clisp.org>
49018
49019         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
49020         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
49021
49022 2007-03-05  Bruno Haible  <bruno@clisp.org>
49023
49024         * lib/stdio_.h: Include <stddef.h>.
49025
49026 2007-03-05  Bruno Haible  <bruno@clisp.org>
49027
49028         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
49029
49030 2007-03-05  Bruno Haible  <bruno@clisp.org>
49031
49032         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
49033         NetBSD 4, from Ralf Wildenhues.
49034
49035 2007-03-04  Bruno Haible  <bruno@clisp.org>
49036
49037         * lib/vasprintf.h: Update #if logic for the case when the functions
49038         exist but are overridden.
49039
49040 2007-03-04  Bruno Haible  <bruno@clisp.org>
49041
49042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
49043         implementations: glibc-2.4 and MacOS X 10.3.
49044         * tests/test-vasnprintf-posix.c (test_function): Test also the case
49045         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
49046         * tests/test-vasprintf-posix.c (test_function): Likewise.
49047
49048 2007-03-04  Bruno Haible  <bruno@clisp.org>
49049
49050         * modules/vasprintf-posix-tests: New file.
49051         * tests/test-vasprintf-posix.c: New file.
49052
49053         * modules/vasprintf-posix: New file.
49054         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
49055         defined.
49056         * m4/vasprintf-posix.m4: New file.
49057         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
49058         gl_FUNC_VASPRINTF.
49059         (gl_FUNC_VASPRINTF): Invoke it.
49060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
49061         here.
49062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
49063
49064 2007-03-04  Bruno Haible  <bruno@clisp.org>
49065
49066         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
49067         REPLACE_GETTIMEOFDAY.
49068         * modules/sys_time (Makefile.am): Likewise.
49069         * m4/sys_time_h.m4: Likewise.
49070         * m4/gettimeofday.m4: Likewise.
49071
49072 2007-03-04  Bruno Haible  <bruno@clisp.org>
49073
49074         * modules/vasnprintf-posix-tests: New file.
49075         * tests/test-vasnprintf-posix.c: New file.
49076
49077         * modules/vasnprintf-posix: New file.
49078         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
49079         printf-frexpl.h.
49080         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
49081         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
49082         REPLACE_VASNPRINTF is defined.
49083         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
49084         gl_FUNC_VASNPRINTF.
49085         (gl_FUNC_VASNPRINTF): Invoke it.
49086         * m4/vasnprintf-posix.m4: New file.
49087         * m4/printf.m4: New file.
49088
49089 2007-03-04  Bruno Haible  <bruno@clisp.org>
49090
49091         Compile progreloc.c only if --enable-relocatable is specified.
49092         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
49093         if --enable-relocatable was specified.
49094         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
49095         lib_SOURCES.
49096
49097 2007-03-04  Jim Meyering  <jim@meyering.net>
49098
49099         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
49100         Use it consistently, rather than enumerating errno constants.
49101
49102 2007-03-04  Bruno Haible  <bruno@clisp.org>
49103
49104         * modules/xvasprintf-tests: New file.
49105         * tests/test-xvasprintf.c: New file.
49106
49107         * modules/vasprintf-tests: New file.
49108         * tests/test-vasprintf.c: New file.
49109
49110         * modules/vasnprintf-tests: New file.
49111         * tests/test-vasnprintf.c: New file.
49112
49113         * modules/vsnprintf-tests: New file.
49114         * tests/test-vsnprintf.c: New file.
49115
49116         * modules/snprintf-tests: New file.
49117         * tests/test-snprintf.c: New file.
49118
49119 2007-03-04  Bruno Haible  <bruno@clisp.org>
49120
49121         Compile relocatable.c only if --enable-relocatable is specified.
49122         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
49123         gl_RELOCATABLE_LIBRARY.
49124         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
49125         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
49126         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
49127         gl_RELOCATABLE_LIBRARY.
49128         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
49129         (Makefile.am): Remove lib_SOURCES.
49130         * modules/relocatable-lib-lgpl (configure.ac): Invoke
49131         gl_RELOCATABLE_LIBRARY.
49132         (Makefile.am): Remove lib_SOURCES.
49133         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
49134         always.
49135         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49136         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
49137
49138 2007-03-04  Bruno Haible  <bruno@clisp.org>
49139
49140         * modules/argmatch-tests: New file.
49141         * tests/test-argmatch.c: New file.
49142
49143         * tests/test-allocsa.c (main): Halve the number of loop runs.
49144
49145         * modules/alloca-opt-tests: New file.
49146         * tests/test-alloca-opt.c: New file.
49147
49148 2007-03-04  Jim Meyering  <jim@meyering.net>
49149
49150         Work around difference between Linux ACLs and Solaris 10 ZFS.
49151         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
49152         for EINVAL.
49153
49154 2007-03-03  Bruno Haible  <bruno@clisp.org>
49155
49156         * modules/relocatable-prog (Depends-on): Add back progreloc's
49157         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
49158
49159 2007-03-03  Bruno Haible  <bruno@clisp.org>
49160
49161         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
49162         * modules/relocatable-lib: New file.
49163
49164 2007-03-03  Bruno Haible  <bruno@clisp.org>
49165
49166         * modules/relocatable-prog: Renamed from modules/relocatable.
49167         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
49168
49169 2007-03-03  Bruno Haible  <bruno@clisp.org>
49170
49171         * modules/relocatable-script (Files): Add doc/relocatable.texi,
49172         m4/relocatable-lib.m4.
49173         (Depends-on): Remove 'relocatable'.
49174         (configure.ac): Add gl_RELOCATABLE_NOP.
49175
49176 2007-03-03  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/relocatable-prog-wrapper: New file.
49179         * modules/relocatable (Depends-on): Add it. Remove all other
49180         dependencies except progname.
49181         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
49182
49183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
49184         (gl_FUNC_STRERROR): Nop.
49185         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
49186
49187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
49188         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
49189
49190         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
49191         (gl_FUNC_READLINK): Update.
49192
49193         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
49194
49195 2007-03-03  Bruno Haible  <bruno@clisp.org>
49196
49197         * lib/xreadlink.c: Include <unistd.h> unconditionally.
49198         * modules/xreadlink (Depends-on): Add unistd.
49199         * modules/xreadlink-with-size (Depends-on): Likewise.
49200
49201 2007-03-03  Bruno Haible  <bruno@clisp.org>
49202
49203         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
49204         extracted from gt_FUNC_SETENV.
49205         (gt_FUNC_SETENV): Remove macro.
49206         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
49207         remove gt_FUNC_SETENV.
49208
49209 2007-03-03  Bruno Haible  <bruno@clisp.org>
49210
49211         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
49212         ENABLE_RELOCATABLE here.
49213         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
49214
49215 2007-03-03  Bruno Haible  <bruno@clisp.org>
49216
49217         * modules/rbtreehash-list-tests (Depends-on): Add progname.
49218         * tests/test-rbtreehash_list.c: Include progname.h.
49219         (main): Call set_program_name.
49220
49221         * modules/rbtree-oset-tests (Depends-on): Add progname.
49222         * tests/test-rbtree_oset.c: Include progname.h.
49223         (main): Call set_program_name.
49224
49225         * modules/rbtree-list-tests (Depends-on): Add progname.
49226         * tests/test-rbtree_list.c: Include progname.h.
49227         (main): Call set_program_name.
49228
49229         * modules/linked-list-tests (Depends-on): Add progname.
49230         * tests/test-linked_list.c: Include progname.h.
49231         (main): Call set_program_name.
49232
49233 2007-03-03  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
49236         All uses of __restrict changed to _Restrict_.
49237         * lib/glob_.h (__restrict): Remove macro.
49238
49239 2007-03-02  Bruno Haible  <bruno@clisp.org>
49240
49241         * modules/gettext (configure.ac): Require gettext infrastructure
49242         from version 0.16.1.
49243
49244 2007-03-02  Bruno Haible  <bruno@clisp.org>
49245
49246         * modules/linkedhash-list-tests (Depends-on): Add progname.
49247         * tests/test-linkedhash_list.c: Include progname.h.
49248         (main): Call set_program_name.
49249
49250         * modules/carray-list-tests (Depends-on): Add progname.
49251         * tests/test-carray_list.c: Include progname.h.
49252         (main): Call set_program_name.
49253
49254         * modules/avltreehash-list-tests (Depends-on): Add progname.
49255         * tests/test-avltreehash_list.c: Include progname.h.
49256         (main): Call set_program_name.
49257
49258         * modules/avltree-oset-tests (Depends-on): Add progname.
49259         * tests/test-avltree_oset.c: Include progname.h.
49260         (main): Call set_program_name.
49261
49262         * modules/avltree-list-tests (Depends-on): Add progname.
49263         * tests/test-avltree_list.c: Include progname.h.
49264         (main): Call set_program_name.
49265
49266         * modules/array-oset-tests (Depends-on): Add progname.
49267         * tests/test-array_oset.c: Include progname.h.
49268         (main): Call set_program_name.
49269
49270         * modules/array-list-tests (Depends-on): Add progname.
49271         * tests/test-array_list.c: Include progname.h.
49272         (main): Call set_program_name.
49273
49274         * modules/argp-tests (Depends-on): Add progname.
49275         * tests/test-argp.c: Include argp.h first. Include progname.h.
49276         (main): Call set_program_name.
49277
49278 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
49279
49280         * doc/gnulib-tool.texi (Initial import): Reword description of
49281         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
49282         limited effect even if defined after the first system include.
49283
49284 2007-03-01  Bruno Haible  <bruno@clisp.org>
49285
49286         * build-aux/config.libpath: Update to libtool-1.5.22.
49287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49288
49289 2007-03-01  Bruno Haible  <bruno@clisp.org>
49290
49291         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
49292         foo_CFLAGS.
49293         Reported by Ralf Wildenhues.
49294
49295 2007-03-01  Bruno Haible  <bruno@clisp.org>
49296
49297         * build-aux/install-reloc: Remove object files left over by some
49298         compilers.
49299         Reported by Ralf Wildenhues.
49300
49301 2007-03-01  Bruno Haible  <bruno@clisp.org>
49302
49303         * build-aux/install-reloc: Break long lines.
49304
49305 2007-03-01  Bruno Haible  <bruno@clisp.org>
49306
49307         * doc/relocatable.texi: Document that it may not work on OpenBSD.
49308         Reported by Ralf Wildenhues.
49309
49310 2007-03-01  Bruno Haible  <bruno@clisp.org>
49311
49312         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
49313         include ordering constraints.
49314
49315 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49316
49317         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
49318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
49319         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
49320         as another example.
49321         * lib/time_.h: Fix misspelling.
49322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49323         Require gl_HEADER_TIME_H_DEFAULTS.
49324         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
49325         * m4/time_r.m4 (gl_TIME_R): Likewise.
49326         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
49327
49328 2007-03-01  Bruno Haible  <bruno@clisp.org>
49329
49330         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
49331         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49332
49333 2007-03-01  Jim Meyering  <jim@meyering.net>
49334
49335         * modules/xreadlink (Maintainer): Add my name.
49336         * modules/xreadlink-with-size (Depends-on): Alphabetize.
49337
49338 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
49339             Bruno Haible  <bruno@clisp.org>
49340
49341         * build-aux/install-reloc: Compile also c-ctype.c.
49342         * build-aux/relocatable.sh.in: New file.
49343         * doc/relocatable.texi: New file.
49344         * doc/relocatable-maint.texi: New file.
49345         * doc/gnulib.texi: Include relocatable-maint.texi.
49346         * lib/progreloc.c: Include unistd.h unconditionally.
49347         * lib/relocwrapper.c: Include unistd.h unconditionally.
49348         Include c-ctype.h.
49349         (add_dotbin): Use c_tolower.
49350         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
49351         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
49352         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
49353         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
49354         to m4/relocatable-lib.m4.
49355         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
49356         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
49357         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
49358         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
49359         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
49360         * modules/relocatable: New file.
49361         * modules/relocatable-lib: New file.
49362         * modules/relocatable-script: New file.
49363
49364 2007-02-28  Bruno Haible  <bruno@clisp.org>
49365
49366         Import --enable-relocatable infrastructure.
49367         * build-aux/config.libpath: New file, from GNU gettext.
49368         * build-aux/install-reloc: New file, from GNU gettext.
49369         * build-aux/reloc-ldflags: New file, from GNU gettext.
49370         * lib/relocatable.h: New file, from GNU gettext.
49371         * lib/relocatable.c: New file, from GNU gettext.
49372         * lib/relocwrapper.c: New file, from GNU gettext.
49373         * m4/relocatable.m4: New file, from GNU gettext.
49374
49375 2007-02-28  Bruno Haible  <bruno@clisp.org>
49376
49377         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
49378
49379         * modules/xreadlink: New file, from GNU gettext with modifications.
49380         * lib/xreadlink.c: New file, from GNU gettext.
49381         * lib/xreadlink.h: Add comments.
49382         (xreadlink): New declaration.
49383
49384         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
49385         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
49386         lib/xreadlink-with-size.c.
49387         (configure.ac): Remove gl_XREADLINK invocation.
49388         (Makefile.am): Augment lib_SOURCES.
49389         * m4/xreadlink.m4: Remove file.
49390         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
49391         (xreadlink_with_size): Renamed from xreadink.
49392         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
49393         * modules/canonicalize (Depends-on): Replace xreadlink with
49394         xreadlink-with-size.
49395         * lib/canonicalize.c (canonicalize_filename_mode): Update.
49396
49397 2007-02-25  Jim Meyering  <jim@meyering.net>
49398
49399         * build-aux/announce-gen: When complaining about excess arguments,
49400         list them.
49401
49402 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49403
49404         * README: Document signed integer overflow situation more
49405         accurately.
49406
49407 2007-02-25  Bruno Haible  <bruno@clisp.org>
49408
49409         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
49410         'a' or 'A' conversion.
49411
49412 2007-02-25  Bruno Haible  <bruno@clisp.org>
49413
49414         * modules/filename: Renamed from modules/pathname.
49415         (Files): Replace lib/pathname.h with lib/filename.h. Replace
49416         lib/concatpath.c with lib/concat-filename.c.
49417         (Makefile.am): Update.
49418         (Include): Replace pathname.h with filename.h.
49419         * lib/filename.h: Renamed from lib/pathname.h.
49420         (concatenated_filename): Renamed from concatenated_pathname.
49421         * lib/concat-filename.c: Renamed from lib/concatpath.c.
49422         (concatenated_filename): Renamed from concatenated_pathname.
49423         * lib/findprog.c: Include filename.h instead of pathname.h.
49424         (find_in_path): Update.
49425         * lib/javacomp.c: Include filename.h instead of pathname.h.
49426         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49427         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49428         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49429         is_oldgcj_14_13_usable, is_javac_usable): Update.
49430         * lib/javaexec.c: Include filename.h instead of pathname.h.
49431         (execute_java_class): Update.
49432         * modules/findprog: Update.
49433         * modules/javacomp: Update.
49434         * modules/javaexec: Update.
49435         * MODULES.html.sh (File system functions): Add 'filename', remove
49436         'pathname'.
49437
49438 2007-02-25  Bruno Haible  <bruno@clisp.org>
49439
49440         * modules/printf-frexpl-tests: New file.
49441         * tests/test-printf-frexpl.c: New file.
49442
49443         * modules/printf-frexpl: New file.
49444         * lib/printf-frexpl.h: New file.
49445         * lib/printf-frexpl.c: New file.
49446         * m4/printf-frexpl.m4: New file.
49447
49448 2007-02-25  Bruno Haible  <bruno@clisp.org>
49449
49450         * modules/printf-frexp-tests: New file.
49451         * tests/test-printf-frexp.c: New file.
49452
49453         * modules/printf-frexp: New file.
49454         * lib/printf-frexp.h: New file.
49455         * lib/printf-frexp.c: New file.
49456         * m4/printf-frexp.m4: New file.
49457
49458 2007-02-25  Bruno Haible  <bruno@clisp.org>
49459
49460         Assume automake >= 1.10 for the tests.
49461         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
49462         * modules/arctwo-tests: Likewise.
49463         * modules/argp-tests: Likewise.
49464         * modules/avltree-list-tests: Likewise.
49465         * modules/avltree-oset-tests: Likewise.
49466         * modules/avltreehash-list-tests: Likewise.
49467         * modules/carray-list-tests: Likewise.
49468         * modules/crc-tests: Likewise.
49469         * modules/des-tests: Likewise.
49470         * modules/gc-arcfour-tests: Likewise.
49471         * modules/gc-arctwo-tests: Likewise.
49472         * modules/gc-des-tests: Likewise.
49473         * modules/gc-hmac-md5-tests: Likewise.
49474         * modules/gc-hmac-sha1-tests: Likewise.
49475         * modules/gc-md2-tests: Likewise.
49476         * modules/gc-md4-tests: Likewise.
49477         * modules/gc-md5-tests: Likewise.
49478         * modules/gc-pbkdf2-sha1-tests: Likewise.
49479         * modules/gc-rijndael-tests: Likewise.
49480         * modules/gc-sha1-tests: Likewise.
49481         * modules/gc-tests: Likewise.
49482         * modules/getaddrinfo-tests: Likewise.
49483         * modules/hmac-md5-tests: Likewise.
49484         * modules/hmac-sha1-tests: Likewise.
49485         * modules/linked-list-tests: Likewise.
49486         * modules/linkedhash-list-tests: Likewise.
49487         * modules/lock-tests: Likewise.
49488         * modules/md2-tests: Likewise.
49489         * modules/md4-tests: Likewise.
49490         * modules/md5-tests: Likewise.
49491         * modules/rbtree-list-tests: Likewise.
49492         * modules/rbtree-oset-tests: Likewise.
49493         * modules/rbtreehash-list-tests: Likewise.
49494         * modules/read-file-tests: Likewise.
49495         * modules/rijndael-tests: Likewise.
49496         * modules/stdint-tests: Likewise.
49497         * modules/tls-tests: Likewise.
49498
49499 2007-02-24  Bruno Haible  <bruno@clisp.org>
49500
49501         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
49502         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
49503         function; instead check whether isnan with a double argument links.
49504         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
49505         function; instead check whether isnan with a 'long double' argument
49506         links.
49507         Reported by Eric Blake <ebb9@byu.net>.
49508
49509 2007-02-24  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
49512         defined.
49513         * lib/isnanl.c: Remove all code. Just include isnan.c.
49514         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
49515
49516 2007-02-25  Jim Meyering  <jim@meyering.net>
49517
49518         Avoid conflicting types for 'unsetenv' on FreeBSD.
49519         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
49520         conflicting with FreeBSD's (5.0 and 6.1) function declaration
49521         in stdlib.h.
49522
49523 2007-02-24  Bruno Haible  <bruno@clisp.org>
49524
49525         * modules/isnanl-nolibm-tests: New file.
49526         * tests/test-isnanl.c: New file.
49527
49528         * modules/isnanl-nolibm: New file.
49529         * lib/isnanl.h: New file.
49530         * lib/isnanl.c: New file.
49531         * m4/isnanl.m4: New file.
49532
49533 2007-02-24  Bruno Haible  <bruno@clisp.org>
49534
49535         * modules/isnan-nolibm-tests: New file.
49536         * tests/test-isnan.c: New file.
49537
49538         * modules/isnan-nolibm: New file.
49539         * lib/isnan.h: New file.
49540         * lib/isnan.c: New file.
49541         * m4/isnan.m4: New file.
49542
49543 2007-02-24  Bruno Haible  <bruno@clisp.org>
49544
49545         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
49546         assume that an exponent fits in 20 bits.
49547
49548 2007-02-24  Jim Meyering  <jim@meyering.net>
49549
49550         * m4/regex.m4: Update the description of the configure-time option,
49551         --without-included-regex, to state accurately what the defaults are,
49552         and perhaps to give people an idea why using this option is risky.
49553
49554 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
49557         loops on small arguments.  This attempts to avoid the problem
49558         Bruno Haible reported for AIX 4.3.2 in
49559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
49560
49561 2007-02-23  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
49564         Needed for help2man.
49565
49566 2007-02-23  Karl Berry  <karl@gnu.org>
49567
49568         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
49569         exists, foo.h should be cvs-ignored, not committed.
49570
49571 2007-02-23  Eric Blake  <ebb9@byu.net>
49572
49573         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
49574         * lib/stat-time.h (includes): Likewise.
49575         * lib/utimecmp.c (includes): Likewise.
49576         * lib/utimens.h (includes): Likewise.
49577         * lib/getdate.y (includes): Also include "timespec.h" for use
49578         internal to the module.
49579         * modules/utimens (Depends-on): Revert yesterday's patch.
49580         * modules/nanosleep (Depends-on): Add missing dependency.
49581
49582 2007-02-22  Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/glob.c: Don't include getlogin_r.h.
49585
49586 2007-02-22  Jim Meyering  <jim@meyering.net>
49587
49588         * modules/utimens (Depends-on): Add timespec, required for
49589         utimens.h's inclusion of timespec.h.
49590
49591 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
49592
49593         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
49594         long unreadable paths in GNU/Linux.  Problem reported by Andreas
49595         Schwab in
49596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
49597         I'll try to think of a better way to fix the Solaris problem.
49598
49599         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
49600         like glibc; on Solaris 10, it fails with errno == EINVAL.
49601         POSIX says the behavior is unspecified if the first argument is NULL,
49602         so play it safe and never pass NULL to the system getcwd.
49603
49604 2007-02-21  Jim Meyering  <jim@meyering.net>
49605
49606         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
49607         of gettimeofday.  It would conflict with the one now always
49608         provided via sys_time_.h.  Reported by Matthew Woehlke, as
49609         an IRIX 6.5 build failure.
49610
49611 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         Minor fixups to port to Solaris 10 with Sun C 5.8.
49614         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
49615         * modules/getcwd (Depends-on): Add dirfd.
49616         * lib/putenv.c (putenv): #undef it.
49617         (rpl_putenv): New decl.
49618         (malloc, free): Include <stdlib.h> rather than prototyping separately.
49619
49620 2007-02-20  Bruno Haible  <bruno@clisp.org>
49621
49622         * modules/stdio-tests: New file.
49623         * tests/test-stdio.c: New file.
49624
49625         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
49626         (Depends-on): Add stdio.
49627         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49628         (Include): Use <stdio.h> instead of vsnprintf.h.
49629         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49630         HAVE_DECL_VSNPRINTF.
49631         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
49632
49633         * modules/snprintf (Files): Remove lib/snprintf.h.
49634         (Depends-on): Add stdio.
49635         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49636         (Include): Use <stdio.h> instead of snprintf.h.
49637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
49638         HAVE_DECL_SNPRINTF.
49639         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
49640         * lib/getaddrinfo.c: Likewise.
49641
49642         * modules/stdio: New file.
49643         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
49644         * lib/snprintf.h: Remove file.
49645         * lib/vsnprintf.h: Remove file.
49646         * lib/.cppi-disable: Remove snprintf.h.
49647         * m4/stdio_h.m4: New file.
49648         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
49649
49650 2007-02-20  Jim Meyering  <jim@meyering.net>
49651
49652         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
49653         used by e.g., mingw.  From Bruno Haible.
49654
49655 2007-02-19  Bruno Haible  <bruno@clisp.org>
49656
49657         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
49658         warnings.
49659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49660
49661 2007-02-19  Bruno Haible  <bruno@clisp.org>
49662
49663         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
49664         from mingw users.
49665
49666 2007-02-19  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
49669         warnings.
49670         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
49671
49672 2007-02-19  Jim Meyering  <jim@meyering.net>
49673
49674         Don't use FD after a successful "fdopendir (fd)".
49675         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
49676         Reset it by calling dirfd on the just-obtained DIR*.
49677
49678         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
49679         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
49680
49681 2007-02-18  Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/readlink.c: Include <unistd.h>.
49684         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
49685         HAVE_READLINK.
49686         * modules/readlink (Depends-on): Add unistd.
49687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49688         (Include): Add <unistd.h>.
49689
49690         * lib/getlogin_r.h: Remove file.
49691         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
49692         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
49693         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
49694         HAVE_DECL_GETLOGIN_R.
49695         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
49696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49697         (Include): Use <unistd.h> instead of getlogin_r.h.
49698
49699         * lib/getcwd.h: Remove file.
49700         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
49701         * lib/xgetcwd.c: Likewise.
49702         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
49703         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
49704         * modules/getcwd (Files): Remove lib/getcwd.h.
49705         (Depends-on): Add unistd.
49706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49707         (Include): Use <unistd.h> instad of getcwd.h.
49708
49709         * lib/ftruncate.c: Include <unistd.h> first.
49710         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
49711         Set HAVE_FTRUNCATE.
49712         * modules/ftruncate (Depends-on): Add unistd.
49713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49714
49715         * lib/fchdir.c: Include <unistd.h> first.
49716         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
49717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
49718         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
49719         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49720         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
49721
49722         * lib/dup2.c: Include <unistd.h> first.
49723         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
49724         HAVE_DUP2.
49725         * modules/dup2 (Depends-on): Add unistd.
49726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49727
49728         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
49729         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
49730         REPLACE_CHOWN. Don't define chown as a macro here.
49731         * modules/chown (Depends-on): Add unistd.
49732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49733
49734         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
49735         Add definition for GL_LINK_WARNING.
49736         (chown, dup2): New declarations.
49737         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
49738         link warning.
49739         (ftruncate): New declaration.
49740         (getcwd): New declaration, taken from old getcwd.h.
49741         (getlogin_r): New declaration, taken from old getlogin_r.h.
49742         (readlink): New declaration.
49743         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
49744         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
49745         (gl_PREREQ_UNISTD): Remove macro.
49746         (gl_UNISTD_MODULE_INDICATOR): New macro.
49747         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
49748         many new variables. Don't set UNISTD_H.
49749         * modules/unistd (Description): Change.
49750         (Depends-on): Add link-warning.
49751         (configure.ac): Update.
49752         (Makefile.am): Create unistd.h always. Substitute many new variables
49753         into it.
49754
49755 2007-02-18  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
49758         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
49759         HAVE_GETSUBOPT.
49760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
49761         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
49762         * lib/getsubopt.h: Remove file.
49763         * modules/getsubopt (Files): Remove lib/getsubopt.h.
49764         (Depends-on): Add stdlib.
49765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49766         (Includes): Use <stdlib.h> instead of getsubopt.h.
49767         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
49768         Set HAVE_GETSUBOPT.
49769         * lib/getsubopt.c: Don't include getsubopt.h.
49770
49771 2007-02-18  Bruno Haible  <bruno@clisp.org>
49772
49773         * modules/fchdir (Depends-on): Add dup2.
49774
49775 2007-02-18  Bruno Haible  <bruno@clisp.org>
49776
49777         * lib/stdlib_.h: Handle glibc's special invocation convention
49778         specially.
49779
49780 2007-02-18  Bruno Haible  <bruno@clisp.org>
49781
49782         * modules/stdlib-tests: New file.
49783         * tests/test-stdlib.c: New file.
49784
49785         * modules/mkstemp (Files): Remove lib/mkstemp.h.
49786         (Depends-on): Add stdlib.
49787         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49788         (Includes): Use <stdlib.h> instead of mkstemp.h.
49789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49790         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
49791         * lib/mkstemp.c: Don't include mkstemp.h.
49792         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
49793         * lib/stdlib--.h: Don't include mkstemp.h.
49794
49795         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
49796         (Depends-on): Add stdlib.
49797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49798         (Includes): Use <stdlib.h> instead of mkdtemp.h.
49799         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
49800         HAVE_MKDTEMP.
49801         * lib/mkdtemp.c: Don't include mkdtemp.h.
49802         * lib/clean-temp.c: Don't include mkdtemp.h.
49803
49804         * modules/exit (Files): Remove lib/exit.h.
49805         (Depends-on): Add stdlib.
49806         (Makefile.am): Remove lib_SOURCES.
49807         (Include): Use <stdlib.h> instead of exit.h.
49808         * lib/argmatch.c: Don't include exit.h.
49809         * lib/execute.c: Likewise.
49810         * lib/pagealign_alloc.c: Likewise.
49811         * lib/pipe.c: Likewise.
49812         * lib/wait-process.c: Likewise.
49813         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
49814         * lib/exitfail.c: Likewise.
49815         * lib/savewd.c: Likewise.
49816         * lib/xsetenv.c: Likewise.
49817
49818         * modules/stdlib: New file.
49819         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
49820         and extra comments about mkstemp().
49821         * lib/exit.h: Remove file.
49822         * lib/mkdtemp.h: Remove file.
49823         * lib/mkstemp.h: Remove file.
49824         * m4/stdlib_h.m4: New file.
49825         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
49826
49827 2007-02-18  Bruno Haible  <bruno@clisp.org>
49828
49829         * modules/math-tests: New file.
49830         * tests/test-math.c: New file.
49831
49832         * modules/math: New file.
49833         * modules/mathl (Files): Remove lib/mathl.h.
49834         (Depends-on): Add math.
49835         (Makefile.am): Don't mention mathl.h.
49836         (Include): Use <math.h> instead of mathl.h.
49837         * lib/math_.h: New file.
49838         * lib/mathl.h: Remove file.
49839         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
49840         mathl.h.
49841         * lib/asinl.c: Likewise.
49842         * lib/atanl.c: Likewise.
49843         * lib/ceill.c: Likewise.
49844         * lib/cosl.c: Likewise.
49845         * lib/expl.c: Likewise.
49846         * lib/floorl.c: Likewise.
49847         * lib/frexpl.c: Likewise.
49848         * lib/ldexpl.c: Likewise.
49849         * lib/logl.c: Likewise.
49850         * lib/sincosl.c: Likewise.
49851         * lib/sinl.c: Likewise.
49852         * lib/sqrtl.c: Likewise.
49853         * lib/tanl.c: Likewise.
49854         * lib/trigl.c: Likewise.
49855         * m4/math_h.m4: New file.
49856         * MODULES.html.sh (Mathematics): Add math.
49857
49858 2007-02-17  Bruno Haible  <bruno@clisp.org>
49859
49860         * modules/wctype-tests: New file.
49861         * tests/test-wctype.c: New file.
49862
49863         * modules/wchar-tests: New file.
49864         * tests/test-wchar.c: New file.
49865
49866         * modules/unistd-tests: New file.
49867         * tests/test-unistd.c: New file.
49868
49869         * modules/time-tests: New file.
49870         * tests/test-time.c: New file.
49871
49872         * modules/sysexits-tests: New file.
49873         * tests/test-sysexits.c: New file.
49874
49875         * modules/sys_time-tests: New file.
49876         * tests/test-sys_time.c: New file.
49877
49878         * modules/sys_stat-tests: New file.
49879         * tests/test-sys_stat.c: New file.
49880
49881         * modules/sys_socket-tests: New file.
49882         * tests/test-sys_socket.c: New file.
49883
49884         * modules/sys_select-tests: New file.
49885         * tests/test-sys_select.c: New file.
49886
49887         * modules/string-tests: New file.
49888         * tests/test-string.c: New file.
49889
49890         * modules/stdbool-tests: New file.
49891         * tests/test-stdbool.c: New file.
49892
49893         * modules/netinet_in-tests: New file.
49894         * tests/test-netinet_in.c: New file.
49895
49896         * modules/inttypes-tests: New file.
49897         * tests/test-inttypes.c: New file.
49898
49899         * modules/fcntl-tests: New file.
49900         * tests/test-fcntl.c: New file.
49901
49902         * modules/byteswap-tests: New file.
49903         * tests/test-byteswap.c: New file.
49904
49905         * modules/arpa_inet-tests: New file.
49906         * tests/test-arpa_inet.c: New file.
49907
49908 2007-02-17  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
49911         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
49912         if the corresponding module is not enabled. Emit link warnings if
49913         the function is used nevertheless.
49914         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
49915         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
49916         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
49917         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
49918         * modules/inttypes (Depends-on): Add link-warning.
49919         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49920         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
49921         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
49922         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
49923         * modules/imaxdiv (configure.ac): Likewise.
49924         * modules/strtoimax (configure.ac): Likewise.
49925         * modules/strtoumax (configure.ac): Likewise.
49926
49927 2007-02-17  Bruno Haible  <bruno@clisp.org>
49928
49929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
49930         gl_STRING_MODULE_INDICATOR_DEFAULTS.
49931         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
49932         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
49933
49934 2007-02-17  Bruno Haible  <bruno@clisp.org>
49935
49936         * modules/link-warning: New file.
49937         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
49938         * lib/string_.h (GL_LINK_WARNING): Remove definition.
49939         * modules/string (Depends-on): Add link-warning.
49940         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49941         string.h.
49942         * MODULES.html.sh (Support for building libraries and executables): Add
49943         link-warning.
49944
49945 2007-02-17  Bruno Haible  <bruno@clisp.org>
49946
49947         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
49948         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
49949         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
49950         long lines.
49951
49952 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
49953             Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/tmpfile: New file.
49956         * lib/tmpfile.c: New file.
49957         * m4/tmpfile.m4: New file.
49958         * MODULES.html.sh (func_all_modules): New section "Input/output".
49959
49960 2007-02-15  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
49963         (supports_delete_on_close): New function.
49964         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
49965
49966 2007-02-14  Bruno Haible  <bruno@clisp.org>
49967
49968         * modules/mbspcasecmp-tests: New file.
49969         * tests/test-mbspcasecmp.sh: New file.
49970         * tests/test-mbspcasecmp.c: New file.
49971
49972         New module mbspcasecmp.
49973         * modules/mbspcasecmp: New file.
49974         * lib/mbspcasecmp.c: New file.
49975         * lib/string_.h (strncasecmp): Change warning message.
49976         (mbspcasecmp): New declaration.
49977         * m4/mbspcasecmp.m4: New file.
49978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49979         GNULIB_MBSPCASECMP.
49980         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
49981         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
49982
49983 2007-02-14  Bruno Haible  <bruno@clisp.org>
49984
49985         * modules/mbsncasecmp-tests: New file.
49986         * tests/test-mbsncasecmp.sh: New file.
49987         * tests/test-mbsncasecmp.c: New file.
49988
49989         New module mbsncasecmp.
49990         * modules/mbsncasecmp: New file.
49991         * lib/mbsncasecmp.c: New file.
49992         * lib/string_.h (mbsncasecmp): New declaration.
49993         * m4/mbsncasecmp.m4: New file.
49994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49995         GNULIB_MBSNCASECMP.
49996         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
49997         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
49998
49999 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50000
50001         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
50002         Verify that it doesn't overlap with our flags.
50003         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
50004         do not have the desired effect in multibyte locales; instead, use
50005         mbscasecmp.
50006         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
50007         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
50008         we don't require GNU fnmatch ourselves (if our users require it, they
50009         should do so explicitly).
50010
50011         Fix regex code so it doesn't rely on strcasecmp.
50012         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
50013         Otherwise, include gnulib's langinfo.h.
50014         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
50015         undesirable behavior in non-C locales.  Instead, rely on localecharset.
50016         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
50017         * modules/regex (FILES): Remove m4/codeset.m4.
50018         (Depends-on): Add localcharset.  Remove strcase.
50019
50020 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50021
50022         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
50023         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
50024
50025 2007-02-13  Bruno Haible  <bruno@clisp.org>
50026
50027         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
50028         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50029
50030 2007-02-12  Bruno Haible  <bruno@clisp.org>
50031
50032         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50033         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
50034         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
50035         time warning rather than a link error.
50036
50037 2007-02-12  Bruno Haible  <bruno@clisp.org>
50038
50039         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
50040         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50042
50043 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50044
50045         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
50046         args, not 2.
50047
50048 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
50049
50050         New module 'time', so that apps can include <time.h> as per
50051         POSIX and GNU instead of separate include files like time_r.h
50052         and timegm.h.  This implementation tries out a simpler approach
50053         for replacing decls in standard include files (as compared to
50054         the string module), somewhat as an experiment.
50055
50056         * config/srclist.txt: Comment out mktime.c for now.
50057         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
50058         since it doesn't apply any more.  Use generic wording instead.
50059         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
50060         'time'.
50061         * lib/time_.h, m4/time_h.m4, modules/time: New files.
50062         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
50063         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
50064         Don't include <sys/types.h>; no longer needed since we assume C89.
50065         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
50066         * lib/strftime.c: Likewise.
50067         * lib/time_r.c: Likewise.
50068         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
50069         * lib/nanosleep.c: Include <time.h> first, to check interface.
50070         * lib/strptime.c: Likewise.
50071         * lib/time_r.c: Likewise.
50072         * lib/timegm.c: Likewise.
50073         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
50074         needed.
50075         * lib/timegm.c: Don't include timegm.h; no longer needed.
50076         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
50077         time.h now handles any problems in that area.
50078         (struct timespec, nanosleep): Remove; time.h now arranges for these.
50079         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
50080         that time.h defines struct timespec.
50081         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
50082         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
50083         handles that.
50084         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
50085         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
50086         needed.  Set REPLACE_LOCALTIME.
50087         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
50088         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
50089         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
50090         nanosleep; time_h.m4 now does that.  Don't require
50091         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
50092         module handles this now.
50093         * modules/getdate (Depends-on): Remove timespec.  Add time.
50094         * modules/nanosleep (Depends-on): Likewise.
50095         * modules/stat-time (Depends-on): Likewise.
50096         * modules/nanosleep (Include): Include time.h, not timespec.h.
50097         * modules/strptime (Files): Remove lib/strptime.h.
50098         (Depends-on): Add extensions, time.
50099         (Include): Include time.h, not strptime.h.
50100         * modules/time_r (Files): Remove lib/time_r.h.
50101         (Depends-on): Add time.
50102         (Include): Include time.h, not time_r.h.
50103         * modules/timegm: Likewise.
50104         * modules/timespec (Description): Now does timespec-related decls
50105         of our own, instead of struct timespec itself.
50106         (Depends-on): Add time; remove extensions.
50107         (Maintainer): Add self.
50108         * modules/utimecmp (Depends-on): Add time; remove timespec.
50109         * modules/utimens (Depends-on): Likewise.
50110         * modules/xnanosleep (Depends-on): Likewise.
50111
50112 2007-02-11  Bruno Haible  <bruno@clisp.org>
50113
50114         * lib/c-strstr.c: Include allocsa.h.
50115         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50116         * lib/c-strcasestr.c: Include allocsa.h.
50117         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50118         * lib/strcasestr.c: Include allocsa.h.
50119         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
50120         * lib/mbsstr.c: Include allocsa.h.
50121         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50122         allocsa/freesa instead of malloc/free.
50123         * lib/mbscasestr.c: Include allocsa.h.
50124         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
50125         allocsa/freesa instead of malloc/free.
50126         * modules/c-strstr (Depends-on): Add allocsa.
50127         * modules/c-strcasestr (Depends-on): Likewise.
50128         * modules/strcasestr (Depends-on): Likewise.
50129         * modules/mbsstr (Depends-on): Likewise.
50130         * modules/mbscasestr (Depends-on): Likewise.
50131
50132 2007-02-11  Bruno Haible  <bruno@clisp.org>
50133
50134         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
50135
50136         * modules/mbsspn-tests: New file.
50137         * tests/test-mbsspn.sh: New file.
50138         * tests/test-mbsspn.c: New file.
50139
50140 2007-02-11  Bruno Haible  <bruno@clisp.org>
50141
50142         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
50143
50144         * modules/mbspbrk-tests: New file.
50145         * tests/test-mbspbrk.sh: New file.
50146         * tests/test-mbspbrk.c: New file.
50147
50148 2007-02-11  Bruno Haible  <bruno@clisp.org>
50149
50150         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
50151         unneeded cast.
50152
50153         * modules/mbscspn-tests: New file.
50154         * tests/test-mbscspn.sh: New file.
50155         * tests/test-mbscspn.c: New file.
50156
50157 2007-02-11  Bruno Haible  <bruno@clisp.org>
50158
50159         * modules/mbscasecmp-tests: New file.
50160         * tests/test-mbscasecmp.sh: New file.
50161         * tests/test-mbscasecmp.c: New file.
50162
50163 2007-02-11  Bruno Haible  <bruno@clisp.org>
50164
50165         Ensure O(n) worst-case complexity of mbscasestr.
50166         * lib/mbscasestr.c: Include stdbool.h.
50167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50168         functions.
50169         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
50170         the bookkeeping indicates that it's worth it.
50171         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
50172
50173         * modules/mbscasestr-tests: New file.
50174         * tests/test-mbscasestr1.c: New file.
50175         * tests/test-mbscasestr2.sh: New file.
50176         * tests/test-mbscasestr2.c: New file.
50177         * tests/test-mbscasestr3.sh: New file.
50178         * tests/test-mbscasestr3.c: New file.
50179         * tests/test-mbscasestr4.sh: New file.
50180         * tests/test-mbscasestr4.c: New file.
50181         * m4/locale-tr.m4: New file.
50182
50183 2007-02-11  Bruno Haible  <bruno@clisp.org>
50184
50185         Ensure O(n) worst-case complexity of mbsstr.
50186         * lib/mbsstr.c: Include stdbool.h.
50187         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
50188         functions.
50189         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
50190         bookkeeping indicates that it's worth it.
50191         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
50192
50193         * modules/mbsstr-tests: New file.
50194         * tests/test-mbsstr1.c: New file.
50195         * tests/test-mbsstr2.sh: New file.
50196         * tests/test-mbsstr2.c: New file.
50197         * tests/test-mbsstr3.sh: New file.
50198         * tests/test-mbsstr3.c: New file.
50199         * m4/locale-fr.m4: New file.
50200
50201 2007-02-11  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/mbsrchr.c (mbsrchr): Fix bug.
50204
50205         * modules/mbsrchr-tests: New file.
50206         * tests/test-mbsrchr.sh: New file.
50207         * tests/test-mbsrchr.c: New file.
50208
50209 2007-02-11  Bruno Haible  <bruno@clisp.org>
50210
50211         * lib/mbschr.c (mbschr): Fix bug.
50212
50213         * modules/mbschr-tests: New file.
50214         * tests/test-mbschr.sh: New file.
50215         * tests/test-mbschr.c: New file.
50216         * m4/locale-zh.m4: New file.
50217
50218 2007-02-11  Bruno Haible  <bruno@clisp.org>
50219
50220         Support for copying multibyte string iterators.
50221         * lib/mbiter.h: Include <string.h>.
50222         (mbiter_multi_copy): New function.
50223         (mbi_copy): New macro.
50224         * lib/mbuiter.h: Include <string.h>.
50225         (mbuiter_multi_copy): New function.
50226         (mbui_copy): New macro.
50227
50228 2007-02-11  Bruno Haible  <bruno@clisp.org>
50229
50230         New module mbslen.
50231         * modules/mbslen: New file.
50232         * lib/mbslen.c: New file.
50233         * lib/string_.h (mbslen): New declaration.
50234         * m4/mbslen.m4: New file.
50235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50236         GNULIB_MBSLEN.
50237         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
50238         * MODULES.html.sh (Internationalization functions): Add mbslen.
50239
50240 2007-02-11  Bruno Haible  <bruno@clisp.org>
50241
50242         Ensure O(n) worst-case complexity of strcasestr substitute.
50243         * lib/strcasestr.c: Include stdbool.h.
50244         (knuth_morris_pratt): New function.
50245         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50246         bookkeeping indicates that it's worth it.
50247         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
50248
50249         * modules/strcasestr-tests: New file.
50250         * tests/test-strcasestr.c: New file.
50251
50252 2007-02-11  Bruno Haible  <bruno@clisp.org>
50253
50254         Ensure O(n) worst-case complexity of c_strcasestr.
50255         * lib/c-strcasestr.c: Include stdbool.h, string.h.
50256         (knuth_morris_pratt): New function.
50257         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50258         the bookkeeping indicates that it's worth it.
50259         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
50260
50261         * modules/c-strcasestr-tests: New file.
50262         * tests/test-c-strcasestr.c: New file.
50263
50264 2007-02-11  Bruno Haible  <bruno@clisp.org>
50265
50266         Ensure O(n) worst-case complexity of c_strstr.
50267         * lib/c-strstr.c: Include stdbool.h, string.h.
50268         (knuth_morris_pratt): New function.
50269         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
50270         bookkeeping indicates that it's worth it.
50271         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
50272
50273         * lib/c-strstr.c: Complete rewrite for maintainability.
50274
50275         * modules/c-strstr-tests: New file.
50276         * tests/test-c-strstr.c: New file.
50277
50278 2007-02-11  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
50281         5.2.1 and earlier, whereby \055 was treated just like the range
50282         delimiter '-'.
50283         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50284
50285 2007-02-08  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/regex (Depends-on): Add stdbool.
50288         Reported by Dalibor Topic <robilad@kaffe.org>.
50289
50290 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50291
50292         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
50293         Prefer returning from main to exiting from it.
50294         Remove unnecessary parens after sizeof.
50295
50296 2007-02-05  Bruno Haible  <bruno@clisp.org>
50297
50298         New module mbssep.
50299         * modules/mbssep: New file.
50300         * lib/mbssep.c: New file.
50301         * lib/string_.h (strsep): Add a conditional link warning.
50302         (mbssep): New declaration.
50303         * m4/mbssep.m4: New file.
50304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50305         GNULIB_MBSSEP.
50306         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
50307         * MODULES.html.sh (Internationalization functions): Add mbssep.
50308
50309 2007-02-05  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
50312         Optimize search in case of 1 delimiter.
50313
50314 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50315
50316         * lib/acl.h: Include sys/types.h before sys/acl.h.
50317
50318 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
50319
50320         Merge upstream fix for glibc bugzilla #3957:
50321
50322         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
50323
50324         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
50325         bit for RE_HAT_LISTS_NOT_NEWLINE.
50326         (build_charclass_op): Remove bogus comment.
50327
50328 2007-02-05  Simon Josefsson  <simon@josefsson.org>
50329
50330         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
50331
50332 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50333
50334         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
50335         * lib/memmem.c [!defined _LIBC]: Include config.h.
50336
50337 2007-02-04  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
50340         warning message.
50341
50342 2007-02-04  Bruno Haible  <bruno@clisp.org>
50343
50344         New module mbstok_r.
50345         * modules/mbstok_r: New file.
50346         * lib/mbstok_r.c: New file.
50347         * lib/string_.h (strtok_r): Change argument names to match the
50348         comments. Add a conditional link warning.
50349         (mbstok_r): New declaration.
50350         * m4/mbstok_r.m4: New file.
50351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50352         GNULIB_MBSTOK_R.
50353         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
50354         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
50355
50356 2007-02-04  Bruno Haible  <bruno@clisp.org>
50357
50358         New module mbsspn.
50359         * modules/mbsspn: New file.
50360         * lib/mbsspn.c: New file.
50361         * lib/string_.h (strspn): Add a conditional link warning.
50362         (mbsspn): New declaration.
50363         * m4/mbsspn.m4: New file.
50364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50365         GNULIB_MBSSPN.
50366         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
50367         * MODULES.html.sh (Internationalization functions): Add mbsspn.
50368
50369 2007-02-04  Bruno Haible  <bruno@clisp.org>
50370
50371         New module mbspbrk.
50372         * modules/mbspbrk: New file.
50373         * lib/mbspbrk.c: New file.
50374         * lib/string_.h (strpbrk): Add a conditional link warning.
50375         (mbspbrk): New declaration.
50376         * m4/mbspbrk.m4: New file.
50377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50378         GNULIB_MBSPBRK.
50379         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
50380         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
50381
50382 2007-02-04  Bruno Haible  <bruno@clisp.org>
50383
50384         New module mbscspn.
50385         * modules/mbscspn: New file.
50386         * lib/mbscspn.c: New file.
50387         * lib/string_.h (strcspn): Add a conditional link warning.
50388         (mbscspn): New declaration.
50389         * m4/mbscspn.m4: New file.
50390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50391         GNULIB_MBSCSPN.
50392         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
50393         * MODULES.html.sh (Internationalization functions): Add mbscspn.
50394
50395 2007-02-04  Bruno Haible  <bruno@clisp.org>
50396
50397         New module mbscasestr, reduced goal of strcasestr.
50398         * modules/mbscasestr: New file.
50399         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
50400         (mbscasestr): Renamed from strcasestr.
50401         * lib/strcasestr.c: Don't include mbuiter.h.
50402         (strcasestr): Remove support for multibyte locales.
50403         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
50404         Change the conditional link warning.
50405         (mbscasestr): New declaration.
50406         * m4/mbscasestr.m4: New file.
50407         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
50408         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
50409         REPLACE_STRCASESTR.
50410         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
50411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50412         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50413         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
50414         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
50415         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
50416         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
50417         (Depends-on): Remove mbuiter.
50418         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
50419
50420 2007-02-04  Bruno Haible  <bruno@clisp.org>
50421
50422         Simplify handling of strncasecmp.
50423         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
50424         the conditional link warning.
50425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50426         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
50427         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
50428         * modules/strcase (configure.ac): Don't invoke
50429         gl_STRING_MODULE_INDICATOR.
50430         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
50431
50432 2007-02-04  Bruno Haible  <bruno@clisp.org>
50433
50434         New module mbscasecmp, reduced goal of strcasecmp.
50435         * modules/mbscasecmp: New file.
50436         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
50437         (mbscasecmp): Renamed from strcasecmp.
50438         * lib/strcasecmp.c: Don't include mbuiter.h.
50439         (strcasecmp): Remove support for multibyte locales.
50440         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
50441         Change the conditional link warning.
50442         (mbscasecmp): New declaration.
50443         * m4/mbscasecmp.m4: New file.
50444         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
50445         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
50446         REPLACE_STRCASECMP.
50447         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
50448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50449         GNULIB_MBSCASECMP.
50450         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
50451         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
50452         * modules/strcase (Files): Remove m4/mbrtowc.m4.
50453         (Depends-on): Remove mbuiter.
50454         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
50455
50456 2007-02-04  Bruno Haible  <bruno@clisp.org>
50457
50458         New module mbsstr. Remove module strstr.
50459         * modules/mbsstr: New file.
50460         * modules/strstr: Remove file.
50461         * lib/mbsstr.c: Renamed from lib/strstr.c.
50462         (mbsstr): Renamed from strstr.
50463         * lib/string_.h (strstr): Remove declaration. Change the conditional
50464         link warning.
50465         (mbsstr): New declaration.
50466         * m4/mbsstr.m4: New file.
50467         * m4/strstr.m4: Remove file.
50468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
50469         REPLACE_STRSTR.
50470         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
50471         Don't initialize GNULIB_STRSTR.
50472         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
50473         substitute GNULIB_STRSTR and REPLACE_STRSTR.
50474         * MODULES.html.sh (Internationalization functions): Add mbsstr.
50475         (Support for systems lacking ANSI C 89): Remove strstr.
50476
50477 2007-02-04  Bruno Haible  <bruno@clisp.org>
50478
50479         New module mbsrchr.
50480         * modules/mbsrchr: New file.
50481         * lib/mbsrchr.c: New file.
50482         * lib/string_.h (strrchr): Add a conditional link warning.
50483         (mbsrchr): New declaration.
50484         * m4/mbsrchr.m4: New file.
50485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50486         GNULIB_MBSRCHR.
50487         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
50488         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
50489
50490 2007-02-04  Bruno Haible  <bruno@clisp.org>
50491
50492         New module mbschr.
50493         * modules/mbschr: New file.
50494         * lib/mbschr.c: New file.
50495         * lib/string_.h (strchr): Add a conditional link warning.
50496         (mbschr): New declaration.
50497         * m4/mbschr.m4: New file.
50498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
50499         GNULIB_MBSCHR.
50500         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
50501         * MODULES.html.sh (Internationalization functions): Add mbschr.
50502
50503 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
50506
50507         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
50508
50509 2007-02-04  Bruno Haible  <bruno@clisp.org>
50510
50511         New module description section 'configure.ac-early'.
50512         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
50513         (func_get_autoconf_early_snippet): New function.
50514         (func_import, func_create_testdir): Use it. Remove special cases for
50515         modules 'extensions' and 'lock'.
50516         * modules/extensions (configure.ac-early): Require
50517         gl_USE_SYSTEM_EXTENSIONS.
50518         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
50519
50520 2007-02-04  Bruno Haible  <bruno@clisp.org>
50521
50522         Make use of gcj-4.3's -fsource and -ftarget option.
50523         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
50524         and if so try the options -fsource and -ftarget.
50525         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
50526         source_version, ftarget_option, target_version arguments.
50527         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
50528         (is_envjavac_oldgcj_14_14_usable): Renamed from
50529         is_envjavac_gcj_14_14_usable.
50530         (is_envjavac_oldgcj_14_13_usable): Renamed from
50531         is_envjavac_gcj_14_13_usable.
50532         (is_gcj_present): Update.
50533         (is_gcj_43, is_gcj43_usable): New functions.
50534         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
50535         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
50536         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
50537         try the options -fsource and -ftarget.
50538
50539 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50540
50541         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
50542         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
50543         larger value.
50544
50545 2007-02-03  Jim Meyering  <jim@meyering.net>
50546
50547         Give tools a better chance to allocate space for very large buffers.
50548         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
50549
50550         Make pwd and readlink work also when run with an unreadable parent dir
50551         on systems with openat support.
50552         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
50553         provided getcwd function, even when we have openat support.
50554         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
50555
50556 2007-02-02  Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
50559         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
50560         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
50561         portability problems if one of these functions is only used on specific
50562         platforms.
50563         Reported by Paul Eggert.
50564
50565 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
50566
50567         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
50568         is causing more trouble than it's curing.
50569         * lib/regex_internal.h (__mempcpy): Remove.
50570         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
50571         (and make the code a tad smaller to boot).
50572         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
50573
50574 2007-02-02  Jim Meyering  <jim@meyering.net>
50575
50576         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
50577         section, not in the Makefile.am: one.
50578
50579 2007-02-02  Eric Blake  <ebb9@byu.net>
50580
50581         * lib/strchrnul.c: Always include config.h first.
50582
50583         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
50584         gnulib strstr is not necessary here.
50585
50586 2007-02-02  Simon Josefsson  <simon@josefsson.org>
50587
50588         * m4/socklen.m4: Fix typo.
50589
50590 2007-02-02  Eric Blake  <ebb9@byu.net>
50591
50592         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
50593         * modules/netinet_in (Makefile.am): Likewise.
50594
50595 2007-02-01  Bruno Haible  <bruno@clisp.org>
50596
50597         * lib/string_.h (GL_LINK_WARNING): New macro.
50598         (strcasecmp, strstr, strcasestr): If provided by the system,
50599         conditionally define as a macro that leads to a warning instead of to
50600         an error.
50601         (strncasecmp): Conditionally define as a macro that leads to a warning.
50602
50603 2007-02-01  Karl Berry  <karl@gnu.org>
50604
50605         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
50606
50607 2007-02-01  Bruno Haible  <bruno@clisp.org>
50608
50609         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
50610         renamings.
50611
50612 2007-02-01  Eric Blake  <ebb9@byu.net>
50613
50614         * modules/regex (Depends-on): Revert dependence on mempcpy.
50615         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
50616         module's definition of mempcpy.
50617         Reported by Paul Eggert.
50618
50619 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
50620
50621         * lib/string_.h: If the gnulib module XYZ is not present, undefine
50622         the symbol XYZ before redefining it.  This fixes a problem with
50623         programs that don't use XYZ, when compiled on systems that define
50624         XYZ to something else.
50625
50626 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
50629         occurs when "mkdir -m foo" creates a setgid directory that is (1)
50630         writeable to group or other and (2) is intended to have a special
50631         mode bit that is set or cleared.  In such a case, the directory
50632         should be neither group- nor other-writeable until the special
50633         mode bits are right.
50634
50635 2007-01-31  Eric Blake  <ebb9@byu.net>
50636
50637         * modules/mountlist (Depends-on): Add strstr.
50638
50639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
50640         bug.
50641         * modules/string (Makefile.am): Remove redundant replacement.
50642         * modules/regex (Depends-on): Add mempcpy.
50643
50644 2007-01-31  Bruno Haible  <bruno@clisp.org>
50645
50646         New module description field 'Link'.
50647         * gnulib-tool (func_usage): Document --extract-link-directive.
50648         (sed_extract_prog): Recognize 'Link' directive.
50649         (func_get_link_directive): New function.
50650         (func_import): Show summary of link directives.
50651         Handle --extract-link-directive option.
50652         * modules/acl (Link): New section.
50653         * modules/clock-time (Link): New section.
50654         * modules/euidaccess (Link): New section.
50655         * modules/gettext (Link): New section.
50656         * modules/iconv (Link): New section.
50657         * modules/lock (Link): New section.
50658         * modules/nanosleep (Link): New section.
50659         * modules/readline (Link): New section.
50660
50661 2007-01-27  Bruno Haible  <bruno@clisp.org>
50662
50663         Enforce the use of gnulib modules for unportable <string.h> functions.
50664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
50665         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
50666         (gl_HEADER_STRING_H_BODY): Require it.
50667         * lib/string_.h: If the gnulib module XYZ is not present, redefine
50668         the symbol XYZ to one that gives a link error.
50669         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
50670         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
50671         * modules/mempcpy (configure.ac): Likewise.
50672         * modules/memrchr (configure.ac): Likewise.
50673         * modules/stpcpy (configure.ac): Likewise.
50674         * modules/stpncpy (configure.ac): Likewise.
50675         * modules/strcase (configure.ac): Likewise.
50676         * modules/strcasestr (configure.ac): Likewise.
50677         * modules/strchrnul (configure.ac): Likewise.
50678         * modules/strdup (configure.ac): Likewise.
50679         * modules/strndup (configure.ac): Likewise.
50680         * modules/strnlen (configure.ac): Likewise.
50681         * modules/strpbrk (configure.ac): Likewise.
50682         * modules/strsep (configure.ac): Likewise.
50683         * modules/strstr (configure.ac): Likewise.
50684         * modules/strtok_r (configure.ac): Likewise.
50685
50686 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
50687
50688         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
50689
50690 2007-01-30  Jim Meyering  <jim@meyering.net>
50691
50692         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
50693
50694 2007-01-29  Bruno Haible  <bruno@clisp.org>
50695
50696         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
50697         * lib/execute.c: Likewise.
50698         * lib/pipe.c: Likewise.
50699         * lib/printf-args.h: Likewise.
50700         * lib/printf-args.c: Likewise.
50701         * lib/printf-parse.c: Likewise.
50702         * lib/vasnprintf.c: Likewise.
50703
50704 2007-01-29  Eric Blake  <ebb9@byu.net>
50705
50706         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
50707         declaration.
50708
50709 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
50710
50711         * lib/strptime.h (strptime): Use 'restrict' for args where
50712         POSIX requires this.
50713         * lib/strptime.c (strptime): Likewise.
50714         Change license notice from LGPL to GPL, since gnulib-tool will
50715         change this as needed.
50716         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
50717         defined.
50718         Include "strptime.h" first, to check interface.
50719         Do not #undef _LIBC and _NL_CURRENT.
50720         Do not include <stdlib.h>; no longer needed.
50721         Include "time_r.h" and declare ptime_locale_status
50722         only if _LIBC is not defined.
50723         (__P): Remove unused macro.
50724         (match_string): Bring back glibc version, but use it only if _LIBC
50725         is defined.
50726         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
50727         Remove unnecessary assertion and abort() call.
50728         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
50729         * m4/strptime.m4: Fix serial number comment.
50730         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
50731         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
50732         (Depends-on): Add time_r.
50733
50734 2007-01-29  Bruno Haible  <bruno@clisp.org>
50735
50736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50737         strptime.
50738         * modules/strptime (Depends-on): Add stdbool.
50739         * lib/strptime.h: Include <time.h> always. Add comments.
50740
50741 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50742
50743         * modules/strptime: New file.
50744         * lib/strptime.h: New file.
50745         * lib/strptime.c: New file.
50746         * m4/strptime.m4: New file.
50747
50748 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         * MODULES.html.sh: New module mpsort.
50751         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
50752
50753         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
50754         a circularity problem with HP-UX ia64 reported by Bob Proulx in
50755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
50756         All uses changed.
50757         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
50758         All uses changed.
50759         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
50760         to _Restrict_.
50761         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
50762         the parameter matches the prototype.
50763
50764 2007-01-28  Jim Meyering  <jim@meyering.net>
50765
50766         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
50767         sys/time.h here, reverting that part of the previous patch:
50768         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
50769
50770 2007-01-28  Bruno Haible  <bruno@clisp.org>
50771
50772         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
50773         value of $(SYS_TIME_H).
50774         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
50775         remove it conditionally, too. [added by Jim Meyering]
50776         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
50777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50778         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
50779         GETTIMEOFDAY_REPLACEMENT to 1.
50780
50781 2007-01-28  Bruno Haible  <bruno@clisp.org>
50782
50783         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
50784         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
50785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
50786         Set UNISTD_H instead of UNISTD_H2.
50787         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
50788
50789 2007-01-28  Bruno Haible  <bruno@clisp.org>
50790
50791         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
50792         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
50793
50794 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50795
50796         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
50797         (func_create_testdir): Ensure C locale for `grep' and `tr'
50798         character ranges.
50799         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
50800         ACLOCAL_AMFLAGS parsing state machine.
50801
50802 2007-01-27  Bruno Haible  <bruno@clisp.org>
50803
50804         * modules/unistr/base: Update.
50805
50806 2007-01-27  Bruno Haible  <bruno@clisp.org>
50807
50808         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
50809         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
50810         * modules/unistr/u32-mbtouc-unsafe: Renamed from
50811         modules/unistr/u32-mbtouc.
50812         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
50813         * lib/unistr.h: Update.
50814         * lib/linebreak.c: Update.
50815         * modules/unistr/u32-mbtouc: Renamed from
50816         modules/unistr/u32-mbtouc-safe.
50817         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
50818         * lib/unistr.h: Update.
50819         * lib/unistr/u32-to-u8.c: Update.
50820         * lib/unistr/u32-to-u16.c: Update.
50821
50822 2007-01-27  Bruno Haible  <bruno@clisp.org>
50823
50824         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
50825         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
50826         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
50827         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
50828         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
50829         * modules/unistr/u16-mbtouc-unsafe: Renamed from
50830         modules/unistr/u16-mbtouc.
50831         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
50832         * lib/unistr.h: Update.
50833         * lib/linebreak.c: Update.
50834         * modules/linebreak: Update.
50835         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
50836         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
50837         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
50838         * modules/unistr/u16-mbtouc: Renamed from
50839         modules/unistr/u16-mbtouc-safe.
50840         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
50841         * lib/unistr.h: Update.
50842         * lib/unistr/u16-to-u8.c: Update.
50843         * modules/unistr/u16-to-u8: Update.
50844         * lib/unistr/u16-to-u32.c: Update.
50845         * modules/unistr/u16-to-u32: Update.
50846
50847 2007-01-27  Bruno Haible  <bruno@clisp.org>
50848
50849         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
50850         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
50851         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
50852         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
50853         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
50854         * modules/unistr/u8-mbtouc-unsafe: Renamed from
50855         modules/unistr/u8-mbtouc.
50856         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
50857         * lib/unistr.h: Update.
50858         * lib/striconveh.c: Update.
50859         * modules/striconveh: Update.
50860         * lib/linebreak.c: Update.
50861         * modules/linebreak: Update.
50862         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
50863         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
50864         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
50865         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
50866         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
50867         * lib/unistr.h: Update.
50868         * lib/striconveh.c: Update.
50869         * modules/striconveh: Update.
50870         * lib/unistr/u8-to-u16.c: Update.
50871         * modules/unistr/u8-to-u16: Update.
50872         * lib/unistr/u8-to-u32.c: Update.
50873         * modules/unistr/u8-to-u32: Update.
50874
50875 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50876
50877         Sync from Libtool.
50878         * lib/argz.c: Do not include strings.h nor memory.h, include
50879         string.h unconditionally.  Patch by Simon Josefsson.
50880
50881 2007-01-27  Bruno Haible  <bruno@clisp.org>
50882
50883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
50884         from gl_HEADER_STRING_H_BODY.
50885         (gl_HEADER_STRING_H_BODY): Require it.
50886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
50887         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50888         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50889         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50891         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
50892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50893         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50894         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
50895         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50896         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50897         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
50898         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50899         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50901
50902 2007-01-27  Bruno Haible  <bruno@clisp.org>
50903
50904         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
50905         check_PROGRAMS into noinst_PROGRAMS.
50906         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
50907         check_PROGRAMS in this case.
50908         (func_import): Set for_test to false.
50909         (func_create_testdir): Set for_test to true.
50910
50911 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50912             Bruno Haible  <bruno@clisp.org>
50913
50914         * modules/strcasestr (Files): Remove lib/strcasestr.h.
50915         (Depends-on): Add string.
50916         (Includes): Use <string.h> instead of strcasestr.h.
50917         * modules/string (Makefile.am): Also substitute the value of
50918         REPLACE_STRCASESTR.
50919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
50920         assume strcasestr is declared in <string.h> not <strings.h>. Also
50921         set REPLACE_STRCASESTR.
50922         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
50923         REPLACE_STRCASESTR.
50924         * lib/strcasestr.h: Remove file.
50925         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
50926         * lib/string_.h (strcasestr): New declaration.
50927
50928 2007-01-27  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/string_.h: Use 'extern'.
50931
50932 2007-01-27  Jim Meyering  <jim@meyering.net>
50933
50934         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
50935         of set-but-not-used local, "q".
50936
50937         * lib/mempcpy.c: Include <config.h> before <string.h>.
50938         This fixes a compilation error on HP-UX, due to the system's
50939         "restrict"-using mempcpy prototype.
50940
50941 2007-01-26  Bruno Haible  <bruno@clisp.org>
50942
50943         Small optimization.
50944         * lib/javacomp.c: Include c-strstr.h.
50945          (is_envjavac_gcj): Use c_strstr instead of strstr.
50946         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
50947
50948 2007-01-26  Bruno Haible  <bruno@clisp.org>
50949
50950         * MODULES.html.sh (Unicode string functions): Add the new modules.
50951
50952         * modules/uniconv/u32-strconv-to-locale: New file.
50953         * lib/uniconv/u32-strconv-to-locale.c: New file.
50954
50955         * modules/uniconv/u16-strconv-to-locale: New file.
50956         * lib/uniconv/u16-strconv-to-locale.c: New file.
50957
50958         * modules/uniconv/u8-strconv-to-locale: New file.
50959         * lib/uniconv/u8-strconv-to-locale.c: New file.
50960
50961         * modules/uniconv/u32-strconv-from-locale: New file.
50962         * lib/uniconv/u32-strconv-from-locale.c: New file.
50963
50964         * modules/uniconv/u16-strconv-from-locale: New file.
50965         * lib/uniconv/u16-strconv-from-locale.c: New file.
50966
50967         * modules/uniconv/u8-strconv-from-locale: New file.
50968         * lib/uniconv/u8-strconv-from-locale.c: New file.
50969
50970         * modules/uniconv/u32-strconv-to-enc: New file.
50971         * lib/uniconv/u32-strconv-to-enc.c: New file.
50972         * modules/uniconv/u32-strconv-to-enc-tests: New file.
50973         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
50974
50975         * modules/uniconv/u16-strconv-to-enc: New file.
50976         * lib/uniconv/u16-strconv-to-enc.c: New file.
50977         * lib/uniconv/u-strconv-to-enc.h: New file.
50978         * modules/uniconv/u16-strconv-to-enc-tests: New file.
50979         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
50980
50981         * modules/uniconv/u8-strconv-to-enc: New file.
50982         * lib/uniconv/u8-strconv-to-enc.c: New file.
50983         * modules/uniconv/u8-strconv-to-enc-tests: New file.
50984         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
50985
50986         * modules/uniconv/u32-strconv-from-enc: New file.
50987         * lib/uniconv/u32-strconv-from-enc.c: New file.
50988         * modules/uniconv/u32-strconv-from-enc-tests: New file.
50989         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
50990
50991         * modules/uniconv/u16-strconv-from-enc: New file.
50992         * lib/uniconv/u16-strconv-from-enc.c: New file.
50993         * modules/uniconv/u16-strconv-from-enc-tests: New file.
50994         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
50995
50996         * modules/uniconv/u8-strconv-from-enc: New file.
50997         * lib/uniconv/u8-strconv-from-enc.c: New file.
50998         * lib/uniconv/u-strconv-from-enc.h: New file.
50999         * modules/uniconv/u8-strconv-from-enc-tests: New file.
51000         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
51001
51002         * modules/uniconv/u32-conv-from-enc: New file.
51003         * lib/uniconv/u32-conv-from-enc.c: New file.
51004         * modules/uniconv/u32-conv-from-enc-tests: New file.
51005         * tests/uniconv/test-u32-conv-from-enc.c: New file.
51006
51007         * modules/uniconv/u16-conv-from-enc: New file.
51008         * lib/uniconv/u16-conv-from-enc.c: New file.
51009         * lib/uniconv/u-conv-from-enc.h: New file.
51010         * modules/uniconv/u16-conv-from-enc-tests: New file.
51011         * tests/uniconv/test-u16-conv-from-enc.c: New file.
51012
51013         * modules/uniconv/u8-conv-from-enc: New file.
51014         * lib/uniconv/u8-conv-from-enc.c: New file.
51015         * modules/uniconv/u8-conv-from-enc-tests: New file.
51016         * tests/uniconv/test-u8-conv-from-enc.c: New file.
51017
51018         * modules/uniconv/base: New file.
51019         * lib/uniconv.h: New file.
51020
51021 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * doc/gnulib-tool.texi (Initial import): Update to match current
51024         behavior with strdup module.
51025         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
51026         * lib/memmem.h: Remove; all uses removed.  This is now done
51027         by <string.h>.
51028         * lib/mempcpy.h: Likewise.
51029         * lib/memrchr.h: Likewise.
51030         * lib/stpcpy.h: Likewise.
51031         * lib/stpncpy.h: Likewise.
51032         * lib/strcase.h: Likewise.
51033         * lib/strchrnul.h: Likewise.
51034         * lib/strdup.h: Likewise.
51035         * lib/strndup.h: Likewise.
51036         * lib/strnlen.h: Likewise.
51037         * lib/strpbrk.h: Likewise.
51038         * lib/strsep.h: Likewise.
51039         * lib/strstr.h: Likewise.
51040         * lib/strtok_r.h: Likewise.
51041         * lib/string_.h: New file.
51042         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
51043         Rely on <string.h> instead.
51044         * lib/canon-host.c: Likewise.
51045         * lib/chdir-long.c: Likewise.
51046         * lib/concatpath.c: Likewise.
51047         * lib/exclude.c: Likewise.
51048         * lib/fchdir.c: Likewise.
51049         * lib/getaddrinfo.c: Likewise.
51050         * lib/getcwd.c: Likewise.
51051         * lib/getsubopt.c: Likewise.
51052         * lib/glob.c: Likewise.
51053         * lib/hard-locale.c: Likewise.
51054         * lib/iconvme.c: Likewise.
51055         * lib/javacomp.c: Likewise.
51056         * lib/mempcpy.c: Likewise.
51057         * lib/memrchr.c: Likewise.
51058         * lib/regex_internal.h: Likewise.
51059         * lib/stpncpy.c: Likewise.
51060         * lib/strcasecmp.c: Likewise.
51061         * lib/strchrnul.c: Likewise.
51062         * lib/strdup.c: Likewise.
51063         * lib/striconv.c: Likewise.
51064         * lib/striconveh.c: Likewise.
51065         * lib/striconveha.c: Likewise.
51066         * lib/strncasecmp.c: Likewise.
51067         * lib/strndup.c: Likewise.
51068         * lib/strnlen.c: Likewise.
51069         * lib/strsep.c: Likewise.
51070         * lib/strstr.c: Likewise.
51071         * lib/strtok_r.c: Likewise.
51072         * lib/userspec.c: Likewise.
51073         * lib/w32spawn.h: Likewise.
51074         * lib/xstrndup.c: Likewise.
51075         * lib/mountlist.c (strstr): Remove decl.
51076         * m4/string_h.m4: New file.
51077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
51078         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
51079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
51080         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
51081         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
51082         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
51083         Set REPLACE_STRCASECMP if necessary.
51084         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
51085         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
51086         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
51087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
51088         HAVE_DECL_STRDUP if necessary.
51089         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
51090         since gl_FUNC_STRNDUP does that now.
51091         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
51092         Check for decl here...
51093         (gl_PREREQ_STRNLEN): ... not here.
51094         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
51095         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
51096         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
51097         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
51098         necessary.
51099         * modules/string: New file.
51100         * modules/memmem (Files): Remove special-purpose include file.
51101         (Depends-on): Add string.
51102         (Include): Include <string.h>, not the removed file.
51103         * modules/mempcpy: Likewise.
51104         * modules/memrchr: Likewise.
51105         * modules/stpcpy: Likewise.
51106         * modules/stpncpy: Likewise.
51107         * modules/strcase: Likewise.
51108         * modules/strchrnul: Likewise.
51109         * modules/strdup: Likewise.
51110         * modules/strndup: Likewise.
51111         * modules/strnlen: Likewise.
51112         * modules/strpbrk: Likewise.
51113         * modules/strsep: Likewise.
51114         * modules/strstr: Likewise.
51115         * modules/strtok_r: Likewise.
51116         * tests/test-dirname.c: Don't include "strdup.h", since
51117         <string.h> now suffices.
51118         * tests/test-memmem.c: Don't include "memmem.h", since
51119         <string.h> now suffices.
51120
51121 2007-01-25  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
51124         *resultp is 0.
51125
51126         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
51127         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
51128         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
51129         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
51130
51131         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
51132         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
51133         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
51134         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
51135         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
51136         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
51137
51138 2007-01-24  Bruno Haible  <bruno@clisp.org>
51139
51140         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
51141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
51142         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
51143         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
51144         gl_FUNC_FTS_CORE.
51145         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
51146         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
51147         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51148         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
51149         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
51150         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
51151         gl_FUNC_FCHOWNAT.
51152         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
51153         gl_FUNC_STRFTIME.
51154         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
51155         Reported by Ralf Wildenhues.
51156
51157 2007-01-24  Bruno Haible  <bruno@clisp.org>
51158
51159         Drop AC_REQUIRE calls that are redundant with the module dependencies.
51160         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
51161         gl_GETADDRINFO.
51162         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
51163         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
51164         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
51165
51166 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
51167
51168         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
51169         Don't use 'exit'; just return from 'main'.
51170         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
51171
51172         * lib/fnmatch_.h: Readjust white space and comments to match
51173         glibc, to avoid spurious diffs.
51174
51175 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51176
51177         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
51178         2004-12-01 change by Jakub Jelinek, since this code won't compile
51179         if !LIBC.  Problem reported by Bob Proulx.
51180
51181 2007-01-23  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/striconveh.c: Include c-strcaseeq.h.
51184         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
51185         * modules/striconveh (Depends-on): Add c-strcaseeq.
51186
51187 2007-01-23  Bruno Haible  <bruno@clisp.org>
51188
51189         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
51190
51191         * modules/c-strcaseeq: New file.
51192         * lib/c-strcaseeq.h: New file.
51193
51194         * modules/streq: New file.
51195         * lib/streq.h: New file.
51196
51197 2007-01-23  Bruno Haible  <bruno@clisp.org>
51198
51199         * modules/striconveha-tests: New file.
51200         * tests/test-striconveha.c: New file.
51201
51202         * lib/striconveha.h: Include <stdbool.h>.
51203         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
51204         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
51205         (mem_iconveha_notranslit): Renamed from mem_iconveha.
51206         (mem_iconveha): New function.
51207         (str_iconveha_notranslit): Renamed from str_iconveha.
51208         (str_iconveha): New function.
51209         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
51210         c-strcase.
51211
51212 2007-01-23  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
51215         encodings without forgiving before trying any encoding with handler.
51216         (str_iconveha): Try all encodings without forgiving before trying any
51217         encoding with handler.
51218
51219 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51220
51221         Import the following changes from libc.
51222
51223         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51224
51225         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
51226
51227         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51228
51229         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
51230         normal_bracket label.
51231
51232         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
51233
51234         [BZ #361]
51235         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
51236         to normal_bracket after fetching the next character.
51237
51238 2007-01-22  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
51241         argument.
51242         * lib/striconveh.c (iconv_carefully_1): New function.
51243         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
51244         argument.
51245         (str_cd_iconveh): Update.
51246         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
51247         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
51248         * tests/test-striconveh.c (MAGIC): New macro.
51249         (new_offsets): New function.
51250         (main): Test call with and without offsets.
51251
51252 2007-01-22  Bruno Haible  <bruno@clisp.org>
51253
51254         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
51255         * modules/sys_select (Makefile.am): Likewise.
51256         * modules/sys_socket (Makefile.am): Likewise.
51257         * modules/sys_time (Makefile.am): Likewise.
51258
51259 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51260
51261         * modules/gettimeofday (License): Change from GPL to LGPL, since
51262         gettimeofday is a library function.
51263
51264 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51265
51266         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
51267
51268 2007-01-21  Bruno Haible  <bruno@clisp.org>
51269
51270         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
51271
51272 2007-01-21  Bruno Haible  <bruno@clisp.org>
51273
51274         * modules/striconveha: New file.
51275         * lib/striconveha.h: New file.
51276         * lib/striconveha.c: New file.
51277         * MODULES.html.sh (Internationalization functions): Add striconveha.
51278         * lib/striconv.c (str_iconv): Optimize the case of an empty input
51279         string.
51280         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
51281
51282 2007-01-21  Bruno Haible  <bruno@clisp.org>
51283
51284         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
51285         * lib/striconveh.c (str_iconveh): Likewise.
51286
51287 2007-01-21  Bruno Haible  <bruno@clisp.org>
51288
51289         * lib/striconveh.h (mem_iconveh): New declaration.
51290         * lib/striconveh.c (mem_iconveh): New function.
51291         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
51292
51293 2007-01-21  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
51296
51297         * lib/striconveh.h (mem_cd_iconveh): Change specification.
51298         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
51299         original result buffer.
51300         (str_cd_iconveh): Update.
51301         * tests/test-striconveh.c (main): Update.
51302
51303         * lib/striconv.h (mem_cd_iconv): Change specification.
51304         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
51305         result buffer.
51306         (str_cd_iconv): Update.
51307         * tests/test-striconv.c (main): Update.
51308
51309 2007-01-21  Bruno Haible  <bruno@clisp.org>
51310
51311         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
51312
51313 2007-01-20  Jim Meyering  <jim@meyering.net>
51314
51315         * lib/userspec.c (parse_with_separator): If a user or group string
51316         starts with "+", skip the corresponding name-to-ID look-up, since
51317         such a look-up must fail: user and group names may not include "+".
51318
51319 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51320
51321         * lib/poll.c: Include sys/time.h and time.h unconditionally,
51322         since we now assume the sys_time module.
51323         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
51324         check for sys/time.h; no longer needed.
51325         * modules/poll (Depends-on): Depend on sys_time.
51326
51327 2007-01-18  Bruno Haible  <bruno@clisp.org>
51328
51329         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
51330         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51331
51332         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
51333         gettimeofday.
51334
51335         * tests/test-gettimeofday.c: Include <time.h>.
51336         (dummy): Remove variable.
51337
51338         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
51339         gl_HEADER_SYS_TIME_H.
51340         (gl_HEADER_SYS_TIME_H): New macro.
51341
51342         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
51343         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
51345         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
51346         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51347         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
51348         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
51349         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51350         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
51351         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
51352         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51353
51354         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
51355         last change; it caused a compilation error when cross-compiling to
51356         Cygwin.
51357
51358 2007-01-18  Jim Meyering  <jim@meyering.net>
51359
51360         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
51361         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
51362         than the race-prone "test -d sys || mkdir sys".
51363         (configure.ac): Use AC_PROG_MKDIR_P.
51364         * modules/sys_select: Likewise.
51365         * modules/sys_socket: Likewise.
51366         * modules/sys_time: Likewise.
51367
51368 2007-01-18  Eric Blake  <ebb9@byu.net>
51369
51370         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
51371         replace gettimeofday.
51372         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
51373         name, to avoid infinite recursion.
51374
51375 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
51378         module sys_time.
51379         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
51380         assume timespec.h defines struct timeval.
51381         * lib/settime.c: Likewise.
51382         * lib/utimens.c: Likewise.
51383         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
51384         since we now assume the gettimeofday module.
51385         * lib/tempname.c (__gen_tempname): Likewise.
51386         * lib/gettimeofday.h: Remove.
51387         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
51388         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
51389         Include <time.h>, for 'time()'.
51390         (localtime_buffer_addr): Also use this workaround if
51391         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
51392         to simplify the uses.  All uses changed.
51393         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
51394         that #undef is inside {}, and 'const' follows type name consistently.
51395         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
51396         (gettimeofday): Do not use the maximum possible value for
51397         tv->tv_usec, since that might break usages other than ls.c.
51398         Instead, we'll leave ls.c alone.  This undoes today's patch
51399         by Bruno.  Add a compile-time warning for 1s-clock resolution;
51400         we've never observed the problem but might as well keep the
51401         canary.
51402         * lib/nanosleep.c: Include timespec.h first, for interface check.
51403         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
51404         now assume the sys_time module.
51405         * lib/tempname.c: Likewise.
51406         * lib/timespec.h: Likewise.
51407         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
51408         needed.
51409         * lib/strftime.c: Likewise.
51410         * lib/timespec.h: Likewise.
51411         * lib/posixtm.c: Include posixtm.h first, for interface check.
51412         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
51413         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
51414         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
51415         * lib/sys_time_.h: New file.
51416         * lib/timespec.h (struct timespec): Use long int, not long.
51417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
51418         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
51419         Remove obsolescent call to AC_HEADER_TIME.
51420         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
51421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51422         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
51423         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
51424         Likewise.
51425         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
51426         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
51427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
51428         into the sys_time module.  Check for gettimeofday just once.
51429         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
51430         for gettimeofday signature to just check the signature.  Merely
51431         compile it, since linking doesn't test signature.  Improve test for
51432         whether gettimeofday.o is actually needed.
51433         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
51434         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
51435         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
51436         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51437         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
51438         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
51439         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
51440         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
51441         than worrying about sys/time.h.
51442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51443         Don't bother worrying about TIME_WITH_SYS_TIME.
51444         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
51445         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
51446         * m4/sys_time_h.m4: New file.
51447         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
51448         Don't include sys/time.h.  Return from main rather than exiting.
51449         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
51450         all uses changed.
51451         * modules/gethrxtime (Depends-on): Add sys_time.
51452         * modules/gettime (Depends-on): Likewise.
51453         * modules/gettimeofday (Depends-on): Likewise.
51454         * modules/nanosleep (Depends-on): Likewise.
51455         * modules/settime (Depends-on): Likewise.
51456         * modules/tempname (Depends-on): Likewise.
51457         * modules/utimens (Depends-on): Likewise.
51458         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
51459         (Include:) Change back to <sys/time.h>.
51460         (Maintainer:) Add self.
51461         * modules/sys_time: New file.
51462         * modules/tempname (Depends-on): Add gettimeofday.
51463         * tests/test-gettimeofday.c: Include <sys/time.h>
51464         rather than gettimeofday.h.
51465
51466 2007-01-17  Bruno Haible  <bruno@clisp.org>
51467
51468         * gnulib-tool (func_get_license): Revert last patch. Instead, let
51469         the license default to GPL.
51470         (func_create_testdir): Don't complain if a module is LGPL and its
51471         tests module depends on GPLed modules.
51472
51473 2007-01-17  Bruno Haible  <bruno@clisp.org>
51474
51475         * lib/gettimeofday.c (gettimeofday): Add code for the case
51476         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
51477         maximum possible value for tv->tv_usec, rather than the minimum one.
51478
51479 2005-10-08  Martin Lambers  <marlam@marlam.de>
51480 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51481 2007-01-16  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
51484         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
51485         gl_FUNC_GETTIMEOFDAY.
51486         (Include): Add gettimeofday.h.
51487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
51488         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
51489         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
51490         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
51491         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
51492         * lib/gettimeofday.h: New file.
51493         * lib/gettimeofday.c: Include <sys/timeb.h>.
51494         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
51495         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
51496         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
51497         fall back on time().
51498
51499         * tests/test-gettimeofday.c: New file.
51500         * modules/gettimeofday-tests: New file.
51501
51502 2007-01-16  Eric Blake  <ebb9@byu.net>
51503
51504         * modules/fnmatch (Depends-on): Depend on wchar.
51505         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
51506         * m4/fnmatch.m4: Likewise.
51507         * modules/mbchar (Makefile.am): Assume <wchar.h>.
51508         * m4/mbchar.m4: Likewise.
51509         * modules/mbswidth (Depends-on): Depend on wchar.
51510         * lib/mbswidth.c: Assume <wchar.h>.
51511         * m4/mbswidth.m4: Likewise.
51512         * modules/quotearg (Depends-on): Depend on wchar.
51513         * lib/quotearg.c: Assume <wchar.h>.
51514         * m4/quotearg.m4: Likewise.
51515         * modules/regex (Depends-on): Depend on wchar.
51516         * lib/regex_internal.h: Assume <wchar.h>.
51517         * m4/regex.m4: Likewise.
51518         * modules/stdint (Depends-on): Depend on wchar.
51519         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
51520         * m4/stdint.m4: Likewise.
51521         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
51522         * modules/strftime (Depends-on): Depend on wchar.
51523         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
51524         * modules/strtol (Depends-on): Depend on wchar.
51525         * lib/strtol.c: Assume <wchar.h>.
51526         * modules/wcwidth (Depends-on): Depend on wchar.
51527         * lib/wcwidth.h: Assume <wchar.h>.
51528         * m4/wcwidth.m4: Likewise.
51529
51530 2007-01-16  Bruno Haible  <bruno@clisp.org>
51531
51532         * modules/csharpexec-script: New, created from...
51533         * modules/csharpexec: ... this.
51534
51535 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51536
51537         * modules/javaexec-script: New, created from...
51538         * modules/javaexec: ... this.
51539
51540 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51541
51542         * modules/poll (Dependencies): Add sys_select.
51543
51544 2007-01-15  Jim Meyering  <jim@meyering.net>
51545
51546         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
51547         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
51548         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
51549         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
51550
51551 2007-01-15  Bruno Haible  <bruno@clisp.org>
51552
51553         * modules/striconveh: New file.
51554         * lib/striconveh.h: New file.
51555         * lib/striconveh.c: New file.
51556         * MODULES.html.sh (Internationalization functions): Add striconveh.
51557
51558         * modules/striconveh-tests: New file.
51559         * tests/test-striconveh.c: New file.
51560
51561 2007-01-15  Bruno Haible  <bruno@clisp.org>
51562
51563         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
51564         not from GNU libiconv or GNU libc.
51565
51566 2007-01-15  Bruno Haible  <bruno@clisp.org>
51567
51568         * doc/gnulib-intro.texi (Copyright): Explain the different license
51569         terms for module descriptions, autoconf macros, tests, documentation.
51570
51571 2007-01-14  Bruno Haible  <bruno@clisp.org>
51572
51573         * modules/striconv-tests: New file.
51574         * tests/test-striconv.c: New file.
51575
51576 2007-01-14  Bruno Haible  <bruno@clisp.org>
51577
51578         * modules/iconv-tests: New file.
51579         * tests/test-iconv.c: New file.
51580
51581 2007-01-14  Bruno Haible  <bruno@clisp.org>
51582
51583         * gnulib-tool (func_get_license): For test modules, use the license of
51584         the main module.
51585
51586 2007-01-14  Bruno Haible  <bruno@clisp.org>
51587
51588         * modules/iconv (Include): Clarify that <iconv.h> can only be included
51589         if iconv is found to exist.
51590
51591 2007-01-14  Bruno Haible  <bruno@clisp.org>
51592
51593         * modules/c-ctype-tests: New file.
51594         * tests/test-c-ctype.c: New file.
51595
51596 2007-01-14  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/binary-io-tests: New file.
51599         * tests/test-binary-io.sh: New file.
51600         * tests/test-binary-io.c: New file.
51601
51602 2007-01-14  Bruno Haible  <bruno@clisp.org>
51603
51604         * modules/array-oset-tests: New file.
51605         * tests/test-array_oset.c: New file.
51606
51607 2007-01-14  Bruno Haible  <bruno@clisp.org>
51608
51609         * modules/array-list-tests: New file.
51610         * tests/test-array_list.c: New file.
51611
51612 2007-01-14  Bruno Haible  <bruno@clisp.org>
51613
51614         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
51615         and make.
51616         Reported by Simon Josefsson in
51617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
51618
51619 2007-01-14  Bruno Haible  <bruno@clisp.org>
51620
51621         * modules/allocsa-tests: New file.
51622         * tests/test-allocsa.c: New file.
51623
51624 2007-01-14  Bruno Haible  <bruno@clisp.org>
51625
51626         * modules/fchdir (Depends-on): Add absolute-header.
51627         * modules/unistd (Depends-on): Likewise.
51628
51629 2006-12-30  Bruno Haible  <bruno@clisp.org>
51630
51631         * modules/fchdir: New file.
51632         * modules/unistd (Files): Add lib/unistd_.h.
51633         (Makefile.am): Generate unistd.h from unistd_.h.
51634         * lib/fchdir.c: New file.
51635         * lib/dirent_.h: New file.
51636         * lib/unistd_.h: New file.
51637         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
51638         * m4/fchdir.m4: New file.
51639         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
51640         (gl_HEADER_UNISTD): Invoke it.
51641         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
51642         function.
51643         * lib/backupfile.c (opendir, closedir): Undefine.
51644         * lib/chown.c (open, close): Undefine.
51645         * lib/clean-temp.c (open, close): Undefine.
51646         * lib/copy-file.c (open, close): Undefine.
51647         * lib/execute.c (open, close): Undefine.
51648         * lib/fsusage.c (open, close): Undefine.
51649         * lib/gc-gnulib.c (open, close): Undefine.
51650         * lib/getcwd.c (opendir, closedir): Undefine.
51651         * lib/glob.c (opendir, closedir): Undefine.
51652         * lib/javacomp.c (open, close): Undefine.
51653         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
51654         * lib/openat-proc.c (open, close): Undefine.
51655         * lib/pagealign_alloc.c (open, close): Undefine.
51656         * lib/pipe.c (open, close): Undefine.
51657         * lib/progreloc.c (open, close): Undefine.
51658         * lib/savedir.c (opendir, closedir): Undefine.
51659         * lib/utime.c (open, close): Undefine.
51660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
51661
51662 2007-01-10  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
51665
51666 2007-01-12  Eric Blake  <ebb9@byu.net>
51667
51668         Provide a robust <wchar.h>.  Further simplifications are now
51669         possible in other modules, but not included here.
51670         * modules/wchar: New module.
51671         * m4/wchar.m4: New file.
51672         * lib/wchar_.h: Likewise.
51673         * modules/mbchar (Depends-on): Depend on wchar, as the first use
51674         of the new module.
51675         * MODULES.html.sh (Extended multibyte and wide character utilities):
51676         New section.
51677
51678 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
51679
51680         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
51681         to a reasonable default for memory allocation.
51682         (xreadlink): Don't allocate a huge buffer, to work around a buggy
51683         file system that reports garbage st_size values for symlinks.
51684         Problem reported by Liyang Hu.
51685
51686 2007-01-11  Simon Josefsson  <simon@josefsson.org>
51687
51688         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
51689         Emacs .#* auto-save files).
51690
51691 2007-01-11  Bruno Haible  <bruno@clisp.org>
51692
51693         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
51694         directory.
51695
51696 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51697
51698         Use @...@ consistently in lib/wctype_.h.
51699         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
51700         on it being set to 1 or 0.
51701         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
51702         go back to AC_SUBSTing it.
51703         * modules/wctype (Makefile.am): Undo previous change.
51704
51705 2007-01-10  Eric Blake  <ebb9@byu.net>
51706
51707         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
51708         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
51709         * modules/wctype (Makefile.am): Likewise.
51710         Reported by Chris McGuire.
51711
51712 2007-01-10  Jim Meyering  <jim@meyering.net>
51713
51714         fts.c: a small readability/maintainability improvement
51715         * lib/fts.c (fts_read): Make this code slightly more readable and
51716         maintainable by hoisting the "sp->fts_cur = p" assignments to
51717         immediately follow the statements that set P.  Derived from
51718         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
51719
51720 2007-01-10  Eric Blake  <ebb9@byu.net>
51721
51722         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
51723         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
51724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51725         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51726         Reported by Chris McGuire.
51727
51728 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51729
51730         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
51731         in sed script.
51732
51733 2007-01-09  Bruno Haible  <bruno@clisp.org>
51734
51735         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
51736         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
51737         variables.
51738         (func_module): Use them.
51739
51740 2007-01-09  Bruno Haible  <bruno@clisp.org>
51741
51742         * modules/unistr/base: New file.
51743         * lib/unistr.h: New file.
51744
51745         * modules/unistr/u8-to-u16: New file.
51746         * lib/unistr/u8-to-u16.c: New file.
51747
51748         * modules/unistr/u8-to-u32: New file.
51749         * lib/unistr/u8-to-u32.c: New file.
51750
51751         * modules/unistr/u16-to-u8: New file.
51752         * lib/unistr/u16-to-u8.c: New file.
51753
51754         * modules/unistr/u16-to-u32: New file.
51755         * lib/unistr/u16-to-u32.c: New file.
51756
51757         * modules/unistr/u32-to-u8: New file.
51758         * lib/unistr/u32-to-u8.c: New file.
51759
51760         * modules/unistr/u32-to-u16: New file.
51761         * lib/unistr/u32-to-u16.c: New file.
51762
51763         * modules/unistr/u8-check: New file.
51764         * modules/unistr/u16-check: New file.
51765         * modules/unistr/u32-check: New file.
51766         * lib/unistr/u8-check.c: New file.
51767         * lib/unistr/u16-check.c: New file.
51768         * lib/unistr/u32-check.c: New file.
51769
51770         * modules/unistr/u8-chr: New file.
51771         * modules/unistr/u16-chr: New file.
51772         * modules/unistr/u32-chr: New file.
51773         * lib/unistr/u8-chr.c: New file.
51774         * lib/unistr/u16-chr.c: New file.
51775         * lib/unistr/u32-chr.c: New file.
51776
51777         * modules/unistr/u8-cmp: New file.
51778         * modules/unistr/u16-cmp: New file.
51779         * modules/unistr/u32-cmp: New file.
51780         * lib/unistr/u8-cmp.c: New file.
51781         * lib/unistr/u16-cmp.c: New file.
51782         * lib/unistr/u32-cmp.c: New file.
51783
51784         * modules/unistr/u8-cpy: New file.
51785         * modules/unistr/u16-cpy: New file.
51786         * modules/unistr/u32-cpy: New file.
51787         * lib/unistr/u8-cpy.c: New file.
51788         * lib/unistr/u16-cpy.c: New file.
51789         * lib/unistr/u32-cpy.c: New file.
51790         * lib/unistr/u-cpy.h: New file.
51791
51792         * modules/unistr/u8-cpy-alloc: New file.
51793         * modules/unistr/u16-cpy-alloc: New file.
51794         * modules/unistr/u32-cpy-alloc: New file.
51795         * lib/unistr/u8-cpy-alloc.c: New file.
51796         * lib/unistr/u16-cpy-alloc.c: New file.
51797         * lib/unistr/u32-cpy-alloc.c: New file.
51798         * lib/unistr/u-cpy-alloc.h: New file.
51799
51800         * modules/unistr/u8-endswith: New file.
51801         * modules/unistr/u16-endswith: New file.
51802         * modules/unistr/u32-endswith: New file.
51803         * lib/unistr/u8-endswith.c: New file.
51804         * lib/unistr/u16-endswith.c: New file.
51805         * lib/unistr/u32-endswith.c: New file.
51806         * lib/unistr/u-endswith.h: New file.
51807
51808         * modules/unistr/u8-mblen: New file.
51809         * modules/unistr/u16-mblen: New file.
51810         * modules/unistr/u32-mblen: New file.
51811         * lib/unistr/u8-mblen.c: New file.
51812         * lib/unistr/u16-mblen.c: New file.
51813         * lib/unistr/u32-mblen.c: New file.
51814
51815         * modules/unistr/u8-mbtouc: New file.
51816         * modules/unistr/u16-mbtouc: New file.
51817         * modules/unistr/u32-mbtouc: New file.
51818         * lib/unistr/u8-mbtouc.c: New file.
51819         * lib/unistr/u16-mbtouc.c: New file.
51820         * lib/unistr/u32-mbtouc.c: New file.
51821
51822         * modules/unistr/u8-mbtouc-safe: New file.
51823         * modules/unistr/u16-mbtouc-safe: New file.
51824         * modules/unistr/u32-mbtouc-safe: New file.
51825         * lib/unistr/u8-mbtouc-safe.c: New file.
51826         * lib/unistr/u16-mbtouc-safe.c: New file.
51827         * lib/unistr/u32-mbtouc-safe.c: New file.
51828
51829         * modules/unistr/u8-move: New file.
51830         * modules/unistr/u16-move: New file.
51831         * modules/unistr/u32-move: New file.
51832         * lib/unistr/u8-move.c: New file.
51833         * lib/unistr/u16-move.c: New file.
51834         * lib/unistr/u32-move.c: New file.
51835         * lib/unistr/u-move.h: New file.
51836
51837         * modules/unistr/u8-next: New file.
51838         * modules/unistr/u16-next: New file.
51839         * modules/unistr/u32-next: New file.
51840         * lib/unistr/u8-next.c: New file.
51841         * lib/unistr/u16-next.c: New file.
51842         * lib/unistr/u32-next.c: New file.
51843
51844         * modules/unistr/u8-prev: New file.
51845         * modules/unistr/u16-prev: New file.
51846         * modules/unistr/u32-prev: New file.
51847         * lib/unistr/u8-prev.c: New file.
51848         * lib/unistr/u16-prev.c: New file.
51849         * lib/unistr/u32-prev.c: New file.
51850
51851         * modules/unistr/u8-set: New file.
51852         * modules/unistr/u16-set: New file.
51853         * modules/unistr/u32-set: New file.
51854         * lib/unistr/u8-set.c: New file.
51855         * lib/unistr/u16-set.c: New file.
51856         * lib/unistr/u32-set.c: New file.
51857         * lib/unistr/u-set.h: New file.
51858
51859         * modules/unistr/u8-startswith: New file.
51860         * modules/unistr/u16-startswith: New file.
51861         * modules/unistr/u32-startswith: New file.
51862         * lib/unistr/u8-startswith.c: New file.
51863         * lib/unistr/u16-startswith.c: New file.
51864         * lib/unistr/u32-startswith.c: New file.
51865         * lib/unistr/u-startswith.h: New file.
51866
51867         * modules/unistr/u8-stpcpy: New file.
51868         * modules/unistr/u16-stpcpy: New file.
51869         * modules/unistr/u32-stpcpy: New file.
51870         * lib/unistr/u8-stpcpy.c: New file.
51871         * lib/unistr/u16-stpcpy.c: New file.
51872         * lib/unistr/u32-stpcpy.c: New file.
51873         * lib/unistr/u-stpcpy.h: New file.
51874
51875         * modules/unistr/u8-stpncpy: New file.
51876         * modules/unistr/u16-stpncpy: New file.
51877         * modules/unistr/u32-stpncpy: New file.
51878         * lib/unistr/u8-stpncpy.c: New file.
51879         * lib/unistr/u16-stpncpy.c: New file.
51880         * lib/unistr/u32-stpncpy.c: New file.
51881         * lib/unistr/u-stpncpy.h: New file.
51882
51883         * modules/unistr/u8-strcat: New file.
51884         * modules/unistr/u16-strcat: New file.
51885         * modules/unistr/u32-strcat: New file.
51886         * lib/unistr/u8-strcat.c: New file.
51887         * lib/unistr/u16-strcat.c: New file.
51888         * lib/unistr/u32-strcat.c: New file.
51889         * lib/unistr/u-strcat.h: New file.
51890
51891         * modules/unistr/u8-strchr: New file.
51892         * modules/unistr/u16-strchr: New file.
51893         * modules/unistr/u32-strchr: New file.
51894         * lib/unistr/u8-strchr.c: New file.
51895         * lib/unistr/u16-strchr.c: New file.
51896         * lib/unistr/u32-strchr.c: New file.
51897
51898         * modules/unistr/u8-strcmp: New file.
51899         * modules/unistr/u16-strcmp: New file.
51900         * modules/unistr/u32-strcmp: New file.
51901         * lib/unistr/u8-strcmp.c: New file.
51902         * lib/unistr/u16-strcmp.c: New file.
51903         * lib/unistr/u32-strcmp.c: New file.
51904
51905         * modules/unistr/u8-strcpy: New file.
51906         * modules/unistr/u16-strcpy: New file.
51907         * modules/unistr/u32-strcpy: New file.
51908         * lib/unistr/u8-strcpy.c: New file.
51909         * lib/unistr/u16-strcpy.c: New file.
51910         * lib/unistr/u32-strcpy.c: New file.
51911         * lib/unistr/u-strcpy.h: New file.
51912
51913         * modules/unistr/u8-strcspn: New file.
51914         * modules/unistr/u16-strcspn: New file.
51915         * modules/unistr/u32-strcspn: New file.
51916         * lib/unistr/u8-strcspn.c: New file.
51917         * lib/unistr/u16-strcspn.c: New file.
51918         * lib/unistr/u32-strcspn.c: New file.
51919         * lib/unistr/u-strcspn.h: New file.
51920
51921         * modules/unistr/u8-strdup: New file.
51922         * modules/unistr/u16-strdup: New file.
51923         * modules/unistr/u32-strdup: New file.
51924         * lib/unistr/u8-strdup.c: New file.
51925         * lib/unistr/u16-strdup.c: New file.
51926         * lib/unistr/u32-strdup.c: New file.
51927         * lib/unistr/u-strdup.h: New file.
51928
51929         * modules/unistr/u8-strlen: New file.
51930         * modules/unistr/u16-strlen: New file.
51931         * modules/unistr/u32-strlen: New file.
51932         * lib/unistr/u8-strlen.c: New file.
51933         * lib/unistr/u16-strlen.c: New file.
51934         * lib/unistr/u32-strlen.c: New file.
51935         * lib/unistr/u-strlen.h: New file.
51936
51937         * modules/unistr/u8-strmblen: New file.
51938         * modules/unistr/u16-strmblen: New file.
51939         * modules/unistr/u32-strmblen: New file.
51940         * lib/unistr/u8-strmblen.c: New file.
51941         * lib/unistr/u16-strmblen.c: New file.
51942         * lib/unistr/u32-strmblen.c: New file.
51943
51944         * modules/unistr/u8-strmbtouc: New file.
51945         * modules/unistr/u16-strmbtouc: New file.
51946         * modules/unistr/u32-strmbtouc: New file.
51947         * lib/unistr/u8-strmbtouc.c: New file.
51948         * lib/unistr/u16-strmbtouc.c: New file.
51949         * lib/unistr/u32-strmbtouc.c: New file.
51950
51951         * modules/unistr/u8-strncat: New file.
51952         * modules/unistr/u16-strncat: New file.
51953         * modules/unistr/u32-strncat: New file.
51954         * lib/unistr/u8-strncat.c: New file.
51955         * lib/unistr/u16-strncat.c: New file.
51956         * lib/unistr/u32-strncat.c: New file.
51957         * lib/unistr/u-strncat.h: New file.
51958
51959         * modules/unistr/u8-strncmp: New file.
51960         * modules/unistr/u16-strncmp: New file.
51961         * modules/unistr/u32-strncmp: New file.
51962         * lib/unistr/u8-strncmp.c: New file.
51963         * lib/unistr/u16-strncmp.c: New file.
51964         * lib/unistr/u32-strncmp.c: New file.
51965
51966         * modules/unistr/u8-strncpy: New file.
51967         * modules/unistr/u16-strncpy: New file.
51968         * modules/unistr/u32-strncpy: New file.
51969         * lib/unistr/u8-strncpy.c: New file.
51970         * lib/unistr/u16-strncpy.c: New file.
51971         * lib/unistr/u32-strncpy.c: New file.
51972         * lib/unistr/u-strncpy.h: New file.
51973
51974         * modules/unistr/u8-strnlen: New file.
51975         * modules/unistr/u16-strnlen: New file.
51976         * modules/unistr/u32-strnlen: New file.
51977         * lib/unistr/u8-strnlen.c: New file.
51978         * lib/unistr/u16-strnlen.c: New file.
51979         * lib/unistr/u32-strnlen.c: New file.
51980         * lib/unistr/u-strnlen.h: New file.
51981
51982         * modules/unistr/u8-strpbrk: New file.
51983         * modules/unistr/u16-strpbrk: New file.
51984         * modules/unistr/u32-strpbrk: New file.
51985         * lib/unistr/u8-strpbrk.c: New file.
51986         * lib/unistr/u16-strpbrk.c: New file.
51987         * lib/unistr/u32-strpbrk.c: New file.
51988         * lib/unistr/u-strpbrk.h: New file.
51989
51990         * modules/unistr/u8-strrchr: New file.
51991         * modules/unistr/u16-strrchr: New file.
51992         * modules/unistr/u32-strrchr: New file.
51993         * lib/unistr/u8-strrchr.c: New file.
51994         * lib/unistr/u16-strrchr.c: New file.
51995         * lib/unistr/u32-strrchr.c: New file.
51996
51997         * modules/unistr/u8-strspn: New file.
51998         * modules/unistr/u16-strspn: New file.
51999         * modules/unistr/u32-strspn: New file.
52000         * lib/unistr/u8-strspn.c: New file.
52001         * lib/unistr/u16-strspn.c: New file.
52002         * lib/unistr/u32-strspn.c: New file.
52003         * lib/unistr/u-strspn.h: New file.
52004
52005         * modules/unistr/u8-strstr: New file.
52006         * modules/unistr/u16-strstr: New file.
52007         * modules/unistr/u32-strstr: New file.
52008         * lib/unistr/u8-strstr.c: New file.
52009         * lib/unistr/u16-strstr.c: New file.
52010         * lib/unistr/u32-strstr.c: New file.
52011         * lib/unistr/u-strstr.h: New file.
52012
52013         * modules/unistr/u8-strtok: New file.
52014         * modules/unistr/u16-strtok: New file.
52015         * modules/unistr/u32-strtok: New file.
52016         * lib/unistr/u8-strtok.c: New file.
52017         * lib/unistr/u16-strtok.c: New file.
52018         * lib/unistr/u32-strtok.c: New file.
52019         * lib/unistr/u-strtok.h: New file.
52020
52021         * modules/unistr/u8-uctomb: New file.
52022         * modules/unistr/u16-uctomb: New file.
52023         * modules/unistr/u32-uctomb: New file.
52024         * lib/unistr/u8-uctomb.c: New file.
52025         * lib/unistr/u16-uctomb.c: New file.
52026         * lib/unistr/u32-uctomb.c: New file.
52027
52028         * MODULES.html.sh (Unicode string functions): Add the new modules.
52029
52030 2007-01-08  Bruno Haible  <bruno@clisp.org>
52031
52032         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
52033         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
52034         subdirectories.
52035
52036 2007-01-08  Karl Berry  <karl@gnu.org>
52037
52038         * doc/error.texi: mention that main() fns must set program_name
52039         when progname is used.
52040
52041 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
52042
52043         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
52044         WCTYPE_H is empty, for the benefit of builds from non-distclean
52045         directories.  Problem reported by Eric Blake in
52046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
52047
52048 2007-01-08  Bruno Haible  <bruno@clisp.org>
52049
52050         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
52051         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
52052         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
52053         PROVIDE_CANONICALIZE_FILENAME_MODE.
52054         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
52055
52056 2007-01-08  Bruno Haible  <bruno@clisp.org>
52057
52058         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
52059         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
52060         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
52061         * lib/fts.c: Likewise.
52062         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
52063
52064 2006-12-25  Bruno Haible  <bruno@clisp.org>
52065
52066         * modules/utf8-ucs4-safe: New file.
52067         * lib/utf8-ucs4-safe.h: New file.
52068         * lib/unistr/utf8-ucs4-safe.c: New file.
52069
52070         * modules/utf16-ucs4-safe: New file.
52071         * lib/utf16-ucs4-safe.h: New file.
52072         * lib/unistr/utf16-ucs4-safe.c: New file.
52073
52074         * MODULES.html.sh (Unicode string functions): Add the new modules.
52075
52076 2007-01-08  Bruno Haible  <bruno@clisp.org>
52077
52078         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
52079         (Depends-on): Add unitypes.
52080         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52081         (u8_mbtouc_aux): Move out to separate file.
52082         (u8_mbtouc): Use ucs4_t, uint8_t types.
52083         * lib/unistr/utf8-ucs4.c: New file.
52084
52085         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
52086         (Depends-on): Add unitypes.
52087         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
52088         (u16_mbtouc_aux): Move out to separate file.
52089         (u16_mbtouc): Use ucs4_t, uint16_t types.
52090         * lib/unistr/utf16-ucs4.c: New file.
52091
52092         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
52093         (Depends-on): Add unitypes.
52094         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
52095         (u8_uctomb_aux): Move out to separate file.
52096         (u8_uctomb): Use ucs4_t, uint8_t types.
52097         * lib/unistr/ucs4-utf8.c: New file.
52098
52099         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
52100         (Depends-on): Add unitypes.
52101         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
52102         (u16_uctomb_aux): Move out to separate file.
52103         (u16_uctomb): Use ucs4_t, uint16_t types.
52104         * lib/unistr/ucs4-utf16.c: New file.
52105
52106 2006-12-25  Bruno Haible  <bruno@clisp.org>
52107
52108         * modules/unitypes: New file.
52109         * lib/unitypes.h: New file.
52110         * MODULES.html.sh (func_all_modules): New section "Unicode string
52111         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
52112         this section. Add unitypes.
52113
52114 2007-01-08  Bruno Haible  <bruno@clisp.org>
52115
52116         Avoid variable names that conflict with those from libtool.
52117         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
52118         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
52119         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
52120         library_names_spec to acl_library_names_spec, hardcode_* to
52121         acl_hardcode_*.
52122         Reported by Ralf Wildenhues.
52123
52124 2007-01-08  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
52127         definition.
52128         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
52129         definition.
52130         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
52131         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
52132         definition.
52133         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
52134         definition.
52135         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
52136         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
52137         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
52138         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
52139         definition.
52140         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
52141         definition.
52142         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
52143         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
52144         GC_USE_<algorithm>.
52145         * lib/gc-libgcrypt.c: Likewise.
52146         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
52147         * modules/gc-arctwo (configure.ac): Likewise.
52148         * modules/gc-des (configure.ac): Likewise.
52149         * modules/gc-hmac-md5 (configure.ac): Likewise.
52150         * modules/gc-hmac-sha1 (configure.ac): Likewise.
52151         * modules/gc-md2 (configure.ac): Likewise.
52152         * modules/gc-md4 (configure.ac): Likewise.
52153         * modules/gc-md5 (configure.ac): Likewise.
52154         * modules/gc-random (configure.ac): Likewise.
52155         * modules/gc-rijndael (configure.ac): Likewise.
52156         * modules/gc-sha1 (configure.ac): Likewise.
52157
52158 2007-01-08  Bruno Haible  <bruno@clisp.org>
52159
52160         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
52161         macro definition.
52162         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
52163         definition.
52164         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
52165         definition.
52166         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
52167         * modules/fcntl-safer (configure.ac): Likewise.
52168         * modules/fopen-safer (configure.ac): Likewise.
52169         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
52170         GNULIB_FWRITEERROR macro definition.
52171
52172 2007-01-08  Bruno Haible  <bruno@clisp.org>
52173
52174         * m4/gnulib-common.m4: New file.
52175         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
52176         (func_get_filelist): Add m4/gnulib-common.m4.
52177
52178 2007-01-08  Bruno Haible  <bruno@clisp.org>
52179
52180         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
52181         command.
52182
52183 2007-01-08  Jim Meyering  <jim@meyering.net>
52184
52185         Use a more robust test for a "can't happen" condition.
52186         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
52187         narrowed the st_size value.  Presuming the "can't happen" condition
52188         is true, that narrowing could conceivably convert an invalid st_size
52189         value into a valid one.  Instead, use a change based on Matthew
52190         Woehlke's original patch.
52191
52192         Slight readability improvement: use an assert-like macro
52193         in place of literal "abort ()" uses.
52194         * lib/fts.c (fts_assert): Define.
52195         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
52196         Use this macro instead of a bare 'abort'.
52197
52198 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
52199
52200         Don't worry about using IRIX 5.3's wctype.h broken definitions;
52201         simply work around them.
52202         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
52203         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
52204         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
52205         declaring.
52206         Don't bother to define as macros, since the standard doesn't require it.
52207         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
52208         longer worry about IRIX 5.3.
52209         (HAVE_WCTYPE_CTMP_BUG): Remove.
52210
52211 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
52214         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
52215         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52216         Problems reported by Georg Schwarz for IRIX 5.3.
52217
52218         * gnulib-tool (autoconf_minversion): Take the maximum version number
52219         found, not the minimum.  Problem reported by James Youngman.
52220
52221 2007-01-03  Karl Berry  <karl@gnu.org>
52222
52223         * doc/error.texi: new file, explaining interaction with progname.
52224         * doc/gnulib.texi: include it.  Update copyright.
52225
52226 2007-01-03  Simon Josefsson  <simon@josefsson.org>
52227
52228         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
52229         AC_CANONICAL_HOST, to improve autobuild outputs.
52230
52231 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
52232             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52233
52234         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
52235         sockets, server sockets, and other file descriptors.  Count errors
52236         to compute the return value.  Reorder the code a bit to be easier
52237         to follow.  Don't set event bits that were not requested (except
52238         POLLERR and POLLHUP).
52239
52240 2007-01-01  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
52243
52244 2007-01-03  Jim Meyering  <jim@meyering.net>
52245
52246         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
52247
52248 2007-01-02  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/settime (Include): Require timespec.h.
52251         * modules/nanosleep (Include): Likewise.
52252
52253 2007-01-01  Bruno Haible  <bruno@clisp.org>
52254
52255         * gnulib-tool (func_emit_copyright_notice): Bump year.
52256         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
52257
52258 2007-01-01  Bruno Haible  <bruno@clisp.org>
52259
52260         Improve support for OpenBSD.
52261         * build-aux/config.rpath (libname_spec): Export.
52262         (library_names_spec): New variable. Export.
52263         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
52264         library_names_spec from the config.rpath output. Locate shared library
52265         through the name pattern in library_names_spec.
52266
52267 2007-01-01  Eric Blake  <ebb9@byu.net>
52268
52269         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
52270
52271 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
52272
52273         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
52274         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
52275         assume the C locale, and avoid an "eval" that could cause trouble.
52276         Problem with SORT reported by Bob Proulx.
52277
52278         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
52279         Define.  Trivial patch from Henning Nielsen Lund, originally
52280         sent to bug-grep@gnu.org today.
52281
52282 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
52285         struct stat.  Problem reported by Henning Nielsen Lund.
52286         * lib/acl.c: Include acl.h first, to check interface.  Don't
52287         bother to include sys/types.h and sys/stat.h again.
52288
52289 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52290
52291         Import the following change from libc; problem reported by
52292         Sven Verdoolaege.
52293
52294         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
52295
52296         [BZ #1373]
52297         * lib/argp.h: Remove __NTH for __argp_usage inline function.
52298
52299 2006-12-28  Jim Meyering  <jim@meyering.net>
52300
52301         * build-aux/announce-gen: Do not assume that the package
52302         builds any of tar.gz, tar.bz2, and .xdelta files.
52303         Suggestion from Simon Josefsson.
52304
52305 2006-12-28  Simon Josefsson  <simon@josefsson.org>
52306
52307         * modules/announce-gen: New file.
52308
52309 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
52310
52311         * lib/mbchar.h: Just include <wctype.h>; the wctype module
52312         handles its gotchas now.
52313         * lib/mbswidth.c: Likewise.
52314         * lib/wcwidth.h: Likewise.
52315         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
52316         and iswcntrl; the wctype module does this stuff now.
52317         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52319         * modules/mbchar (Depends-on): Add wctype.
52320         * modules/mbswidth (Depends-on): Likewise.
52321         * modules/wcwidth (Depends-on): Likewise.
52322
52323 2006-12-27  Eric Blake  <ebb9@byu.net>
52324
52325         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
52326         module uses more than what <wctype.h> is required to provide.
52327
52328 2006-12-26  Eric Blake  <ebb9@byu.net>
52329
52330         * gnulib-tool (sed_extract_prog): Avoid space-tab.
52331
52332 2006-12-26  Eric Blake  <ebb9@byu.net>
52333
52334         * modules/absolute-header: New module.
52335         * modules/fcntl (Depends-on): Depend on it.
52336         * modules/inttypes (Depends-on): Likewise.
52337         * modules/stdint (Depends-on): Likewise.
52338         * modules/sys_stat (Depends-on): Likewise.
52339         * modules/wctype (Depends-on): Likewise.
52340         * MODULES.html.sh (Support for building libraries and
52341         executables): Document it.
52342
52343 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52344
52345         * gnulib-tool (SED): Remove, undoing previous change.
52346         The problem was that it broke coreutils on Solaris, because
52347         "sed --posix" leaked into a makefile.
52348         (sed): New alias, if 'alias' and GNU sed.
52349
52350 2006-12-24  Jim Meyering  <jim@meyering.net>
52351
52352         Work around an fchownat bug in glibc-2.4:
52353         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
52354         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
52355         in spite of the -P option.
52356         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
52357         New macros.
52358         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
52359         * modules/openat (Files): Add lib/fchownat.c.
52360         * lib/openat.c (fchownat): Don't define here.  Move to...
52361         * lib/fchownat.c: ...this new file.
52362
52363 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52364
52365         Fix bug reported by Bruno Haible in
52366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
52367         where quotearg.c didn't compile on Mac OS X 10.2 because it
52368         lacks <wchar.h> and wint_t.
52369         * lib/wctype_.h (__wctype_wint_t): New type.
52370         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
52371         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
52372         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
52373         Arg is now of type __wctype_wint_t, not wint_t.
52374         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
52375         substitute HAVE_WINT_T.
52376         * modules/wctype (Files): Add m4/wint_t.m4.
52377         (wctype.h): Substitute HAVE_WINT_T.
52378
52379 2006-12-23  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
52382
52383 2006-12-23  Bruno Haible  <bruno@clisp.org>
52384
52385         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
52386         S_ISLNK.
52387         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
52388         mingw.
52389
52390 2006-12-22  Bruno Haible  <bruno@clisp.org>
52391
52392         * lib/copy-file.c: Include acl.h.
52393         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
52394         Close the file descriptors only after being done with copy_acl.
52395         * modules/copy-file (Depends-on): Add acl.
52396
52397 2006-12-22  Bruno Haible  <bruno@clisp.org>
52398
52399         * gnulib-tool (SED): New variable.
52400         Use $SED instead of sed everywhere.
52401
52402 2006-12-22  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/no-c++: New file.
52405         * m4/no-c++.m4: New file.
52406         * MODULES.html.sh (Support for building libraries and executables):
52407         Add no-c++.
52408
52409 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52412         Include <limits.h>, and use its INT_MAX to rewrite the
52413         j loop so that it does not overflow 'int'.  Problem reported by
52414         Ralf Wildenhues in
52415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
52416         Play it safe by shifting left by 1 rather than multiplying by 2,
52417         as GCC is less likely to optimize this away when the value
52418         is signed (when it assumes overflow leads to undefined behavior).
52419         Also, don't assume time_t uses two's complement.
52420
52421 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * MODULES.html.sh: New module wctype.
52424         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
52425         * lib/fnmatch.c: Don't bother to include <wchar.h> before
52426         <wctype.h>, since the new wctype module should fix this.
52427         * lib/quotearg.c: Include <wctype.h> unconditionally, since
52428         the wctype module should arrange for it.
52429         * lib/regex_internal.h: Likewise.
52430         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
52431         since the wctype module should handle this now.
52432         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
52433         * modules/fnmatch (Depends-on): Add wctype.
52434         * modules/quotearg (Depends-on): Likewise.
52435         * modules/regex (Depends-on): Likewise.
52436
52437 2006-12-19  Bruno Haible  <bruno@clisp.org>
52438
52439         * lib/strdup.h [C++]: Wrap definitions in extern "C".
52440         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
52441
52442 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52443
52444         * modules/savewd (Depends-on): Fix dependency on fcntl.
52445
52446 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
52449         conforms to C99, rather than relying on the user's environment
52450         setting of STDINT_H.
52451
52452 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52453         and Eric Blake  <ebb9@byu.net>
52454
52455         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
52456         This is more consistent with the other defines here.
52457         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
52458         Port to z/OS.  Problem reported by Paul Gilmartin.
52459         Change local vars to use gl_ prefix rather than ac_.
52460         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
52461         with other defines.
52462         * modules/double-slash-root: New module.
52463         * modules/dirname (Files): Remove m4/double-slash-root.m4.
52464         (Depends-on): Add double-slash-root.
52465         * MODULES.html.sh (File system functions): Mention new module.
52466
52467 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
52468
52469         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
52470         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
52471         This is for the benefit of gzip, which doesn't do i18n.
52472
52473 2006-12-12  Jim Meyering  <jim@meyering.net>
52474
52475         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
52476         Reported by Andreas Schwab <schwab@suse.de>.
52477
52478 2006-12-12  Bruno Haible  <bruno@clisp.org>
52479
52480         Merge these changes.
52481         2006-09-05  Bruno Haible  <bruno@clisp.org>
52482         * lib/iconvme.c (iconv_string): No need to save and restore errno when
52483         iconv_alloc succeeded.
52484         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
52485         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
52486         test for " && dest " at the end - dest is always != NULL there. Call
52487         iconv with 4xNULL arguments initially, to reset the state. Call iconv
52488         with 2xNULL arguments, also to flush the state storage. Handle the
52489         IRIX iconv behaviour. Realloc the final result, to throw away unused
52490         memory.
52491
52492 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
52493
52494         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
52495         and fchmodat unconditionally, since glibc 2.4 has them.
52496         Problem reported by Arkadiusz Miskiewicz.
52497
52498 2006-12-10  Bruno Haible  <bruno@clisp.org>
52499
52500         * gnulib-tool (func_import): Show the include files only for those
52501         modules that are copied and specified.
52502         Reported by Karl Berry.
52503
52504 2006-12-08  Jim Meyering  <jim@meyering.net>
52505
52506         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
52507         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
52508
52509         * build-aux/announce-gen: Add two new options, both optional:
52510         --bootstrap-tools=TOOL_LIST
52511               a comma-separated list of tools, e.g.,
52512               autoconf,automake,bison,gnulib
52513         --gnulib-snapshot-date=DATE
52514               if gnulib is in the bootstrap tool list,
52515               then report this as the snapshot date.
52516               If not specified, use the current date/time.
52517               If you specify a date here, be sure it's UTC.
52518
52519 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52520
52521         * tests/test-argp-2.sh: Fix test to match actual output.
52522         (func_compare): Fix sed script to be portable.
52523
52524 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
52525
52526         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
52527         workaround for this case.  It is not autoconfigured now; offhand
52528         it's hard to see how to autoconfigure it.
52529
52530 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52531
52532         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
52533         a directory that is about to be chowned.  Such a directory's
52534         initial file permissions should permit the owner only and this
52535         should not be changed until after the chown, since the group and
52536         other bits would be incorrect if they granted permission before
52537         the chown.
52538
52539         Fix porting problem for iswctype reported by Georg Schwarz in:
52540         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
52541         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
52542         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
52543         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
52544         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52545
52546 2006-12-03  Jim Meyering  <jim@meyering.net>
52547
52548         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
52549         p->fts_statp may not yet be defined.
52550         (fts_read): Instead, set it in the caller, once p->fts_statp is
52551         sure to be defined, and corresponds to a top-level directory.
52552         This bug made du -x fail.  Here's the coreutils test case:
52553         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
52554         Reported by Mike Frysinger.
52555
52556 2006-12-01  Jim Meyering  <jim@meyering.net>
52557
52558         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
52559         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
52560         Reported by Simon Josefsson.
52561
52562 2006-11-30  Jim Meyering  <jim@meyering.net>
52563
52564         * m4/warning.m4: Use the all-permissive copyright notice
52565         recommended by RMS (rather than LGPL).
52566         * m4/vararrays.m4: Likewise.
52567         * m4/flexmember.m4: Likewise.
52568
52569 2006-11-29  Bruno Haible  <bruno@clisp.org>
52570
52571         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52572         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
52573         using +=.
52574         Reported by Simon Josefsson <simon@josefsson.org>.
52575
52576 2006-11-28  James Youngman <jay@gnu.org>
52577
52578         * README: Advise users that they might find the bug-gnulib@gnu.org
52579         and autotools-announce@gnu.org mailing lists useful.
52580
52581 2006-11-28  Bruno Haible  <bruno@clisp.org>
52582
52583         * m4/ptrdiff_max.m4: Remove file.
52584
52585 2006-11-21  Bruno Haible  <bruno@clisp.org>
52586
52587         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
52588         _AC_COMPUTE_INT.
52589         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52590         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
52591         _AC_COMPUTE_INT.
52592         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52593         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
52594         _AC_COMPUTE_INT.
52595         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52596
52597 2006-11-28  Jim Meyering  <jim@meyering.net>
52598
52599         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
52600         warning from "gcc -Wshadow" about shadowing the builtin.
52601
52602 2006-11-27  Bruno Haible  <bruno@clisp.org>
52603
52604         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
52605         _AC_COMPUTE_INT.
52606         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
52607
52608 2006-11-27  Bruno Haible  <bruno@clisp.org>
52609             Paul Eggert  <eggert@cs.ucla.edu>
52610
52611         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
52612
52613 2006-11-26  Bruno Haible  <bruno@clisp.org>
52614
52615         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52616         noinst_LTLIBRARIES.
52617
52618 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52619             Bruno Haible  <bruno@clisp.org>
52620
52621         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
52622         if compiling with "gcc -ansi".
52623
52624 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52625
52626         Fix some incompatibilities with gcc -ansi -pedantic.
52627         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
52628         if compiling pedantically with GCC, unless it's C99 or later.
52629         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
52630         it mishandles gcc -ansi -pedantic as well.
52631         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
52632         if gcc -pedantic.
52633         * lib/regexec.c (check_node_accept_bytes): Don't use auto
52634         initializers for struct if -pedantic, unless it's C99 or later.
52635
52636 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
52637
52638         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
52639         Don't close an fd more than once. Identical atimes indicate
52640         success, not failure.
52641
52642 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
52643
52644         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
52645
52646 2006-11-23  Jim Meyering  <jim@meyering.net>
52647
52648         * build-aux/announce-gen: New file.  From coreutils.
52649
52650 2006-11-22  Jim Meyering  <jim@meyering.net>
52651
52652         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
52653         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
52654         (fts_read): Use a temporary to narrow the overused st_size member
52655         before using it in a switch statement.  Reported by Matthew Woehlke.
52656
52657         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
52658         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
52659
52660 2006-11-20  Bruno Haible  <bruno@clisp.org>
52661
52662         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
52663         changequote instead of pairs of brackets.
52664         Reported by Andreas Schwab <schwab@suse.de>.
52665
52666 2006-11-21  Jim Meyering  <jim@meyering.net>
52667
52668         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
52669         so as to remain compatible with older compilers.
52670         Patch from Michael Deutschmann.
52671
52672 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         * MODULES.html.sh (File system functions): Add openat.
52675
52676         * lib/openat.h (rpl_fstatat): New macro, if
52677         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
52678         (fstatat): Define to rpl_fstatat under the same conditions,
52679         unless COMPILING_FSTATAT.
52680         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
52681         seems to have the bug.
52682         * lib/fstatat.c: New file.
52683         * modules/openat (Files): Add it.
52684
52685 2006-11-20  Bruno Haible  <bruno@clisp.org>
52686
52687         * Makefile: New file.
52688
52689 2006-11-20  Jim Meyering  <jim@meyering.net>
52690
52691         The beginnings of syntax-related checks for gnulib.
52692         * lib/Makefile: New file.
52693         * lib/t-idcache: New script.  Ensure that the two halves of
52694         idcache.c stay in sync.
52695
52696         * lib/idcache.c: Adjust comments in user- and group- portions to
52697         be more accurate, and to be consistent with one another.
52698
52699 2006-11-20  Jim Meyering  <jim@meyering.net>
52700
52701         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
52702         continue using the flexible array member (thus, this module performs
52703         half as many malloc calls), with the addition that...
52704         (getgroup, getuser): Consistently record a non-match via an empty
52705         "name" string, and map an empty string match to a NULL return value.
52706         * modules/idcache (Depends-on): Re-add flexmember.
52707
52708         * lib/idcache.c (getuser): Remove all uses of the register keyword.
52709         (getuidbyname, getgroup, getgidbyname): Likewise.
52710
52711         Use cleaner syntax: NULL rather than 0.
52712         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
52713
52714 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52715
52716         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
52717         It mishandled the case where the group was missing.
52718         Problem reported by Greg Schafer.
52719         * modules/idcache: Likewise.
52720
52721 2006-11-18  Jim Meyering  <jim@meyering.net>
52722
52723         * check-module (%exempt_header): Add exception for some
52724         conditionally-included headers.
52725
52726         * modules/i-ring (Depends-on): Add verify.
52727         (License): Change to LGPL.
52728
52729 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52730
52731         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
52732         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
52733         and inttostr.h.  Use snprintf rather than uinttostr, so that
52734         LGPLed code doesn't depend on GPLed.
52735
52736 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52737
52738         * modules/inline (License): Change from GPL to LGPL.
52739
52740 2006-11-17  Jim Meyering  <jim@meyering.net>
52741
52742         * modules/d-type (License): Switch to LGPL.
52743
52744 2006-11-15  Bruno Haible  <bruno@clisp.org>
52745
52746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
52747
52748 2006-11-15  Eric Blake  <ebb9@byu.net>
52749
52750         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
52751         the module dependency.
52752
52753 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52754             Bruno Haible  <bruno@clisp.org>
52755
52756         * gnulib-tool (func_create_testdir): Add license consistency check.
52757
52758 2006-11-15  Eric Blake  <ebb9@byu.net>
52759
52760         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
52761         random "(cached)" in configure output.
52762
52763 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52764
52765         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
52766         test for conforming inttypes.h is both announced and cached.
52767
52768         * MODULES.html.sh (seen_modules, seen_files): New variables.
52769         (func_module): Rewrite to use a few less gnulib-tool and sed
52770         invocations.  Avoid a couple of quadratic algorithms for ...
52771         (missed_modules, missed_files): ... these, with ...
52772         (func_append, func_tmpdir): ... these new functions, from
52773         gnulib-tool.  Analogously, install traps for cleanup.
52774
52775         * tests/test-gc.c (main): Remove unused variables.
52776         * tests/test-read-file.c: Include stdlib.h, for 'free'.
52777
52778 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
52779
52780         * modules/inttostr (License): Change to LGPL.
52781
52782 2006-11-14  Eric Blake  <ebb9@byu.net>
52783
52784         * modules/tempname (License): Change to LGPL.
52785
52786 2006-11-14  Eric Blake  <ebb9@byu.net>
52787
52788         * doc/functions.texi (Function Portability): *printf functions on
52789         Cygwin now understand all POSIX size specifiers.
52790
52791 2006-11-14  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/c-ctype (License): Change to LGPL.
52794
52795 2006-11-12  Bruno Haible  <bruno@clisp.org>
52796
52797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52798         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
52799         for GNOME libraries, for which the include files are installed in
52800         subdirectories of $prefix/include.
52801
52802 2006-11-12  Bruno Haible  <bruno@clisp.org>
52803
52804         * m4/lib-link.m4: Require at least autoconf-2.54.
52805         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
52806         name to underscores for the --with option.
52807
52808 2006-11-13  Bruno Haible  <bruno@clisp.org>
52809
52810         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
52811         the tests directory.
52812         Reported by Ralf Wildenhues.
52813
52814 2006-11-13  Bruno Haible  <bruno@clisp.org>
52815
52816         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
52817         (func_emit_initmacro_end): Undo the override here.
52818         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
52819         Works around the famous automake error in coreutils.
52820
52821 2006-11-13  Eric Blake  <ebb9@byu.net>
52822
52823         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
52824         element, not its node.
52825
52826 2006-11-12  Bruno Haible  <bruno@clisp.org>
52827
52828         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
52829         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
52830
52831 2006-11-12  Bruno Haible  <bruno@clisp.org>
52832
52833         * gnulib-tool: New option --local-symlink.
52834         (func_usage): Document it.
52835         (lsymbolic): New variable.
52836         (func_import, func_create_testdir): If --symlink was not specified,
52837         test whether --local-symlink was specified and the file comes from
52838         the local_gnulib_dir.
52839
52840 2006-11-12  Bruno Haible  <bruno@clisp.org>
52841
52842         * gnulib-tool (func_ln): New function.
52843         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
52844
52845 2006-11-12  Bruno Haible  <bruno@clisp.org>
52846
52847         Finish support for source files in subdirectories.
52848         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
52849         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
52850         AUTOMAKE_OPTIONS.
52851         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
52852
52853 2006-11-12  Bruno Haible  <bruno@clisp.org>
52854
52855         * gnulib-tool (func_get_automake_snippet): Synthesize also an
52856         EXTRA_lib_SOURCES augmentation.
52857         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
52858
52859 2006-11-12  Jim Meyering  <jim@meyering.net>
52860
52861         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
52862         file descriptors.  This also averts a failure on systems with
52863         native openat support when a traversed directory lacks "x" access.
52864         * lib/fts_.h: Include "i-ring.h"
52865         (struct FTS) [fts_fd_ring]: New member.
52866         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
52867         (FCHDIR): Add parentheses.
52868         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
52869         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
52870         When descending, rather than simply closing the previous
52871         fts_cwd_fd value, push that file descriptor onto the ring.
52872         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
52873         (fts_open): Initialize the new fd_ring member.
52874         (fts_close): Clear the ring.
52875         (fts_safe_changedir): When possible, use our new fd_ring to skip
52876         the diropen and fstat and dev/ino comparison that would normally
52877         accompany a virtual `chdir ("..")'.
52878
52879         * modules/fts (Depends-on): Add i-ring.
52880         * modules/i-ring: New module.
52881         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
52882         * m4/i-ring.m4: New file.
52883
52884 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52885
52886         * gnulib-tool (func_create_testdir): Fix replacement of
52887         `build-aux' in configure.ac.  Run autotools in gltests
52888         subdirectory.
52889         (func_create_testdir, func_create_megatestdir, test): There is
52890         no need for '--force' in most autotool invocations in a new
52891         tree.  Actually fail the whole test if any of the tools, or the
52892         configure or make stages fail.
52893
52894         Sync from Automake.
52895         * build-aux/gnupload: Revert last change.  Add pointer to upload
52896         instructions of the GNU Maintenance Instructions.
52897         Suggestion by Karl Berry.
52898
52899 2006-11-10  Jim Meyering  <jim@meyering.net>
52900
52901         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
52902
52903 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52904
52905         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
52906         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
52907         (bind_textdomain_codeset) [! ENABLE_NLS]:
52908         Evaluate all the arguments.  That way, callers get compatible behavior
52909         if the arguments have side effects.  Also, it avoids some GCC
52910         diagnostics in some cases; Joel E. Denny reported problems when Bison
52911         was configured with --enable-gcc-warnigs.
52912
52913 2006-11-10  Jim Meyering  <jim@meyering.net>
52914
52915         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
52916         relevant options in CFLAGS (like -O, -fno-inline) are taken into
52917         account.
52918
52919 2006-11-10  Jim Meyering  <jim@meyering.net>
52920
52921         * modules/inline: New file/module.
52922         * modules/xalloc (Files): Remove m4/inline.m4.
52923         (Depends-on): Add inline, instead.
52924         * modules/oset: Likewise.
52925         * modules/list: Likewise.
52926
52927 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
52930         Problem reported by Matthew Woehlke.
52931
52932 2006-11-09  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/tempname.c (gen_tempname): Remove variant that invokes
52935         __gen_tempname.
52936         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
52937         __gen_tempname.
52938
52939 2006-11-08  Bruno Haible  <bruno@clisp.org>
52940
52941         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
52942         to 'yes' instead of 'cross-compiling'.
52943
52944 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         * lib/quotearg.h (quotearg_free): New decl.
52947         * lib/quotearg.c (quotearg_free): New function.
52948         (slot0, nslots, slotvec0, slotvec):
52949         Now file-scope so that quotearg_free can get at them.
52950
52951 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52952
52953         Sync from Automake.
52954         * build-aux/gnupload: Add missing 'gnu' to example URL.
52955         Report by Karl Berry.
52956
52957 2006-11-08  Bruno Haible  <bruno@clisp.org>
52958
52959         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
52960         Suggested by Paul Eggert.
52961
52962 2006-11-08  Jim Meyering  <jim@meyering.net>
52963
52964         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
52965         It's already included if !_LIBC.
52966         (fts_safe_changedir): Add a comment.
52967
52968 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
52971         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
52972         Matthew Woehlke.
52973
52974         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
52975         definitions up, to avoid colliding with change below.
52976         (static_inline) [HAVE_INLINE]: New macro.
52977         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
52978         Provide extern decls when !HAVE_INLINE.  Do not define unless
52979         static_inline is defined, either by us or by xmalloc.c.  Use
52980         static_inline rather than static inline.
52981         (XCALLOC): Optimize sizeof(T) = 1 case.
52982         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52983
52984 2006-11-07  Bruno Haible  <bruno@clisp.org>
52985
52986         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
52987         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
52988         AC_C_INLINE.
52989         * modules/xalloc (Files): Add m4/inline.m4.
52990
52991 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52992
52993         * README: Fix typo.
52994         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
52995         (Miscellanous Notes): ...from this.
52996
52997 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52998
52999         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
53000         Mention that offsetof should be used instead of sizeof.
53001         From Bruno Haible.
53002
53003 2006-11-07  Bruno Haible  <bruno@clisp.org>
53004
53005         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
53006
53007 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53010         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
53011         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53012         (gl_tree_add_before, gl_tree_add_after):
53013         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
53014         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
53015         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53016         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
53017         (gl_linked_add_after, gl_linked_add_at): Likewise.
53018         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
53019         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
53020         (gl_tree_add_before, gl_tree_add_after): Likewise.
53021         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
53022         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
53023         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
53024
53025 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53026
53027         * lib/gl_oset.h: Use C comment style, not C++ comment style.
53028
53029 2006-11-06  Bruno Haible  <bruno@clisp.org>
53030
53031         * m4/inline.m4: New file.
53032         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
53033         * modules/list (Files): Add m4/inline.m4.
53034         * modules/oset (Files): Likewise.
53035
53036 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
53037
53038         * lib/idcache.c: Include <stddef.h>, for offsetof.
53039         (struct userid.name): Change from char * to a flexible array member.
53040         All uses changed.
53041         * modules/idcache (Depends-on): Add flexmember.
53042
53043         * MODULES.html.sh (Core language properties): New module flexmember.
53044         * modules/flexmember, m4/flexmember.m4: New files.
53045
53046         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
53047         inline functions that are identical with the old xnmalloc_inline,
53048         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
53049         that we can avoid some unnecessary integer multiplications and
53050         divisions in the common case where the element size is known at
53051         compile time.
53052         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
53053         needed.
53054         (xnboundedmalloc): Remove.
53055         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
53056         arguments, for consistency with rest of this header.
53057         (xcharalloc): Rewrite using XNMALLOC.
53058         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
53059         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
53060         versions have been moved to lib/xalloc.h and renamed to be the
53061         non-*_inline versions.
53062         (xmalloc, xrealloc): Implement without reference to the xnmalloc
53063         and xnrealloc functions, since those functions are now inline and
53064         now call us.
53065         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
53066         renaming described above.
53067         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
53068         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
53069         captures the dependency in AC_C_INLINE.
53070
53071         New module canonicalize-lgpl, proposed by Charles Wilson in
53072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
53073         with a few small changes afterwards.
53074         * MODULES.html.sh (File system functions): New module
53075         canonicalize-lgpl.
53076         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
53077         and canonicalize_file_name.
53078         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
53079         * modules/canonicalize-lgpl: New files.
53080
53081 2006-11-05  Bruno Haible  <bruno@clisp.org>
53082
53083         * gnulib-tool (func_import, func_create_testdir): Create directories
53084         also for files in subdirectories of lib/.
53085
53086 2006-11-05  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
53089         ANSI C compliant.
53090
53091 2006-11-03  Bruno Haible  <bruno@clisp.org>
53092
53093         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
53094         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
53095         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
53096         (xnboundedmalloc): New inline function.
53097         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
53098         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
53099         xmalloc.
53100         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
53101         xmalloc.
53102         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
53103         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
53104         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
53105         xmalloc.
53106         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53107         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
53108         xmalloc.
53109         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
53110         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53111         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
53112         xmalloc.
53113         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
53114         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
53115         gl_tree_add_after): Use XMALLOC instead of xmalloc.
53116         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
53117         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
53118         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
53119         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
53120
53121 2006-11-03  Bruno Haible  <bruno@clisp.org>
53122
53123         * lib/c-ctype.h [C++]: Define functions without name mangling.
53124         * lib/fwriteerror.h [C++]: Likewise.
53125         * lib/gcd.h [C++]: Likewise.
53126         * lib/linebreak.h [C++]: Likewise.
53127
53128 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53129
53130         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
53131         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
53132         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
53133         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53134         Check for functions and headers just once.
53135         Check for declaration of canonicalize_file_name.
53136         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
53137
53138 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53139
53140         * gnulib-tool (func_import): Fix typo in actioncmd.
53141
53142 2006-11-02  Bruno Haible  <bruno@clisp.org>
53143
53144         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
53145         newline sequence in the Makefile.am snippet as a space, like "make"
53146         does.
53147         Reported by Roger Persson <perrog@gmail.com>.
53148
53149 2006-11-01  Bruno Haible  <bruno@clisp.org>
53150
53151         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
53152         already declared in <string.h>.
53153         * lib/strcase.h (strncasecmp): Don't declare it if yes.
53154
53155 2006-11-01  Bruno Haible  <bruno@clisp.org>
53156
53157         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
53158         * lib/strcase.h: Include <string.h>.
53159         (strcasecmp): Define to rpl_strcasecmp here.
53160
53161 2006-11-01  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
53164
53165 2006-11-01  Eric Blake  <ebb9@byu.net>
53166
53167         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
53168
53169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
53170
53171 2006-10-29  Bruno Haible  <bruno@clisp.org>
53172
53173         Make it compile in C++ mode.
53174         * lib/full-write.c (full_rw): Add a cast.
53175
53176 2006-11-01  Bruno Haible  <bruno@clisp.org>
53177
53178         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
53179         be POSIX compliant.
53180         Reported by Roger Persson <perrog@gmail.com>.
53181
53182 2006-11-01  Eric Blake  <ebb9@byu.net>
53183
53184         * lib/getopt_.h: Fix comments.
53185
53186 2006-10-31  Eric Blake  <ebb9@byu.net>
53187
53188         * modules/tmpdir (Depends-on): Add sys_stat.
53189         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
53190         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
53191         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
53192         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
53193         tempname.
53194
53195 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
53196
53197         Avoid some C++ diagnostics reported by Bruno Haible.
53198         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
53199         xmalloc.
53200         (quotearg_alloc): Use xcharalloc rather than xmalloc.
53201         (struct slotvec): Move to top level.
53202         (quotearg_n_options): Rewrite to avoid xmalloc.
53203         * lib/xalloc.h (xcharalloc): New function.
53204         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
53205         [defined __cplusplus]: Add function template that provides result
53206         type propagation.  This part of the change is from Bruno Haible.
53207
53208 2006-10-29  Bruno Haible  <bruno@clisp.org>
53209
53210         Make it compile in C++ mode.
53211         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
53212         * lib/strnlen1.c (strnlen1): Cast memchr result.
53213         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
53214         * lib/clean-temp.c (string_equals, string_hash): Add casts.
53215         (create_temp_dir): Rename local variable 'template'.
53216         (compile_csharp_using_sscli): Add cast.
53217         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
53218         * lib/findprog.c (find_in_path): Likewise.
53219         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
53220         * lib/wait-process.c (register_slave_subprocess): Likewise.
53221
53222 2006-10-22  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/tsearch: New file.
53225         * lib/tsearch.h: New file.
53226         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
53227         * m4/tsearch.m4: New file.
53228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
53229
53230 2006-10-29  Eric Blake  <ebb9@byu.net>
53231
53232         * lib/arcfour.c: Assume config.h.
53233         * lib/arctwo.c: Likewise.
53234         * lib/base64.c: Likewise.
53235         * lib/check-version.c: Likewise.
53236         * lib/crc.c: Likewise.
53237         * lib/des.c: Likewise.
53238         * lib/gc-gnulib.c: Likewise.
53239         * lib/gc-libgcrypt.c: Likewise.
53240         * lib/gc-pbkdf2-sha1.c: Likewise.
53241         * lib/getaddrinfo.c: Likewise.
53242         * lib/getdelim.c: Likewise.
53243         * lib/getline.c: Likewise.
53244         * lib/hmac-md5.c: Likewise.
53245         * lib/hmac-sha1.c: Likewise.
53246         * lib/iconvme.c: Likewise.
53247         * lib/md2.c: Likewise.
53248         * lib/md4.c: Likewise.
53249         * lib/memxor.c: Likewise.
53250         * lib/read-file.c: Likewise.
53251         * lib/readline.c: Likewise.
53252         * lib/rijndael-alg-fst.c: Likewise.
53253         * lib/rijndael-api-fst.c: Likewise.
53254         * lib/xgetdomainname.c: Likewise.
53255
53256 2006-10-28  Eric Blake  <ebb9@byu.net>
53257
53258         * lib/xstrndup.c: Assume config.h.
53259
53260 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
53263         stat-macros.h is now for our own macros, whereas stat_h is for
53264         macros in the <sys/stat.h> name space.
53265         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
53266         (STAT_MACROS_H): Remove.
53267         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
53268         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
53269         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
53270         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
53271         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
53272         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
53273         Move these macros to ...
53274         * lib/stat_.h: here.  Don't include stat-macros.h.
53275         * lib/canonicalize.c: Don't include stat-macros.h.
53276         * lib/chown.c: Likewise.
53277         * lib/euidaccess.c: Likewise.
53278         * lib/file-type.c: Likewise.
53279         * lib/filemode.c: Likewise.
53280         * lib/glob.c: Likewise.
53281         * lib/isapipe.c: Likewise.
53282         * lib/lchown.c: Likewise.
53283         * lib/lstat.c: Likewise.
53284         * lib/mkdir-p.c: Likewise.
53285         * lib/rmdir.c: Likewise.
53286         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
53287         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
53288         unless mkdir isn't declared, to speed up 'configure'.
53289         Always create sys/stat.h, since it's unlikely any real sys/stat.h
53290         would define all the S_* symbols.
53291         * modules/canonicalize (Depends-on):
53292         Depend on sys_stat, not stat-macros.
53293         * modules/chown: Likewise.
53294         * modules/euidaccess: Likewise.
53295         * modules/filemode: Likewise.
53296         * modules/file-type: Likewise.
53297         * modules/glob: Likewise.
53298         * modules/isapipe: Likewise.
53299         * modules/lchown: Likewise.
53300         * modules/lstat: Likewise.
53301         * modules/mkancesdirs: Likewise.
53302         * modules/rmdir: Likewise.
53303         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
53304         * modules/modechange: Likewise.
53305         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
53306         (configure.ac): Remove gl_STAT_MACROS.
53307         * modules/sys_stat (Depends-on): Remove stat-macros.
53308
53309 2006-10-27  Bruno Haible  <bruno@clisp.org>
53310
53311         * m4/signed.m4: Remove file.
53312         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
53313         invocation.
53314         * modules/vasnprintf (Files): Remove m4/signed.m4.
53315
53316 2006-10-27  Bruno Haible  <bruno@clisp.org>
53317
53318         Update to GNU gettext 0.16.
53319         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
53320         m4/inttypes-h.m4, m4/signed.m4.
53321         * m4/gettext.m4: Update to GNU gettext 0.16.
53322         * m4/intl.m4: New file, from GNU gettext.
53323         * m4/intldir.m4: New file, from GNU gettext.
53324         * config/srclist.txt: Update
53325
53326 2006-10-27  Eric Blake  <ebb9@byu.net>
53327
53328         * MODULES.html.sh: Document tempname.
53329         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
53330         dependencies.
53331         (Files): Move lib/tempname.c...
53332         * modules/tempname: ...to this new module.
53333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
53334         (gl_PREREQ_TEMPNAME): Move...
53335         * m4/tempname.m4: ...to this new file.
53336         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
53337         * modules/sys_stat (Depends-on): Add stat-macros.
53338         * lib/stat_.h (includes): Pick up stat macros.
53339         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
53340         if stat macros are broken.
53341         * lib/tempname.c (includes): No need to include "stat-macros.h".
53342         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
53343         (direxists, __path_search) [!_LIBC]: Don't compile these in
53344         gnulib; the tmpdir module covers that.
53345         * lib/tempname.h: New file.
53346
53347 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * COPYING: Explain how gnulib-tool converts licence headers.
53350         Almost all wording by Eric Blake.
53351
53352 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
53353
53354         * lib/mbchar.h (is_basic_table): Make read-only.
53355         * lib/mbchar.c (is_basic_table): Likewise.
53356         Reported by John Darrington.
53357
53358 2006-10-25  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/progname.h (set_program_name): Undefine before defining.
53361
53362 2006-10-25  Bruno Haible  <bruno@clisp.org>
53363
53364         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
53365         false for non-gcc C++ compilers.
53366         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53367
53368 2006-10-24  Bruno Haible  <bruno@clisp.org>
53369
53370         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
53371         iconv implementations like Irix iconv.
53372
53373 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53374
53375         * modules/vararrays: New file.
53376         * m4/vararrays.m4: New file, taken from diffutils.
53377         * MODULES.html.sh: New module vararrays.
53378
53379 2006-10-24  Karl Berry  <karl@gnu.org>
53380
53381         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
53382         Don't call GNU Unix.
53383
53384 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53385
53386         * users.txt: Add Libtool.
53387
53388         Sync from Libtool:
53389
53390         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
53393         to gnulib's policy of including config.h unconditionally.
53394
53395 2006-10-24  Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/wcwidth (Files): Add m4/wint_t.m4.
53398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
53399         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
53400
53401 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53402
53403         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
53404         to pacify GCC with some -W flags enabled.  Problem reported by
53405         Bruno Haible.
53406
53407 2006-10-24  Jim Meyering  <jim@meyering.net>
53408
53409         * MODULES.html.sh: Remove uinttostr.  It's not a module.
53410         Reported by Karl Berry.
53411
53412 2006-10-23  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
53415
53416 2006-10-24  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/gl_list.h: Use C comment style, not C++ comment style.
53419
53420 2006-10-23  Eric Blake  <ebb9@byu.net>
53421
53422         * lib/getaddrinfo.c (includes): Add missing include.
53423
53424 2006-10-23  Bruno Haible  <bruno@clisp.org>
53425             Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         Ability to rename obstack_free.
53428         * lib/obstack.h (__obstack_free): New macro. Declare instead of
53429         obstack_free.
53430         (obstack_free): Invoke the __obstack_free macro.
53431         * lib/obstack.c (obstack_free): Use __obstack_free macro.
53432
53433 2006-10-23  Bruno Haible  <bruno@clisp.org>
53434             Paul Eggert  <eggert@cs.ucla.edu>
53435
53436         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
53437         __argc, __argv from the declaration. (They are defined as macros on
53438         mingw.)
53439
53440 2006-10-22  Bruno Haible  <bruno@clisp.org>
53441
53442         * doc/gnulib-intro.texi: New file.
53443         * doc/gnulib.texi: Include it.
53444
53445 2006-10-21  Bruno Haible  <bruno@clisp.org>
53446
53447         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
53448         "Introduction", "Miscellanous Notes", "Particular Modules".
53449
53450 2006-10-21  Bruno Haible  <bruno@clisp.org>
53451
53452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53453         Change mostlyclean-local rule to avoid sh syntax error from bash
53454         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
53455
53456 2006-10-23  Jim Meyering  <jim@meyering.net>
53457
53458         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
53459         in place of snprintf.
53460
53461         * modules/inttostr (Files): Add lib/uinttostr.c.
53462         * lib/uinttostr.c (inttostr): New file/function.
53463         * lib/inttostr.h (uinttostr): Declare.
53464         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
53465         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53466         Add uinttostr.
53467         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
53468
53469 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * lib/canonicalize.c (ELOOP): Define if not already defined.
53472         Problem reported by Bruno Haible in
53473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
53474
53475 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
53476
53477         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
53478         Problem reported by Perry Smith and Ville Laurikari.
53479
53480         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
53481         uses.
53482
53483 2006-10-19  Bruno Haible  <bruno@clisp.org>
53484
53485         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
53486         for mingw.
53487
53488 2006-10-19  Bruno Haible  <bruno@clisp.org>
53489
53490         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
53491         Needed for mingw.
53492
53493 2006-10-19  Bruno Haible  <bruno@clisp.org>
53494
53495         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
53496
53497 2006-10-19  Bruno Haible  <bruno@clisp.org>
53498
53499         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
53500         it.
53501
53502 2006-10-19  Bruno Haible  <bruno@clisp.org>
53503
53504         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
53505         invocation.
53506
53507 2006-10-19  Bruno Haible  <bruno@clisp.org>
53508
53509         * gnulib-tool (func_create_testdir): Don't include ftruncate and
53510         mountlist by default.
53511
53512 2006-10-16  Bruno Haible  <bruno@clisp.org>
53513
53514         * lib/c-strstr.c: Include c-strstr.h.
53515
53516 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53517
53518         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
53519         in a slash.
53520
53521 2006-10-18  Bruno Haible  <bruno@clisp.org>
53522
53523         * lib/lock.h [C++]: Wrap definitions in extern "C".
53524
53525 2006-10-18  Bruno Haible  <bruno@clisp.org>
53526
53527         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
53528         gl_LIBOBJS list.
53529
53530 2006-10-18  Bruno Haible  <bruno@clisp.org>
53531
53532         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
53533
53534 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
53535
53536         * lib/xstrtol.h: Include gettext.h.
53537         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
53538         Problem reported by Eric Blake.
53539         * modules/xstrtol (Depends-on): Add gettext-h.
53540
53541 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
53542
53543         * lib/strftime.c (advance): New macro.
53544         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
53545         incomplete type, so you can't add 0 to it.  Problem and patch
53546         reported by Eelco Dolstra for dietlibc.
53547
53548 2006-10-18  Jim Meyering  <jim@meyering.net>
53549
53550         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
53551         type for a local, and rename it: s/up/user_proc/.
53552
53553 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53554
53555         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
53556         READ_UTMP_USER_PROCESS.
53557         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
53558
53559 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
53562         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
53563
53564 2006-10-17  Eric Blake  <ebb9@byu.net>
53565
53566         * lib/sigprocmask.c (sigprocmask): Fix typo.
53567
53568         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
53569
53570         * modules/clean-temp (Makefile.am): Don't add to make output...
53571         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
53572         config.h.
53573
53574 2006-10-17  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
53577         differently if DEFAULT_TEXT_DOMAIN is set.
53578
53579 2006-10-16  Bruno Haible  <bruno@clisp.org>
53580
53581         * lib/clean-temp.c: Include fwriteerror.h.
53582
53583 2006-10-16  Bruno Haible  <bruno@clisp.org>
53584
53585         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
53586
53587 2006-10-16  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
53590         * lib/sigprocmask.h: Include <sys/types.h>.
53591         (sigset_t): Use the system's definition if present.
53592
53593 2006-10-17  Eric Blake  <ebb9@byu.net>
53594
53595         * lib/xvasprintf.c (includes): Assume config.h.
53596         * lib/xasprintf.c (includes): Likewise.
53597
53598 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
53601         at least as wide as intmax_t.
53602
53603 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
53604
53605         (Imported from Automake.)
53606         * build-aux/gnupload: Update to version 1.1 of directive file.
53607
53608 2006-10-16  Eric Blake  <ebb9@byu.net>
53609
53610         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
53611         match Automake 1.10a.
53612
53613 2006-10-14  Bruno Haible  <bruno@clisp.org>
53614
53615         * modules/sigprocmask: New file.
53616         * lib/sigprocmask.h: New file.
53617         * lib/sigprocmask.c: New file.
53618         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
53619         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
53620         request sigprocmask.o.
53621         (gl_PREREQ_SIGPROCMASK): New macro.
53622         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
53623         (Depends-on): Add sigprocmask.
53624         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
53625         gt_SIGNALBLOCKING. Test for 'raise' only once.
53626         * lib/fatal-signal.c: Include sigprocmask.h.
53627         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
53628         unblock_fatal_signals): Define always.
53629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53630         sigprocmask.
53631
53632 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         Sync from Automake.
53635         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
53636         which incorrectly sets the mode of an existing destination
53637         directory.  In some cases the unpatched install-sh could do the
53638         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
53639         system.  We hope this is rare in practice, but it's clearly worth
53640         fixing.  Problem reported by Alex Unleashed in
53641         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
53642         Also, don't bother to check for -m bugs unless we're using -m;
53643         suggested by Stepan Kasal.
53644
53645 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53646
53647         Sync from Automake.
53648         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
53649         `-c' flag, so they appear at the same position as in %FASTDEP%
53650         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
53651         which ignores unknown options only after the first non-option.
53652         Bug report against M4 by Nelson H. F. Beebe.
53653
53654 2006-10-13  Jim Meyering  <jim@meyering.net>
53655
53656         Fix a bug in yesterday's change.
53657         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
53658         p->fts_statp->st_dev would be used uninitialized.
53659         Ensures that we always call fts_stat on the very first entry.
53660         Miklos Szeredi reported that find -xdev stopped working.
53661
53662 2006-10-12  Bruno Haible  <bruno@clisp.org>
53663
53664         * gnulib-tool (func_get_automake_snippet): Append an automatically
53665         computed EXTRA_DIST augmentation.
53666         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
53667         * modules/alloca-opt (Makefile.am): Likewise.
53668         * modules/allocsa (Makefile.am): Likewise.
53669         * modules/arcfour (Makefile.am): Likewise.
53670         * modules/arctwo (Makefile.am): Likewise.
53671         * modules/argmatch (Makefile.am): Likewise.
53672         * modules/argz (Makefile.am): Likewise.
53673         * modules/atexit (Makefile.am): Likewise.
53674         * modules/backupfile (Makefile.am): Likewise.
53675         * modules/byteswap (Makefile.am): Likewise.
53676         * modules/c-strtod (Makefile.am): Likewise.
53677         * modules/c-strtold (Makefile.am): Likewise.
53678         * modules/calloc (Makefile.am): Likewise.
53679         * modules/canon-host (Makefile.am): Likewise.
53680         * modules/canonicalize (Makefile.am): Likewise.
53681         * modules/chdir-long (Makefile.am): Likewise.
53682         * modules/chdir-safer (Makefile.am): Likewise.
53683         * modules/check-version (Makefile.am): Likewise.
53684         * modules/chown (Makefile.am): Likewise.
53685         * modules/cloexec (Makefile.am): Likewise.
53686         * modules/close-stream (Makefile.am): Likewise.
53687         * modules/closeout (Makefile.am): Likewise.
53688         * modules/crc (Makefile.am): Likewise.
53689         * modules/csharpexec (Makefile.am): Likewise.
53690         * modules/cycle-check (Makefile.am): Likewise.
53691         * modules/des (Makefile.am): Likewise.
53692         * modules/dev-ino (Makefile.am): Likewise.
53693         * modules/dirfd (Makefile.am): Likewise.
53694         * modules/dirname (Makefile.am): Likewise.
53695         * modules/dup2 (Makefile.am): Likewise.
53696         * modules/eealloc (Makefile.am): Likewise.
53697         * modules/error (Makefile.am): Likewise.
53698         * modules/euidaccess (Makefile.am): Likewise.
53699         * modules/exclude (Makefile.am): Likewise.
53700         * modules/exitfail (Makefile.am): Likewise.
53701         * modules/fcntl-safer (Makefile.am): Likewise.
53702         * modules/fcntl (Makefile.am): Likewise.
53703         * modules/file-type (Makefile.am): Likewise.
53704         * modules/fileblocks (Makefile.am): Likewise.
53705         * modules/filemode (Makefile.am): Likewise.
53706         * modules/filenamecat (Makefile.am): Likewise.
53707         * modules/fnmatch (Makefile.am): Likewise.
53708         * modules/fopen-safer (Makefile.am): Likewise.
53709         * modules/fpending (Makefile.am): Likewise.
53710         * modules/fprintftime (Makefile.am): Likewise.
53711         * modules/free (Makefile.am): Likewise.
53712         * modules/fsusage (Makefile.am): Likewise.
53713         * modules/ftruncate (Makefile.am): Likewise.
53714         * modules/fts (Makefile.am): Likewise.
53715         * modules/gc-arcfour (Makefile.am): Likewise.
53716         * modules/gc-des (Makefile.am): Likewise.
53717         * modules/gc-hmac-md5 (Makefile.am): Likewise.
53718         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
53719         * modules/gc-md4 (Makefile.am): Likewise.
53720         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53721         * modules/gc-sha1 (Makefile.am): Likewise.
53722         * modules/gc (Makefile.am): Likewise.
53723         * modules/getaddrinfo (Makefile.am): Likewise.
53724         * modules/getcwd (Makefile.am): Likewise.
53725         * modules/getdelim (Makefile.am): Likewise.
53726         * modules/getdomainname (Makefile.am): Likewise.
53727         * modules/getgroups (Makefile.am): Likewise.
53728         * modules/gethostname (Makefile.am): Likewise.
53729         * modules/gethrxtime (Makefile.am): Likewise.
53730         * modules/getline (Makefile.am): Likewise.
53731         * modules/getloadavg (Makefile.am): Likewise.
53732         * modules/getlogin_r (Makefile.am): Likewise.
53733         * modules/getndelim2 (Makefile.am): Likewise.
53734         * modules/getopt (Makefile.am): Likewise.
53735         * modules/getpagesize (Makefile.am): Likewise.
53736         * modules/getpass-gnu (Makefile.am): Likewise.
53737         * modules/getpass (Makefile.am): Likewise.
53738         * modules/getsubopt (Makefile.am): Likewise.
53739         * modules/gettime (Makefile.am): Likewise.
53740         * modules/gettimeofday (Makefile.am): Likewise.
53741         * modules/getugroups (Makefile.am): Likewise.
53742         * modules/getusershell (Makefile.am): Likewise.
53743         * modules/glob (Makefile.am): Likewise.
53744         * modules/group-member (Makefile.am): Likewise.
53745         * modules/hard-locale (Makefile.am): Likewise.
53746         * modules/hash (Makefile.am): Likewise.
53747         * modules/hmac-md5 (Makefile.am): Likewise.
53748         * modules/hmac-sha1 (Makefile.am): Likewise.
53749         * modules/human (Makefile.am): Likewise.
53750         * modules/idcache (Makefile.am): Likewise.
53751         * modules/imaxabs (Makefile.am): Likewise.
53752         * modules/imaxdiv (Makefile.am): Likewise.
53753         * modules/inet_ntop (Makefile.am): Likewise.
53754         * modules/inet_pton (Makefile.am): Likewise.
53755         * modules/intprops (Makefile.am): Likewise.
53756         * modules/inttostr (Makefile.am): Likewise.
53757         * modules/inttypes (Makefile.am): Likewise.
53758         * modules/isapipe (Makefile.am): Likewise.
53759         * modules/javaversion (Makefile.am): Likewise.
53760         * modules/lchmod (Makefile.am): Likewise.
53761         * modules/lchown (Makefile.am): Likewise.
53762         * modules/localcharset (Makefile.am): Likewise.
53763         * modules/long-options (Makefile.am): Likewise.
53764         * modules/lstat (Makefile.am): Likewise.
53765         * modules/malloc (Makefile.am): Likewise.
53766         * modules/mathl (Makefile.am): Likewise.
53767         * modules/mbchar (Makefile.am): Likewise.
53768         * modules/md2 (Makefile.am): Likewise.
53769         * modules/md4 (Makefile.am): Likewise.
53770         * modules/md5 (Makefile.am): Likewise.
53771         * modules/memcasecmp (Makefile.am): Likewise.
53772         * modules/memchr (Makefile.am): Likewise.
53773         * modules/memcmp (Makefile.am): Likewise.
53774         * modules/memcoll (Makefile.am): Likewise.
53775         * modules/memcpy (Makefile.am): Likewise.
53776         * modules/memmem (Makefile.am): Likewise.
53777         * modules/memmove (Makefile.am): Likewise.
53778         * modules/mempcpy (Makefile.am): Likewise.
53779         * modules/memrchr (Makefile.am): Likewise.
53780         * modules/memset (Makefile.am): Likewise.
53781         * modules/memxor (Makefile.am): Likewise.
53782         * modules/mkancesdirs (Makefile.am): Likewise.
53783         * modules/mkdir-p (Makefile.am): Likewise.
53784         * modules/mkdir (Makefile.am): Likewise.
53785         * modules/mkdtemp (Makefile.am): Likewise.
53786         * modules/mkstemp (Makefile.am): Likewise.
53787         * modules/mktime (Makefile.am): Likewise.
53788         * modules/modechange (Makefile.am): Likewise.
53789         * modules/mountlist (Makefile.am): Likewise.
53790         * modules/nanosleep (Makefile.am): Likewise.
53791         * modules/obstack (Makefile.am): Likewise.
53792         * modules/openat (Makefile.am): Likewise.
53793         * modules/pagealign_alloc (Makefile.am): Likewise.
53794         * modules/pathmax (Makefile.am): Likewise.
53795         * modules/physmem (Makefile.am): Likewise.
53796         * modules/poll (Makefile.am): Likewise.
53797         * modules/posixtm (Makefile.am): Likewise.
53798         * modules/posixver (Makefile.am): Likewise.
53799         * modules/putenv (Makefile.am): Likewise.
53800         * modules/quote (Makefile.am): Likewise.
53801         * modules/quotearg (Makefile.am): Likewise.
53802         * modules/raise (Makefile.am): Likewise.
53803         * modules/read-file (Makefile.am): Likewise.
53804         * modules/readline (Makefile.am): Likewise.
53805         * modules/readlink (Makefile.am): Likewise.
53806         * modules/readtokens (Makefile.am): Likewise.
53807         * modules/readutmp (Makefile.am): Likewise.
53808         * modules/realloc (Makefile.am): Likewise.
53809         * modules/regex (Makefile.am): Likewise.
53810         * modules/rename-dest-slash (Makefile.am): Likewise.
53811         * modules/rename (Makefile.am): Likewise.
53812         * modules/rijndael (Makefile.am): Likewise.
53813         * modules/rmdir (Makefile.am): Likewise.
53814         * modules/rpmatch (Makefile.am): Likewise.
53815         * modules/safe-read (Makefile.am): Likewise.
53816         * modules/safe-write (Makefile.am): Likewise.
53817         * modules/same-inode (Makefile.am): Likewise.
53818         * modules/same (Makefile.am): Likewise.
53819         * modules/save-cwd (Makefile.am): Likewise.
53820         * modules/savedir (Makefile.am): Likewise.
53821         * modules/setenv (Makefile.am): Likewise.
53822         * modules/settime (Makefile.am): Likewise.
53823         * modules/sha1 (Makefile.am): Likewise.
53824         * modules/sig2str (Makefile.am): Likewise.
53825         * modules/snprintf (Makefile.am): Likewise.
53826         * modules/stat-macros (Makefile.am): Likewise.
53827         * modules/stat-time (Makefile.am): Likewise.
53828         * modules/stdbool (Makefile.am): Likewise.
53829         * modules/stdint (Makefile.am): Likewise.
53830         * modules/stdlib-safer (Makefile.am): Likewise.
53831         * modules/stpcpy (Makefile.am): Likewise.
53832         * modules/stpncpy (Makefile.am): Likewise.
53833         * modules/strcase (Makefile.am): Likewise.
53834         * modules/strcasestr (Makefile.am): Likewise.
53835         * modules/strchrnul (Makefile.am): Likewise.
53836         * modules/strcspn (Makefile.am): Likewise.
53837         * modules/strdup (Makefile.am): Likewise.
53838         * modules/strerror (Makefile.am): Likewise.
53839         * modules/strftime (Makefile.am): Likewise.
53840         * modules/strndup (Makefile.am): Likewise.
53841         * modules/strnlen (Makefile.am): Likewise.
53842         * modules/strpbrk (Makefile.am): Likewise.
53843         * modules/strsep (Makefile.am): Likewise.
53844         * modules/strstr (Makefile.am): Likewise.
53845         * modules/strtod (Makefile.am): Likewise.
53846         * modules/strtoimax (Makefile.am): Likewise.
53847         * modules/strtok_r (Makefile.am): Likewise.
53848         * modules/strtol (Makefile.am): Likewise.
53849         * modules/strtoll (Makefile.am): Likewise.
53850         * modules/strtoul (Makefile.am): Likewise.
53851         * modules/strtoull (Makefile.am): Likewise.
53852         * modules/strtoumax (Makefile.am): Likewise.
53853         * modules/strverscmp (Makefile.am): Likewise.
53854         * modules/sys_socket (Makefile.am): Likewise.
53855         * modules/sys_stat (Makefile.am): Likewise.
53856         * modules/sysexits (Makefile.am): Likewise.
53857         * modules/time_r (Makefile.am): Likewise.
53858         * modules/timegm (Makefile.am): Likewise.
53859         * modules/timespec (Makefile.am): Likewise.
53860         * modules/tmpfile-safer (Makefile.am): Likewise.
53861         * modules/trim (Makefile.am): Likewise.
53862         * modules/unistd-safer (Makefile.am): Likewise.
53863         * modules/unlinkdir (Makefile.am): Likewise.
53864         * modules/unlocked-io (Makefile.am): Likewise.
53865         * modules/userspec (Makefile.am): Likewise.
53866         * modules/utime (Makefile.am): Likewise.
53867         * modules/utimecmp (Makefile.am): Likewise.
53868         * modules/utimens (Makefile.am): Likewise.
53869         * modules/vasnprintf (Makefile.am): Likewise.
53870         * modules/vasprintf (Makefile.am): Likewise.
53871         * modules/vsnprintf (Makefile.am): Likewise.
53872         * modules/xalloc (Makefile.am): Likewise.
53873         * modules/xgetcwd (Makefile.am): Likewise.
53874         * modules/xnanosleep (Makefile.am): Likewise.
53875         * modules/xreadlink (Makefile.am): Likewise.
53876         * modules/xstrtod (Makefile.am): Likewise.
53877         * modules/xstrtol (Makefile.am): Likewise.
53878         * modules/xstrtold (Makefile.am): Likewise.
53879         * modules/yesno (Makefile.am): Likewise.
53880         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
53881
53882 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53883
53884         * modules/error (Makefile.am): Distribute files through
53885         EXTRA_DIST, not lib_SOURCES.
53886
53887 2006-10-12  Eric Blake  <ebb9@byu.net>
53888
53889         * modules/error (Makefile.am): Distribute files in /lib.
53890         * modules/obstack (Makefile.am): Likewise.
53891
53892 2006-10-12  Bruno Haible  <bruno@clisp.org>
53893
53894         * modules/acl (Makefile.am): Distribute all files in lib/ through
53895         EXTRA_DIST.
53896         * modules/arcfour (Makefile.am): Likewise.
53897         * modules/arctwo (Makefile.am): Likewise.
53898         * modules/argmatch (Makefile.am): Likewise.
53899         * modules/argz (Makefile.am): Likewise.
53900         * modules/atexit (Makefile.am): Likewise.
53901         * modules/backupfile (Makefile.am): Likewise.
53902         * modules/c-strtod (Makefile.am): Likewise.
53903         * modules/c-strtold (Makefile.am): Likewise.
53904         * modules/calloc (Makefile.am): Likewise.
53905         * modules/canon-host (Makefile.am): Likewise.
53906         * modules/canonicalize (Makefile.am): Likewise.
53907         * modules/chdir-long (Makefile.am): Likewise.
53908         * modules/chdir-safer (Makefile.am): Likewise.
53909         * modules/check-version (Makefile.am): Likewise.
53910         * modules/chown (Makefile.am): Likewise.
53911         * modules/cloexec (Makefile.am): Likewise.
53912         * modules/close-stream (Makefile.am): Likewise.
53913         * modules/closeout (Makefile.am): Likewise.
53914         * modules/crc (Makefile.am): Likewise.
53915         * modules/cycle-check (Makefile.am): Likewise.
53916         * modules/des (Makefile.am): Likewise.
53917         * modules/dirfd (Makefile.am): Likewise.
53918         * modules/dirname (Makefile.am): Likewise.
53919         * modules/dup2 (Makefile.am): Likewise.
53920         * modules/euidaccess (Makefile.am): Likewise.
53921         * modules/exclude (Makefile.am): Likewise.
53922         * modules/exitfail (Makefile.am): Likewise.
53923         * modules/fcntl-safer (Makefile.am): Likewise.
53924         * modules/file-type (Makefile.am): Likewise.
53925         * modules/fileblocks (Makefile.am): Likewise.
53926         * modules/filemode (Makefile.am): Likewise.
53927         * modules/filenamecat (Makefile.am): Likewise.
53928         * modules/fnmatch (Makefile.am): Likewise.
53929         * modules/fopen-safer (Makefile.am): Likewise.
53930         * modules/fpending (Makefile.am): Likewise.
53931         * modules/fprintftime (Makefile.am): Likewise.
53932         * modules/free (Makefile.am): Likewise.
53933         * modules/fsusage (Makefile.am): Likewise.
53934         * modules/ftruncate (Makefile.am): Likewise.
53935         * modules/fts (Makefile.am): Likewise.
53936         * modules/gc (Makefile.am): Likewise.
53937         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53938         * modules/getaddrinfo (Makefile.am): Likewise.
53939         * modules/getcwd (Makefile.am): Likewise.
53940         * modules/getdelim (Makefile.am): Likewise.
53941         * modules/getdomainname (Makefile.am): Likewise.
53942         * modules/getgroups (Makefile.am): Likewise.
53943         * modules/gethostname (Makefile.am): Likewise.
53944         * modules/gethrxtime (Makefile.am): Likewise.
53945         * modules/getline (Makefile.am): Likewise.
53946         * modules/getloadavg (Makefile.am): Likewise.
53947         * modules/getlogin_r (Makefile.am): Likewise.
53948         * modules/getopt (Makefile.am): Likewise.
53949         * modules/getpass (Makefile.am): Likewise.
53950         * modules/getpass-gnu (Makefile.am): Likewise.
53951         * modules/getsubopt (Makefile.am): Likewise.
53952         * modules/gettime (Makefile.am): Likewise.
53953         * modules/gettimeofday (Makefile.am): Likewise.
53954         * modules/getugroups (Makefile.am): Likewise.
53955         * modules/getusershell (Makefile.am): Likewise.
53956         * modules/glob (Makefile.am): Likewise.
53957         * modules/group-member (Makefile.am): Likewise.
53958         * modules/hard-locale (Makefile.am): Likewise.
53959         * modules/hash (Makefile.am): Likewise.
53960         * modules/hmac-md5 (Makefile.am): Likewise.
53961         * modules/hmac-sha1 (Makefile.am): Likewise.
53962         * modules/human (Makefile.am): Likewise.
53963         * modules/idcache (Makefile.am): Likewise.
53964         * modules/imaxabs (Makefile.am): Likewise.
53965         * modules/imaxdiv (Makefile.am): Likewise.
53966         * modules/inet_ntop (Makefile.am): Likewise.
53967         * modules/inet_pton (Makefile.am): Likewise.
53968         * modules/inttostr (Makefile.am): Likewise.
53969         * modules/isapipe (Makefile.am): Likewise.
53970         * modules/lchown (Makefile.am): Likewise.
53971         * modules/long-options (Makefile.am): Likewise.
53972         * modules/lstat (Makefile.am): Likewise.
53973         * modules/malloc (Makefile.am): Likewise.
53974         * modules/mathl (Makefile.am): Likewise.
53975         * modules/mbchar (Makefile.am): Likewise.
53976         * modules/md2 (Makefile.am): Likewise.
53977         * modules/md4 (Makefile.am): Likewise.
53978         * modules/md5 (Makefile.am): Likewise.
53979         * modules/memcasecmp (Makefile.am): Likewise.
53980         * modules/memchr (Makefile.am): Likewise.
53981         * modules/memcmp (Makefile.am): Likewise.
53982         * modules/memcoll (Makefile.am): Likewise.
53983         * modules/memcpy (Makefile.am): Likewise.
53984         * modules/memmem (Makefile.am): Likewise.
53985         * modules/memmove (Makefile.am): Likewise.
53986         * modules/mempcpy (Makefile.am): Likewise.
53987         * modules/memrchr (Makefile.am): Likewise.
53988         * modules/memset (Makefile.am): Likewise.
53989         * modules/memxor (Makefile.am): Likewise.
53990         * modules/mkancesdirs (Makefile.am): Likewise.
53991         * modules/mkdir (Makefile.am): Likewise.
53992         * modules/mkdir-p (Makefile.am): Likewise.
53993         * modules/mkdtemp (Makefile.am): Likewise.
53994         * modules/mkstemp (Makefile.am): Likewise.
53995         * modules/mktime (Makefile.am): Likewise.
53996         * modules/modechange (Makefile.am): Likewise.
53997         * modules/mountlist (Makefile.am): Likewise.
53998         * modules/nanosleep (Makefile.am): Likewise.
53999         * modules/openat (Makefile.am): Likewise.
54000         * modules/pagealign_alloc (Makefile.am): Likewise.
54001         * modules/physmem (Makefile.am): Likewise.
54002         * modules/poll (Makefile.am): Likewise.
54003         * modules/posixtm (Makefile.am): Likewise.
54004         * modules/posixver (Makefile.am): Likewise.
54005         * modules/putenv (Makefile.am): Likewise.
54006         * modules/quote (Makefile.am): Likewise.
54007         * modules/quotearg (Makefile.am): Likewise.
54008         * modules/raise (Makefile.am): Likewise.
54009         * modules/read-file (Makefile.am): Likewise.
54010         * modules/readline (Makefile.am): Likewise.
54011         * modules/readlink (Makefile.am): Likewise.
54012         * modules/readtokens (Makefile.am): Likewise.
54013         * modules/readutmp (Makefile.am): Likewise.
54014         * modules/realloc (Makefile.am): Likewise.
54015         * modules/regex (Makefile.am): Likewise.
54016         * modules/rename (Makefile.am): Likewise.
54017         * modules/rename-dest-slash (Makefile.am): Likewise.
54018         * modules/rijndael (Makefile.am): Likewise.
54019         * modules/rmdir (Makefile.am): Likewise.
54020         * modules/rpmatch (Makefile.am): Likewise.
54021         * modules/safe-read (Makefile.am): Likewise.
54022         * modules/safe-write (Makefile.am): Likewise.
54023         * modules/same (Makefile.am): Likewise.
54024         * modules/save-cwd (Makefile.am): Likewise.
54025         * modules/savedir (Makefile.am): Likewise.
54026         * modules/setenv (Makefile.am): Likewise.
54027         * modules/settime (Makefile.am): Likewise.
54028         * modules/sha1 (Makefile.am): Likewise.
54029         * modules/sig2str (Makefile.am): Likewise.
54030         * modules/snprintf (Makefile.am): Likewise.
54031         * modules/stdlib-safer (Makefile.am): Likewise.
54032         * modules/stpcpy (Makefile.am): Likewise.
54033         * modules/stpncpy (Makefile.am): Likewise.
54034         * modules/strcase (Makefile.am): Likewise.
54035         * modules/strcasestr (Makefile.am): Likewise.
54036         * modules/strchrnul (Makefile.am): Likewise.
54037         * modules/strcspn (Makefile.am): Likewise.
54038         * modules/strdup (Makefile.am): Likewise.
54039         * modules/strerror (Makefile.am): Likewise.
54040         * modules/strftime (Makefile.am): Likewise.
54041         * modules/strndup (Makefile.am): Likewise.
54042         * modules/strnlen (Makefile.am): Likewise.
54043         * modules/strpbrk (Makefile.am): Likewise.
54044         * modules/strsep (Makefile.am): Likewise.
54045         * modules/strstr (Makefile.am): Likewise.
54046         * modules/strtod (Makefile.am): Likewise.
54047         * modules/strtoimax (Makefile.am): Likewise.
54048         * modules/strtok_r (Makefile.am): Likewise.
54049         * modules/strtol (Makefile.am): Likewise.
54050         * modules/strtoll (Makefile.am): Likewise.
54051         * modules/strtoul (Makefile.am): Likewise.
54052         * modules/strtoull (Makefile.am): Likewise.
54053         * modules/strtoumax (Makefile.am): Likewise.
54054         * modules/strverscmp (Makefile.am): Likewise.
54055         * modules/time_r (Makefile.am): Likewise.
54056         * modules/timegm (Makefile.am): Likewise.
54057         * modules/tmpfile-safer (Makefile.am): Likewise.
54058         * modules/unistd-safer (Makefile.am): Likewise.
54059         * modules/unlinkdir (Makefile.am): Likewise.
54060         * modules/userspec (Makefile.am): Likewise.
54061         * modules/utime (Makefile.am): Likewise.
54062         * modules/utimecmp (Makefile.am): Likewise.
54063         * modules/utimens (Makefile.am): Likewise.
54064         * modules/vasnprintf (Makefile.am): Likewise.
54065         * modules/vasprintf (Makefile.am): Likewise.
54066         * modules/vsnprintf (Makefile.am): Likewise.
54067         * modules/xalloc (Makefile.am): Likewise.
54068         * modules/xgetcwd (Makefile.am): Likewise.
54069         * modules/xnanosleep (Makefile.am): Likewise.
54070         * modules/xreadlink (Makefile.am): Likewise.
54071         * modules/xstrtod (Makefile.am): Likewise.
54072         * modules/xstrtol (Makefile.am): Likewise.
54073         * modules/xstrtold (Makefile.am): Likewise.
54074         * modules/yesno (Makefile.am): Likewise.
54075
54076 2006-10-12  Jim Meyering  <jim@meyering.net>
54077
54078         * m4/getloadavg.m4: Revert the change below.
54079
54080         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
54081         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
54082         fail with a symlink, which is what coreutils' ./bootstrap now
54083         creates by default.
54084
54085 2006-10-12  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
54088         mingw.
54089         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
54090         MSVC and mingw explicitly.
54091
54092 2006-10-11  Simon Josefsson  <jas@extundo.com>
54093             Bruno Haible  <bruno@clisp.org>
54094
54095         Add support for multiple gnulib-tool invocations in the scope of a
54096         single configure.ac file.
54097         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
54098         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
54099         with the same contents as the _LIBADD variable.
54100         (func_emit_initmacro_start, func_emit_initmacro_end,
54101         func_emit_initmacro_done): New functions.
54102         (func_import, func_create_testdir): Invoke them. Allow the identifiers
54103         gl_LIBOBJS and gl_LTLIBOBJS.
54104
54105 2006-10-11  Bruno Haible  <bruno@clisp.org>
54106
54107         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
54108         (func_create_testdir): Don't create po/Makefile.am, don't invoke
54109         autoreconf. Instead, invoke autopoint explicitly but move back the
54110         *.m4 files from gnulib.
54111
54112 2006-10-11  Bruno Haible  <bruno@clisp.org>
54113
54114         * gnulib-tool (func_usage): Make module names after --create-testdir
54115         optional.
54116         (func_create_testdir): If no module was specified, use nearly all
54117         modules.
54118
54119 2006-10-12  Jim Meyering  <jim@meyering.net>
54120
54121         Big performance improvement for fts-based tools that use FTS_NOSTAT.
54122         Avoid spurious inode-mismatch problems on non-POSIX file systems.
54123         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
54124         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
54125         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
54126         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
54127         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
54128         (fts_set_stat_required): New function.
54129         (fts_open): Defer the calls to fts_stat, if possible or requested.
54130         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
54131         into fts_stat itself.
54132         (fts_read): Perform any required (deferred) fts_stat call.
54133         (fts_build): Likewise, for the directory we're about to open and read.
54134         In the readdir loop, carefully decide whether each entry will require
54135         an eventual call to fts_stat, using dirent.d_type info if available.
54136         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
54137         a command line argument into this function.  Update all callers.
54138         Map a return value of FTS_DOT to FTS_D for a command line argument.
54139         * modules/fts (Depends-on): Add d-type.  Alphabetize.
54140         Thanks to Miklos Szeredi for his tenacity and for the initial
54141         bug report about "find" failing on a FUSE-based file system.
54142
54143         * lib/fts.c (fts_open): Use consistent indentation.
54144
54145 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54146
54147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
54148         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
54149         reported by Jim Meyering.  All uses of cache variables renamed
54150         to match Autoconf's.
54151         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
54152         the other one.
54153
54154         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
54155         Fix misspelling in diagnostic.
54156
54157 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54158
54159         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
54160         defined.  Problem reported by Matthew Woehlke.
54161
54162         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
54163         Add support for Tandem NonStop R series.
54164         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
54165         Use new macro.
54166
54167         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
54168         (has_trailing_slash): Omit size arg; all callers changed.
54169         Omit 'inline', since it doesn't help performance and we'd
54170         need to configure it.
54171         Don't count //, ///, etc. as having a trailing slash.
54172         As a side effect, this removes a C99ism reported by Matthew Woehlke.
54173         (rpl_rename_dest_slash): On failure, use rename's errno rather
54174         than (in some cases) an incorrect or junk errno.
54175         Simplify code by removing need to compute length; this does
54176         cause it to make two passes instead of one over the file name,
54177         but it's worth it.
54178
54179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
54180         change, since Autoconf's version may no longer be appropriate now
54181         that we are using CVS Autoconf's version.  Add support for Tandem.
54182
54183 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54184             Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
54187         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
54188         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
54189         gl_AC_TYPE_LONG_LONG.
54190
54191         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
54192         instead of HAVE_LONG_LONG.
54193         * lib/printf-args.c (printf_fetchargs): Likewise.
54194         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
54195         * lib/vasnprintf.c (VASNPRINTF): Likewise.
54196         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
54197         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
54198         gl_AC_TYPE_LONG_LONG.
54199
54200 2006-10-11  Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/longlong.m4: Add comments.
54203         * m4/ulonglong.m4: Likewise.
54204
54205 2006-10-10  Bruno Haible  <bruno@clisp.org>
54206
54207         Make it possible to #define stpcpy, strdup to aliases.
54208         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
54209         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
54210
54211 2006-10-10  Bruno Haible  <bruno@clisp.org>
54212
54213         Make it possible to #define gcd to an alias.
54214         * lib/gcd.c: Include config.h.
54215
54216 2006-10-10  Bruno Haible  <bruno@clisp.org>
54217
54218         Make it possible to #define c_isascii to an alias.
54219         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
54220         defined. Undefine the macros before defining them, to avoid gcc
54221         warnings.
54222         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
54223         define NO_C_CTYPE_MACROS early.
54224
54225 2006-10-10  Bruno Haible  <bruno@clisp.org>
54226
54227         Make it possible to #define set_program_name to an alias.
54228         * lib/progname.c: Don't undefine set_program_name; instead, undefine
54229         ENABLE_RELOCATABLE early.
54230
54231 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54232
54233         Port to Tandem NSK OSS, which has 64-bit signed int but at most
54234         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
54235         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
54236         More generally, don't assume that 64-bit signed int is available
54237         if unsigned int is, and vice versa.
54238         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
54239         unsigned symbols, not on their signed counterparts.
54240         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
54241         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
54242         (UINT64_C, UINTMAX_C):
54243         Likewise.
54244         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
54245         unsigned counterparts.
54246         (Have_long_long, Unsigned): New macros.
54247         (Int): Renamed from INT.
54248         (strtoimax): Use the new macros.
54249         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
54250         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
54251         * modules/inttypes (inttypes.h): Substitute
54252         HAVE_UNSIGNED_LONG_LONG_INT.
54253         * modules/stdint (stdint.h): Likewise.
54254         (Files): Add m4/ulonglong.m4.
54255
54256 2006-10-10  Bruno Haible  <bruno@clisp.org>
54257
54258         Fix a gcc -Wshadow warning.
54259         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
54260         to 'bucket'.
54261         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
54262         gl_linked_indexof_from_to): Likewise.
54263         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
54264         Likewise.
54265         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
54266         Likewise.
54267         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
54268         Reported by Eric Blake.
54269
54270 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
54273         for NetBSD.  Problem reported by Bruno Haible.
54274
54275 2006-10-09  Jim Meyering  <jim@meyering.net>
54276
54277         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
54278         Patch from Bruno Haible.
54279
54280 2006-10-09  Jim Meyering  <jim@meyering.net>
54281
54282         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
54283         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
54284         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
54285
54286 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         Don't include <config.h> twice; this doesn't work in some cases,
54289         e.g., when config.h has "#define intmax_t long long int" and
54290         we include <config.h>, <inttypes.h>, <config.h> in that order.
54291         Problem reported by Matthew Woehlke in:
54292         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
54293         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
54294         * lib/fts-cycle.c: Don't include config.h.
54295         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
54296         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
54297         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
54298         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
54299         inttypes.h.
54300         * lib/xstrtoumax.c: Likewise.
54301         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
54302         __strtol and the like, so that this module is more like its siblings.
54303         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
54304         Remove; no longer needed now that we assume gnulib inttypes.h.
54305
54306 2006-10-08  Bruno Haible  <bruno@clisp.org>
54307
54308         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
54309         option.
54310
54311 2006-10-07  Jim Meyering  <jim@meyering.net>
54312
54313         * modules/inttypes (inttypes.h): Revert what seems to have been
54314         an inadvertent part of today's change: use "|", not "/" in the
54315         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
54316
54317 2006-10-07  Bruno Haible  <bruno@clisp.org>
54318
54319         * modules/sublist: New file.
54320
54321 2006-10-07  Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
54324         * modules/argz (argz.h): Likewise.
54325         * modules/arpa_inet (arpa/inet.h): Likewise.
54326         * modules/byteswap (byteswap.h): Likewise.
54327         * modules/configmake (configmake.h): Likewise.
54328         * modules/fcntl (fcntl.h): Likewise.
54329         * modules/fnmatch (fnmatch.h): Likewise.
54330         * modules/getopt (getopt.h): Likewise.
54331         * modules/glob (glob.h): Likewise.
54332         * modules/inttypes (inttypes.h): Likewise.
54333         * modules/netinet_in (netinet/in.h): Likewise.
54334         * modules/poll (poll.h): Likewise.
54335         * modules/stdbool (stdbool.h): Likewise.
54336         * modules/stdint (stdint.h): Likewise.
54337         * modules/sys_select (sys/select.h): Likewise.
54338         * modules/sys_socket (sys/socket.h): Likewise.
54339         * modules/sys_stat (sys/stat.h): Likewise.
54340         * modules/sysexits (sysexits.h): Likewise.
54341         * modules/unistd (unistd.h): Likewise.
54342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54343         Add a "DO NOT EDIT" comment to the generated file.
54344         (func_import): Likewise for gnulib-comp.m4.
54345
54346 2006-10-07  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/gl_sublist.h: New file.
54349         * lib/gl_sublist.c: New file.
54350
54351 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54352
54353         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
54354         name (relative to the original working directory) and the file
54355         name component (relative to the temporary working directory).  All
54356         callers changed.
54357         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
54358         * lib/mkdir-p.c (make_dir_parents): Likewise.
54359         * lib/mkdir-p.h (make_dir_parents): Likewise.
54360
54361 2006-10-06  Eric Blake  <ebb9@byu.net>
54362
54363         Define several macros for use by the clean-temp module.
54364         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
54365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
54366         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
54367
54368         * lib/clean-temp.h (close_stream_temp): New declaration.
54369         * lib/clean-temp.c (includes): Pull in headers according to what
54370         other modules are in use.
54371         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
54372
54373 2006-10-06  Bruno Haible  <bruno@clisp.org>
54374
54375         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
54376         instead of fopen, fwriteerror.
54377
54378 2006-10-06  Bruno Haible  <bruno@clisp.org>
54379
54380         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
54381         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
54382         int.
54383         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
54384         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
54385         Return an error indicator.
54386         Suggested by Eric Blake.
54387
54388 2006-10-06  Bruno Haible  <bruno@clisp.org>
54389
54390         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
54391         Reported by Eric Blake.
54392
54393 2006-10-06  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/closeout (Description): Mention stderr too.
54396
54397 2006-10-06  Bruno Haible  <bruno@clisp.org>
54398         and Paul Eggert  <eggert@cs.ucla.edu>
54399
54400         * lib/closeout.c (close_stdout): Also close stderr.
54401         * lib/closeout.h: Update comment.
54402
54403 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54404
54405         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
54406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
54407         * lib/dirchownmod.c: Include lchown.h.
54408         * lib/lchown.c: Don't include files that lchown.h now includes.
54409         Don't declare chown, since lchown.h now does that.
54410         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
54411         (lchown): Define to rpl_chown if lchown is declared but
54412         does not exist.  Declare using a prototype if lchown is not
54413         declared.  Add a copyright notice.
54414         * lib/mkstemp.h: Include <unistd.h>.
54415         * lib/openat.c: Include lchown.h.
54416
54417         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
54418         we now test for that separately.
54419         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
54420         rather than O_NOFOLLOW, when testing whether it's possible to
54421         avoid a race condition reliably.
54422         * lib/savewd.c (savewd_chdir): Likewise.
54423
54424         Remove macros that are no longer needed now that stdint.h is
54425         reliable.
54426         * lib/fsusage.c (UINTMAX_MAX): Remove.
54427         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
54428         * lib/utimecmp.c (SIZE_MAX): Remove.
54429
54430         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
54431
54432         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
54433         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
54434         O_NOATIME works.
54435
54436 2006-10-05  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/gl_list.h (gl_sortedlist_search_from_to,
54439         gl_sortedlist_indexof_from_to): New declarations.
54440         (gl_list_implementation): New fields sortedlist_search_from_to,
54441         sortedlist_indexof_from_to.
54442         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
54443         inline functions.
54444         * lib/gl_list.c (gl_sortedlist_search_from_to,
54445         gl_sortedlist_indexof_from_to): New functions.
54446         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
54447         function.
54448         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
54449         (gl_array_sortedlist_search_from_to): New function.
54450         (gl_array_list_implementation): Update.
54451         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
54452         function.
54453         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
54454         (gl_carray_sortedlist_search_from_to): New function.
54455         (gl_carray_list_implementation): Update.
54456         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
54457         gl_linked_sortedlist_indexof_from_to): New functions.
54458         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54459         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54460         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
54461         gl_tree_sortedlist_indexof_from_to): New functions.
54462         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54463         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54464         Update.
54465         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54466         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
54467         Update.
54468
54469 2006-10-05  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
54472         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
54473         (struct gl_list_implementation): Add fields search_from_to,
54474         indexof_from_to. Remove fields search, indexof.
54475         (gl_list_search): Use the search_from_to method.
54476         (gl_list_search_from, gl_list_search_from_to): New functions.
54477         (gl_list_indexof): Use the indexof_from_to method.
54478         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54479         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
54480         (gl_list_search_from, gl_list_search_from_to): New functions.
54481         (gl_list_indexof): Use the indexof_from_to method.
54482         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
54483         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
54484         gl_array_indexof. Add start_index, end_index arguments.
54485         (gl_array_search_from_to): Renamed from gl_array_search. Add
54486         start_index, end_index arguments.
54487         (gl_array_remove, gl_array_list_implementation): Update.
54488         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
54489         gl_carray_indexof. Add start_index, end_index arguments.
54490         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
54491         start_index, end_index arguments.
54492         (gl_carray_remove, gl_carray_list_implementation): Update.
54493         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
54494         gl_linked_search. Add start_index, end_index arguments.
54495         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
54496         start_index, end_index arguments.
54497         (gl_linked_remove): Update.
54498         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54499         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54500         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
54501         field to 'size_t'.
54502         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
54503         gl_tree_search. Add start_index, end_index arguments.
54504         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54505         start_index, end_index arguments.
54506         (gl_tree_remove): Update.
54507         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54508         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54509         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
54510         function.
54511         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
54512         gl_tree_search. Add start_index, end_index arguments.
54513         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
54514         start_index, end_index arguments.
54515         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54516         Update.
54517         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54518
54519 2006-10-05  Bruno Haible  <bruno@clisp.org>
54520
54521         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
54522
54523         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
54524         fwriteerror_temp): New declarations.
54525         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
54526         (descriptors): New variable.
54527         (cleanup): First, close the descriptors.
54528         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
54529         fclose_temp, fwriteerror_temp): New functions.
54530
54531 2006-10-04  Jim Meyering  <jim@meyering.net>
54532
54533         * lib/fts.c (fts_open): Tiny comment change.
54534
54535 2006-10-04  Bruno Haible  <bruno@clisp.org>
54536
54537         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
54538         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
54539         gl_LOCK_BODY.
54540         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
54541         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
54542         gl_LOCK_EARLY_BODY.
54543         (gl_LOCK): Require gl_LOCK_BODY.
54544
54545 2006-10-04  Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
54548         (gl_oset_search_atleast): New declaration.
54549         (struct gl_oset_implementation): Add field 'search_atleast'.
54550         (gl_oset_search_atleast): New inline function.
54551         * lib/gl_oset.c (gl_oset_search_atleast): New function.
54552         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
54553         (gl_array_oset_implementation): Update.
54554         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
54555         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
54556         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
54557
54558 2006-10-04  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
54561
54562 2006-10-03  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
54565         from gl_avltreehash_list_implementation.
54566
54567 2006-10-03  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/gl_oset.c (gl_oset_add): Fix return type.
54570
54571 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
54572
54573         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
54574
54575 2006-10-02  Eric Blake  <ebb9@byu.net>
54576
54577         * modules/strnlen (Depends-on): Add extensions.
54578
54579 2006-10-02  Eric Blake  <ebb9@byu.net>
54580
54581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
54582         definition in 2.60+.
54583
54584 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
54585
54586         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
54587         checks.
54588
54589 2006-10-02  Bruno Haible  <bruno@clisp.org>
54590
54591         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
54592         to the AUTOMAKE_OPTIONS.
54593         Reported by Jim Meyering.
54594
54595 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54596
54597         Work around bug in Solaris 10 /proc file system:
54598         /proc/self/fd/NNN/.. isn't the parent directory of
54599         the directory whose file descriptor is NNN.  This needs to
54600         be worked around at run time, not compile time, since a
54601         program might be built on Solaris 8, where things work, and
54602         run on Solaris 10.
54603         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
54604         to use the following interface instead:
54605         (OPENAT_BUFFER_SIZE): New macro.
54606         (openat_proc_name): New function.
54607         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
54608         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
54609         Likewise.
54610         * lib/openat-proc.c: New file.
54611         * modules/openat (Files): Add lib/openat-proc.c.
54612         (Depends-on): Add same-inode, stdbool.
54613         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
54614
54615 2006-09-29  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
54618         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
54619         argument. Set stdout_closed before testing for ferror, not after.
54620         (fwriteerror, fwriteerror_no_ebadf): New functions.
54621
54622 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54623
54624         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
54625
54626 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
54627
54628         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
54629         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
54630
54631 2006-09-28  Jim Meyering  <jim@meyering.net>
54632
54633         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
54634         Include <unistd.h>.
54635
54636 2006-09-28  Bruno Haible  <bruno@clisp.org>
54637
54638         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
54639         * modules/linkedhash-list (Depends-on): Likewise.
54640         * modules/rbtreehash-list (Depends-on): Likewise.
54641
54642 2006-09-28  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/strndup.h: Simplify the redefinition of strndup.
54645         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
54646         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
54647
54648 2006-09-28  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
54651         * lib/gl_linkedhash_list.c: Likewise.
54652         * lib/gl_rbtreehash_list.c: Likewise.
54653
54654 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
54657         getaddrinfo.
54658
54659         * lib/__fpending.h: Don't include <stdio_ext.h> unless
54660         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
54661         it causes <stdio_ext.h> to cause a compile-time error.
54662         Problem reported by Nelson H. F. Beebe.
54663         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
54664         of HAVE_DECL___PENDING.
54665
54666         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
54667         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
54668         declaration.
54669
54670 2006-09-27  Jim Meyering  <jim@meyering.net>
54671
54672         This file could end up with a definition for a function
54673         named __strndup, rather than rpl_strndup on a system with
54674         incomplete weak_alias support.
54675         * lib/strndup.c (strndup): Rename from __strndup.
54676         Remove #defines that used to map __strndup to strndup.
54677         Don't use K&R prototypes.
54678         Remove LIBC-related code, since this file is not sync'd with glibc.
54679         * lib/strndup.h: Revamp, accordingly.
54680         * m4/strndup.m4: Modernize.
54681
54682 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * modules/savewd (Depends-on): Add 'raise'.
54685         * lib/savewd.c: Include <signal.h>, for 'raise'.
54686
54687 2006-09-26  Jim Meyering  <jim@meyering.net>
54688
54689         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
54690         when we detect Darwin 8.7.0's acl_get_file bug.
54691         Rearrange to perform the new (below) run-test while $LIBS
54692         contains any acl-related library.  Set USE_ACL at the end.
54693         (gl_ACL_GET_FILE): New function.
54694
54695 2006-09-26  Eric Blake  <ebb9@byu.net>
54696
54697         * lib/verror.c: Include <config.h> unconditionally.
54698
54699 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * modules/clock-time (Maintainer): Add self.
54702         * modules/getlogin_r (Depends-on): Add extensions.
54703
54704 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54705
54706         * modules/clock-time: New module.
54707         * modules/nanosleep (Depends-on): Add clock-time.
54708         * modules/gethrxtime (Depends-on): Likewise.
54709         * modules/gettime (Depends-on): Likewise.
54710         * modules/settime (Depends-on): Likewise.
54711
54712         * modules/fts-lgpl: Depend on openat.
54713         * modules/mkancesdirs: Depend on savewd.
54714         * modules/mkdir-p: Likewise.
54715
54716 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54717
54718         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
54719
54720         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
54721         `gl_have_arbitrary_file_name_length_limit' to
54722         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
54723         actually works between configure runs.
54724
54725 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54726             Bruno Haible  <bruno@clisp.org>
54727
54728         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
54729
54730 2006-09-25  Jim Meyering  <jim@meyering.net>
54731
54732         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
54733         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
54734
54735 2006-09-25  Eric Blake  <ebb9@byu.net>
54736
54737         * gnulib-tool (func_import, func_create_testdir): Fix typos in
54738         exec's in 2006-09-18 patch when shuffling fds.
54739
54740 2006-09-25  Bruno Haible  <bruno@clisp.org>
54741
54742         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
54743         Reported by Jim Meyering.
54744
54745 2006-09-24  Jim Meyering  <jim@meyering.net>
54746
54747         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
54748         compare a pointer against a literal "0".  That caused failures with
54749         at least HP-UX's hpcc.
54750
54751 2006-09-22  Simon Josefsson  <jas@extundo.com>
54752
54753         * modules/gc-sha1:
54754         * modules/gc-md4:
54755         * modules/gc-hmac-sha1:
54756         * modules/gc-hmac-md5:
54757         * modules/gc-des:
54758         * modules/gc-arcfour: Distribute more files.
54759
54760 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54761
54762         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
54763         (gl_linked_iterator_from_to): Initialize struct completely.
54764         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
54765         (gl_tree_iterator_from_to): Likewise
54766         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
54767         * lib/gl_array_list.c [lint] (gl_array_iterator)
54768         (gl_array_iterator_from_to): Likewise.
54769         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
54770         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
54771         (gl_carray_iterator_from_to): Likewise.
54772
54773         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
54774         * lib/md4.c (md4_process_block): Remove unused variable.
54775         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
54776         parentheses for clarity.
54777
54778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54779
54780         * modules/bison-i18n (Depends-on): Add gettext.
54781
54782 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54783
54784         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
54785         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
54786         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
54787         also add missing comma that caused broken test.
54788         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
54789         stdlib.h, for `abort'.
54790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
54791         variables.
54792         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
54793         include unistd.h if present, for `rmdir'.
54794         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
54795         variables.
54796         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
54797         in the process include standard headers for prototypes.
54798         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
54799         gets declared on GNU/Linux.
54800         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
54801         unistd.h, for `rmdir'.
54802         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
54803
54804         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
54805         always true.
54806         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
54807
54808         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
54809
54810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54811
54812         * gnulib-tool (func_version): Create output all at once.  This
54813         may help avoid triggering unnecessary SIGPIPEs, and at any
54814         rate it doesn't hurt.
54815
54816 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54817             Bruno Haible  <bruno@clisp.org>
54818
54819         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
54820         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54821         * m4/signed.m4 (bh_C_SIGNED): Likewise.
54822
54823         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
54824         (gl_FUNC_VASPRINTF): Invoke it.
54825
54826 2006-09-22  Bruno Haible  <bruno@clisp.org>
54827
54828         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
54829         getloadavg.c as first argument.
54830
54831 2006-09-22  Bruno Haible  <bruno@clisp.org>
54832
54833         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
54834         at the beginning of the gl_INIT macro.
54835         * modules/getloadavg (configure.ac): Pass $gl_source_base to
54836         gl_GETLOADAVG.
54837
54838 2006-09-22  Bruno Haible  <bruno@clisp.org>
54839
54840         * gnulib-tool (func_create_megatestdir): Don't include the config-h
54841         module.
54842         Suggested by Ralf Wildenhues.
54843
54844 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54845
54846         Import this patch from libc:
54847
54848         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
54849
54850         * lib/regex_internal.c (re_string_reconstruct): Handle
54851         offset < pstr->valid_raw_len && pstr->offsets_needed case.
54852         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
54853         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
54854         re_string_context_at.
54855
54856         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
54857         now requires it.
54858         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
54859         gl_REGEX now does it for us.
54860         (gl_REGEX): Add test taken from
54861         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
54862
54863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
54864         Check that large offsets work.  Modernize Autoconf usages.
54865         Prefer "yes" to mean a good thing rather than a bad.
54866         Don't put "#define mkstemp" in config.h, as this might interfere
54867         with standard system headers that "#define mkstemp mkstemp64".
54868
54869         * modules/mkstemp (Depends-on): Add extensions, so that
54870         mkstemp is visible on some platforms.
54871         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
54872         (Include): Change to "mkstemp.h" from <stdlib.h>.
54873         (Files): Add mkstemp.h.
54874
54875         * lib/mkstemp.h: New file, since some standard headers
54876         #define mkstemp.
54877         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
54878         Include "mkstemp.h".
54879         Make the _LIBC code resemble glibc original more,
54880         e.g., use K&R style.
54881         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
54882         (mkstemp): Remove, since mkstemp.h does this for us.
54883         * lib/stdlib--.h: Include mkstemp.h.
54884
54885         Import this patch from libc:
54886
54887         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54888
54889         * lib/tempname.c (__gen_tempname): Change attempts_min
54890         into a macro.  Use preprocessor to decide how to initialize
54891         attempts [Coverity CID 67].
54892
54893 2006-09-20  Bruno Haible  <bruno@clisp.org>
54894
54895         * lib/mkdtemp.c: Import from libc.
54896         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
54897                 * sysdeps/posix/tempname.c (__gen_tempname): Change
54898                 attempts_min into a macro.  Use preprocessor to decide how to
54899                 initialize attempts [Coverity CID 67].
54900         2001-11-27  Paul Eggert  <eggert@twinsun.com>
54901                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
54902                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
54903
54904 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54905
54906         * gnulib-tool (func_exit): New function, to allow to pass the
54907         exit status portably through the trap.  Use everywhere.
54908         (--help, --version): Signal a write error.
54909         (trap): catch SIGPIPE, for write errors.
54910         Exit at the end of the trap, with the correct exit status.
54911
54912 2006-09-19  Karl Berry  <karl@gnu.org>
54913
54914         * doc/gnulib.texi: note about the license texinfo files.
54915
54916 2006-09-19  Eric Blake  <ebb9@byu.net>
54917
54918         * gnulib-tool: Avoid space-tab.
54919
54920 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54921
54922         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
54923         that prevented coreutils 6.1 from building.  Problem reported
54924         by Petter Reinholdtsen.
54925
54926 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54927
54928         * gnulib-tool (avoidlist): Fix typo that broke options like
54929         --avoid=lock that are used by coreutils bootstrap.
54930
54931 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
54932
54933         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
54934         more systematically.
54935
54936 2006-09-18  Jim Meyering  <jim@meyering.net>
54937
54938         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
54939
54940 2006-09-18  Bruno Haible  <bruno@clisp.org>
54941
54942         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
54943
54944 2006-09-18  Bruno Haible  <bruno@clisp.org>
54945
54946         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
54947         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
54948         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
54949         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
54950         * m4/gettext.m4: Require autoconf >= 2.52.
54951         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
54952         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
54953         of gl_cv_header_inttypes_h.
54954
54955 2006-09-18  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/javaversion.c: Include configmake.h.
54958
54959 2006-09-18  Bruno Haible  <bruno@clisp.org>
54960
54961         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
54962         avoid that the while loops be executed in a subshell.
54963
54964 2006-09-18  Bruno Haible  <bruno@clisp.org>
54965
54966         * MODULES.html.sh (func_module): Break long lines.
54967         Suggested by Bruce Korb <bkorb@gnu.org>.
54968
54969 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54970
54971         Speed up by a factor of 1.12.
54972         * gnulib-tool (nl): New variable.
54973         (func_import): Rewrite include directive extraction to only read each
54974         directive once.
54975
54976 2006-09-17  Bruno Haible  <bruno@clisp.org>
54977
54978         * modules/javaversion (Makefile.am): Remove DEFS setting.
54979         (Depends-on): Add configmake, for PKGDATADIR definition.
54980
54981 2006-09-17  Bruno Haible  <bruno@clisp.org>
54982
54983         * gnulib-tool (func_create_testdir): Rewrite all files at once.
54984
54985 2006-09-17  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool (func_append): New function, stolen from libtool.m4.
54988         (func_modules_transitive_closure, func_modules_add_dummy,
54989         func_modules_to_filelist, func_import, func_create_testdir,
54990         func_create_megatestdir, ...): Use it wherever possible.
54991         Suggested by Ralf Wildenhues.
54992
54993 2006-09-16  Karl Berry  <karl@gnu.org>
54994
54995         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
54996         to avoid sectioning errors.
54997         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
54998         [ifinfo]: blank line after @center-ed titles.
54999         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
55000         Spell FSF address consistently with others.
55001         (These changes approved by rms.)
55002
55003 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55004
55005         Speed up by a factor of 1.61.
55006         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
55007         already checked module names again.
55008
55009 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55010
55011         Speed up by a factor of 1.13.
55012         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
55013         for new_files, and the input to func_add_or_update.
55014
55015 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55016
55017         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
55018         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
55019
55020 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         * modules/mkancesdirs (Depends-on): Add fcntl.
55023         * modules/savewd: New file.
55024         * MODULES.html.sh (File system functions): Add savewd.
55025
55026         * modules/configmake (Makefile.am): Add support for the
55027         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
55028
55029 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55030
55031         * m4/savewd.m4: New file.
55032
55033 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55034
55035         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
55036         (dirchownmod): New arg FD.  All callers changed.
55037         Use FD rather than opening the directory ourself, as opening is
55038         now the caller's responsibility.
55039         * lib/dirchownmod.h: Likewise.
55040         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
55041         hosts that require <sys/types.h> before <sys/stat.h>.  Include
55042         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
55043         (test_dir): Remove.
55044         (mkancesdirs): Return length of prefix of FILE that has already
55045         been made, or -2 if there is a child doing the work.  Redo
55046         algorithm so that it is O(N) rather than O(N**2).  Optimize away
55047         ".", and treat ".." specially since it might stray back into
55048         already-created areas.  Use a subprocess if necessary.  New arg
55049         WD; all users changed.  MAKE_DIR function should now return 1
55050         if it creates a directory that is not readable.  Return -2 if
55051         a child process is spun off.
55052         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
55053         Adjust signature to match code.
55054         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
55055         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
55056         all users changed.
55057         * lib/savewd.c, lib/savewd.h: New files.
55058
55059 2006-09-15  Jim Meyering  <jim@meyering.net>
55060
55061         * modules/rename-dest-slash: New module.
55062         * MODULES.html.sh (posix_compat): Add it here.
55063
55064         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
55065
55066 2006-09-15  Jim Meyering  <jim@meyering.net>
55067
55068         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
55069         file.
55070
55071         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
55072
55073 2006-09-15  Jim Meyering  <jim@meyering.net>
55074
55075         * lib/rename-dest-slash.c (has_trailing_slash): Use
55076         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
55077         (rpl_rename_dest_slash): Perform the cheaper trailing slash
55078         test before testing whether SRC is a directory.
55079         Suggestions from Bruno Haible.
55080
55081         Avoid a warning about an unused variable.
55082         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
55083         into the #ifdef block where it's used.
55084
55085         * lib/rename-dest-slash.c: New file.
55086
55087 2006-09-14  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/allocsa.c: Include <config.h> unconditionally.
55090         * lib/asnprintf.c: Likewise.
55091         * lib/asprintf.c: Likewise.
55092         * lib/c-strcasecmp.c: Likewise.
55093         * lib/c-strcasestr.c: Likewise.
55094         * lib/c-strncasecmp.c: Likewise.
55095         * lib/c-strstr.c: Likewise.
55096         * lib/classpath.c: Likewise.
55097         * lib/clean-temp.c: Likewise.
55098         * lib/concatpath.c: Likewise.
55099         * lib/copy-file.c: Likewise.
55100         * lib/csharpcomp.c: Likewise.
55101         * lib/csharpexec.c: Likewise.
55102         * lib/execute.c: Likewise.
55103         * lib/fatal-signal.c: Likewise.
55104         * lib/findprog.c: Likewise.
55105         * lib/fwriteerror.c: Likewise.
55106         * lib/gl_array_list.c: Likewise.
55107         * lib/gl_array_oset.c: Likewise.
55108         * lib/gl_avltree_list.c: Likewise.
55109         * lib/gl_avltree_oset.c: Likewise.
55110         * lib/gl_avltreehash_list.c: Likewise.
55111         * lib/gl_carray_list.c: Likewise.
55112         * lib/gl_linked_list.c: Likewise.
55113         * lib/gl_linkedhash_list.c: Likewise.
55114         * lib/gl_list.c: Likewise.
55115         * lib/gl_oset.c: Likewise.
55116         * lib/gl_rbtree_list.c: Likewise.
55117         * lib/gl_rbtree_oset.c: Likewise.
55118         * lib/gl_rbtreehash_list.c: Likewise.
55119         * lib/imaxabs.c: Likewise.
55120         * lib/imaxdiv.c: Likewise.
55121         * lib/javacomp.c: Likewise.
55122         * lib/javaexec.c: Likewise.
55123         * lib/javaversion.c: Likewise.
55124         * lib/linebreak.c: Likewise.
55125         * lib/localcharset.c: Likewise.
55126         * lib/lock.c: Likewise.
55127         * lib/mbchar.c: Likewise.
55128         * lib/mbswidth.c: Likewise.
55129         * lib/mkdtemp.c: Likewise.
55130         * lib/pipe.c: Likewise.
55131         * lib/printf-args.c: Likewise.
55132         * lib/printf-parse.c: Likewise.
55133         * lib/progname.c: Likewise.
55134         * lib/progreloc.c: Likewise.
55135         * lib/readlink.c: Likewise.
55136         * lib/sh-quote.c: Likewise.
55137         * lib/stpcpy.c: Likewise.
55138         * lib/stpncpy.c: Likewise.
55139         * lib/strcasecmp.c: Likewise.
55140         * lib/strcasestr.c: Likewise.
55141         * lib/strcspn.c: Likewise.
55142         * lib/striconv.c: Likewise.
55143         * lib/strncasecmp.c: Likewise.
55144         * lib/strnlen1.c: Likewise.
55145         * lib/strstr.c: Likewise.
55146         * lib/strtok_r.c: Likewise.
55147         * lib/tls.c: Likewise.
55148         * lib/tmpdir.c: Likewise.
55149         * lib/unicodeio.c: Likewise.
55150         * lib/unsetenv.c: Likewise.
55151         * lib/vasnprintf.c: Likewise.
55152         * lib/vasprintf.c: Likewise.
55153         * lib/wait-process.c: Likewise.
55154         * lib/xallocsa.c: Likewise.
55155         * lib/xsetenv.c: Likewise.
55156         * lib/xstriconv.c: Likewise.
55157
55158 2006-09-13  Simon Josefsson  <jas@extundo.com>
55159
55160         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
55161         that internally, suggested by Ralf Wildenhues
55162         <Ralf.Wildenhues@gmx.de>.
55163
55164 2006-09-13  Simon Josefsson  <jas@extundo.com>
55165
55166         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
55167         @LIBOBJS@.
55168         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55169
55170 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55171
55172         * lib/_fpending.c: Include <config.h> unconditionally, since we no
55173         longer worry about uses that don't define HAVE_CONFIG_H.
55174         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
55175         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
55176         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
55177         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
55178         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
55179         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
55180         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
55181         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
55182         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
55183         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
55184         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
55185         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
55186         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
55187         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
55188         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
55189         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
55190         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
55191         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
55192         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
55193         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
55194         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
55195         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
55196         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
55197         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
55198         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
55199         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
55200         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
55201         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
55202         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
55203         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
55204         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
55205         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
55206         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
55207         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
55208         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
55209         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
55210         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
55211         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
55212         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
55213         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
55214         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
55215         Likewise.
55216
55217 2006-09-13  Eric Blake  <ebb9@byu.net>
55218
55219         * lib/getopt.c: Fix typo in last commit.
55220
55221 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55222
55223         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
55224         dgettext.
55225
55226 2006-09-12  Jim Meyering  <jim@meyering.net>
55227
55228         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
55229         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
55230         Reported by Nelson H. F. Beebe.
55231
55232 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55233
55234         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
55235         program_invocation_name and program_invocation_short_name are
55236         initialized.
55237         * lib/argp-namefrob.h: Move declarations of program_invocation_name
55238         and program_invocation_short_name to argp.h, so they are visible
55239         to user programs.
55240         * lib/argp.h: Likewise
55241
55242 2006-09-10  Bruno Haible  <bruno@clisp.org>
55243
55244         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55245         m4/inttypes_h.m4, m4/uintmax_t.m4.
55246
55247 2006-09-10  Bruno Haible  <bruno@clisp.org>
55248
55249         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
55250         gl_AC_TYPE_UINTMAX_T.
55251
55252 2006-09-10  Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
55255
55256 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55257
55258         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
55259         convention.  Text proposed by Bruno Haible.
55260         (struct argp_option): Document the use of N_() wrappers.
55261
55262         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
55263         '\v', and translate the two parts separately, instead of feeding
55264         the whole string to gettext.  This allows to exclude
55265         '\v' from the strings visible to the translator by writing doc
55266         strings as N_("..") "\v" N_("..").
55267
55268 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
55269
55270         * config/srclist.txt: Undo latest change; the bug was fixed.
55271
55272 2006-09-09  Bruno Haible  <bruno@clisp.org>
55273
55274         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
55275         assignments if building a library without libtool.
55276         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
55277         in func_emit_lib_Makefile_am.
55278         (func_import): When building a static library libfoo.a, arrange to
55279         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
55280         (func_create_testdir): Likewise.
55281         * modules/gc (configure.ac, Makefile.am): If building statically,
55282         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
55283         * modules/iconvme (configure.ac, Makefile.am): Likewise.
55284         * modules/striconv (configure.ac, Makefile.am): Likewise.
55285         Based on a suggestion by Ralf Wildenhues.
55286
55287 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55290         Check for unistd.h too, since Autoconf doesn't assume POSIX.
55291         Also:
55292
55293         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55294         Add year_2050_test to catch glibc bug 2821
55295         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55296
55297         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55298         Prefer #ifdef to #if.
55299
55300         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
55301         Return from 'main' instead of calling 'exit'.
55302
55303 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55304
55305         * lib/mktime.c (guess_time_tm): Fix bug where mktime
55306         returned the maximum time_t value rather than (time_t) -1.
55307         Problem originally reported by William Bardwell
55308         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
55309
55310         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55311         Moved to here ...
55312         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
55313         ... from here.
55314
55315 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55316
55317         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
55318         2821 is fixed.
55319
55320 2006-09-08  Jim Meyering  <jim@meyering.net>
55321
55322         Don't make generated files read-only.  That would bother too many
55323         people.  However, do retain the ability to work when targets are
55324         read-only: remove the destination and temporary files before writing
55325         them (when generated via sed or echo), or by using the -f option for
55326         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
55327         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55328         * modules/byteswap, modules/configmake, modules/fcntl:
55329         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55330         * modules/localcharset, modules/netinet_in, modules/poll:
55331         * modules/stdbool, modules/stdint, modules/sys_select:
55332         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55333
55334 2006-09-08  Jim Meyering  <jim@meyering.net>
55335
55336         Avoid new build failure on FreeBSD 6.0.
55337         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
55338         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
55339         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
55340
55341 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55342
55343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
55344
55345 2006-09-07  Jim Meyering  <jim@meyering.net>
55346
55347         Fix global typo in last change: use chmod u-w, not chmod u-x.
55348         Spotted by Paul Eggert and Bruce Korb.
55349         * modules/alloca-opt, modules/argz, modules/arpa_inet:
55350         * modules/byteswap, modules/configmake, modules/fcntl:
55351         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
55352         * modules/localcharset, modules/netinet_in, modules/poll:
55353         * modules/stdbool, modules/stdint, modules/sys_select:
55354         * modules/sys_socket, modules/sys_stat, modules/sysexits:
55355
55356 2006-09-06  Jim Meyering  <jim@meyering.net>
55357
55358         Make generated files be read-only.
55359         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
55360         Ensure that each generated file is now read-only.
55361         * modules/argz: Likewise.
55362         * modules/arpa_inet: Likewise.
55363         * modules/byteswap: Likewise.
55364         * modules/configmake: Likewise.
55365         * modules/fcntl: Likewise.
55366         * modules/fnmatch: Likewise.
55367         * modules/getopt: Likewise.
55368         * modules/glob: Likewise.
55369         * modules/inttypes: Likewise.
55370         * modules/netinet_in: Likewise.
55371         * modules/poll: Likewise.
55372         * modules/stdbool: Likewise.
55373         * modules/stdint: Likewise.
55374         * modules/sys_select: Likewise.
55375         * modules/sys_socket: Likewise.
55376         * modules/sys_stat: Likewise.
55377         * modules/sysexits: Likewise.
55378         * modules/localcharset: Same as above, but continue using temporary
55379         file named "t-$@" (why different?) rather than the "$@-t" used
55380         everywhere else.
55381
55382         * modules/sysexits (Makefile.am): Replace literal occurrences
55383         of "sysexit.h" more readable, and more consistent, "$@".
55384
55385 2006-09-06  Bruno Haible  <bruno@clisp.org>
55386
55387         * modules/striconv: New file.
55388         * modules/xstriconv: New file.
55389         * MODULES.html.sh (Internationalization functions): Add striconv,
55390         xstriconv.
55391
55392 2006-09-06  Bruno Haible  <bruno@clisp.org>
55393
55394         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
55395         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
55396         not using libtool correctly.
55397
55398 2006-09-06  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/striconv.h: New file.
55401         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
55402         iconvstring.c.
55403         * lib/xstriconv.h: New file.
55404         * lib/xstriconv.c: New file.
55405
55406 2006-09-06  Bruno Haible  <bruno@clisp.org>
55407
55408         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55409         lib_..._LDFLAGS.
55410
55411 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55412
55413         * lib/argz_.h: Sync from Libtool.
55414
55415         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
55416                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55417
55418         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
55419
55420 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55421
55422         * modules/trim: New file.
55423
55424 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
55425
55426         * lib/trim.h: New file.
55427         * lib/trim.c: New file.
55428
55429 2006-09-05  Bruno Haible  <bruno@clisp.org>
55430
55431         * MODULES.html.sh (String handling): Add trim.
55432
55433 2006-09-04  Karl Berry  <karl@gnu.org>
55434
55435         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
55436         until next release.
55437
55438 2006-09-03  Bruno Haible  <bruno@clisp.org>
55439
55440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
55441         correctly.
55442
55443 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55444
55445         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
55446         not gl_GETLOADAVG.  Omit unneeded semicolons.
55447         Problems reported by Ralf Wildenhues in
55448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55449         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
55450         at the end, which is the usual gnulib style.
55451
55452         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
55453         of doing all the work ourselves.
55454         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
55455         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
55456
55457 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55458
55459         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
55460         Problem reported by Ralf Wildenhues in
55461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
55462
55463         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
55464         HAVE_STRUCT_STATFS_F_FSTYPENAME.
55465
55466 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55467
55468         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
55469         yesterday's patch by changing test -n to test -z.
55470
55471 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55472
55473         * modules/getloadavg (Files): Add m4/getloadavg.m4.
55474         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
55475         the former is now obsolescent.
55476
55477         * modules/chdir-long (Depends-on): Add fcntl.
55478
55479 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
55482         obsolescent, and programs should use gnulib instead.
55483         * m4/getloadavg.m4: New file, with contents taken from Autoconf
55484         but with prefixes changed.
55485
55486 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55487
55488         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
55489         or stdbool.h, because they might not exist while configuring.
55490
55491         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
55492         Don't include unistd.h or limits.h; not needed, since chdir-long.h
55493         does that for us.
55494         (O_DIRECTORY): Remove.
55495
55496 2006-08-31  Eric Blake  <ebb9@byu.net>
55497
55498         * gnulib-tool: Don't let emacs change spaces to TAB.
55499
55500 2006-08-31  Bruno Haible  <bruno@clisp.org>
55501
55502         * gnulib-tool: When calling func_import more than once, do it in a
55503         subshell.
55504         Reported by Eric Blake <ebb9@byu.net>.
55505
55506 2006-08-31  Bruno Haible  <bruno@clisp.org>
55507
55508         * gnulib-tool (nl): Remove variable.
55509         (sed_transform_lib_file): Use more robust test for config-h module.
55510         (func_import): Fix typo in 2006-08-25 patch.
55511
55512 2006-08-31  Bruno Haible  <bruno@clisp.org>
55513
55514         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
55515         specified, augment Makefile.am variables instead of assigning them.
55516
55517 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55518
55519         Work around a bug in both the Linux and SunOS 64-bit kernels:
55520         nanosleep mishandles sleeps for longer than 2**31 seconds.
55521         Problem reported by Frank v Waveren in
55522         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
55524         Check for nanosleep bug.
55525         (LIB_NANOSLEEP): Append clock_gettime library if needed.
55526
55527 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         Work around a bug in both the Linux and SunOS 64-bit kernels:
55530         nanosleep mishandles sleeps for longer than 2**31 seconds.
55531         Problem reported by Frank v Waveren in
55532         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
55533         * lib/nanosleep.c (BILLION): New constant.
55534         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
55535         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
55536         implementation.
55537
55538 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55539
55540         * modules/nanosleep (Depends-on): Add gettime.
55541
55542 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
55543         and Simon Josefsson  <jas@extundo.com>
55544         and Oskar Liljeblad  <oskar@osk.mine.nu>
55545
55546         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
55547         * gnulib-tool (func_import): New license type 'unmodifiable license
55548         text'.
55549         * modules/fdl: Use it.  Longer description.
55550         * module/gpl, module/lgpl: New files.
55551
55552 2006-08-30  Jim Meyering  <jim@meyering.net>
55553
55554         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
55555         shadowing the parameter.
55556
55557 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55558
55559         Sync from Libtool:
55560
55561         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55562
55563         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
55564         sharing with gnulib.  Report by Eric Blake.
55565
55566 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55567
55568         * modules/isapipe: New file.
55569         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
55570
55571 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * modules/configmake (Makefile.am): Add a comment, and omit
55574         the CONFIGMAKE_ prefix from generated macro names.  Suggested
55575         by Bruno Haible.
55576
55577 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55578
55579         * m4/isapipe.m4: New file.
55580
55581 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
55582
55583         * lib/isapipe.c, lib/isapipe.h: New files.
55584
55585 2006-08-29  Jim Meyering  <jim@meyering.net>
55586
55587         * modules/configmake (Makefile.am): Make configmake.h depend on
55588         Makefile.  Otherwise, a stale configmake.h could hang around.
55589
55590 2006-08-29  Eric Blake  <ebb9@byu.net>
55591
55592         * lib/error.c (error_at_line, print_errno_message): Match libc, after
55593         resolution of upstream bug 3044.
55594
55595 2006-08-29  Bruno Haible  <bruno@clisp.org>
55596
55597         * modules/localcharset (Depends-on): Add configmake.
55598         (Makefile.am): Remove setting of LIBDIR through DEFS.
55599
55600 2006-08-29  Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
55603         defined.
55604
55605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55606
55607         * modules/fcntl: New file.
55608         * modules/chdir-safer (Depends-on): Add fcntl.
55609         * modules/fts: Likewise.
55610         * modules/mkdir-p: Likewise.
55611
55612         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
55613         This undoes the most recent change, since we're now addressing the
55614         problem in a different way.
55615
55616         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
55617         into output, since the output might be called Makefile.am even
55618         if $makefile_name is something different.
55619         (func_import): Use $makefile_am rather than
55620         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
55621         empty.
55622
55623         * modules/inttypes (Files): Add m4/inttypes-h.m4.
55624
55625 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55626
55627         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
55628         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
55629         recent change to stdint.m4, since we're now addressing the problem in a
55630         different way.
55631
55632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55633
55634         * m4/fcntl_h.m4: New file.
55635
55636 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * lib/fcntl_.h: New file.
55639         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
55640         the fcntl module.
55641         * lib/dirchownmod.c: Likewise.
55642         * lib/fts.c: Likewise.
55643
55644         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
55645         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
55646         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
55647         just before including <inttypes.h>, to avoid circular inclusion.
55648
55649 2006-08-28  Jim Meyering  <jim@meyering.net>
55650
55651         * doc/visibility.texi: Actually read and correct the grammar of the
55652         sentence affected by yesterday's change.
55653
55654 2006-08-28  Eric Blake  <ebb9@byu.net>
55655
55656         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
55657         needs wrapper.
55658
55659 2006-08-28  Eric Blake  <ebb9@byu.net>
55660
55661         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
55662
55663 2006-08-28  Eric Blake  <ebb9@byu.net>
55664
55665         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
55666
55667 2006-08-28  Bruno Haible  <bruno@clisp.org>
55668
55669         * modules/c-strstr: New file, from GNU gettext.
55670         * MODULES.html.sh (String handling): Add c-strstr.
55671
55672 2006-08-28  Bruno Haible  <bruno@clisp.org>
55673
55674         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
55675         macros.
55676         Reported by Eric Blake.
55677
55678 2006-08-28  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
55681         (VASNPRINTF): Return a string of length > INT_MAX without failing.
55682         * lib/vasprintf.c: Include errno.h, limits.h.
55683         (EOVERFLOW): New fallback definition.
55684         (vasprintf): Test here whether the string length is > INT_MAX.
55685         * lib/vsnprintf.c: Include errno.h, limits.h.
55686         (EOVERFLOW): New fallback definition.
55687         (vsnprintf): Fix bug when generated string was too long for the buffer.
55688         Test here whether the string length is > INT_MAX.
55689
55690 2006-08-28  Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/inttypes_.h (SCNX*): Remove definitions.
55693         Reported by Eric Blake.
55694
55695 2006-08-28  Bruno Haible  <bruno@clisp.org>
55696
55697         * lib/c-strstr.h: New file, from GNU gettext.
55698         * lib/c-strstr.c: New file, from GNU gettext.
55699
55700 2006-08-28  Bruno Haible  <bruno@clisp.org>
55701
55702         * gnulib-tool: Reorder some statements.
55703
55704 2006-08-28  Bruno Haible  <bruno@clisp.org>
55705
55706         * gnulib-tool: New option --makefile-name.
55707         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
55708         $makefile_name.
55709         (func_import): Write $makefile_name to the cache file, and read it from
55710         there unless explicitly specified. Use $makefile_name as file name
55711         instead of Makefile.am. Adjust the recommendations accordingly.
55712
55713 2006-08-28  Bruno Haible  <bruno@clisp.org>
55714
55715         * gnulib-tool (func_verify_module): Check against misapplying patch.
55716
55717 2006-08-28  Bruno Haible  <bruno@clisp.org>
55718
55719         * gnulib-tool (func_relativize, func_relconcat): New functions.
55720         Give an error if --local-dir is given with --update.
55721         Remove trailing slashes from $local_gnulib_dir.
55722         (func_import): Store the relativized $local_gnulib_dir in
55723         gnulib-cache.m4, and read it from there if not specified explicitly.
55724
55725 2006-08-28  Bruno Haible  <bruno@clisp.org>
55726
55727         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
55728         is the current directory. Respect also $local_gnulib_dir.
55729
55730 2006-08-28  Bruno Haible  <bruno@clisp.org>
55731             Simon Josefsson  <jas@extundo.com>
55732
55733         BeOS portability.
55734         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
55735
55736 2006-08-27  Jim Meyering  <jim@meyering.net>
55737
55738         * doc/visibility.texi: Remove duplicate word: "pointer".
55739
55740 2006-08-26  Bruno Haible  <bruno@clisp.org>
55741
55742         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
55743         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
55744         (Makefile.am): Create inttypes.h from inttypes_.h.
55745         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
55746
55747         * modules/imaxabs: New file.
55748
55749         * modules/imaxdiv: New file.
55750
55751 2006-08-26  Bruno Haible  <bruno@clisp.org>
55752
55753         * m4/inttypes.m4: New file.
55754         * m4/_inttypes_h.m4: Remove file.
55755         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
55756         PRI_MACROS_BROKEN.
55757         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
55758
55759         * m4/imaxabs.m4: New file.
55760
55761         * m4/imaxdiv.m4: New file.
55762
55763 2006-08-26  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/inttypes_.h: New file.
55766         * lib/inttypes.h: Remove file.
55767         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
55768
55769         * lib/imaxabs.c: New file.
55770
55771         * lib/imaxdiv.c: New file.
55772
55773 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         New config-h module, so that "make" output needn't be cluttered
55776         by -DHAVE_CONFIG_H.
55777         * MODULES.html.sh (Support for building libraries and executables):
55778         Add config-h.
55779         * modules/config-h: New file.
55780         * gnulib-tool (nl, sed_transform_lib_file): New vars.
55781         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
55782         the config-h module is used.
55783
55784         New configmake module, so that "make" output needn't be cluttered
55785         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
55786         * MODULES.html.sh (Support for building libraries and executables):
55787         Add configmake.
55788         * modules/configmake: New file.
55789
55790 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * m4/config-h.m4: New file.
55793
55794 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * config/srclist.txt: Add elisp-comp.
55797
55798 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55799
55800         * MODULES.html.sh (Support for building libraries and executables):
55801         Add elisp-comp.
55802         * build-aux/elisp-comp: New file.
55803         * modules/elisp-comp: New file.
55804
55805 2006-08-24  Bruno Haible  <bruno@clisp.org>
55806
55807         * gnulib-tool (func_create_testdir): Use non-default values of
55808         sourcebase and m4base.
55809
55810 2006-08-24  Bruno Haible  <bruno@clisp.org>
55811
55812         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
55813         HTML structure.
55814
55815 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55816
55817         * modules/openat (Depends-on): Add lchown.
55818
55819 2006-08-23  Bruno Haible  <bruno@clisp.org>
55820
55821         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
55822         of gl_LOCK_EARLY instead of gl_LOCK.
55823
55824 2006-08-23  Bruno Haible  <bruno@clisp.org>
55825
55826         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
55827         on OSF/1 to no.
55828         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
55829
55830 2006-08-23  Bruno Haible  <bruno@clisp.org>
55831
55832         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
55833         as unusable.
55834
55835         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
55836         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
55837         (gl_LOCK): New macro.
55838
55839 2006-08-22  Simon Josefsson  <jas@extundo.com>
55840
55841         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
55842         to md5 module.
55843
55844 2006-08-22  Simon Josefsson  <jas@extundo.com>
55845
55846         * MODULES.html.sh: Add "Support for maintaining and release
55847         projects".
55848
55849         * build-aux/gnupload: New file, from coreutils.
55850
55851 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55852
55853         Avoid the need for AC_LIBSOURCES in m4 macros.
55854         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
55855         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
55856         * modules/check-version (EXTRA_DIST): Add check-version.h.
55857         * modules/crc (EXTRA_DIST): Add crc.h.
55858         * modules/des (EXTRA_DIST): Add des.h.
55859         * modules/gc (EXTRA_DIST): Add gc.h.
55860         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
55861         * modules/getline (EXTRA_DIST): Add getline.h.
55862         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
55863         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
55864         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
55865         * modules/md2 (EXTRA_DIST): Add md2.h.
55866         * modules/md4 (EXTRA_DIST): Add md4.h.
55867         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
55868         * modules/read-file (EXTRA_DIST): Add read-file.h.
55869         * modules/readline (EXTRA_DIST): Add readline.h.
55870         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
55871         rijndael-api-fst.h.
55872
55873 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55874
55875         * m4/rijndael.m4 (gl_ARCFOUR):
55876         * m4/arctwo.m4 (gl_ARCTWO):
55877         * m4/check-version.m4 (gl_CHECK_VERSION):
55878         * m4/crc.m4 (gl_CRC):
55879         * m4/des.m4 (gl_DES):
55880         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
55881         * m4/gc.m4 (gl_GC):
55882         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
55883         * m4/getline.m4 (gl_FUNC_GETLINE):
55884         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
55885         * m4/hmac-md5.m4 (gl_HMAC_MD5):
55886         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
55887         * m4/md2.m4 (gl_MD2):
55888         * m4/md4.m4 (gl_MD4):
55889         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
55890         * m4/read-file.m4 (gl_FUNC_READ_FILE):
55891         * m4/readline.m4 (gl_FUNC_READLINE):
55892         * m4/rijndael.m4 (gl_RIJNDAEL):
55893         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55894         to get the necessary .h files and whatnot.
55895
55896 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
55897
55898         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
55899         gnulib rather than the other way around.
55900         * config/srclistvars.sh (COREUTILS): Remove.
55901
55902 2006-08-22  Jim Meyering  <jim@meyering.net>
55903
55904         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
55905
55906         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
55907
55908 2006-08-22  Eric Blake  <ebb9@byu.net>
55909
55910         * modules/regexprops-generic: New file.
55911         * MODULES.html.sh (Support for building documentation): List it.
55912
55913 2006-08-22  Eric Blake  <ebb9@byu.net>
55914
55915         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
55916         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55917         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
55918         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55919
55920 2006-08-22  Bruno Haible  <bruno@clisp.org>
55921
55922         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
55923         and lib_LTLIBRARIES like the other lib_* variables.
55924
55925 2006-08-22  Bruno Haible  <bruno@clisp.org>
55926
55927         * build-aux/x-to-1.in: New file, from GNU gettext.
55928
55929 2006-08-22  Bruno Haible  <bruno@clisp.org>
55930
55931         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
55932         <utmpx.h> exists.
55933
55934 2006-08-22  Bruno Haible  <bruno@clisp.org>
55935
55936         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
55937         <utmpx.h> exists.
55938
55939 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55940
55941         BeOS portability.
55942         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
55943         exist.
55944         Problem reported by Bruno Haible.
55945
55946 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         Avoid the need for AC_LIBSOURCES in m4 macros.
55949         * modules/acl (EXTRA_DIST): Add acl.h.
55950         * modules/argmatch (Files): Add m4/argmatch.m4.
55951         (configure.ac): Add gl_ARGMATCH.
55952         (EXTRA_DIST): Renamed from lib_SOURCES, for
55953         consistency with the other modules.  Remove argmatch.c.
55954         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
55955         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
55956         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
55957         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
55958         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
55959         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
55960         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
55961         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
55962         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
55963         * modules/closeout (EXTRA_DIST): Add closeout.h.
55964         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
55965         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
55966         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
55967         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
55968         dirname.h; remove basename.c and stripslash.c.
55969         * modules/exclude (EXTRA_DIST): Add exclude.h.
55970         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
55971         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
55972         * modules/file-type (EXTRA_DIST): Add file-type.h.
55973         * modules/filemode (EXTRA_DIST): Add filemode.h.
55974         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
55975         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55976         * modules/fpending (EXTRA_DIST): Add __fpending.h.
55977         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
55978         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
55979         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
55980         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
55981         * modules/getdate (EXTRA_DIST): Add getdate.c.
55982         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
55983         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
55984         * modules/getpass (EXTRA_DIST): Add getpass.h.
55985         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
55986         * modules/group-member (EXTRA_DIST): Add group-member.h.
55987         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
55988         * modules/hash (EXTRA_DIST): Add hash.h.
55989         * modules/human (EXTRA_DIST): Add human.h.
55990         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
55991         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
55992         * modules/lchown (EXTRA_DIST): Add lchown.h.
55993         * modules/long-options (EXTRA_DIST): Add long-options.h.
55994         * modules/lstat (EXTRA_DIST): Add lstat.h.
55995         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
55996         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
55997         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
55998         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
55999         * modules/memxor (EXTRA_DIST): Add memxor.h.
56000         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
56001         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
56002         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
56003         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
56004         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
56005         * modules/physmem (EXTRA_DIST): Add physmem.h.
56006         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
56007         * modules/posixver (EXTRA_DIST): Add posixver.h.
56008         * modules/quote (EXTRA_DIST): Add quote.h.
56009         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
56010         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
56011         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
56012         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
56013         regex_internal.h regexec.c.
56014         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
56015         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
56016         * modules/same (EXTRA_DIST): Add same.h.
56017         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
56018         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
56019         * modules/savedir (EXTRA_DIST): Add savedir.h.
56020         * modules/sha1 (EXTRA_DIST): Add sha1.h.
56021         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
56022         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
56023         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
56024         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
56025         * modules/strdup (EXTRA_DIST): Add strdup.h.
56026         * modules/strftime (EXTRA_DIST): Add strftime.h.
56027         * modules/strndup (EXTRA_DIST): Add strndup.h.
56028         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
56029         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
56030         * modules/time_r (EXTRA_DIST): Add time_r.h.
56031         * modules/timespec (EXTRA_DIST): Add timespec.h.
56032         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
56033         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
56034         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
56035         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
56036         * modules/userspec (EXTRA_DIST): Add userspec.h.
56037         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
56038         * modules/utimens (EXTRA_DIST): Add utimens.h.
56039         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
56040         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
56041         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
56042         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
56043         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
56044         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
56045         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
56046         * modules/yesno (EXTRA_DIST): Add yesno.h.
56047
56048 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
56049
56050         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
56051
56052         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
56053         * m4/dev-ino.m4, same-inode.m4: Remove.
56054
56055         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
56056         * m4/acl.m4 (AC_FUNC_ACL):
56057         * m4/backupfile.m4 (gl_BACKUPFILE):
56058         * m4/c-strtod.m4 (gl_C99_STRTOLD):
56059         * m4/canon-host.m4 (gl_CANON_HOST):
56060         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56061         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
56062         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
56063         * m4/cloexec.m4 (gl_CLOEXEC):
56064         * m4/close-stream.m4 (gl_CLOSE_STREAM):
56065         * m4/closeout.m4 (gl_CLOSEOUT):
56066         * m4/dirfd.m4 (gl_FUNC_DIRFD):
56067         * m4/dirname.m4 (gl_DIRNAME):
56068         * m4/exclude.m4 (gl_EXCLUDE):
56069         * m4/exitfail.m4 (gl_EXITFAIL):
56070         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
56071         * m4/file-type.m4 (gl_FILE_TYPE):
56072         * m4/filemode.m4 (gl_FILEMODE):
56073         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
56074         * m4/fpending.m4 (gl_FUNC_FPENDING):
56075         * m4/fprintftime.m4 (gl_FPRINTFTIME):
56076         * m4/fts.m4 (gl_FUNC_FTS):
56077         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
56078         * m4/getdate.m4 (gl_GETDATE):
56079         * m4/gethrxtime.m4 (gl_GETHRXTIME):
56080         * m4/getpagesize.m4 (gl_GETPAGESIZE):
56081         * m4/getpass.m4 (gl_FUNC_GETPASS):
56082         * m4/gettime.m4 (gl_GETTIME):
56083         * m4/getugroups.m4 (gl_GETUGROUPS):
56084         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
56085         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
56086         * m4/hard-locale.m4 (gl_HARD_LOCALE):
56087         * m4/hash.m4 (gl_HASH):
56088         * m4/idcache.m4 (gl_IDCACHE):
56089         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
56090         * m4/lchown.m4 (gl_FUNC_LCHOWN):
56091         * m4/long-options.m4 (gl_LONG_OPTIONS):
56092         * m4/lstat.m4 (gl_FUNC_LSTAT):
56093         * m4/md5.m4 (gl_MD5):
56094         * m4/memcasecmp.m4 (gl_MEMCASECMP):
56095         * m4/memcoll.m4 (gl_MEMCOLL):
56096         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
56097         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
56098         * m4/memxor.m4 (gl_MEMXOR):
56099         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
56100         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
56101         * m4/modechange.m4 (gl_MODECHANGE):
56102         * m4/mountlist.m4 (gl_MOUNTLIST):
56103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56104         * m4/openat.m4 (gl_FUNC_OPENAT):
56105         * m4/pathmax.m4 (gl_PATHMAX):
56106         * m4/physmem.m4 (gl_PHYSMEM):
56107         * m4/posixtm.m4 (gl_POSIXTM):
56108         * m4/posixver.m4 (gl_POSIXVER):
56109         * m4/quote.m4 (gl_QUOTE):
56110         * m4/quotearg.m4 (gl_QUOTEARG):
56111         * m4/readtokens.m4 (gl_READTOKENS):
56112         * m4/readutmp.m4 (gl_READUTMP):
56113         * m4/regex.m4 (gl_REGEX):
56114         * m4/safe-read.m4 (gl_SAFE_READ):
56115         * m4/safe-write.m4 (gl_SAFE_WRITE):
56116         * m4/same.m4 (gl_SAME):
56117         * m4/save-cwd.m4 (gl_SAVE_CWD):
56118         * m4/savedir.m4 (gl_SAVEDIR):
56119         * m4/settime.m4 (gl_SETTIME):
56120         * m4/sha1.m4 (gl_SHA1):
56121         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
56122         * m4/stat-macros.m4 (gl_STAT_MACROS):
56123         * m4/stat-time.m4 (gl_STAT_TIME):
56124         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
56125         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
56126         * m4/strdup.m4 (gl_FUNC_STRDUP):
56127         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
56128         * m4/strndup.m4 (gl_FUNC_STRNDUP):
56129         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
56130         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
56131         * m4/time_r.m4 (gl_TIME_R):
56132         * m4/timespec.m4 (gl_TIMESPEC):
56133         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
56134         * m4/unlinkdir.m4 (gl_UNLINKDIR):
56135         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
56136         * m4/userspec.m4 (gl_USERSPEC):
56137         * m4/utimecmp.m4 (gl_UTIMECMP):
56138         * m4/utimens.m4 (gl_UTIMENS):
56139         * m4/xalloc.m4 (gl_XALLOC):
56140         * m4/xgetcwd.m4 (gl_XGETCWD):
56141         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
56142         * m4/xreadlink.m4 (gl_XREADLINK):
56143         * m4/xstrtod.m4 (gl_XSTRTOD):
56144         * m4/yesno.m4 (gl_YESNO):
56145         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
56146         to get the necessary .h files and whatnot.
56147
56148 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
56149             Bruno Haible  <bruno@clisp.org>
56150
56151         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
56152         /bin/sh understanding of '!' conditional negation.
56153
56154 2006-08-21  Jim Meyering  <jim@meyering.net>
56155
56156         * modules/openat (Depends-on): Really alphabetize.
56157
56158         * modules/acl (Depends-on): Add error and quote.
56159
56160         * check-module (find_included_lib_files): Add at-func.c to the
56161         ok-to-include-more-than-once white list.
56162
56163         * modules/openat (Depends-on): Add lstat.  Alphabetize.
56164
56165 2006-08-21  Bruno Haible  <bruno@clisp.org>
56166
56167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56168         Emit a pkgdata_DATA variable only if some snippets add contents to it.
56169         Reported by Martin Lambers <marlam@marlam.de>.
56170
56171 2006-08-21  Bruno Haible  <bruno@clisp.org>
56172
56173         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
56174         specify an installation location, don't emit a noinst_LIBRARIES or
56175         noinst_LTLIBRARIES assignment.
56176
56177 2006-08-21  Bruno Haible  <bruno@clisp.org>
56178
56179         BeOS portability.
56180         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
56181         BeOS has mbrtowc() but no <wctype.h>.
56182
56183 2006-08-21  Bruno Haible  <bruno@clisp.org>
56184
56185         BeOS portability.
56186         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
56187         exist.
56188
56189 2006-08-21  Bruno Haible  <bruno@clisp.org>
56190
56191         BeOS portability.
56192         * lib/mbchar.h: Include <wctype.h> only if it exists.
56193
56194 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56195
56196         Remove files that are no longer needed by their respective modules.
56197         * m4/obstack.m4: Remove.
56198         * m4/strerror_r.m4: Remove.
56199         * m4/uint32_t.m4: Remove.
56200         * m4/uintptr_t.m4: Remove.
56201         * m4/ullong_max.m4: Remove.
56202         * m4/xstrtoimax.m4: Remove.
56203         * m4/xstrtoumax.m4: Remove.
56204
56205         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
56206         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
56207         dependencies now capture this.
56208
56209         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
56210         Do not use AC_LIBSOURCES, since gnulib modules now do this.
56211         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
56212         * m4/human.m4 (gl_HUMAN): Likewise.
56213         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
56214         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
56215
56216         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
56217
56218         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
56219         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
56220         stdint.
56221         * m4/human.m4 (gl_HUMAN): Likewise.
56222         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
56223         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
56224         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56225         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56226         * m4/xstrtol (gl_XSTRTOL): Likewise.
56227
56228         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
56229         AC_TYPE_LONG_LONG_INT.
56230         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
56231         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
56232         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
56233         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
56234
56235         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
56236         on stdbool.
56237
56238         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
56239         (gl_PREREQ_XSTRTOUL): Remove.
56240
56241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
56242
56243         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
56244         mode.
56245
56246 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         Add and change modules to make it easier for coreutils to use
56249         gnulib-tool.
56250         * modules/backupfile (Files): Remove m4/d-ino.m4.
56251         (Depends-on): Add d-ino.
56252         * modules/cycle-check (Depends-on): Add stdint.
56253         (lib_SOURCES): Add cycle-check.h.
56254         * modules/d-ino: New module.
56255         * modules/d-type: New module.
56256         * modules/error (Files): Remove m4/strerror_r.m4.
56257         * modules/filemode (Files): Add m4/st_dm_mode.m4.
56258         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56259         m4/inttypes_h.m4, m4/uintmax_t.m4.
56260         (Depends-on): Add stdint.
56261         (lib_SOURCES): Add fsusage.h.
56262         * modules/getcwd (Files): Remove d-ino.m4.
56263         (Depends-on): Add d-ino.
56264         * modules/getndelim2 (Depends-on): Add stdint.
56265         * modules/glob (Files): Remove m4/d-type.m4.
56266         (Depends-on): Add d-type.
56267         * modules/host-os: New module.
56268         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
56269         m4/inttypes_h.m4, m4/uintmax_t.m4.
56270         * Depends-on: Add stdint.
56271         (lib_SOURCES): Add human.h.
56272         * modules/inttostr (Files): Remove m4/intmax_t.m4,
56273         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
56274         m4/uintmax_t.m4, m4/ulonglong.m4.
56275         (Depends-on): Add stdint.
56276         (EXTRA_DIST): Add inttostr.h.
56277         * modules/lchmod: New module.
56278         * modules/link-follow: New module.
56279         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
56280         (Depends-on): Add lchmod.
56281         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
56282         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
56283         (Depends-on): Add stdint.
56284         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
56285         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
56286         (Depends-on): Add stdint.
56287         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
56288         * modules/perl: New module.
56289         * modules/regex (Depends-on): Add stdint.
56290         * modules/rmdir-errno: New module.
56291         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56292         m4/intmax_t.m4.
56293         (Depends-on): Add stdint.
56294         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
56295         m4/uintmax_t.m4.
56296         (Depends-on): Add stdint.
56297         * modules/unlink-busy: New module.
56298         * modules/utimecmp (Depends-on): Add stdint.
56299         * modules/uptime: New module.
56300         * modules/winsz-ioctl: New module.
56301         * modules/winsz-termios: New module.
56302         * modules/xnanosleep (Depends-on): Add nanosleep.
56303         * modules/ullong_max: Remove.
56304         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
56305         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
56306         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
56307         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
56308         (Depends-on): Add inttypes.
56309         (lib_SOURCES): Add xstrtol.h.
56310         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
56311         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
56312         * MODULES.html.sh: Move 'assert' into the assert section.
56313         Move 'dummy' into the linking section.
56314         Remove ullong_max.
56315         Add section for compatibility checks for POSIX:2001 functions,
56316         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
56317         winsz-ioctl, and winsz-termios into it.
56318         Add lchmod.
56319         Add top-level Misc section and put host-os, perl, and uptime
56320         into it.
56321
56322 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56323
56324         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
56325         now assume the stdint module.  Do not include inttypes.h.
56326         * lib/fsusage.h: Likewise.
56327         * lib/getndelim2.c: Likewise.
56328         * lib/human.h: Likewise.
56329         * lib/inttostr.h: Likewise.
56330         * lib/obstack.c: Likewise.
56331         * lib/regex_internal.h: Likewise.
56332         * lib/tempname.c: Likewise.
56333         * lib/utimecmp.c: Likewise.
56334         * lib/xstrtol.h: Likewise.
56335
56336         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
56337
56338         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
56339         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
56340         * lib/xtime.h: Likewise.
56341
56342 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * modules/openat (Files): Add lib/fchmodat.c.
56345         Fixes problem reported by Jay Youngman.
56346
56347 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56348
56349         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
56350         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
56351
56352 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
56353             Bruno Haible  <bruno@clisp.org>
56354
56355         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
56356         and is a script that invokes bison. Tighten the code. Add comments.
56357
56358 2006-08-18  Jim Meyering  <jim@meyering.net>
56359
56360         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
56361         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
56362         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
56363         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
56364
56365 2006-08-18  Bruno Haible  <bruno@clisp.org>
56366
56367         * modules/bison-i18n: New file.
56368         * MODULES.html.sh (Internationalization functions): Add it.
56369
56370 2006-08-18  Bruno Haible  <bruno@clisp.org>
56371
56372         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
56373         sys/statvfs.h. When getmntinfo was found, check its declaration and
56374         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
56375
56376 2006-08-18  Bruno Haible  <bruno@clisp.org>
56377
56378         * m4/bison-i18n.m4: New file, from bison.
56379
56380 2006-08-18  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
56383         (ME_DUMMY): Treat "kernfs" as a dummy.
56384         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
56385
56386 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56387
56388         Update from coreutils.
56389
56390         2006-08-15  Jim Meyering  <jim@meyering.net>
56391
56392         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
56393
56394         2006-01-17  Jim Meyering  <jim@meyering.net>
56395
56396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
56397
56398         2006-01-11  Jim Meyering  <jim@meyering.net>
56399
56400         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
56401         Check for the lchmod function.
56402
56403 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56404
56405         Update from coreutils.
56406
56407         * lib/__fpending.h: Add copyright notice.
56408         * lib/fprintftime.h: Likewise.
56409         * lib/savedir.c: Use (C) in copyright notice.
56410         * lib/savedir.h: Likewise.
56411
56412         2006-08-15  Jim Meyering  <jim@meyering.net>
56413
56414         * lib/at-func.c: New file, with the logic of all emulated at-functions.
56415         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
56416         in support of the EXPECTED_ERRNO macro.
56417         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
56418         definitions.  Instead, define the appropriate symbols and include
56419         "at-func.c".
56420         * lib/mkdirat.c (mkdirat): Likewise.
56421         * lib/fchmodat.c (fchmodat): Likewise.
56422         (ENOSYS): Remove definition.
56423         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
56424         it.  Don't include "unistd--.h" -- it wasn't ever used.
56425
56426         2006-01-17  Jim Meyering  <jim@meyering.net>
56427
56428         Rewrite fts.c not to change the current working directory,
56429         by using openat, fstatat, fdopendir, etc..
56430
56431         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
56432         (HAVE_OPENAT_SUPPORT): Define.
56433         [_LIBC] (fchdir): Don't undef or define; no longer used.
56434         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
56435         Now, this `function' always succeeds, and consumes its file descriptor
56436         parameter -- so callers must not close such FDs.  Update callers.
56437         (diropen_fd, opendirat, cwd_advance_fd): New functions.
56438         (diropen): Add parameter, SP.  Adjust all callers.
56439         Implement using diropen_fd, rather than open.
56440         (fts_open): Initialize new member, fts_cwd_fd.
56441         Remove fts_rft-setting code.
56442         (fts_close): Close fts_cwd_fd, if necessary.
56443         (__opendir2): Define in terms of opendir or opendirat,
56444         depending on whether the FST_NOCHDIR flag is set.
56445         (fts_build): Since fts_safe_changedir consumes its FD, and since
56446         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
56447         and close the dup'd file descriptor upon failure.
56448         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
56449         (fts_safe_changedir): Tweak semantics to reflect that this function
56450         now calls cwd_advance_fd and hence consumes its FD argument.
56451         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
56452         [struct FTS] (fts_rft): Remove now-unused member.
56453         [struct FTS] (fts_cycle.state): Improve comment.
56454
56455         * lib/openat.c (openat_needs_fchdir): New function.
56456         * lib/openat.h (openat_needs_fchdir): Declare it.
56457
56458 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
56461         Problem and fix reported by Pádraig Brady in
56462         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
56463
56464 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56465
56466         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
56467
56468 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * lib/memcoll.c (memcoll): Optimize for the common case where the
56471         arguments are bytewise equal.
56472
56473 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56474
56475         * doc/regexprops-generic.texi: Add a copyright notice.
56476
56477 2006-08-15  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/tmpdir (License): Change to LGPL.
56480
56481 2006-08-15  Bruno Haible  <bruno@clisp.org>
56482
56483         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
56484         module.
56485
56486 2006-08-14  Simon Josefsson  <jas@extundo.com>
56487
56488         * config/srclist.txt: Add gnupload.
56489
56490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56491
56492         Change copyright notice from LGPL 2 to GPL 2, since that's the
56493         standard form used in the gnulib repository.
56494         * tests/test-lock.c: Likewise.
56495         * tests/test-stdint.c: Likewise.
56496         * tests/test-tls.c: Likewise.
56497
56498         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
56499         prelude-manager.  User shorter URLs for GNU projects, without '?'.
56500         Add copyright notice.
56501
56502         * check-module: Add copyright notice.  Output a copyright
56503         notice if "--version" is specified.
56504         * modules/COPYING: New file.
56505         * tests/test-getaddrinfo.c: Add copyright notice.
56506         * tests/test-verify.c: Likewise.
56507
56508 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56509
56510         Change copyright notice from LGPL 2 to GPL 2, since that's the
56511         standard form used in the gnulib repository.
56512         * lib/lock.c: LGPL -> GPL.
56513         * lib/lock.h: Likewise.
56514         * lib/strnlen1.c: Likewise.
56515         * lib/strnlen1.h: Likewise.
56516         * lib/tls.c: Likewise.
56517         * lib/tls.h: Likewise.
56518         * lib/tmpdir.c: Likewise.
56519
56520         * lib/TODO: Remove; this belongs only in coreutils.
56521
56522 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         Add copyright notices to long-enough files that lack them, since
56525         otherwise the files aren't clearly free.  Use the same notice that
56526         getdate.texi already uses.
56527         * doc/alloca-opt.texi: Add copyright notice.
56528         * doc/alloca.texi: Likewise.
56529         * doc/ctime.texi: Likewise.
56530         * doc/functions.texi: Likewise.
56531         * doc/gcd.texi: Likewise.
56532         * doc/gnulib-tool.texi: Likewise.
56533         * doc/inet_ntoa.texi: Likewise.
56534         * doc/visibility.texi: Likewise.
56535
56536         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
56537         * doc/quote.texi: Add copyright notice.
56538
56539         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
56540         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
56541         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
56542         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
56543         is now obsolete, and give a pointer to the Sun list.
56544         Add copyright notice.
56545
56546 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56547
56548         * config/srclistvars.sh: Add copyright notice.
56549
56550 2006-08-14  Eric Blake  <ebb9@byu.net>
56551
56552         Import the following change from libc:
56553
56554         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
56555
56556         Upstream bug 2997.
56557         * lib/misc/error.c: Add space between program name and message if file
56558         name is missing.
56559
56560 2006-08-12  Karl Berry  <karl@gnu.org>
56561
56562         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
56563         remove, these originate in gnulib now.
56564
56565 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56566
56567         * doc/Makefile (standards.info standards.html standards.dvi):
56568         Also depend on make-stds.texi.
56569
56570 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
56571
56572         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
56573         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
56574
56575         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
56576         in wchar_t.  Problem reported by Eric Blake.
56577
56578         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
56579         LEN is smaller than SIZE.  Suggested by Bruno Haible.
56580         Also, help the compiler to keep LEN in a register.
56581
56582 2006-08-11  Eric Blake  <ebb9@byu.net>
56583
56584         * users.txt: Sort.  Add tar.
56585
56586 2006-08-11  Bruno Haible  <bruno@clisp.org>
56587
56588         * users.txt: New file.
56589
56590 2006-08-11  Bruno Haible  <bruno@clisp.org>
56591
56592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
56593         before <wchar.h>. Needed for OSF/1 and BSD/OS.
56594
56595 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         * modules/snprintf (Depends-on): Remove minmax.
56598         (Maintainer): Add self and Bruno.
56599
56600 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56601
56602         * lib/.cppi-disable: Add snprintf.h, socket_.h.
56603         * lib/snprintf.c: Include <errno.h> and <limits.h>.
56604         (EOVERFLOW): Define if the system does not.
56605         Do not include "minmax.h"; it wasn't used.
56606         (snprintf): Don't assume size_t promotes to an unsigned type.
56607         Fix bug when generated string was too long for the buffer: the
56608         buffer's contents are supposed to be the initial prefix of the
56609         output.  Don't assume vasnprintf returns EOVERFLOW if the size
56610         exceeds INT_MAX; do the check ourselves.
56611
56612         Import the following changes from libc:
56613
56614         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
56615
56616         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
56617         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
56618         set wc to the byte which couldn't be converted.
56619         (re_string_reconstruct): Don't clear valid_raw_len before calling
56620         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
56621         tip_context using re_string_context_at.
56622
56623         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
56624
56625         * lib/posix/regex.h: g++ still cannot handled [restrict].
56626
56627         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
56628
56629         * lib/posix/regex.h: Remove special handling for VMS.
56630
56631 2006-08-10  Jim Meyering  <jim@meyering.net>
56632
56633         * modules/same-inode: New module.
56634         * modules/dev-ino: New module.
56635         * modules/cycle-check: Depend on these modules, rather than simply
56636         including their .h files.
56637         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
56638         required via m4/cycle-check.m4.
56639         * modules/same: Depend on new same-inode module, rather than
56640         including same-inode.h.
56641         * modules/chdir-safer: New file.
56642
56643         * modules/chown (Depends-on): Add stat-macros.
56644
56645 2006-08-10  Jim Meyering  <jim@meyering.net>
56646
56647         * m4/cycle-check.m4: New file.
56648         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
56649         * m4/dev-ino.m4, m4/same-inode.m4: New files.
56650
56651 2006-08-10  Eric Blake  <ebb9@byu.net>
56652
56653         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
56654         in from original proposal.
56655
56656 2006-08-10  Eric Blake  <ebb9@byu.net>
56657         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
56658
56659         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
56660         namespace.
56661
56662 2006-08-10  Bruno Haible  <bruno@clisp.org>
56663
56664         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
56665         as well.
56666
56667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         Sync from coreutils.
56670
56671         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
56672
56673         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
56674         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
56675
56676 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56677
56678         * modules/restrict: Remove; no longer needed now that we assume
56679         Autoconf 2.59 or later.
56680         * MODULES.html.sh: Remove 'restrict'.
56681         * modules/argp (Depends-on): Remove 'restrict'.
56682         * modules/base64 (Depends-on): Likewise.
56683         * modules/gc (Depends-on): Likewise.
56684         * modules/getaddrinfo (Depends-on): Likewise.
56685         * modules/glob (Depends-on): Likewise.
56686         * modules/inet_ntop (Depends-on): Likewise.
56687         * modules/inet_pton (Depends-on): Likewise.
56688         * modules/memxor (Depends-on): Likewise.
56689         * modules/regex (Depends-on): Likewise.
56690         * modules/strtok_r (Depends-on): Likewise.
56691         * modules/time_r (Depends-on): Likewise.
56692
56693 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
56694
56695         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
56696         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
56697         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56698         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
56699         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
56700         * m4/memxor.m4 (gl_MEMXOR): Likewise.
56701         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
56702         gl_C_RESTRICT replaced by AC_C_RESTRICT.
56703
56704         Merge from coreutils.
56705         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
56706         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
56707         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56708         * m4/time_r.m4 (gl_TIME_R): Likewise.
56709
56710 2006-08-09  Karl Berry  <karl@gnu.org>
56711
56712         * config/srclist.txt: no more gettext-tools, per Bruno.
56713
56714 2006-08-08  Eric Blake  <ebb9@byu.net>
56715
56716         * modules/verror: New module.
56717         * MODULES.html.sh: Document it.
56718
56719 2006-08-08  Eric Blake  <ebb9@byu.net>
56720
56721         * lib/verror.h, lib/verror.c: New files.
56722
56723 2006-08-08  Eric Blake  <ebb9@byu.net>
56724
56725         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
56726         verror_at_line output complies with GNU Coding Standards even when
56727         file is NULL.
56728
56729 2006-08-07  Bruno Haible  <bruno@clisp.org>
56730
56731         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
56732         versions of AIX.
56733         Reported by Ralf Wildenhues.
56734
56735 2006-08-07  Bruno Haible  <bruno@clisp.org>
56736
56737         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
56738         in an AC_DEFUN. Needed so that the autoconf snippets can use
56739         AC_REQUIRE.
56740
56741 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56742
56743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56744         Initialize pkgdata_DATA.
56745         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
56746         overriding it.
56747
56748 2006-08-06  Eric Blake  <ebb9@byu.net>
56749
56750         * lib/error.h: Fold in some upstream changes from glibc.
56751         * lib/error.c: Likewise.
56752
56753 2006-08-04  Bruno Haible  <bruno@clisp.org>
56754
56755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56756         Make the mostlyclean-local rule depend on mostlyclean-generic.
56757         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
56758
56759 2006-07-31  Bruno Haible  <bruno@clisp.org>
56760
56761         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
56762         <stdlib.h>, <string.h>.
56763
56764 2006-07-30  Bruno Haible  <bruno@clisp.org>
56765
56766         * modules/readlink (License): Change to LGPL.
56767
56768 2006-07-30  Bruno Haible  <bruno@clisp.org>
56769
56770         * modules/javaversion (Makefile.am): Distribute javaversion.java and
56771         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
56772         set PKGDATADIR to point to it.
56773
56774 2006-07-30  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/csharpexec (configure.ac): Comment out macro invocation.
56777         * modules/javaexec (configure.ac): Likewise.
56778         * modules/javacomp-script (configure.ac): Likewise.
56779
56780         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
56781
56782 2006-07-30  Bruno Haible  <bruno@clisp.org>
56783
56784         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
56785         linked-list.
56786
56787 2006-07-30  Bruno Haible  <bruno@clisp.org>
56788
56789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
56790
56791 2006-07-30  Bruno Haible  <bruno@clisp.org>
56792
56793         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56794         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
56795         get removed.
56796
56797 2006-07-29  Bruno Haible  <bruno@clisp.org>
56798
56799         Make it possible for gnulib-tool to work with locally modified or
56800         augmented gnulib repositories.
56801         * gnulib-tool (func_usage): Document --local-dir option.
56802         (local_gnulib_dir): New variable.
56803         Handle --local-dir option.
56804         (func_lookup_file): New function.
56805         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
56806         (func_get_description, func_get_filelist, func_get_description,
56807         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
56808         func_get_automake_snippet, func_get_include_directive,
56809         func_get_license, func_get_maintainer): Use func_lookup_file.
56810         (func_import, func_create_testdir): Use func_lookup_file.
56811
56812 2006-07-29  Bruno Haible  <bruno@clisp.org>
56813
56814         * modules/setenv (Depends-on): Add unistd.
56815
56816 2006-07-29  Bruno Haible  <bruno@clisp.org>
56817
56818         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
56819
56820 2006-07-29  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
56823
56824 2006-07-29  Bruno Haible  <bruno@clisp.org>
56825
56826         * gnulib-tool (import, update): If there is no Makefile.am, look at
56827         aclocal.m4, instead of bailing out.
56828
56829 2006-07-29  Bruno Haible  <bruno@clisp.org>
56830
56831         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
56832         Categorize the options by when they are useful.
56833
56834 2006-07-29  Bruno Haible  <bruno@clisp.org>
56835
56836         * gnulib-tool (func_usage): Document option --no-libtool.
56837         Handle option --no-libtool.
56838         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
56839         for changed semantics of $libtool variable.
56840         (func_import): Likewise. If libtool is not used, show this through
56841         an option --no-libtool.
56842         (func_create_testdir): Update.
56843
56844 2006-07-29  Bruno Haible  <bruno@clisp.org>
56845
56846         * gnulib-tool (func_import): Extend error message about missing
56847         --doc-base.
56848
56849 2006-07-29  Bruno Haible  <bruno@clisp.org>
56850
56851         * gnulib-tool (func_import): Don't create the $docbase directory if
56852         there is no file to store there.
56853
56854 2006-07-29  Bruno Haible  <bruno@clisp.org>
56855
56856         * gnulib-tool (autoconf_minversion): If a --dir option is given and
56857         relevant, look for configure.ac there, not in the current directory.
56858         Also use a simple search for AC_PREREQ, not "autoconf --trace".
56859
56860 2006-07-29  Bruno Haible  <bruno@clisp.org>
56861
56862         * gnulib-tool (SORT): New variable.
56863         (func_usage): Undocument --assume-autoconf option.
56864         Remove --assume-autoconf option handling.
56865         (autoconf_minversion): Determine from the contents of configure.ac.
56866         (func_import): Remove autoconf_minversion handling.
56867         Suggested by Eric Blake.
56868
56869 2006-07-29  Bruno Haible  <bruno@clisp.org>
56870
56871         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
56872
56873 2006-07-29  Bruno Haible  <bruno@clisp.org>
56874
56875         * config/srclist.txt (*setenv.[ch]): Remove rules.
56876
56877 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56878
56879         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
56880
56881 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56882
56883         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
56884         arpa/inet.h.
56885
56886 2006-07-28  Simon Josefsson  <jas@extundo.com>
56887
56888         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
56889         * modules/inet_pton (Depends-on): Likewise.
56890
56891 2006-07-28  Simon Josefsson  <jas@extundo.com>
56892
56893         * m4/netinet_in_h.m4: New file.
56894
56895 2006-07-28  Simon Josefsson  <jas@extundo.com>
56896
56897         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
56898         #include's.
56899
56900 2006-07-28  Simon Josefsson  <jas@extundo.com>
56901
56902         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
56903         #include's.
56904
56905 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
56908         setgid on directories only if they set these bits.
56909         * lib/modechange.h: Remove obsolete comment about masks.
56910
56911 2006-07-28  Eric Blake  <ebb9@byu.net>
56912
56913         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
56914         macro expansion.
56915
56916 2006-07-28  Bruno Haible  <bruno@clisp.org>
56917
56918         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
56919
56920 2006-07-28  Bruno Haible  <bruno@clisp.org>
56921
56922         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
56923
56924 2006-07-28  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56927         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56928         Define fallbacks.
56929         Avoids link error on FreeBSD 4.x.
56930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56931
56932         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
56933         encoding.
56934         * lib/mbswidth.c (iswcntrl): Likewise.
56935
56936 2006-07-27  Bruno Haible  <bruno@clisp.org>
56937
56938         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
56939         test.
56940
56941 2006-07-27  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
56944         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
56945         defined.
56946
56947 2006-07-26  Eric Blake  <ebb9@byu.net>
56948
56949         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
56950
56951 2006-07-26  Eric Blake  <ebb9@byu.net>
56952
56953         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
56954         like mingw that lack mkstemp.
56955         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
56956         avoid compilation warning on mingw.
56957
56958 2006-07-26  Bruno Haible  <bruno@clisp.org>
56959
56960         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
56961         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
56962         INT_FAST*_MIN, INTPTR_MIN.
56963
56964 2006-07-25  Bruno Haible  <bruno@clisp.org>
56965
56966         * modules/version-etc (Depends-on): Add stdarg.
56967
56968 2006-07-25  Bruno Haible  <bruno@clisp.org>
56969
56970         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
56971         complex commands.
56972
56973 2006-07-25  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
56976         defined in <stdarg.h> or config.h.
56977
56978 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
56981         (gl_STDIO_SAFER): Remove.
56982
56983 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56984
56985         * MODULES.html.sh (File stream based Input/Output):
56986         Add fopen-safer, tmpfile-safer; remove stdio-safer.
56987         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
56988         * modules/fopen-safer, modules/tmpfile-safer: New files.
56989         * modules/stdio-safer: Remove.
56990
56991 2006-07-24  Bruno Haible  <bruno@clisp.org>
56992
56993         * modules/tmpdir: New file.
56994         * MODULES.html.sh (File system functions): Add it.
56995
56996 2006-07-24  Bruno Haible  <bruno@clisp.org>
56997
56998         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
56999         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
57000
57001 2006-07-24  Bruno Haible  <bruno@clisp.org>
57002
57003         * modules/clean-temp: New file.
57004
57005 2006-07-24  Bruno Haible  <bruno@clisp.org>
57006
57007         * m4/tmpdir.m4: New file, from GNU gettext.
57008
57009 2006-07-24  Bruno Haible  <bruno@clisp.org>
57010
57011         * lib/tmpdir.h: New file, from GNU gettext.
57012         * lib/tmpdir.c: New file, from GNU gettext.
57013
57014 2006-07-24  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/clean-temp.h: New file, from GNU gettext.
57017         * lib/clean-temp.c: New file, from GNU gettext.
57018
57019 2006-07-23  Eric Blake  <ebb9@byu.net>
57020
57021         * modules/stdio-safer (Files): Add tmpfile-safer.c.
57022         (Depends-on): Add binary-io.
57023
57024 2006-07-23  Eric Blake  <ebb9@byu.net>
57025
57026         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
57027
57028 2006-07-23  Eric Blake  <ebb9@byu.net>
57029
57030         * lib/tmpfile-safer.c: New file.
57031         * lib/stdio-safer.h (fopen_safer): Add prototype.
57032         * lib/stdio--.h (tmpfile): Make safer.
57033
57034 2006-07-23  Bruno Haible  <bruno@clisp.org>
57035
57036         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
57037         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
57038         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
57039         gl_linked_remove_at): Use it.
57040
57041 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57042         and Simon Josefsson <jas@extundo.com>
57043
57044         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
57045
57046         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
57047
57048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57049
57050         * modules/close-stream: New file.
57051         * modules/closeout (Description): Make it clear that it exits
57052         with a diagnostic on error.
57053         (Depends-on): Add close-stream.  Remove fpending, stdbool.
57054         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
57055
57056 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57057
57058         * m4/close-stream.m4: New file.
57059
57060 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57061
57062         * lib/close-stream.c, lib/close-stream.h: New files.
57063
57064 2006-07-22  Bruno Haible  <bruno@clisp.org>
57065
57066         Merge from GNU gettext 0.15.
57067
57068         2006-05-01  Bruno Haible  <bruno@clisp.org>
57069
57070                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
57071
57072         2006-07-22  Bruno Haible  <bruno@clisp.org>
57073
57074                 * modules/javaversion: New file.
57075                 * MODULES.html.sh (Java): Add javaversion.
57076
57077         2006-03-12  Bruno Haible  <bruno@clisp.org>
57078
57079                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
57080
57081         2005-12-04  Bruno Haible  <bruno@clisp.org>
57082
57083                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
57084                 (untested).
57085
57086         2006-06-21  Bruno Haible  <bruno@clisp.org>
57087
57088                 Avoid warnings from recent versions of mcs.
57089                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
57090                 -o, -L, -r any more. Use options documented since mcs-1.0
57091                 instead. Similarly for -g.
57092
57093         2005-12-04  Bruno Haible  <bruno@clisp.org>
57094
57095                 * build-aux/csharpcomp.sh.in: Suffix for resources is
57096                 .resources, not .resource.
57097
57098         2005-07-09  Bruno Haible  <bruno@clisp.org>
57099
57100                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
57101                 add a .dll suffix.
57102                 Reported by Mark Junker <mjscod@gmx.de>.
57103
57104         2006-07-22  Bruno Haible  <bruno@clisp.org>
57105
57106                 * modules/gettext: Upgrade to gettext-0.15.
57107                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
57108                 m4/visibility.m4.
57109                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
57110
57111 2006-07-22  Bruno Haible  <bruno@clisp.org>
57112
57113         Merge from GNU gettext 0.15.
57114
57115         2006-03-25  Bruno Haible  <bruno@clisp.org>
57116
57117                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
57118
57119         2006-07-21  Bruno Haible  <bruno@clisp.org>
57120
57121                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
57122                 "1.1".
57123
57124         2006-05-09  Bruno Haible  <bruno@clisp.org>
57125
57126                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
57127                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
57128                 for the conftestver execution.
57129
57130         2006-05-01  Bruno Haible  <bruno@clisp.org>
57131
57132                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
57133                 optional target-version argument. Verify that the compiler
57134                 groks source of the specified source-version, or add -source
57135                 option as necessary. Verify that the compiler produces
57136                 bytecode in the specified target-version, or add -target and
57137                 -source options as necessary. Make the result of the test
57138                 available as variable CONF_JAVAC. Also log error output in
57139                 config.log.
57140
57141         2006-03-11  Bruno Haible  <bruno@clisp.org>
57142
57143                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
57144
57145         2006-05-09  Bruno Haible  <bruno@clisp.org>
57146
57147                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
57148                 CLASSPATH_SEPARATOR to a semicolon.
57149
57150         2006-03-12  Bruno Haible  <bruno@clisp.org>
57151
57152                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
57153                 available as variable CONF_JAVA, for subsequent autoconf
57154                 tests. Also log error output in config.log.
57155
57156         2006-07-19  Bruno Haible  <bruno@clisp.org>
57157
57158                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
57159                 that getline works on glibc2 systems. Needed to avoid trouble
57160                 in relocatable.c.
57161                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
57162
57163         2005-12-04  Bruno Haible  <bruno@clisp.org>
57164
57165                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
57166                 launcher (untested).
57167
57168         2005-12-04  Bruno Haible  <bruno@clisp.org>
57169
57170                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
57171
57172         2006-07-22  Bruno Haible  <bruno@clisp.org>
57173
57174                 * gettext.m4: Update from GNU gettext-0.15.
57175                 * nls.m4: Likewise.
57176                 * po.m4: Likewise.
57177                 * inttypes-pri.m4: Likewise.
57178                 * inttypes-h.m4: Renamed from inttypes.m4.
57179                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
57180
57181 2006-07-22  Bruno Haible  <bruno@clisp.org>
57182
57183         Merge from GNU gettext 0.15.
57184
57185         2005-07-05  Bruno Haible  <bruno@clisp.org>
57186
57187                 * printf-args.c (printf_fetchargs): Work around broken
57188                 definition of wint_t on mingw.
57189
57190         2005-02-12  Bruno Haible  <bruno@clisp.org>
57191
57192                 * xallocsa.h: Add extern "C" for C++.
57193
57194         2006-05-17  Bruno Haible  <bruno@clisp.org>
57195
57196                 Cygwin portability.
57197                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
57198
57199         2006-04-30  Bruno Haible  <bruno@clisp.org>
57200
57201                 * progreloc.c: Include <mach-o/dyld.h> if available.
57202                 (find_executable): Use _NSGetExecutablePath when possible.
57203
57204         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57205
57206                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
57207                 function.
57208
57209         2005-12-29  Bruno Haible  <bruno@clisp.org>
57210
57211                 * progreloc.c (set_program_name_and_installdir): Fix
57212                 compilation error.
57213
57214         2005-12-04  Bruno Haible  <bruno@clisp.org>
57215
57216                 Cygwin portability.
57217                 * progreloc.c: Include <windows.h> also on Cygwin.
57218                 (find_executable): Add support for Cygwin.
57219                 (set_program_name_and_installdir): Handle also platforms with
57220                 nonempty EXEEXT.
57221
57222         2006-07-11  Bruno Haible  <bruno@clisp.org>
57223
57224                 * javacomp.c: Fix a comment.
57225                 Reported by Jim Meyering.
57226
57227         2006-04-30  Bruno Haible  <bruno@clisp.org>
57228
57229                 * javacomp.h (compile_java_class): Add source_version,
57230                 target_version arguments.
57231                 * javacomp.c: Rewritten to choose only a compiler that
57232                 respects the specified source_version and target_version.
57233
57234         2006-06-27  Bruno Haible  <bruno@clisp.org>
57235
57236                 Assume correct S_ISDIR macro.
57237                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
57238
57239         2006-07-22  Bruno Haible  <bruno@clisp.org>
57240
57241                 * javaversion.h: New file, from GNU gettext.
57242                 * javaversion.c: New file, from GNU gettext.
57243                 * javaversion.java: New file, from GNU gettext.
57244                 * javaversion.class: New file, from GNU gettext.
57245
57246         2006-05-17  Bruno Haible  <bruno@clisp.org>
57247
57248                 Cygwin portability.
57249                 * javaexec.c (execute_java_class): Test for jview program
57250                 also on Cygwin.
57251
57252         2006-04-09  Bruno Haible  <bruno@clisp.org>
57253
57254                 * fatal-signal.c: Don't include string.h.
57255                 (at_fatal_signal): Use a copying loop instead of memcpy.
57256
57257         2005-12-04  Bruno Haible  <bruno@clisp.org>
57258
57259                 * csharpexec.c: Add support for 'clix' launcher (untested).
57260                 (execute_csharp_using_sscli): New function.
57261                 (execute_csharp_program): Call it.
57262
57263         2006-06-21  Bruno Haible  <bruno@clisp.org>
57264
57265                 Avoid warnings from recent versions of mcs.
57266                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
57267                 -o, -L, -r any more. Use options documented since mcs-1.0
57268                 instead. Similarly for -g.
57269
57270         2005-07-09  Bruno Haible  <bruno@clisp.org>
57271
57272                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
57273                 add a .dll suffix.
57274                 Reported by Mark Junker <mjscod@gmx.de>.
57275
57276         2006-06-17  Bruno Haible  <bruno@clisp.org>
57277
57278                 * config.charset: Update for NetBSD 3.0.
57279
57280         2006-05-17  Bruno Haible  <bruno@clisp.org>
57281
57282                 Cygwin portability.
57283                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
57284
57285         2006-05-16  Bruno Haible  <bruno@clisp.org>
57286
57287                 * localcharset.c [CYGWIN]: Include <windows.h>.
57288                 (get_charset_aliases): For Cygwin, return the same CPxxx
57289                 aliases list as under WIN32.
57290                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
57291                 the environment variables. Fall back to GetACP().
57292
57293         2006-04-05  Bruno Haible  <bruno@clisp.org>
57294
57295                 * config.charset: Update Juan Manuel Guerrero's address.
57296
57297         2005-02-12  Bruno Haible  <bruno@clisp.org>
57298
57299                 * allocsa.h: Add extern "C" for C++.
57300
57301         2005-02-10  Bruno Haible  <bruno@clisp.org>
57302
57303                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
57304                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
57305
57306         2006-07-22  Bruno Haible  <bruno@clisp.org>
57307
57308                 * gettext.h: Update to GNU gettext-0.15.
57309
57310 2006-07-22  Bruno Haible  <bruno@clisp.org>
57311
57312         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
57313         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
57314         lib-prefix.m4, longdouble.m4, ssize_t.m4.
57315
57316 2006-07-21  Eric Blake  <ebb9@byu.net>
57317
57318         * modules/stdlib-safer: New file.
57319         * MODULES.html.sh (File stream based Input/Output): Add
57320         stdlib-safer.
57321
57322 2006-07-21  Eric Blake  <ebb9@byu.net>
57323
57324         * lib/stdlib-safer.h: New file from coreutils, required by
57325         stdlib--.h.
57326
57327 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
57328
57329         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
57330
57331 2006-07-20  Bruno Haible  <bruno@clisp.org>
57332
57333         * gnulib-tool: Recognize new option --assume-autoconf.
57334         (autoconf_minversion): New variable.
57335         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
57336
57337 2006-07-20  Bruno Haible  <bruno@clisp.org>
57338
57339         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
57340
57341 2006-07-19  Derek R. Price  <derek@ximbiot.com>
57342
57343         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
57344         Reindent and repaginate.
57345
57346 2006-07-19  Derek Price  <derek@ximbiot.com>
57347
57348         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
57349         Correct grammar.
57350
57351 2006-07-17  Bruno Haible  <bruno@clisp.org>
57352
57353         * modules/list: New file.
57354         * modules/array-list: New file.
57355         * modules/carray-list, modules/carray-list-tests: New files.
57356         * modules/linked-list, modules/linked-list-tests: New files.
57357         * modules/avltree-list, modules/avltree-list-tests: New files.
57358         * modules/rbtree-list, modules/rbtree-list-tests: New files.
57359         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
57360         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
57361         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
57362         * modules/oset: New file.
57363         * modules/array-oset: New file.
57364         * modules/avltree-oset, modules/avltree-oset-tests: New files.
57365         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
57366         * tests/test-carray_list.c: New file.
57367         * tests/test-linked_list.c: New file.
57368         * tests/test-avltree_list.c: New file.
57369         * tests/test-rbtree_list.c: New file.
57370         * tests/test-linkedhash_list.c: New file.
57371         * tests/test-avltreehash_list.c: New file.
57372         * tests/test-rbtreehash_list.c: New file.
57373         * tests/test-avltree_oset.c: New file.
57374         * tests/test-rbtree_oset.c: New file.
57375         * MODULES.html.sh (Container data structures): New section.
57376
57377 2006-07-17  Bruno Haible  <bruno@clisp.org>
57378
57379         * m4/gl_list.m4: New file.
57380
57381 2006-07-17  Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/gl_list.h: New file.
57384         * lib/gl_list.c: New file.
57385         * lib/gl_array_list.h: New file.
57386         * lib/gl_array_list.c: New file.
57387         * lib/gl_carray_list.h: New file.
57388         * lib/gl_carray_list.c: New file.
57389         * lib/gl_linked_list.h: New file.
57390         * lib/gl_linked_list.c: New file.
57391         * lib/gl_anylinked_list1.h: New file.
57392         * lib/gl_anylinked_list2.h: New file.
57393         * lib/gl_avltree_list.h: New file.
57394         * lib/gl_avltree_list.c: New file.
57395         * lib/gl_anyavltree_list1.h: New file.
57396         * lib/gl_anyavltree_list2.h: New file.
57397         * lib/gl_rbtree_list.h: New file.
57398         * lib/gl_rbtree_list.c: New file.
57399         * lib/gl_anyrbtree_list1.h: New file.
57400         * lib/gl_anyrbtree_list2.h: New file.
57401         * lib/gl_anytree_list1.h: New file.
57402         * lib/gl_anytree_list2.h: New file.
57403         * lib/gl_linkedhash_list.h: New file.
57404         * lib/gl_linkedhash_list.c: New file.
57405         * lib/gl_anyhash_list1.h: New file.
57406         * lib/gl_anyhash_list2.h: New file.
57407         * lib/gl_avltreehash_list.h: New file.
57408         * lib/gl_avltreehash_list.c: New file.
57409         * lib/gl_rbtreehash_list.h: New file.
57410         * lib/gl_rbtreehash_list.c: New file.
57411         * lib/gl_anytreehash_list1.h: New file.
57412         * lib/gl_anytreehash_list2.h: New file.
57413
57414         * lib/gl_oset.h: New file.
57415         * lib/gl_oset.c: New file.
57416         * lib/gl_array_oset.h: New file.
57417         * lib/gl_array_oset.c: New file.
57418         * lib/gl_avltree_oset.h: New file.
57419         * lib/gl_avltree_oset.c: New file.
57420         * lib/gl_rbtree_oset.h: New file.
57421         * lib/gl_rbtree_oset.c: New file.
57422         * lib/gl_anytree_oset.h: New file.
57423
57424 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57425
57426         * m4/mkancesdirs.m4: New file.
57427         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
57428         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
57429         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
57430         it.
57431
57432 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57433
57434         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
57435         * lib/mkancesdirs.h: New files.
57436         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
57437         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
57438         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
57439         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
57440         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
57441         callers changed.  Revamp internals significantly, by not
57442         attempting to create directories that are temporarily more
57443         permissive than the final results.  Do not attempt to use
57444         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
57445         This removes some race conditions, fixes some bugs, and simplifies
57446         things.  Use new dirchownmod function to do owner and mode changes.
57447         * lib/mkdir-p.h: Likewise.
57448         * lib/modechange.c (octal_to_mode): New function.
57449         (struct mode_change): New member mentioned.
57450         (make_node_op_equals): New arg mentioned.  All callers changed.
57451         (mode_compile): Keep track of which mode bits the user has explicitly
57452         mentioned.
57453         (mode_adjust): New arg DIR, so that we implement the X op correctly.
57454         New arg PMODE_BITS, to keep track of which mode bits the user
57455         mentioned; it treats S_ISUID and S_ISGID speciall.
57456         All callers changed.
57457         * lib/modechange.h: Likewise.
57458
57459 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
57460
57461         * MODULES.html.sh: Add mkancestors.
57462         * modules/mkancesdirs: New module.
57463         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
57464         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
57465         The chdir-safer and afs files are now orphans; I'll remove them
57466         unless someone speaks up.
57467         Add lib/dirchownmod.c, lib/dirchownmod.h.
57468         (Depends-on): Remove alloca, chown, save-cwd, dirname.
57469         Add lchown, mkancesdirs.
57470         (Maintainer): Add self.
57471
57472 2006-07-15  Karl Berry  <karl@gnu.org>
57473
57474         * gnulib-tool: help message wording/arrangement.
57475
57476 2006-07-14  Simon Josefsson  <jas@extundo.com>
57477
57478         * doc/gnulib.texi (Libtool and Windows): New section.
57479
57480 2006-07-12  Simon Josefsson  <jas@extundo.com>
57481
57482         * modules/gendocs (License): Fix license, approved by Karl.
57483
57484 2006-07-12  Eric Blake  <ebb9@byu.net>
57485
57486         * MODULES.html.sh: Add gendocs.
57487
57488 2006-07-11  Eric Blake  <ebb9@byu.net>
57489
57490         * modules/fdl: New module, to install doc/fdl.texi.
57491         * MODULES.html.sh: Add new section for documentation modules.
57492         * gnulib-tool: Avoid space-tab.
57493         (--doc-base): New option, to manage files from doc.
57494
57495 2006-07-11  Eric Blake  <ebb9@byu.net>
57496
57497         * m4/absolute-header.m4: Fix comments to match recent change.
57498
57499 2006-07-11  Eric Blake  <ebb9@byu.net>
57500
57501         * gnulib-tool: List --doc-base before --tests-base.
57502
57503 2006-07-11  Derek R. Price  <derek@ximbiot.com>
57504
57505         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
57506
57507 2006-07-11  Bruno Haible  <bruno@clisp.org>
57508
57509         * README: Mention where to put documentation.
57510
57511 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57512
57513         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
57514
57515 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57516
57517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
57518         to stdint.m4.
57519
57520 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
57523         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
57524         "no/such/file/stdint.h" when there is no such file, so that
57525         the resulting C code can be parsed by dodgy compilers.
57526         Problems reported by Bob Proulx.
57527
57528 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57529
57530         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
57531         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57532         macros into the GNU _D_EXACT_NAMLEN.
57533         * lib/savedir.c:  Likewise.
57534         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
57535
57536 2006-07-10  Derek R. Price  <derek@ximbiot.com>
57537         and Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
57540         * m4/savedir.m4:
57541         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
57542         macros into the GNU _D_EXACT_NAMLEN.
57543
57544 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
57547         around the absolute name, to work around a problem with the HP-UX
57548         11.23 native C compiler, reported by Bob Proulx.
57549
57550 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57551
57552         * doc/maintain.texi, make-stds.texi: Sync from
57553         <http://savannah.gnu.org/projects/gnustandards>.
57554
57555 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
57556
57557         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
57558
57559 2006-07-09  Jim Meyering  <jim@meyering.net>
57560
57561         * m4/glob.m4: Remove a doubled word in a comment.
57562
57563 2006-07-09  Jim Meyering  <jim@meyering.net>
57564
57565         * lib/argp-pv.c: Remove a doubled word in a comment.
57566         * lib/check-version.c (check_version): Likewise.
57567         * lib/javacomp.c (compile_java_class): Likewise.
57568
57569 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
57572         for the benefit of people using Autoconf 2.60.  If you want to
57573         support older Autoconf versions you can copy m4/onceonly_2_57.m4
57574         (or m4/onceonly.m4, if pre-2.57) manually.
57575
57576 2006-07-08  Jim Meyering  <jim@meyering.net>
57577
57578         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
57579         comment.
57580         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
57581         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
57582         comment.
57583
57584 2006-07-08  Jim Meyering  <jim@meyering.net>
57585
57586         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
57587
57588 2006-07-07  Simon Josefsson  <jas@extundo.com>
57589
57590         * tests/test-crc.c: Change expected crc value, the test vector
57591         were probably computed using the old broken crc.c?
57592
57593 2006-07-06  Simon Josefsson  <jas@extundo.com>
57594
57595         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
57596         now the canonical place for the M4 file).
57597
57598         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
57599         from the sys_socket dependency now.
57600
57601         * modules/inet_pton (Files): Ditto.
57602
57603         * modules/inet_ntop (Files): Ditto.
57604
57605 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57606
57607         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
57608         not gl_PREREQ_GETUSERSHELL.
57609
57610 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57611
57612         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
57613         with only one argument, for Autoconf 2.60.
57614         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
57615         expand to nothing, so add a shell command to avoid syntax error.
57616         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57617
57618 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57619
57620         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
57621
57622 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57623
57624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
57625         no longer needed.  Check for isblank decl.
57626         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
57627         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
57628         of existence.
57629
57630 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57631
57632         * lib/getloadavg.c: Use __VMS, not VMS.
57633         * lib/getopt.c: Likewise.
57634         * lib/getpagesize.h: Likewise.
57635         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
57636         and probably does not work.
57637
57638 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57639
57640         * lib/.cppi-disable: Add wcwidth.
57641         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
57642         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
57643         (ISGRAPH): Remove.  All uses changed to isgraph.
57644         (FOLD) [!defined _LIBC]: Remove special case.
57645         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
57646         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
57647         HAVE_ISBLANK.
57648         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
57649         case.
57650
57651 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57652
57653         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
57654         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
57655         brackets.  Other minor changes to suppress some compiler
57656         warnings.
57657
57658 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57659         and Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
57662         of invoking obsolescent AC_HEADER_DIRENT macro.
57663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
57664         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
57665         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57666         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
57667         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
57668         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57669         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
57670         * m4/readdir.m4: Remove; no longer needed.
57671
57672 2006-07-06  Derek R. Price  <derek@ximbiot.com>
57673         and Paul Eggert  <eggert@cs.ucla.edu>
57674
57675         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
57676         Don't worry about this obsolete case any more.
57677         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
57678         directories.
57679         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
57680         worry about this obsolete case any more.
57681         * lib/fts.c: Likewise.
57682         * lib/getcwd.c: Likewise.
57683         * lib/glob.h: Likewise.
57684         * lib/savedir.c: Likewise.
57685
57686 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57687
57688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
57689         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
57690         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
57691         needed.
57692         All uses removed.
57693         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57694         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
57695         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
57696         needed.
57697         * m4/getdate.m4 (gl_GETDATE): Likewise.
57698         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57699         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57700         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57701         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57702         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
57703         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57704         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
57705         needed.
57706
57707 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57708
57709         * lib/memcasecmp.c: Include <limits.h>.
57710         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
57711         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
57712         Don't assume isdigit succeeds only on '0' through '9'.
57713
57714 2006-07-05  Eric Blake  <ebb9@byu.net>
57715
57716         * modules/getaddrinfo (Depends-on): Add snprintf.
57717
57718 2006-07-05  Eric Blake  <ebb9@byu.net>
57719
57720         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
57721         to avoid 'header present but could not be compiled' on cygwin.
57722
57723 2006-07-05  Eric Blake  <ebb9@byu.net>
57724
57725         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
57726         missing from netdb.h.
57727         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
57728
57729 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57730
57731         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
57732         no longer needed.
57733         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
57734         * m4/getdate.m4 (gl_GETDATE): Likewise.
57735         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
57736         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
57737         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57738         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
57739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57740
57741 2006-07-05  Derek R. Price  <derek@ximbiot.com>
57742
57743         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
57744         All uses of is_space replaced by isspace.
57745         * lib/exit.h: Don't talk about STDC_HEADERS.
57746         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
57747         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
57748         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
57749         replaced by isprint etc.
57750         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
57751         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57752         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
57753         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
57754         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
57755         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
57756
57757 2006-07-05  Bruno Haible  <bruno@clisp.org>
57758
57759         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
57760         the function exists, before testing against AIX.
57761         Reported by Martin Lambers <marlam@marlam.de>.
57762
57763 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57764
57765         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
57766         From Mark D. Baushke.
57767
57768 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
57769
57770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
57771         to the absolute name, not just one, to bypass Sun C 5.8's
57772         "warning: #include of /usr/include/... may be non-portable".
57773
57774 2006-07-04  Eric Blake  <ebb9@byu.net>
57775
57776         * modules/dirname-tests: New test module.
57777         * tests/test-dirname.c: New file, replacing dirname.c
57778         TEST_DIRNAME section that was recently deleted.
57779
57780 2006-07-04  Bruno Haible  <bruno@clisp.org>
57781
57782         Assume ANSI C header files and <ctype.h> functions.
57783         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
57784         (mbsnwidth): Use isprint, iscntrl instead.
57785
57786 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         Merge from coreutils.
57789         * MODULES.html.sh: Add xstrtold.
57790         * modules/xstrtold: New file.
57791         * modules/cycle-check (Files): Add lib/same-inode.h.
57792         * modules/dirname (Files): Add m4/double-slash-root.m4.
57793         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
57794         * modules/mkdir-p (Files): Add lib/same-inode.h.
57795         * modules/same (Files): Add lib/same-inode.h.
57796
57797 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         * m4/absolute-header.m4: Renamed from full-header-path.m4.
57800         This is to keep the terminology clean; POSIX talks about
57801         "absolute pathnames", not "full pathnames", but the GNU
57802         Coding Standards say to use "path" for something else;
57803         so use "absolute" to keep both sides happy.
57804         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
57805         Set gl_absolute_header, not gl_full_header_path.
57806         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
57807         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
57808         All uses changed.
57809
57810         Merge from coreutils.
57811
57812         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57813
57814         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
57815         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
57816         want to require the building of c-strtod.o.
57817         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
57818         needs -lm directly.
57819         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
57820
57821         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57822
57823         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
57824         --as-needed option if available.  Problem reported by Albert Chin in
57825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
57826         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
57827         cc merely issues a bunch of annoying warnings for --as-needed
57828         (this problem was reported by Bob Proulx).  Also, try linking with
57829         -lm to detect a bug in binutils 2.16 (this problem was reported
57830         by Ralf Wildenhues).
57831
57832         2006-06-18  Jim Meyering  <jim@meyering.net>
57833
57834         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
57835         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
57836         macro.
57837         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
57838         also check for glibc-2.4's abort-inducing bug.
57839
57840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
57841         Low-probability clean-up should be to use rmdir to get rid of
57842         the just-created directory, not unlink.
57843
57844         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
57845         configure fail, and request a bug report to inform us about it.
57846         Add a comment that, barring reports to the contrary, in 2007 we'll
57847         assume ftruncate is universally available.
57848
57849         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
57852
57853         2006-03-12  Jim Meyering  <jim@meyering.net>
57854
57855         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
57856         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
57857         * m4/same.m4 (gl_SAME): Likewise.
57858         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
57859
57860         2006-03-11  Eric Blake  <ebb9@byu.net>
57861
57862         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
57863         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
57864         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
57865         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
57866
57867 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57868
57869         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
57870         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
57871         reported by Mark D. Baushke, one in
57872         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
57873
57874         Merge from coreutils.
57875
57876         * lib/.cppi-disable: Add stdint_.h.
57877         * lib/.cvsignore: Add stdint.h.
57878
57879         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
57880
57881         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
57882         both double and long double versions.
57883         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
57884         * lib/xstrtold.c: New file.
57885         * lib/xstrtod.h (xstrtold): New decl.
57886
57887         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * lib/filemode.c (setst): Remove.
57890         (strmode): Rewrite to avoid setst.  This makes the code shorter,
57891         (arguably) clearer, and the generated code is a bit smaller on my
57892         Debian GNU/Linux stable x86 host.
57893
57894         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         * lib/filemode.c: Include "filemode.h" first, to test the interface.
57897         Assume that filemode.h includes sys/types.h and sys/stat.h.
57898         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
57899         (ftypelet): Reorder to put common cases first, for efficiency.
57900         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
57901         to do 'M'.
57902         (strmode): Renamed from mode_string, and now stores 12 bytes instead
57903         of 10, for compatibility with FreeBSD.  All callers changed.
57904         (filemodestring): Now stores 12 bytes instead of 10, and sets file
57905         types that can't be deduced solely from st_mode.  First arg is now a
57906         const pointer.
57907         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
57908         (strmode): Renamed from mode_string.
57909         (filemodestring): New decl.
57910         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
57911         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
57912         needed.
57913         (S_ISPORT, S_ISWHT): New macros, if not already defined.
57914
57915         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
57918         fsusage.h now does that.  Include fsusage.h first, to test interface.
57919         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
57920         at most one method (the old code could have generated decls that
57921         didn't conform to C89, not that this was ever exercised).
57922         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
57923
57924         2006-03-19  Jim Meyering  <jim@meyering.net>
57925
57926         Work even in a chroot where d_ino values for entries in "/"
57927         don't match the stat.st_ino values for the same names.
57928         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
57929         number, iterate through all entries again, using lstat instead.
57930         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
57931         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
57932
57933         * lib/getcwd.c (__getcwd): Clarify a comment.
57934         Use memcpy in place of a call to strcpy.
57935
57936         2006-03-12  Jim Meyering  <jim@meyering.net>
57937
57938         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
57939         matches that of the current directory (which we're about to chdir ".."
57940         out of), then save the dev-ino of the parent, instead.
57941
57942         * lib/same-inode.h (SAME_INODE): New file/macro.
57943         * lib/chdir-safer.c (SAME_INODE): Remove definition.
57944         Include "same-inode.h", instead.
57945         * lib/same.c: Likewise.
57946         * lib/cycle-check.h: Include "same-inode.h".
57947         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
57948         * lib/cycle-check.c (SAME_INODE): Remove definition.
57949         * lib/root-dev-ino.h: Include "same-inode.h".
57950
57951         2006-03-11  Eric Blake  <ebb9@byu.net>
57952
57953         * lib/same.c (same_name): s/base_name/last_component/
57954         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
57955         * lib/filenamecat.c (file_name_concat): Likewise.
57956
57957         2006-03-11  Eric Blake  <ebb9@byu.net>,
57958                     Paul Eggert  <eggert@cs.ucla.edu>
57959
57960         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
57961         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
57962         drive prefix.
57963         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
57964         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
57965         (last_component): New method.
57966         * lib/dirname.c (dir_len): Determine when drive letters need a
57967         subsequent slash.  Preserve // when it is special.
57968         (dir_name): Don't append dot when drive letter is absolute.
57969         [TEST_DIRNAME]: Move into a full-blown gnulib test.
57970         * lib/basename.c (base_name): New semantics - malloc the result.
57971         Preserve // when it is special.  Preserve relative files that look
57972         like drive letters.
57973         (base_len): Preserve // when it is special.
57974         (last_component): New method, similar to old base_name semantics.
57975         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
57976         base_name.  Strip redundant slashes from ///.
57977
57978 2006-07-03  Jim Meyering  <jim@meyering.net>
57979
57980         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
57981         macro is used before the first cycle_check call.
57982
57983 2006-07-03  Eric Blake  <ebb9@byu.net>
57984
57985         * modules/dirname (Depends-on): Add xstrndup.
57986
57987 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57988
57989         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
57990         test cases, so that config.log is a bit easier to follow.
57991
57992 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
57995         both are 64 bits, since this seems to be the tradition, and this
57996         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
57997         we ever run into a host that prefers long long to long in this
57998         case, we'll need another configure-time test.  Problem reported by
57999         Jim Meyering.
58000
58001 2006-07-02  Eric Blake  <ebb9@byu.net>
58002
58003         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
58004
58005 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58006
58007         * modules/inttypes (Depends-on): No longer depends on stdint.
58008         * modules/stdint (Description): Say more about assumptions.
58009         Say that the fast types might differ.  Say macros are used.
58010         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
58011         (Makefile.am): Revise list of substituted symbols to match
58012         new stdint.m4.
58013         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
58014         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
58015         * tests/test-stdint.c (verify_same_types)
58016         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
58017         the code conforms to C99/C89.
58018         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
58019         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
58020
58021 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
58024         but fix a bug, by requiring at least 64 bits.
58025         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58026         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
58027         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
58028         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
58029
58030         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
58031         changes.  Make 2.59 a prerequisite.  Check and substitute for
58032         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
58033         inttypes.h.  Do not use special include files; just use the
58034         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
58035         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
58036         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
58037         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
58038         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
58039         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
58040         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
58041         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
58042         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
58043         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
58044         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
58045         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
58046         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
58047         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
58048         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
58049         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
58050         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
58051         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
58052         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
58053         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
58054         WINT_MAX.  Check for C99 conformance more strictly, by detecting
58055         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
58056         not check for things that C99 does not require, e.g., int8_t.  If
58057         a test isn't needed unless <stdint.h> isn't working, and is
58058         unlikely to be needed for any other reason, then don't do it
58059         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
58060         size_t, since we assume C89 freestanding at least.  Do not check
58061         for sig_atomic_t, wchar_t, or wint_t, since the code now does
58062         the right thing even if the types are not defined.  Instead use:
58063         (gl_STDINT_TYPE_PROPERTIES): New macro.
58064         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
58065         testing whether <sys/types.h> clashes, as Autoconf does this for
58066         us now.  All uses removed.
58067         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
58068         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
58069         (gl_CHECK_TYPE_SAME):
58070         Remove; no longer needed.
58071         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
58072         exists, since we'll return 0 anyway in that case.
58073         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
58074
58075 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58076
58077         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
58078         possible collision with system files.
58079         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
58080         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
58081         WCHAR_MIN and WCHAR_MAX in this case.
58082         (<stddef.h>): Do not include; no longer needed.
58083         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
58084         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
58085         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
58086         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
58087         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
58088         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
58089         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
58090         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
58091         !defined(__c99))]: Include in this case too, since it's harmless
58092         now.
58093         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
58094         dangerous to do so.
58095         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
58096         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
58097         (_STDINT_MIN, _STDINT_MAX): New macros.
58098         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
58099         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
58100         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
58101         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
58102         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
58103         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
58104         macros, not typedefs; this simplifies things quite a bit.
58105         Use long int for all types narrower than int64_t.
58106         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
58107         Define in terms of long long int or int64_t or long int,
58108         not int64_t or int32_t.  This saves some compile-time testing.
58109         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
58110         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
58111         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
58112         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
58113         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
58114         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
58115         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
58116         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
58117         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
58118         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
58119         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58120         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58121         undef any previous version and define our own version, for
58122         simplicity and consistency with the new macros for types.
58123         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
58124         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
58125         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
58126         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
58127         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
58128         @WINT_T_SUFFIX@ to keep things simple here.
58129         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
58130         Simplify by assuming typical 8/16/32/64 host, since we're
58131         already doing that elsewhere anyway.
58132         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
58133         and assume long long int is 64 bits if available.  This
58134         speeds up 'configure'.
58135
58136 2006-07-01  Eric Blake  <ebb9@byu.net>
58137
58138         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
58139         Reported by Andreas Buening.
58140
58141 2006-07-01  Eric Blake  <ebb9@byu.net>
58142
58143         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
58144
58145 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
58146
58147         * lib/getaddrinfo.c: fixed typo
58148
58149 2006-06-29  Jim Meyering  <jim@meyering.net>
58150
58151         * modules/strftime (Maintainer): Add my name, since with the
58152         FPRINTFTIME changes strftime.c has forked from glibc.
58153
58154 2006-06-29  Eric Blake  <ebb9@byu.net>
58155
58156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
58157
58158 2006-06-29  Eric Blake  <ebb9@byu.net>
58159
58160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
58161
58162 2006-06-29  Eric Blake  <ebb9@byu.net>
58163
58164         * lib/stat_.h: New file.
58165
58166 2006-06-29  Eric Blake  <ebb9@byu.net>
58167
58168         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
58169         unused static function.
58170
58171 2006-06-29  Eric Blake  <ebb9@byu.net>
58172
58173         * doc/functions.texi (Function Portability): Document missing lstat
58174         on mingw.
58175
58176 2006-06-29  Eric Blake  <ebb9@byu.net>
58177
58178         * MODULES.html.sh: Add sys_stat.
58179         * modules/sys_stat: New module.
58180         * modules/mkstemp (Depends-on): Add sys_stat.
58181
58182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58183
58184         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
58185
58186 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58187
58188         * m4/c-bs-a.m4: Removed.
58189
58190 2006-06-29  Derek R. Price  <derek@ximbiot.com>
58191
58192         * lib/strftime.c: Assume strftime() exists.
58193
58194 2006-06-29  Derek Price  <derek@ximbiot.com>
58195
58196         * modules/c-bs-a: Removed - \a is C89.
58197         * MODULES.html.sh: Remove c-bs-a.
58198
58199 2006-06-29  Bruno Haible  <bruno@clisp.org>
58200
58201         * modules/wcwidth (License): Change to LGPL.
58202
58203 2006-06-28  Simon Josefsson  <jas@extundo.com>
58204
58205         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
58206         on _WIN32.
58207
58208         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
58209         getnameinfo.
58210
58211 2006-06-28  Simon Josefsson  <jas@extundo.com>
58212
58213         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
58214
58215 2006-06-28  Simon Josefsson  <jas@extundo.com>
58216
58217         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
58218         functions there.  It will succeed on Windows XP, but on Windows
58219         2000 and (presumably) earlier, it will fail, and use the internal
58220         re-implementation.
58221         (use_win32_p): New function.
58222         (getaddrinfo): Use strtoul on servname, to support numeric ports.
58223         Support AI_NUMERICSERV to disable getservbyname.
58224         (getnameinfo): New function, only supports
58225         NI_NUMERICHOST|NI_NUMERICSERV for now.
58226
58227         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
58228         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
58229         getnameinfo.
58230
58231 2006-06-28  Eric Blake  <ebb9@byu.net>
58232
58233         * modules/wcwidth: New file.
58234         * modules/mbchar (Depends-on): Add wcwidth.
58235         * modules/mbswidth (Depends-on): Add wcwidth.
58236         * MODULES.html.sh: Add wcwidth.
58237
58238 2006-06-28  Eric Blake  <ebb9@byu.net>
58239
58240         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
58241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
58242
58243 2006-06-28  Eric Blake  <ebb9@byu.net>
58244
58245         * lib/xvasprintf.h: Fix comments.
58246
58247 2006-06-28  Eric Blake  <ebb9@byu.net>
58248
58249         * lib/mbchar.h (wcwidth): Include wcwidth.h.
58250         * lib/mbswidth.c (wcwidth): Move from here...
58251         * lib/wcwidth.h: ...to this new file.
58252
58253 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58254
58255         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
58256
58257         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
58258         it's obsolete.
58259         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
58260
58261 2006-06-28  Derek R. Price  <derek@ximbiot.com>
58262
58263         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
58264         Autoconf 2.60 says this stuff was obsolete.
58265
58266 2006-06-28  Bruno Haible  <bruno@clisp.org>
58267
58268         * modules/wcwidth (Files): Add m4/wchar_t.m4.
58269
58270 2006-06-28  Bruno Haible  <bruno@clisp.org>
58271
58272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
58273         gt_TYPE_WCHAR_T.
58274
58275 2006-06-28  Bruno Haible  <bruno@clisp.org>
58276
58277         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
58278         declaration for wcwidth.
58279         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
58280
58281 2006-06-28  Bruno Haible  <bruno@clisp.org>
58282
58283         * lib/mkdtemp.c [MINGW]: Include <io.h>.
58284         (mkdir): Define using _mkdir.
58285
58286 2006-06-28  Bruno Haible  <bruno@clisp.org>
58287
58288         * lib/getaddrinfo.h: Fix POSIX URL.
58289         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
58290         _WIN32.
58291         (use_win32_p): Make static.
58292         (getaddrinfo): Reject service name if it is empty or does not consist
58293         solely of decimal digits, or if its value is > 65535.
58294         (getnameinfo): Remove useless casts.
58295
58296 2006-06-27  Simon Josefsson  <jas@extundo.com>
58297
58298         * modules/sys_select: New file, suggested by Bruno Haible, Paul
58299         Eggert and Martin Lambers.
58300
58301 2006-06-27  Simon Josefsson  <jas@extundo.com>
58302
58303         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
58304         Eggert and Martin Lambers.
58305
58306 2006-06-27  Bruno Haible  <bruno@clisp.org>
58307
58308         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
58309         result to 0, not to empty.
58310         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
58311
58312 2006-06-27  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
58315
58316 2006-06-26  Simon Josefsson  <jas@extundo.com>
58317
58318         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
58319         present.
58320
58321 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
58324         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
58325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
58326
58327 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
58328
58329         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
58330
58331 2006-06-26  Bruno Haible  <bruno@clisp.org>
58332
58333         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
58334
58335 2006-06-26  Bruno Haible  <bruno@clisp.org>
58336
58337         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
58338
58339 2006-06-26  Bruno Haible  <bruno@clisp.org>
58340
58341         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
58342         SGI C compiler in pre-C99 mode.
58343         Suggested by Mark D. Baushke and Larry Jones.
58344
58345 2006-06-26  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
58348         WCHAR_MAX.
58349         Reported by Mark D. Baushke and Larry Jones.
58350
58351 2006-06-26  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
58354         in pre-C99 mode.
58355         Suggested by Mark D. Baushke and Larry Jones.
58356
58357 2006-06-23  Simon Josefsson  <jas@extundo.com>
58358             Bruno Haible  <bruno@clisp.org>
58359
58360         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
58361         Emit mostlyclean-local rule.
58362         (func_emit_tests_Makefile_am): Likewise.
58363         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
58364
58365 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
58366
58367         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
58368
58369 2006-06-23  Bruno Haible  <bruno@clisp.org>
58370
58371         * tests/test-stdint.c: Update to match ISO C 99 Technical
58372         Corrigendum 1.
58373
58374 2006-06-23  Bruno Haible  <bruno@clisp.org>
58375
58376         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
58377
58378 2006-06-23  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/stdint_.h: Treat IRIX like OpenBSD.
58381
58382 2006-06-23  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
58385         ISO C 99 Technical Corrigendum 1.
58386
58387 2006-06-22  Simon Josefsson  <jas@extundo.com>
58388
58389         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
58390         MinGW.
58391
58392 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
58395         needed.  Some compiler complained about some of them.  Problem reported
58396         by Larry Jones in
58397         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
58398
58399 2006-06-21  Simon Josefsson  <jas@extundo.com>
58400
58401         * tests/test-getaddrinfo.c: New file.
58402
58403         * modules/getaddrinfo-tests: New file.
58404
58405         * MODULES.html.sh: Add inet_pton.
58406
58407         * modules/inet_pton: New file.
58408
58409 2006-06-21  Simon Josefsson  <jas@extundo.com>
58410
58411         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
58412         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
58413         of using the (limited) gnulib implementation on Windows XP.
58414
58415         * m4/inet_pton.m4: New file.
58416
58417 2006-06-21  Simon Josefsson  <jas@extundo.com>
58418
58419         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
58420         variable.
58421
58422         * lib/socket_.h: Don't define WINVER.
58423
58424         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
58425         slightly modified to work in gnulib.
58426
58427 2006-06-21  Simon Josefsson  <jas@extundo.com>
58428
58429         * doc/gnulib.texi (Windows sockets): Add.
58430
58431 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * lib/read-file.c (fread_file): Start with buffer allocation of
58434         0 bytes rather than 1 byte; this simplifies the code.
58435         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
58436         code to free buffer and save/restore errno.
58437         (internal_read_file): Remove unused local.
58438
58439 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
58442         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
58443         Problem reported by Denis Excoffier in
58444         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
58445
58446 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58447
58448         * modules/sys_socket, modules/socklen: Include sys/types since
58449         FreeBSD 4.x's sys/socket.h needs it.
58450
58451 2006-06-19  Simon Josefsson  <jas@extundo.com>
58452
58453         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
58454
58455 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
58458
58459 2006-06-19  Bruno Haible  <bruno@clisp.org>
58460
58461         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
58462         and FULL_PATH_INTTYPES_H in angle brackets.
58463         Reported by Mark D. Baushke <mdb@gnu.org>.
58464
58465 2006-06-17  Eric Blake  <ebb9@byu.net>
58466
58467         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
58468         errno.
58469
58470 2006-06-17  Bruno Haible  <bruno@clisp.org>
58471
58472         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
58473         <sys/inttypes.h>.
58474
58475 2006-06-17  Bruno Haible  <bruno@clisp.org>
58476
58477         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
58478         whether errno is declared. Assume <errno.h> declares errno.
58479
58480 2006-06-17  Bruno Haible  <bruno@clisp.org>
58481
58482         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
58483
58484 2006-06-17  Bruno Haible  <bruno@clisp.org>
58485
58486         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
58487         problem on Solaris 2.5.1.
58488
58489 2006-06-16  Eric Blake  <ebb9@byu.net>
58490
58491         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
58492         * lib/unicodeio.c [!defined errno]: Likewise.
58493         * lib/strtol.c [!defined errno]: Likewise.
58494         * lib/strtod.c [!defined errno]: Likewise.
58495
58496 2006-06-15  Eric Blake  <ebb9@byu.net>
58497
58498         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
58499
58500 2006-06-15  Eric Blake  <ebb9@byu.net>
58501
58502         * config/srclist.txt (ssize_t.m4): Lose sync.
58503
58504 2006-06-15  Bruno Haible  <bruno@clisp.org>
58505
58506         * modules/stdint (Files): Include m4/full-header-path.m4,
58507         m4/size_max.m4, m4/wchar_t.m4.
58508         (Makefile.am): Many more substitutions.
58509         * modules/stdint-tests: New file.
58510         * tests/test-stdint.c: New file.
58511
58512 2006-06-15  Bruno Haible  <bruno@clisp.org>
58513
58514         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
58515         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
58516         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
58517         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
58518         gl_CHECK_TYPE_SAME): New macros.
58519
58520 2006-06-15  Bruno Haible  <bruno@clisp.org>
58521
58522         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
58523
58524 2006-06-15  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/stdint_.h: Rewritten to be fully auto-configured.
58527         Fixes bug on HP-UX/IA64.
58528
58529 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * lib/getdate.y (__attribute__): Don't define if already defined.
58532         Problem reported by Larry Jones.
58533         * lib/utimens.c (__attribute__): Likewise.
58534
58535 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
58538         reported by Andreas Schwab.
58539
58540 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58541             Bruno Haible  <bruno@clisp.org>
58542
58543         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
58544         check for the declaration of strnlen and a run test that exposes the
58545         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
58546         rpl_strndup.
58547
58548 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58549             Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
58552
58553 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58554
58555         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
58556         compile test, for Tru64 4.0D.
58557
58558 2006-05-28  Karl Berry  <karl@gnu.org>
58559
58560         * config/srclist.txt (printf-args.c): lose sync.
58561
58562 2006-05-26  Martin Lambers  <marlam@marlam.de>
58563
58564         * lib/getpass.c: Updates the test for the native W32 API, and adds
58565         missing includes, thus fixing compilation warnings.
58566
58567 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58568
58569         * lib/exclude.c (exclude_fnmatch): New function.
58570         (excluded_file_name): Call exclude_fnmatch.
58571         * lib/exclude.h (excluded_file_name): New prototype
58572
58573 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * lib/tempname.c (small_open, large_open): New macros.
58576         (__open, __open64) [!_LIBC]: Remove.
58577         (__gen_tempname): Use small_open and large_open instead of __open
58578         and __open64.  This fixes a portability bug on HP-UX 11.11i
58579         reported by Simon Wing-Tang in
58580         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
58581
58582 2006-05-24  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
58585         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
58586         Reported by Thorsten Maerz <torte@netztorte.de> via
58587         Aaron Stone <aaron@serendipity.cx>.
58588
58589 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
58592         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
58593         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
58594         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
58595         not really conditional on the cache.
58596         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
58597
58598 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58599
58600         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
58601         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
58602         (my_usleep): Don't mishandle maximum value.
58603
58604 2006-05-19  Jim Meyering  <jim@meyering.net>
58605
58606         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
58607
58608 2006-05-17  Bruno Haible  <bruno@clisp.org>
58609
58610         Cygwin portability.
58611         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
58612
58613 2006-05-17  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/stdint_.h: Fix recognition of Cygwin.
58616
58617 2006-05-15  Bruno Haible  <bruno@clisp.org>
58618
58619         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
58620         on libtool patch by Ralf Wildenhues.
58621
58622 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
58625         test for C99 conformance; (bool) 0.5 is an integer constant
58626         expression, but (bool) -0.5 is not.  Problem reported by Fedor
58627         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
58628
58629 2006-05-11  Simon Josefsson  <jas@extundo.com>
58630
58631         * m4/xvasprintf.m4: Fix obvious typo.
58632
58633 2006-05-11  Jim Meyering  <jim@meyering.net>
58634
58635         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
58636         James Lemley.
58637
58638 2006-05-10  Simon Josefsson  <jas@extundo.com>
58639
58640         * lib/md4.c: Typo fix, update copyright years.
58641         (K1, K2): Don't use L because it turn computations into 64-bit on
58642         64-bit platforms.
58643
58644 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
58647         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
58648         unwanted sign propagation, e.g., on hosts with 64-bit int.
58649         There still are some problems with reeelly weird theoretical hosts
58650         (e.g., 33-bit int) but it's not worth worrying about now.
58651         * lib/sha1.c (rol): Likewise.
58652         (K1, K2, K3, K4): Remove unnecessary L suffix.
58653
58654 2006-05-10  Bruno Haible  <bruno@clisp.org>
58655
58656         * lib/des.c: Cast to avoid warnings.
58657
58658 2006-05-09  Bruno Haible  <bruno@clisp.org>
58659
58660         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
58661         (Depends-on): Depend also on xsize, stdarg.
58662         (configure.ac): Add gl_XVASPRINTF.
58663
58664 2006-05-09  Bruno Haible  <bruno@clisp.org>
58665
58666         * m4/xvasprintf.m4: New file.
58667
58668 2006-05-09  Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
58671         (EOVERFLOW): Define fallback value.
58672         (xstrcat): New function.
58673         (xvasprintf): Recognize the special case of a string concatenation.
58674
58675 2006-05-08  Eric Blake  <ebb9@byu.net>
58676
58677         * gnulib-tool (func_version): Base copyright year on CVS date.
58678         (func_emit_copyright_notice): New function.
58679         (func_emit_lib_Makefile_am): Use it.
58680         (func_emit_tests_Makefile_am): Likewise.
58681         (func_import): Likewise.
58682
58683 2006-05-08  Bruno Haible  <bruno@clisp.org>
58684
58685         * modules/stdarg: New file.
58686         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
58687
58688 2006-05-08  Bruno Haible  <bruno@clisp.org>
58689
58690         * m4/stdarg.m4: New file, from GNU gettext.
58691
58692 2006-05-08  Bruno Haible  <bruno@clisp.org>
58693
58694         * config/srclist.txt (build-aux/config.rpath): different from latest
58695         release.
58696
58697 2006-05-08  Bruno Haible  <bruno@clisp.org>
58698
58699         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
58700
58701 2006-05-05  Jim Meyering  <jim@meyering.net>
58702
58703         * m4/warning.m4: New file, derived from bison's file by the same name.
58704
58705 2006-05-03  Bruno Haible  <bruno@clisp.org>
58706
58707         * lib/stdint_.h: Shorter URL.
58708         * lib/inttypes.h: Likewise.
58709
58710 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58711
58712         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
58713
58714 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58715
58716         * lib/verify.h: Document the internals better.  Most of this change
58717         was written by Bruno Haible.
58718
58719 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58720
58721         * doc/verify.texi: New file, partly based on a proposal by
58722         Bruno Haible.
58723
58724 2006-05-02  Bruno Haible  <bruno@clisp.org>
58725
58726         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
58727         test from here...
58728         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
58729
58730 2006-04-29  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
58733         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
58734
58735 2006-04-29  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool: Make --update option actually work.
58738
58739 2006-04-29  Bruno Haible  <bruno@clisp.org>
58740
58741         * doc/gcd.texi: New file.
58742         * doc/gnulib.texi: Include it.
58743
58744 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
58745
58746         * lib/getdate.y (get_date): When adding relative date, start with the
58747         initial time, not with the result of the first mktime call.
58748
58749 2006-04-25  Bruno Haible  <bruno@clisp.org>
58750
58751         * gnulib-tool (func_import): Output the include directives in three
58752         blocks, sorted separately.
58753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58754
58755 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
58758         to define main with arguments, for C++.  Reported by Eric Blake.
58759         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
58760         Prefer 'int main ()' to 'int main (void)', for C++.
58761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
58763         for 'main', for C99 and C++.
58764
58765 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
58768         Don't assume that exit status -1 is valid.
58769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58770         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58771         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
58772         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
58773         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
58774         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
58775         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
58776         functions can be used without declaring them, or that you can
58777         exit with status -1.
58778         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
58779
58780 2006-04-24  Karl Berry  <karl@gnu.org>
58781
58782         * config/srclist.txt (longdouble.m4): sync lost.
58783
58784 2006-04-24  Eric Blake  <ebb9@byu.net>
58785
58786         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
58787
58788 2006-04-24  Bruno Haible  <bruno@clisp.org>
58789
58790         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
58791         poll() implementation in AIX.
58792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58793
58794 2006-04-24  Bruno Haible  <bruno@clisp.org>
58795
58796         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
58797         assigned exactly once.
58798
58799 2006-04-23  Claudio Fontana  <claudio@gnu.org>
58800             Bruno Haible  <bruno@clisp.org>
58801
58802         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
58803         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
58804         for AM_CPPFLAGS.
58805
58806 2006-04-23  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/copy-file: Depend on unistd.
58809         * modules/execute: Likewise.
58810         * modules/fatal-signal: Likewise.
58811         * modules/findprog: Likewise.
58812         * modules/mkdtemp : Likewise.
58813         * modules/pipe: Likewise.
58814         * modules/wait-process: Likewise.
58815
58816 2006-04-23  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
58819         condition was already detected.
58820         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58821
58822 2006-04-23  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/copy-file.c: Include <unistd.h> unconditionally.
58825         * lib/execute.c: Likewise.
58826         * lib/fatal-signal.c: Likewise.
58827         * lib/findprog.c: Likewise.
58828         * lib/mkdtemp.c: Likewise.
58829         * lib/pipe.h: Likewise.
58830         * lib/pipe.c: Likewise.
58831         * lib/wait-process.h: Likewise.
58832
58833 2006-04-23  Bruno Haible  <bruno@clisp.org>
58834
58835         * gnulib-tool (func_usage): Fix --import description. Document
58836         --update.
58837         (func_import): Create temporary file in a temporary directory, if
58838         --dry-run is specified. Silence errors from 'grep' when there are no
58839         m4 files in $m4dir.
58840         (func_create_testdir): Silence errors from 'grep' when there are no
58841         m4 files in $m4dir.
58842         Reported by Karl Berry <karl@freefriends.org>.
58843
58844 2006-04-20  Bruno Haible  <bruno@clisp.org>
58845
58846         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
58847         one argument, so that the code will be portable to Autoconf 2.60.
58848         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
58849         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
58850         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
58851
58852 2006-04-19  Derek Price  <derek@ximbiot.com>
58853             Eric Blake  <ebb9@byu.net>
58854
58855         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
58856         rather than "/full/path.h".  Update comment to match.  Shorten &
58857         generalize m4_translit call via AS_TR_CPP.
58858
58859 2006-04-19  Derek Price  <derek@ximbiot.com>
58860             Eric Blake  <ebb9@byu.net>
58861
58862         * lib/inttypes.h: Correct grammar in comment.
58863
58864 2006-04-18  Derek Price  <derek@ximbiot.com>
58865             Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * modules/inttypes: New file.
58868         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
58869
58870 2006-04-18  Derek Price  <derek@ximbiot.com>
58871             Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
58874         New files.
58875
58876 2006-04-18  Derek Price  <derek@ximbiot.com>
58877             Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * lib/inttypes.h: New file.
58880         * lib/strtoimax.c: Assume <inttypes.h>.
58881
58882 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
58885         isn't mounted.  Problem reported by Kir Kolyshkin.
58886
58887 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58888
58889         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
58890         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
58891         Derek R. Price.
58892         * lib/regex.h (RE_DUP_MAX): Update comment to match current
58893         implementation.
58894
58895 2006-04-12  Eric Blake  <ebb9@byu.net>
58896
58897         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
58898         is now done automatically by the corresponding Autoconf macro.
58899
58900 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
58903         time_r.h.
58904
58905 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58906
58907         Merge regex changes from libc, removing some of our
58908         POSIX-conformance changes that were rejected and redoing them in a
58909         less-intrusive way.
58910
58911         * lib/regcomp.c (re_compile_internal, init_dfa):
58912         Length arg is now size_t, not Idx.  All uses changed.
58913         (peek_token): Forward decl now says internal_function.
58914         (__re_error_msgid, __re_error_msgid_idx):
58915         Now static rather than extern with attribute_hidden.
58916         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
58917         For some reason libc prefers K&R style defns for external functions.
58918         (regerror) [!defined _LIBC]: Likewise.
58919         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
58920         (seek_collating_symbol_entry, lookup_collation_sequence_value):
58921         (build_range_exp, build_collating_symbol):
58922         Use K&R-style defn.
58923         (re_compile_fastmap): Use '\0' to memset, not 0.
58924         (utf8_sb_map): Make the calculations more obvious.
58925         (init_dfa, parse_bracket_exp, build_charclass_op):
58926         Call calloc and cast result, as glibc does.
58927         (init_word_char, fetch_token, peek_token, peek_token_bracket):
58928         (build_range_exp, build_collating_symbol):
58929         Now internal functions.
58930
58931         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
58932
58933         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
58934         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
58935         Don't depend on VMS; depend on __VMS instead, for POSIX
58936         namespace cleanness.
58937         (regoff_t): Define to ssize_t, not long int.
58938
58939         Remove the REG_ macros named below.  Instead, make the old names
58940         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
58941         __USE_GNU_REGEX.
58942         (REG_BACKSLASH_ESCAPE_IN_LISTS):
58943         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
58944         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
58945         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
58946         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
58947         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
58948         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
58949         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
58950         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
58951         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
58952         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
58953         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
58954         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
58955         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
58956         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
58957         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
58958         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
58959         (REG_NREGS):
58960         Remove.  All uses replaced by the old RE_* names.
58961         (RE_BACKSLASH_ESCAPE_IN_LISTS):
58962         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
58963         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
58964         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
58965         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
58966         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
58967         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
58968         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
58969         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
58970         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
58971         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
58972         Don't bother having these macros be independent of each others'
58973         values, since they no longer exist in the POSIX name space.
58974
58975         Rename the following member names back to their old names,
58976         unless !__USE_GNU_REGEX.  All uses changed back.
58977         (buffer): Renamed from re_buffer.
58978         (allocated): Renamed from re_allocated.
58979         (used): Renamed from re_used.
58980         (syntax): Renamed from re_syntax.
58981         (fastmap): Renamed from re_fastmap.
58982         (translate): Renamed from re_translate.
58983         (can_be_null): Renamed from re_can_be_null.
58984         (regs_allocated): Renamed from re_regs_allocated.
58985         (fastmap_accurate): Renamed from re_fastmap_accurate.
58986         (no_sub): Renamed from re_no_sub.
58987         (not_bol): Renamed from re_not_bol.
58988         (not_eol): Renamed from re_not_eol.
58989         (newline_anchor): Renamed from re_newline_anchor.
58990         (num_regs): Renamed from rm_num_regs.
58991         (start): Renamed from rm_start.
58992         (end): Renamed from rm_end.
58993
58994         (free_state): Move up a bit.
58995
58996         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
58997         #define to be empty.
58998         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
58999         when that is what is intended.
59000         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
59001         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
59002         (MAX): New macro.
59003         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
59004         All uses changed back to re_malloc, etc.  It's now the caller's
59005         responsibility to check for overflow; all callers changed.
59006         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
59007         (re_x2nrealloc): Remove.
59008         (free_state): Remove decl.
59009
59010         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
59011         (re_set_registers, re_exec):
59012         Use K&R-style defn.
59013
59014         2006-01-31  Roland McGrath  <roland@redhat.com>
59015
59016         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
59017         Reported by Mike Frysinger <vapier@gentoo.org>.
59018
59019         2006-01-15  Andreas Jaeger  <aj@suse.de>
59020
59021         [BZ #1950]
59022         * lib/regex_internal.c (re_string_reconstruct): Adjust for
59023         build_wcs_upper_buffer change.
59024         (build_wcs_upper_buffer): Change return type.
59025
59026         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
59027
59028         * lib/regex_internal.h: Include <stdint.h> if available.
59029
59030         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
59031
59032         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
59033
59034         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
59035
59036         * lib/regcomp.c: Adjust for changed secondary hash function.
59037
59038         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
59039
59040         * lib/regex.h: Pretty printing.
59041         Clean up namespace a bit.
59042
59043         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
59044
59045         * lib/regexec.c (update_cur_sifted_state, check_arrival,
59046         check_arrival_add_next_nodes): Avoid using uninitialized variable.
59047
59048         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59049                     Ulrich Drepper  <drepper@redhat.com>
59050
59051         [BZ #1302]
59052         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
59053         changed.
59054         (bitset_word_t): Renamed from bitset_word.  All uses changed.
59055
59056         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
59057
59058         [BZ #281]
59059         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
59060         * lib/regcomp.c: Remove unnecessary uses of
59061         unsigned RE_TRANSLATE_TYPE.
59062         * lib/regex_internal.h: Likewise.
59063         * lib/regex_internal.c: Likewise.
59064         * lib/regexec.c: Likewise.
59065         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
59066
59067         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
59068
59069         * lib/regexec.c (find_recover_state): Remove unnecessary
59070         initialization.
59071         (transit_state_bkref): Make DFA a const pointer.
59072         (get_subexp): Likewise.
59073         (check_arrival): Likewise.
59074         (update_cur_sifted_state): Likewise.
59075         (re_search_internal): Likewise.
59076         (prune_impossible_nodes): Likewise.
59077         (acquire_init_state_context): Likewise.
59078         (proceed_next_node): Likewise.
59079         (set_regs): Likewise.
59080         (free_fail_stack_return): Likewise.
59081         (check_arrival_expand_ecl): Mark DFA parameter as const.
59082         (check_arrival_expand_ecl_sub): Likewise.
59083         (check_subexp_limits): Likewise.
59084         (sub_epsilon_src_nodes):  Likewise.
59085         (add_epsilon_src_nodes):  Likewise.
59086         (merge_state_array): Likewise.
59087         (update_regs): Likewise.
59088         (build_trtable): Likewise.
59089         (sift_states_backward): Mark MCTX parameter as const.
59090         (build_sifted_states): Likewise.
59091         (update_cur_sifted_state): Likewise.
59092         (sift_states_mkref): Likewise.
59093         (check_arrival_expand_ecl): Mark eclosure as const.
59094         (check_dst_limits_calc_pos_1): Likewise.
59095         * lib/regex_internal.h (re_match_context_t): Make dfa a const
59096         pointer.
59097
59098         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
59099
59100         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
59101         (transit_state_sb): Likewise.
59102         (transit_state_mb): Likewise.
59103         (sift_states_iter_mb): Likewise.
59104         (check_arrival_add_next_nodes): Likewise.
59105         (check_node_accept_bytes): Change first parameter to pointer-to-const.
59106         [_LIBC] (re_search_2_stub): Use mempcpy.
59107
59108         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
59109         mbrtowc for very simple UTF-8 case.
59110
59111         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
59112         a pointer-to-const.
59113         (re_acquire_state_context): Likewise.
59114         * lib/regex_internal.h: Adjust prototypes.
59115
59116         * lib/regex.c: Prevent using C++ compilers.
59117
59118         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
59119         (re_acquire_state_context): Likewise.
59120
59121 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         * modules/regex (Depends-on): Add ssize_t.
59124
59125 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59126
59127         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
59128         translation table.
59129
59130 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
59133
59134 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
59135             Bruno Haible  <bruno@clisp.org>
59136
59137         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
59138         <sys/types.h> and <inttypes.h>.
59139
59140 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59141
59142         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
59143         `__error_t_defined', so argp.h will not typedef the former.
59144
59145 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
59146
59147         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
59148         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
59149         glibc names.  Even if glibc is changed to conform to POSIX, the
59150         traditional names will be available anyway, since regex depends on
59151         the extensions module.  Also, fix a longstanding typo in the
59152         implementation of Spencer ERE test #75 from grep 2.3.  Problems
59153         reported by Emanuele Giaquinta.  Also, change sense of cached
59154         variable, so that the message makes sense.
59155
59156 2006-03-24  Simon Josefsson  <jas@extundo.com>
59157
59158         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
59159         including some doc fixes.
59160         (base64_encode_alloc): Fix +1 bug on allocation failures.
59161
59162 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59163
59164         * lib/base64.c (base64_encode): Do not read past end of array with
59165         unsanitized input on systems with CHAR_BIT > 8.
59166
59167 2006-03-24  Eric Blake  <ebb9@byu.net>
59168
59169         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
59170
59171 2006-03-22  Karl Berry  <karl@gnu.org>
59172
59173         * config/srclist.txt (*setenv.[ch]): get from coreutils.
59174         * config/srclistvars.sh (COREUTILS): new var.
59175
59176 2006-03-17  Jim Meyering  <jim@meyering.net>
59177
59178         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
59179         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
59180
59181 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
59184         no longer needs it.  Instead, check that regoff_t is as least
59185         as wide as ptrdiff_t.
59186
59187         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
59188         so that our regex.h stays compatible with the installed regex.
59189         This is helpful for installers who configure --without-included-regex.
59190         Problem reported by Emanuele Giaquinta.
59191
59192 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
59195         Typedef to long int, not to off_, as POSIX will likely change
59196         in that direction.
59197
59198 2006-03-15  Eric Blake  <ebb9@byu.net>
59199
59200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
59201
59202 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59203
59204         * lib/argp-help.c (validate_uparams): Fix typo
59205         * lib/argp-parse.c (argp_default_options): Consistently begin help
59206         messages with a lowercase letter.
59207
59208 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
59209
59210         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
59211         overrun buffers and shouldn't be used (much as gets shouldn't be
59212         used).
59213         * lib/time_r.c (asctime_r, ctime_r): Likewise.
59214
59215 2006-03-08  Simon Josefsson  <jas@extundo.com>
59216
59217         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
59218         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59219
59220 2006-03-08  Simon Josefsson  <jas@extundo.com>
59221
59222         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
59223         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59224
59225 2006-03-08  Simon Josefsson  <jas@extundo.com>
59226
59227         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
59228         signal that configure disabled the device.
59229
59230 2006-03-08  Simon Josefsson  <jas@extundo.com>
59231
59232         * build-aux/maint.mk: Fix refresh-po, to handle no translated
59233         languages.
59234
59235 2006-03-07  Simon Josefsson  <jas@extundo.com>
59236
59237         * modules/getopt (Depends-on): Add unistd.
59238
59239         * modules/unistd: New file.
59240
59241 2006-03-07  Simon Josefsson  <jas@extundo.com>
59242
59243         * modules/gc-random: New file.
59244
59245 2006-03-07  Simon Josefsson  <jas@extundo.com>
59246
59247         * m4/unistd_h.m4: New file.
59248
59249 2006-03-07  Simon Josefsson  <jas@extundo.com>
59250
59251         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
59252         test to be side-effect free by storing the result in the cache
59253         variable gl_cv_lib_readline, and moving the assignment of
59254         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
59255         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59256
59257 2006-03-07  Simon Josefsson  <jas@extundo.com>
59258
59259         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
59260         error on missing devices (the functions will return an error).
59261
59262         * m4/gc.m4: Move random stuff to gc-random.m4
59263
59264 2006-03-07  Simon Josefsson  <jas@extundo.com>
59265
59266         * lib/unistd_.h: New file.
59267
59268 2006-03-07  Simon Josefsson  <jas@extundo.com>
59269
59270         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
59271
59272 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59273
59274         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
59275         Problem reported by Juan Manuel Guerrero.
59276
59277 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
59280         the unistd module.
59281         * lib/getlogin_r.c: Likewise.
59282         * lib/getlogin_r.h: Likewise.
59283         * lib/glob.c: Likewise.
59284         * lib/pagealign_alloc.c: Likewise.
59285         * lib/unistd_.h: Remove; no longer needed.
59286
59287 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
59288
59289         * MODULES.html.sh (Support for systems lacking POSIX:2001):
59290         Add unistd.
59291         * modules/c-stack (Depends-on): Add unistd.
59292         * modules/getlogin_r: Likewise.
59293         * modules/glob: Likewise.
59294         * modules/pagealign_alloc: Likewise.
59295         * modules/unistd (Files): Remove lib/unistd_.h.
59296         (EXTRA_DIST): Remove.
59297         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
59298         need unistd_.h.
59299         (MOSTLYCLEANFILES): Remove unistd.h-t.
59300
59301 2006-03-03  Simon Josefsson  <jas@extundo.com>
59302
59303         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
59304
59305 2006-03-03  Simon Josefsson  <jas@extundo.com>
59306
59307         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
59308         libidn and bison.
59309
59310 2006-03-03  Simon Josefsson  <jas@extundo.com>
59311
59312         * build-aux/maint.mk: Add indent target.
59313
59314 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
59315
59316         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
59317         our replacement poll.h in any case, to avoid a differing
59318         declaration from a system header.  Seen on AIX.
59319
59320 2006-03-01  Simon Josefsson  <jas@extundo.com>
59321
59322         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
59323         <kasal@ucw.cz>.
59324
59325 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         * modules/gettime (Depends-on): Add extensions module.
59328         * modules/nanosleep (Depends-on): Likewise.
59329         * modules/settime (Depends-on): Likewise.
59330
59331 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59332
59333         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
59334         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
59335         pedantically.
59336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59337         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
59338
59339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
59340         not "==".  Reported by Ralf Wildenhues.
59341
59342 2006-03-01  Karl Berry  <karl@gnu.org>
59343
59344         * doc/Copyright/request-*: new files, synced from gnuorg.
59345
59346 2006-03-01  Karl Berry  <karl@gnu.org>
59347
59348         * config/srclist.txt (Copyright/*): new entries.
59349
59350 2006-02-28  Simon Josefsson  <jas@extundo.com>
59351
59352         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
59353
59354 2006-02-27  Simon Josefsson  <jas@extundo.com>
59355
59356         * lib/base64.h: Indent #define's.  From Jim Meyering
59357         <jim@meyering.net>.
59358
59359 2006-02-27  Jim Meyering  <jim@meyering.net>
59360
59361         Revert the change of 2006-02-24, so these files can continue
59362         to be sync'd from gettext.
59363         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
59364         of `config.h'.
59365
59366 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * modules/intprops: New file.
59369         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59370         Add intprops.
59371         * modules/getloadavg (Files): Remove lib/intprops.h.
59372         (Depends-on): Add intprops.
59373         * modules/human: Likewise.
59374         * modules/inttostr: Likewise.
59375         * modules/openat: Likewise.
59376         * modules/sig2str: Likewise.
59377         * modules/userspec: Likewise.
59378         * modules/utimecmp: Likewise.
59379         * modules/xnanosleep: Likewise.
59380         * modules/xstrtol: Likewise.
59381
59382 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
59383
59384         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
59385         * modules/lock-tests (TESTS): Use $(EXEEXT).
59386         * modules/tls-tests: Likewise.
59387         * modules/argp-tests: Likewise.
59388         (check_PROGRAMS): New var, replacing...
59389         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
59390
59391 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59392
59393         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
59394         `config.h'.
59395
59396 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
59399
59400 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59401
59402         Sync from coreutils.
59403         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
59404         gl_CHDIR_SAFER.
59405
59406 2006-02-22  Jim Meyering  <jim@meyering.net>
59407
59408         Sync from coreutils.
59409         * m4/chdir-safer.m4: New file.
59410
59411 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
59414         AT_FDCWD exceeds INT_MAX.
59415         * lib/openat.h (AT_FDCWD): Likewise.
59416
59417 2006-02-17  Eric Blake  <address@hidden>
59418
59419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
59420
59421 2006-02-16  Simon Josefsson  <jas@extundo.com>
59422
59423         * modules/getaddrinfo (Depends-on): Add sys_socket.
59424
59425 2006-02-15  Simon Josefsson  <jas@extundo.com>
59426
59427         * build-aux/maint.mk: Add dsyntax-check rule.
59428
59429 2006-02-15  Eric Blake  <ebb9@byu.net>
59430
59431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
59432         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
59433         'present but cannot compile' warnings on cygwin.
59434         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
59435         use ws2tcpip.h if sys/socket.h works.
59436         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
59437         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
59438
59439 2006-02-14  Simon Josefsson  <jas@extundo.com>
59440
59441         * modules/maintainer-makefile (Files): Rename.
59442
59443         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
59444         and (the local) Makefile.cfg to maint-cfg.mk.
59445
59446         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
59447         to the latter.
59448
59449         * modules/maintainer-makefile: New module.
59450
59451         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
59452         severaly stripped to make it possible to build it up from scratch
59453         with reliable tests.
59454
59455         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
59456         fixes to permit overriding the default actions when configure and
59457         makefile are not available.
59458
59459 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59460
59461         Sync from coreutils.
59462         * modules/lstat (Depends-on): Don't depend on xalloc.
59463         (License): Change from GPL to LGPL, since this is now simply a
59464         replacement for a libc function.
59465
59466 2006-02-14  Jim Meyering  <jim@meyering.net>
59467
59468         Sync from coreutils.
59469
59470         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
59471         failure on deficient systems, and simplify gnulib lgpl dependencies.
59472         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
59473         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
59474
59475         * lib/xalloc-die.c: Remove unused definition of N_.
59476
59477 2006-02-14  Jim Meyering  <jim@meyering.net>
59478
59479         Sync from coreutils.
59480         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
59481         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
59482         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
59483         double-quote uses of that variable, to accommodate the rare case in
59484         which getmntent is available in none of the libraries checked.  This
59485         happens at least on FreeBSD 5.0.
59486
59487 2006-02-13  Simon Josefsson  <jas@extundo.com>
59488
59489         * gnulib-tool (Usage): Fix --import, from
59490         karl@freefriends.org (Karl Berry).
59491
59492 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
59493
59494         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
59495
59496 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
59497
59498         * lib/argp-namefrob.h: Restore changes accidentally lost during the
59499         "autoupdate" on 2005-12-12.
59500
59501 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * modules/closeout (Depends-on): Remove atexit.
59504
59505 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
59506
59507         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
59508         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
59509
59510 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
59513         __EXTENSIONS__ if this causes compilation to fail.  Problem
59514         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
59515         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
59516
59517 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
59520         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
59521         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
59522         All uses changed.
59523
59524 2006-01-26  Simon Josefsson  <jas@extundo.com>
59525
59526         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
59527         prototype is visible on mingw32.
59528
59529         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
59530         for mingw32.
59531
59532         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
59533         mingw32).
59534
59535 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
59538         attempt to open for write; this always fails, at least on POSIX
59539         hosts.  This reinstates the 2006-01-09 change, which was
59540         inadvertently removed.
59541
59542 2006-01-26  Bruno Haible  <bruno@clisp.org>
59543
59544         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
59545         Reported by Paul Eggert.
59546
59547 2006-01-26  Bruno Haible  <bruno@clisp.org>
59548             Paul Eggert  <eggert@cs.ucla.edu>
59549
59550         * lib/stdbool_.h (_Bool)
59551         [(! (defined __cplusplus || defined __BEOS__)
59552           && !defined __GNUC__
59553           && !(defined __HP_cc || defined __xlc__
59554                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
59555                || defined __sgi))]:
59556         #define to signed char in these cases too; this simplifies
59557         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
59558         etc., separately) and makes it more conservative.
59559
59560 2006-01-25  Simon Josefsson  <jas@extundo.com>
59561
59562         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
59563         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
59564         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
59565
59566 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
59567
59568         * lib/argp-namefrob.h: Bugfix. Remove stray #
59569
59570 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
59573         so that we test the test.
59574         Check for yet another HP-UX cc bug involving *bool |= bool.
59575
59576 2006-01-25  Karl Berry  <karl@gnu.org>
59577
59578         * config/srclist.txt (vasnprintf.c): sync lost.
59579
59580 2006-01-25  Jim Meyering  <jim@meyering.net>
59581
59582         Sync from the stable (b5) branch of coreutils:
59583
59584         * lib/fts.c (fts_children): Don't let close() clobber errno from
59585         failed fchdir().
59586
59587         * lib/fts.c (fts_stat): When following a symlink-to-directory,
59588         don't necessarily interpret stat-fails+lstat-succeeds as indicating
59589         a dangling symlink.  That can also happen at least for ELOOP.
59590         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
59591         FYI, this bug predates the inclusion of fts.c in coreutils.
59592
59593         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
59594         in their own block, so pre-c99 compilers don't object.
59595
59596         Avoid the double-free (first in fts_read, second in fts_close) that
59597         would occur when an `active' directory is made inaccessible (e.g.,
59598         via chmod a-x) during a traversal.
59599         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59600         before returning.  Reproduce this failure by
59601         mkdir -p a/b; cd a; chmod a-x . b
59602         Reported by Stavros Passas.
59603
59604 2006-01-25  Jim Meyering  <jim@meyering.net>
59605
59606         * lib/fileblocks.c: Remove more useless parentheses.
59607         * lib/readutmp.h: Likewise.
59608
59609 2006-01-25  Bruno Haible  <bruno@clisp.org>
59610
59611         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
59612         warnings.
59613         Reported by Paul Eggert.
59614
59615 2006-01-25  Bruno Haible  <bruno@clisp.org>
59616
59617         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
59618         rid of a trap command. For Solaris sh.
59619         Reported by Mark D. Baushke <mdb@gnu.org>.
59620
59621 2006-01-24  Simon Josefsson  <jas@extundo.com>
59622
59623         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
59624         Bruno.
59625
59626 2006-01-24  Karl Berry  <karl@gnu.org>
59627
59628         * config/srclist.txt (argp-namefrob.h): sync lost.
59629
59630 2006-01-24  Jim Meyering  <jim@meyering.net>
59631
59632         * modules/openat (Files): Add lib/intprops.h.
59633         From Mark D. Baushke.
59634
59635 2006-01-24  Jim Meyering  <jim@meyering.net>
59636
59637         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
59638         Reported by Mark D. Baushke.
59639
59640 2006-01-24  Jim Meyering  <jim@meyering.net>
59641
59642         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
59643
59644 2006-01-24  Bruno Haible  <bruno@clisp.org>
59645
59646         * modules/strnlen (Maintainer): Change from glibc to all.
59647
59648 2006-01-24  Bruno Haible  <bruno@clisp.org>
59649
59650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
59651         Patch by Paul Eggert.
59652
59653 2006-01-24  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
59656         already has it.
59657         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
59658         2005-11-26.
59659
59660         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
59661         'signed char' to avoid problems with the built-in _Bool type.
59662         Reported by Paul Eggert on 2005-11-26.
59663
59664 2006-01-24  Bruno Haible  <bruno@clisp.org>
59665
59666         * gnulib-tool (func_import): Avoid constructing complicated sed
59667         expressions inside backquote.
59668         Report and solution by Mark D. Baushke <mdb@gnu.org>.
59669
59670 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
59671
59672         These changes imported from libc.
59673         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
59674         test and two separate function calls.
59675         * lib/strndup.c (__strndup): Add libc_hidden_def.
59676
59677 2006-01-23  Simon Josefsson  <jas@extundo.com>
59678
59679         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
59680         Remove the test_*_SOURCES variable: automake infers it by default.
59681         * modules/tls-tests: Likewise.
59682
59683 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59684
59685         Work around porting bugs reported by Dieter in
59686         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
59687         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
59688         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
59689         Include "getopt.h" first, to check interface.
59690         (getenv): Declare only if defined HAVE_DECL_GETENV &&
59691         !HAVE_DECL_GETENV.
59692         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
59693         (__strndup): Revert to K&R-style function dfns, the glibc style.
59694         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
59695         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
59696         Include strnlen.h first, to get prototype properly.
59697         (strnlen): Renamed from __strnlen.
59698         Remove weak alias.
59699
59700 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59701
59702         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
59703
59704 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * config/srclist.txt: Adjust to reflect glibc reorganization.
59707         This affects only comments.
59708
59709 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59710
59711          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
59712          Reported by Bruce Korb <bkorb@gnu.org>.
59713
59714 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
59717         to pacify gcc -Wswitch-default.
59718
59719 2006-01-22  Bruno Haible  <bruno@clisp.org>
59720
59721         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
59722         temporary buffer for sprintf, take into account the precision also
59723         for 'd', 'i', 'u', 'o', 'x', 'X'.
59724
59725 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59726
59727         * modules/argp-tests: New module
59728         * tests/test-argp.c: New file
59729         * tests/test-argp-2.sh: New file
59730
59731 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
59732
59733         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
59734         (__argp_base_name): Removed
59735         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
59736         typo.
59737         (__argp_base_name): Provide macro definition or extern declaration
59738         depending on the configuration
59739
59740 2006-01-20  Simon Josefsson  <jas@extundo.com>
59741
59742         * modules/inet_ntop (Depends-on): Depend on sys_socket.
59743
59744 2006-01-20  Simon Josefsson  <jas@extundo.com>
59745
59746         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
59747
59748 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59749
59750         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
59751         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
59752         Suggested by Bruno Haible.
59753
59754 2006-01-20  Karl Berry  <karl@gnu.org>
59755
59756         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
59757         until changes propagate, I guess.
59758
59759 2006-01-19  Simon Josefsson  <jas@extundo.com>
59760
59761         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
59762
59763 2006-01-19  Simon Josefsson  <jas@extundo.com>
59764
59765         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
59766
59767 2006-01-19  Simon Josefsson  <jas@extundo.com>
59768
59769         * gnulib-tool: Set check_PROGRAMS.
59770
59771         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59772         modules/des-tests, modules/gc-arcfour-tests,
59773         modules/gc-arctwo-tests, modules/gc-des-tests,
59774         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59775         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59776         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59777         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59778         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59779         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
59780         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
59781         test_*_SOURCES.
59782
59783 2006-01-18  Simon Josefsson  <jas@extundo.com>
59784
59785         * modules/socklen (Depends-on): Depend on sys_socket.
59786
59787 2006-01-18  Simon Josefsson  <jas@extundo.com>
59788
59789         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
59790         modules/des-tests, modules/gc-arcfour-tests,
59791         modules/gc-arctwo-tests, modules/gc-des-tests,
59792         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
59793         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
59794         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
59795         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
59796         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
59797         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
59798         $(EXEEXT) to automake TESTS variable, for mingw32.
59799
59800 2006-01-17  Simon Josefsson  <jas@extundo.com>
59801
59802         * modules/socklen (Include): Need sys/socket.h.
59803
59804 2006-01-17  Bruno Haible  <bruno@clisp.org>
59805
59806         * modules/ssize_t (Include): Add <sys/types.h>.
59807
59808 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
59811         it's not portable and it doesn't work with cross-compiles.
59812         Problem reported by Bruno Haible.  Fix missing-$ typo in
59813         'test "gl_cv_ignore_unused_libraries" ...' that prevented
59814         -zignore from being used with Sun's C compiler.
59815
59816 2006-01-12  Simon Josefsson  <jas@extundo.com>
59817
59818         * lib/base64.c: Fix warning, reported by Bruno Haible
59819         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
59820
59821 2006-01-12  Bruno Haible  <bruno@clisp.org>
59822
59823         * modules/ldd: New file.
59824         * build-aux/ldd.sh.in: New file.
59825         * MODULES.html.sh (Support for building libraries and executables): Add
59826         ldd.
59827
59828 2006-01-12  Bruno Haible  <bruno@clisp.org>
59829
59830         * m4/ldd.m4: New file.
59831
59832 2006-01-12  Bruno Haible  <bruno@clisp.org>
59833
59834         * gnulib-tool (func_import, func_create_testdir): Don't go into an
59835         endless loop while replacing $auxdir with build-aux.
59836
59837 2006-01-11  Simon Josefsson  <jas@extundo.com>
59838
59839         * lib/stdint_.h (SIZE_MAX): Add missing (.
59840
59841 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         Sync from coreutils.
59844         * lib/md5.c: Fix commentary typos.
59845         (alignof, UNALIGNED_P): No need for a GCC-specific version.
59846         * lib/md5.h (__attribute__): Remove; unused.
59847         * lib/sha1.c: Fix commentary to match md5 better.
59848         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
59849         so that we don't need to worry about alignment.  All uses changed.
59850         This merges the 2005-10-28 md5 change into sha1.
59851
59852 2006-01-11  Jim Meyering  <jim@meyering.net>
59853
59854         Sync from coreutils.
59855         * lib/md5.c (OP): Fix spacing.
59856
59857 2006-01-11  Bruno Haible  <bruno@clisp.org>
59858
59859         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59860         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
59861         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
59862
59863 2006-01-11  Bruno Haible  <bruno@clisp.org>
59864
59865         Ensure automatic ordering between gl_LOCK and gl_ARGP.
59866         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
59867         the "early" section as well.
59868
59869 2006-01-11  Bruno Haible  <bruno@clisp.org>
59870
59871         Avoid "ar: no archive members specified" error on MacOS X.
59872         * gnulib-tool (func_modules_add_dummy): New function.
59873         (func_import, func_create_testdir): Invoke it.
59874
59875 2006-01-11  Bruno Haible  <bruno@clisp.org>
59876
59877         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
59878         with $auxdir in AC_CONFIG_FILES statements.
59879
59880 2006-01-11  Bruno Haible  <bruno@clisp.org>
59881
59882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59883         Initialize also noinst_HEADERS to empty.
59884
59885 2006-01-11  Bruno Haible  <bruno@clisp.org>
59886
59887         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
59888         variables.
59889         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
59890         autoreconf.
59891
59892 2006-01-11  Bruno Haible  <bruno@clisp.org>
59893
59894         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
59895         overridable by the user.
59896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59897
59898 2006-01-10  Simon Josefsson  <jas@extundo.com>
59899
59900         * modules/sys_socket: New file.
59901
59902 2006-01-10  Simon Josefsson  <jas@extundo.com>
59903
59904         * m4/sys_socket_h.m4: New file.
59905
59906 2006-01-10  Simon Josefsson  <jas@extundo.com>
59907
59908         * lib/socket_.h: New file.
59909
59910 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * modules/readutmp (Maintainer): Add myself.
59913
59914 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
59917         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
59918         People who are still concerned with buggy memcmp implementations
59919         can invoke gl_FUNC_MEMCMP themselves.
59920
59921 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * lib/regex_internal.h (BITSET_WORD_BITS):
59924         Work around a bug in 64-bit PGC (before version 6.1-2), where the
59925         preprocessor mishandles large unsigned values as if they were signed.
59926         Problem reported by Claudio Fontana in
59927         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
59928
59929 2006-01-10  Jim Meyering  <jim@meyering.net>
59930
59931         Avoid the double-free (first in fts_read, second in fts_close) that
59932         would occur when an `active' directory is made inaccessible (e.g.,
59933         via chmod a-x) during a traversal.
59934         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59935         before returning.  Reproduce this failure by
59936         mkdir -p a/b; cd a; chmod a-x . b
59937         Reported by Stavros Passas.
59938
59939         Sync from coreutils.
59940         * lib/sha1.c: Tweak grammar in a comment.
59941
59942 2006-01-10  Jim Meyering  <jim@meyering.net>
59943
59944         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
59945         Patch by Joerg Sonnenberger.
59946
59947 2006-01-10  Bruno Haible  <bruno@clisp.org>
59948
59949         * modules/readutmp: Depend on module free.
59950         * modules/strtok_r: Depend on module restrict.
59951
59952 2006-01-10  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/gettext (configure.ac): Add an invocation of
59955         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
59956
59957 2006-01-10  Bruno Haible  <bruno@clisp.org>
59958
59959         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
59960         Reported by Werner Lemberg <wl@gnu.org>.
59961
59962 2006-01-10  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/localcharset.c: Update from GNU gettext.
59965
59966 2006-01-10  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/argp.h (__const): Remove macro. Use const instead.
59969         * lib/argp-fmtstream.h (__const): Likewise.
59970         * lib/glob_.h (__const): Remove macro.
59971         * lib/glob-libc.h: Use const instead of __const.
59972
59973 2006-01-10  Bruno Haible  <bruno@clisp.org>
59974
59975         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
59976         variable.
59977         Needed to avoid an automake error regarding the 'gettext' module.
59978
59979 2006-01-09  Simon Josefsson  <jas@extundo.com>
59980
59981         * modules/inet_ntop (Depends-on): Add restrict.
59982
59983 2006-01-09  Simon Josefsson  <jas@extundo.com>
59984
59985         * modules/gc-rijndael-tests (License): Put under LGPL.
59986
59987         * modules/gc-des-tests (License): Likewise.
59988
59989         * modules/gc-arcfour-tests (License): Likewise.
59990
59991         * modules/gc-arctwo-tests (License): Likewise.
59992
59993         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
59994
59995         * modules/gc-hmac-sha1-tests (Files): Likewise.
59996
59997         * modules/gc-hmac-md5-tests (License): Likewise.
59998
59999         * modules/gc-sha1-tests (License): Likewise.
60000
60001         * modules/gc-md5-tests (License): Likewise.
60002
60003         * modules/gc-md4-tests (License): Likewise.
60004
60005         * modules/gc-md2-tests (License): Likewise.
60006
60007         * modules/gc-tests (License): Likewise.
60008
60009         * modules/des-tests (License): Likewise.
60010
60011         * modules/md4-tests (License): Likewise.
60012
60013         * modules/md2-tests (License): Likewise.
60014
60015 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         Sync from coreutils:
60018
60019         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
60020         * modules/lib-ignore: New file.
60021         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
60022         chdir-safer.m4, lchmod.m4.
60023         * modules/openat: Add mkdirat.c, openat-priv.h.
60024
60025 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         Sync from coreutils.
60028         * m4/lib-ignore.m4: New file.
60029         * m4/lchmod.m4: New file.
60030
60031 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         Sync from coreutils.
60034         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
60035         for write access: POSIX says that must fail.
60036         * lib/fts.c (diropen): Likewise.
60037         * lib/save-cwd.c (save_cwd): Likewise.
60038         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
60039         well, for minor improvements on hosts that lack O_DIRECTORY.
60040         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
60041         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
60042         Fall back on chown if open failed with EACCES.
60043
60044         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
60045         Report an error at compile-time if only a 1-second nominal clock
60046         resolution is found.
60047
60048         * lib/lchmod.h: New file.
60049         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
60050         (make_dir_parents): Use lchown rather than chown, and
60051         lchmod rather than chmod.
60052
60053         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
60054         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
60055         "proc" reported by n0dalus.
60056
60057         * lib/mountlist.c: Include <limits.h>.
60058         (dev_from_mount_options)
60059         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
60060         New function.  It no longer assumes "dev=" has the System V meaning
60061         on Linux (since it doesn't).  It also parses "dev=" more carefully.
60062         (read_file_system_list)
60063         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
60064         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
60065         dev= in that case.
60066
60067         * lib/posixtm.h (PDS_PRE_2000): New macro.
60068         * lib/posixtm.c (year): Arg is now syntax_bits rather than
60069         allow_century.  All usages changed.  Reject dates outside the range
60070         1969-1999 if PDS_PRE_2000 is used.
60071
60072 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60073
60074         Sync from coreutils.
60075         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
60076         (Time of day items): Mention the possibility of leap seconds.
60077         Problem reported by Dr. David Alan Gilbert.
60078
60079 2006-01-09  Jim Meyering  <jim@meyering.net>
60080
60081         Sync from coreutils.
60082
60083         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
60084
60085         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
60086
60087         * lib/modechange.c (mode_compile): Reject an invalid mode string
60088         that starts with an octal digit.  From Andreas Gruenbacher.
60089
60090         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
60091         and dup to open_safer and dup_safer, respectively.
60092         (openat_permissive): Fix typo in comment.
60093
60094         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
60095         "gettext.h"; either no longer needed or are guaranteed by openat.h.
60096         (_): Remove; no longer needed.
60097         (openat): Renamed from rpl_openat; no need for rpl_openat
60098         since openat.h renames openat for us.
60099         Replace most of the body with a call to openat_permissive,
60100         to avoid duplicate code.
60101         Port to (probably hypothetical) environments were mode_t is
60102         wider than int.
60103         (openat_permissive): Require mode arg, so that we can check
60104         types better.  Put it just after flags.  Change cwd failure
60105         indicator from pointer-to-bool to pointer-to-errno-value.
60106         All callers changed.
60107         Invoke openat_save_fail and/or openat_restore_fail if
60108         cwd_errno is null, so that openat can call us.
60109         (openat_permissive, fdopendir, fstatat, unlinkat):
60110         Simplify errno handling to avoid some duplicate code,
60111         as it's OK to set errno on success.
60112         * lib/openat.h: Revamp code so that function macros depend on
60113         __OPENAT_PREFIX only, not also on AT_FDCWD.
60114         (openat_ro): Remove.  Caller changed to use openat_permissive.
60115         (openat_permissive): Now a macro, if not a function.
60116         (openat_restore_fail, openat_save_fail): Now always functions,
60117         since mkdirat needs them even if __OPENAT_PREFIX is defined.
60118
60119         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
60120         and openat.c.
60121         * lib/mkdirat.c: Include openat-priv.h.
60122         Remove definitions of macros defined therein.
60123         * lib/openat.c: Likewise.
60124
60125         * lib/mkdirat.c (mkdirat): New file and function.
60126         * lib/openat.h (mkdirat): Declare.
60127
60128         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
60129
60130         * lib/openat.h (openat_permissive): Declare.
60131         (openat_ro): Define.
60132
60133         * lib/openat.c (EXPECTED_ERRNO): New macro.
60134         (openat_permissive): New function -- used in remove.c rewrite.
60135         (all functions): Set errno just before returning, only if there
60136         was an actual failure.
60137         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
60138
60139         Emulate openat-family functions using Linux's procfs, if possible.
60140         Idea and some code based on Ulrich Drepper's glibc changes.
60141
60142         * lib/openat.c: (BUILD_PROC_NAME): New macro.
60143         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
60144         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
60145         before falling back on save_cwd and restore_cwd.
60146         (fdopendir, fstatat, unlinkat): Likewise.
60147
60148         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
60149         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
60150
60151         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
60152         as second argument to va_arg.  Otherwise, some versions of gcc
60153         warn that `if this code is reached, the program will abort'.
60154
60155 2006-01-09  Jim Meyering  <jim@meyering.net>
60156
60157         Sync from coreutils.
60158         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
60159         Require openat-priv.h.
60160
60161 2006-01-09  Bruno Haible  <bruno@clisp.org>
60162
60163         * modules/strnlen (Include): Use strnlen.h.
60164
60165 2006-01-09  Bruno Haible  <bruno@clisp.org>
60166
60167         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
60168
60169 2006-01-09  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/sysexit_.h (EX_OK): New macro.
60172         Suggested by Martin Lambers <marlam@marlam.de>.
60173
60174 2006-01-09  Bruno Haible  <bruno@clisp.org>
60175
60176         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
60177         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
60178
60179 2006-01-09  Bruno Haible  <bruno@clisp.org>
60180
60181         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
60182         numbers.
60183
60184 2006-01-09  Bruno Haible  <bruno@clisp.org>
60185
60186         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
60187         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
60188         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
60189         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
60190
60191 2006-01-09  Bruno Haible  <bruno@clisp.org>
60192
60193         * build-aux/javacomp.sh.in: New file, moved from lib/.
60194         * modules/javacomp-script (Files): Update.
60195         (configure.ac): Add AC_CONFIG_FILES invocation.
60196         (EXTRA_DIST): Remove variable.
60197
60198         * build-aux/javaexec.sh.in: New file, moved from lib/.
60199         * modules/javaexec (Files): Update.
60200         (configure.ac): Add AC_CONFIG_FILES invocation.
60201         (EXTRA_DIST): Remove javaexec.sh.in.
60202
60203         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
60204         * modules/csharpcomp-script (Files): Update.
60205         (configure.ac): Add AC_CONFIG_FILES invocation.
60206         (EXTRA_DIST): Remove variable.
60207
60208         * build-aux/csharpexec.sh.in: New file, moved from lib/.
60209         * modules/csharpexec (Files): Update.
60210         (configure.ac): Add AC_CONFIG_FILES invocation.
60211         (EXTRA_DIST): Remove csharpexec.sh.in.
60212
60213 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60214
60215         Sync from coreutils.
60216
60217         Add POSIX ACL support
60218         * lib/acl.h (copy_acl, set_acl): Add declarations.
60219         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
60220         systems other than Linux.
60221         (chmod_or_fchmod): New function: use fchmod when possible,
60222         and chmod otherwise.
60223         (file_has_acl): Add a POSIX ACL implementation, with a
60224         Linux-specific subcase.
60225         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
60226         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
60227         acls are unsupported.
60228         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
60229         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
60230         are unsupported.
60231
60232 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
60233
60234         Sync from coreutils.
60235         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
60236
60237 2006-01-07  Bruno Haible  <bruno@clisp.org>
60238
60239         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
60240         gl_EARLY.
60241
60242 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/strftime.c (tzname): Don't declare if it is already #defined.
60245         Problem reported for Mingw by Mark Junker.
60246
60247 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         * README: Gnulib normally doesn't generate a tarball.
60250
60251 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
60254         long int, not int, for nanosecond counts, so that people who are
60255         used to POSIX struct timespec won't be surprised.  Reported by Jim
60256         Meyering.
60257
60258 2005-12-28  Bruno Haible  <bruno@clisp.org>
60259
60260         * build-aux/config.rpath: Update from GNU gettext.
60261
60262 2005-12-16  Jim Meyering  <jim@meyering.net>
60263
60264         * modules/fprintftime: New module.
60265         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
60266
60267 2005-12-16  Jim Meyering  <jim@meyering.net>
60268
60269         * m4/fprintftime.m4: New file.
60270
60271 2005-12-16  Jim Meyering  <jim@meyering.net>
60272
60273         * lib/fprintftime.c, lib/fprintftime.h: New files.
60274
60275 2005-12-15  Simon Josefsson  <jas@extundo.com>
60276
60277         * modules/socklen (configure.ac): Fix M4 macro name, to align with
60278         new m4/socklen.m4.
60279
60280 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60281
60282         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
60283         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
60284
60285 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60286
60287         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
60288         * lib/argp-help.c (fill_in_uparams): Check if the constructed
60289         struct uparams is valid. Fall back to the default values if it is
60290         not.
60291
60292 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60293
60294         * modules/argp (Files): Add argp-pin.c
60295         (Depends-on): dirname
60296         (lib_SOURCES): Add argp-pin.c
60297
60298 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60299
60300         * m4/argp.m4:  Check if program_invocation_name and
60301         program_invocation_short_name are declared and define appropriate
60302         macros if they are not.
60303
60304 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60305
60306         * lib/argp-help.c (__argp_base_name): New function
60307         (__argp_short_program_name): Rewrite using __argp_base_name
60308         * lib/argp-namefrob.h: Define program_invocation_name and
60309         program_invocation_short_name if requested
60310         (__argp_base_name): Add prototype
60311         * lib/argp-parse.c (argp_def): Use gettext wrappers
60312         (argp_default_parser): Use __argp_base_name
60313         * lib/argp-pin.c: New file. Defines program_invocation_name and
60314         program_invocation_short_name on systems that lack them.
60315
60316 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60317
60318         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
60319         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60320         porting problem reported by Georg Schwarz in
60321         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60322
60323 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60324
60325         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
60326         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
60327         porting problem reported by Georg Schwarz in
60328         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
60329
60330 2005-12-05  Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
60333         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
60334         Reported by Mark Junker <mjscod@gmx.de>.
60335
60336 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
60339         Use implementation from Albert Chin, with some
60340         comments/corrections by Stepan Kasal and myself.
60341
60342 2005-12-02  Bruno Haible  <bruno@clisp.org>
60343
60344         * gnulib-tool (func_import): Accept GPLed build tool modules when
60345         --lgpl is given.
60346         * modules/csharpcomp-script: New file.
60347         * modules/csharpcomp: Depend on it.
60348         * modules/javacomp-script: New file.
60349         * modules/javacomp: Depend on it.
60350         Suggested by Simon Josefsson.
60351
60352 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
60355         statement, to work around an HP-UX 10.20 compiler bug reported by
60356         Peter O'Gorman.
60357
60358 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60359
60360         * modules/savedir (Depends-on): Add openat.
60361
60362 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
60363
60364         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
60365         (uintmax_t) [defined uintmax_t]: Do not declare.
60366         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
60367         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
60368         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
60369         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
60370         sake of portability to weird hosts that C allows (though we don't
60371         know of any practical examples).
60372
60373         * lib/savedir.h (fdsavedir): New decl.
60374         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
60375         contains most of the former guts of savedir.
60376         (savedir): Use savedirstream.
60377         Include "openat.h".
60378
60379 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         * modules/obstack (Files): Add m4/ulonglong.m4.
60382         Problem reported by Davide Angelocola.
60383
60384 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60385
60386         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
60387         coreutils no longer futzes with rounding modes.
60388
60389 2005-11-14  Jim Meyering  <jim@meyering.net>
60390
60391         * lib/mkstemp-safer.c: Include <config.h>, required for possible
60392         replacement of mkstemp.
60393
60394 2005-11-10  Simon Josefsson  <jas@extundo.com>
60395
60396         * lib/readline.c: Remove EOL.
60397
60398 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60399
60400         * modules/gethrxtime (Depends-on): Add gettime.
60401
60402 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
60405         or gettimeofday; no longer needed.
60406
60407 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
60410         time business.
60411         (gethrxtime) [! (HAVE_NANOUPTIME
60412         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
60413         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
60414         our own approximation.
60415
60416 2005-11-08  Eric Blake  <ebb9@byu.net>
60417
60418         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60419
60420 2005-11-08  Eric Blake  <ebb9@byu.net>
60421
60422         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
60423
60424 2005-11-04  Bruno Haible  <bruno@clisp.org>
60425
60426         * gnulib-tool: Implement --update mode.
60427
60428 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         Fix porting problem reported by Theodoros V. Kalamatianos.
60431         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
60432         Don't assume that futimes failing means we must fail.
60433
60434 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60435
60436         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
60437         variables to suggest the intended function of the PATH_MAX check.
60438
60439 2005-10-30  Kean Johnston  <jkj@sco.com>
60440
60441         Trivial changes to support SCO systems.
60442         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
60443         as PATH_MAX.
60444         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
60445         where __ptr is null when no I/O is pending.
60446
60447 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60448
60449         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
60450         leave errno alone.  Problem reported by Dmitry V. Levin.
60451
60452 2005-10-28  Simon Josefsson  <jas@extundo.com>
60453
60454         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
60455         Test more.
60456
60457         * tests/test-gc-md2.c, tests/test-md2.c: New files.
60458
60459         * modules/md2, modules/md2-tests: New files.
60460
60461 2005-10-28  Simon Josefsson  <jas@extundo.com>
60462
60463         * m4/inet_ntop.m4: More tests.
60464
60465         * m4/gc-md2.m4, md2.m4: New file.
60466
60467 2005-10-28  Simon Josefsson  <jas@extundo.com>
60468
60469         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
60470         "restrict" keywords, as per POSIX.  Protect the function
60471         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
60472         Don't use K&R prototypes.  Check the sprintf return values.
60473         Re-define EAFNOSUPPORT if not present.  Indent.
60474
60475         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
60476         suggested by Bruno Haible <bruno@clisp.org>.
60477
60478         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
60479
60480         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
60481
60482         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
60483         libgcrypt).
60484
60485         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
60486
60487         * lib/md2.h, lib/md2.c: New files.
60488
60489 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
60492         errno alone.  Problem reported by Frederic Jolliton.
60493
60494 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60495
60496         * modules/verify (License): Change from GPL to LGPL.  This is a
60497         tiny module and there are apparently near-equivalents that are
60498         under the BSD license.
60499
60500 2005-10-24  Simon Josefsson  <jas@extundo.com>
60501
60502         * modules/sha1: Relicense to LGPL.
60503
60504 2005-10-24  Simon Josefsson  <jas@extundo.com>
60505
60506         * lib/md4.h: Shrink buffer size, now that we changed the type.
60507
60508 2005-10-23  Simon Josefsson  <jas@extundo.com>
60509
60510         * gnulib-tool (func_import): Fix --tests-base.
60511
60512 2005-10-22  Simon Josefsson  <jas@extundo.com>
60513
60514         * modules/arcfour (Depends-on): Need stdint.
60515
60516 2005-10-22  Simon Josefsson  <jas@extundo.com>
60517
60518         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
60519         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
60520
60521 2005-10-22  Simon Josefsson  <jas@extundo.com>
60522
60523         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
60524         suggested by Bruno Haible <bruno@clisp.org>.
60525
60526 2005-10-22  Simon Josefsson  <jas@extundo.com>
60527
60528         * lib/crc.h: Include stddef.h, for size_t.
60529
60530 2005-10-22  Simon Josefsson  <jas@extundo.com>
60531
60532         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
60533         arcfour_context struct (simplify test vector testing in GNU
60534         Shishi).
60535
60536 2005-10-21  Simon Josefsson  <jas@extundo.com>
60537
60538         * modules/des, modules/des-tests: New files.
60539
60540         * modules/gc-des, modules/gc-des-tests: New files.
60541
60542         * tests/test-des.c, tests/test-gc-des.c: New file.
60543
60544 2005-10-21  Simon Josefsson  <jas@extundo.com>
60545
60546         * modules/arctwo, modules/arctwo-tests: New files.
60547
60548         * tests/test-arctwo.c: New file.
60549
60550         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
60551
60552         * tests/test-gc-arctwo.c: New file.
60553
60554 2005-10-21  Simon Josefsson  <jas@extundo.com>
60555
60556         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
60557         Bruno Haible <bruno@clisp.org>.
60558
60559         * m4/gc-des.m4: New file.
60560
60561 2005-10-21  Simon Josefsson  <jas@extundo.com>
60562
60563         * m4/arctwo.m4: New file.
60564
60565         * m4/gc-arctwo.m4: New file.
60566
60567 2005-10-21  Simon Josefsson  <jas@extundo.com>
60568
60569         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
60570         block.
60571
60572 2005-10-21  Simon Josefsson  <jas@extundo.com>
60573
60574         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
60575         <bruno@clisp.org>.
60576
60577         * lib/hmac-sha1.c (hmac_sha1): Likewise.
60578
60579         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
60580         Bruno Haible <bruno@clisp.org>.
60581
60582         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
60583         <bruno@clisp.org>.
60584
60585 2005-10-21  Simon Josefsson  <jas@extundo.com>
60586
60587         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
60588
60589 2005-10-21  Simon Josefsson  <jas@extundo.com>
60590
60591         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
60592
60593 2005-10-21  Simon Josefsson  <jas@extundo.com>
60594
60595         * lib/des.h, lib/des.c: New files.
60596
60597         * lib/gc-gnulib.c: Support DES.c
60598
60599 2005-10-21  Simon Josefsson  <jas@extundo.com>
60600
60601         * lib/arctwo.h, lib/arctwo.c: New files.
60602
60603         * lib/gc-gnulib.c: Support ARCTWO.
60604
60605 2005-10-21  Simon Josefsson  <jas@extundo.com>
60606
60607         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
60608         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60609
60610 2005-10-21  Simon Josefsson  <jas@extundo.com>
60611
60612         * gnulib-tool (func_import, func_create_testdir): Define automake
60613         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
60614         Makefile.am snippet),
60615         suggested by Bruno Haible <bruno@clisp.org>.
60616
60617         * modules/gc (Makefile.am): Use it.
60618
60619 2005-10-21  Bruno Haible  <bruno@clisp.org>
60620
60621         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
60622         patch.
60623
60624 2005-10-19  Simon Josefsson  <jas@extundo.com>
60625
60626         * tests/test-gc-rijndael.c: New file.
60627
60628         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
60629
60630 2005-10-19  Simon Josefsson  <jas@extundo.com>
60631
60632         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
60633         interface too.
60634
60635 2005-10-19  Simon Josefsson  <jas@extundo.com>
60636
60637         * tests/test-gc-arcfour.c: New file.
60638
60639         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
60640
60641 2005-10-19  Simon Josefsson  <jas@extundo.com>
60642
60643         * modules/gc-md4, modules/gc-md4-tests: New file.
60644
60645         * tests/test-gc-md4.c: New file.
60646
60647 2005-10-19  Simon Josefsson  <jas@extundo.com>
60648
60649         * m4/gc-md4.m4: New file.
60650
60651 2005-10-19  Simon Josefsson  <jas@extundo.com>
60652
60653         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
60654         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
60655         <kasal@ucw.cz>.
60656
60657 2005-10-19  Simon Josefsson  <jas@extundo.com>
60658
60659         * m4/gc-arcfour.m4: New file.
60660
60661         * m4/gc-rijndael.m4: New file.
60662
60663 2005-10-19  Simon Josefsson  <jas@extundo.com>
60664
60665         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
60666
60667 2005-10-19  Simon Josefsson  <jas@extundo.com>
60668
60669         * lib/gc-gnulib.c: Support ARCFOUR.
60670
60671 2005-10-19  Simon Josefsson  <jas@extundo.com>
60672
60673         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
60674         support.
60675
60676         * lib/gc.h: Add ECB enum type.
60677
60678         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
60679
60680 2005-10-18  Simon Josefsson  <jas@extundo.com>
60681
60682         * tests/test-md5.c: New file.
60683
60684         * modules/md5-tests: New file.
60685
60686 2005-10-18  Simon Josefsson  <jas@extundo.com>
60687
60688         * tests/test-md4.c: New file.
60689
60690         * modules/md4, modules/md4-tests: New files.
60691
60692 2005-10-18  Simon Josefsson  <jas@extundo.com>
60693
60694         * m4/md4.m4: New file.
60695
60696 2005-10-18  Simon Josefsson  <jas@extundo.com>
60697
60698         * lib/md4.h, lib/md4.c: New files, based on md5.?.
60699
60700 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
60701
60702         * gnulib-tool (func_create_testdir): Omit the second check whether
60703         BUILT_SOURCES in nonempty.
60704
60705 2005-10-17  Simon Josefsson  <jas@extundo.com>
60706
60707         * tests/test-rijndael.c: New file.
60708
60709 2005-10-17  Simon Josefsson  <jas@extundo.com>
60710
60711         * modules/sha1: Depend on stdint instead of md5.
60712
60713         * modules/md5: Depend on stdint, remove uint32_t.
60714
60715 2005-10-17  Simon Josefsson  <jas@extundo.com>
60716
60717         * modules/gc-sha1-tests: New file.
60718
60719         * tests/test-gc-sha1.c: New file.
60720
60721 2005-10-17  Simon Josefsson  <jas@extundo.com>
60722
60723         * m4/md5.m4: Remove call to uint32_t.m4.
60724
60725 2005-10-17  Simon Josefsson  <jas@extundo.com>
60726
60727         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
60728
60729         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
60730         md5.h.
60731
60732         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
60733
60734         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
60735
60736 2005-10-17  Simon Josefsson  <jas@extundo.com>
60737
60738         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
60739
60740 2005-10-17  Simon Josefsson  <jas@extundo.com>
60741
60742         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
60743
60744 2005-10-17  Simon Josefsson  <jas@extundo.com>
60745
60746         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
60747
60748         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
60749
60750 2005-10-17  Bruno Haible  <bruno@clisp.org>
60751
60752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
60753         that it can also be used in a test.
60754
60755 2005-10-16  Bruno Haible  <bruno@clisp.org>
60756
60757         * gnulib-tool (func_emit_tests_Makefile_am): Also define
60758         TESTS_ENVIRONMENT, so that individual tests can augment it.
60759
60760         * gnulib-tool (func_create_testdir): Use an intermediate target for
60761         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
60762         macros, like $(ALLOCA_H), which cannot be passed through the command
60763         line.
60764
60765 2005-10-15  Simon Josefsson  <jas@extundo.com>
60766
60767         * modules/rijndael-tests: New file.
60768
60769         * modules/rijndael: New file.
60770
60771 2005-10-15  Simon Josefsson  <jas@extundo.com>
60772
60773         * m4/rijndael.m4: New file.
60774
60775 2005-10-15  Simon Josefsson  <jas@extundo.com>
60776
60777         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
60778
60779         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
60780
60781 2005-10-14  Simon Josefsson  <jas@extundo.com>
60782
60783         * tests/test-arcfour.c: New file.
60784
60785         * modules/arcfour, modules/arcfour-tests: New files.
60786
60787 2005-10-14  Simon Josefsson  <jas@extundo.com>
60788
60789         * m4/arcfour.m4: New file.
60790
60791 2005-10-14  Simon Josefsson  <jas@extundo.com>
60792
60793         * lib/arcfour.h, lib/arcfour.c: New files.
60794
60795 2005-10-14  Roland McGrath  <roland@redhat.com>
60796
60797         Import from libc.  [BZ #1331]
60798         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
60799         macro argument.
60800         Reported by Matej Vela <vela@debian.org>.
60801
60802 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60803
60804         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
60805         include <wchar.h>; no longer needed.
60806
60807 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60808
60809         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
60810
60811 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
60812         and  Ulrich Drepper  <drepper@redhat.com>
60813
60814         Import from libc.
60815         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
60816         instead of inline stream orientation test and two separate
60817         function calls.  Pay no attention to USE_IN_LIBIO.
60818
60819 2005-10-13  Simon Josefsson  <jas@extundo.com>
60820
60821         * modules/gc-hmac-md5-tests: New file.
60822
60823         * tests/test-gc-hmac-sha1.c: New file.
60824
60825         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
60826
60827         * modules/gc-hmac-md5-tests: New file.
60828
60829         * tests/test-gc-md5.c: New file.
60830
60831         * modules/gc-md5-tests: New file.
60832
60833 2005-10-13  Simon Josefsson  <jas@extundo.com>
60834
60835         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
60836         Move memory allocation outside of loop.
60837
60838 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60839
60840         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
60841         intermediate directory is in a read-only file system.  Problem
60842         reported by Eric Blake.
60843
60844 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
60845
60846         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
60847
60848 2005-10-12  Simon Josefsson  <jas@extundo.com>
60849
60850         * tests/test-hmac-sha1.c: New file.
60851
60852         * modules/hmac-sha1-tests: New file.
60853
60854         * modules/hmac-sha1: New file.
60855
60856 2005-10-12  Simon Josefsson  <jas@extundo.com>
60857
60858         * modules/gc-sha1: New file.
60859
60860 2005-10-12  Simon Josefsson  <jas@extundo.com>
60861
60862         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
60863
60864         * tests/test-gc-pbkdf2-sha1.c: New file.
60865
60866 2005-10-12  Simon Josefsson  <jas@extundo.com>
60867
60868         * modules/gc-md5, modules/gc-hmac-md5: New files.
60869
60870         * modules/gc (Files): Remove md5, memxor and hmac files.
60871
60872 2005-10-12  Simon Josefsson  <jas@extundo.com>
60873
60874         * m4/gc-pbkdf2-sha1.m4: New file.
60875
60876         * m4/gc-hmac-sha1.m4: New file.
60877
60878         * m4/gc-sha1: New file.
60879
60880         * m4/hmac-sha1.m4: New file.
60881
60882 2005-10-12  Simon Josefsson  <jas@extundo.com>
60883
60884         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
60885
60886         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
60887
60888 2005-10-12  Simon Josefsson  <jas@extundo.com>
60889
60890         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
60891         suggested by Bruno Haible <bruno@clisp.org>.
60892
60893 2005-10-12  Simon Josefsson  <jas@extundo.com>
60894
60895         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
60896
60897 2005-10-12  Simon Josefsson  <jas@extundo.com>
60898
60899         * lib/gc-pbkdf2-sha1.c: New file.
60900
60901         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
60902
60903 2005-10-12  Simon Josefsson  <jas@extundo.com>
60904
60905         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
60906
60907         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
60908
60909 2005-10-12  Simon Josefsson  <jas@extundo.com>
60910
60911         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
60912         GC_USE_HMAC_MD5, respectively.
60913
60914         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
60915         (gc_md5): Fix typo.
60916
60917         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
60918
60919         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
60920
60921         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
60922
60923 2005-10-12  Bruno Haible  <bruno@clisp.org>
60924
60925         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
60926         Reported by Stepan Kasal <kasal@ucw.cz>.
60927
60928 2005-10-11  Simon Josefsson  <jas@extundo.com>
60929
60930         * tests/test-crc.c: New file.
60931
60932         * modules/crc, modules/crc-tests: New files.
60933
60934 2005-10-11  Simon Josefsson  <jas@extundo.com>
60935
60936         * m4/crc.m4: New file.
60937
60938 2005-10-11  Simon Josefsson  <jas@extundo.com>
60939
60940         * lib/gc.h: Add gc_hash and gc_hash_buffer.
60941
60942         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
60943
60944         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
60945
60946 2005-10-11  Simon Josefsson  <jas@extundo.com>
60947
60948         * lib/crc.h, lib/crc.c: New files.
60949
60950         * lib/gc.h (gc_hash_buffer): Add doc.
60951
60952 2005-10-11  Bruno Haible  <bruno@clisp.org>
60953
60954         * modules/c-strcasestr: New file.
60955         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
60956
60957 2005-10-11  Bruno Haible  <bruno@clisp.org>
60958
60959         * modules/c-strcase: New file.
60960         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
60961
60962 2005-10-11  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/strcasecmp.c: Include limits.h.
60965         (strcasecmp): Avoid integer overflow on exotic platforms.
60966         * lib/strncasecmp.c: Include limits.h.
60967         (strncasecmp): Avoid integer overflow on exotic platforms.
60968         Reported by Paul Eggert.
60969
60970 2005-10-11  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/c-strcasestr.h: New file, from GNU gettext.
60973         * lib/c-strcasestr.c: New file, from GNU gettext.
60974
60975 2005-10-11  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/c-strcase.h: New file, from GNU gettext.
60978         * lib/c-strcasecmp.c: New file, from GNU gettext.
60979         * lib/c-strncasecmp.c: New file, from GNU gettext.
60980
60981 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         * modules/mempcpy (License): GPL -> LGPL.
60984         * modules/strchrnul (License): Likewise.
60985         * modules/sysexits (License): Likewise.
60986
60987 2005-10-08  Simon Josefsson  <jas@extundo.com>
60988
60989         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
60990
60991 2005-10-07  Simon Josefsson  <jas@extundo.com>
60992
60993         * m4/memxor.m4: Remove gl_C_RESTRICT call.
60994
60995 2005-10-06  Simon Josefsson  <jas@extundo.com>
60996
60997         * tests/test-hmac-md5.c: New file.
60998
60999         * modules/hmac-md5-tests: New file.
61000
61001         * modules/hmac-md5: New file.
61002
61003 2005-10-06  Simon Josefsson  <jas@extundo.com>
61004
61005         * m4/hmac-md5.m4: New file.
61006
61007         * m4/memxor.m4: Require gl_C_RESTRICT.
61008
61009 2005-10-06  Simon Josefsson  <jas@extundo.com>
61010
61011         * lib/memxor.c (memxor): Avoid casts and warnings.
61012
61013 2005-10-06  Simon Josefsson  <jas@extundo.com>
61014
61015         * lib/hmac-md5.c: New file.
61016
61017         * lib/hmac.h: New file.
61018
61019 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
61022         promotes to int, not unsigned int, to catch the AIX 5.3
61023         compiler bug.
61024
61025 2005-10-05  Simon Josefsson  <jas@extundo.com>
61026
61027         * modules/memxor: New file.
61028
61029         * modules/iconv (Files): Move config.rpath to havelib, it is used
61030         there.
61031
61032         * modules/havelib (Files): Add config.rpath.
61033
61034 2005-10-05  Simon Josefsson  <jas@extundo.com>
61035
61036         * m4/memxor.m4: New file.
61037
61038 2005-10-05  Simon Josefsson  <jas@extundo.com>
61039
61040         * lib/memxor.c (memxor): Fix compiler error.
61041
61042         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
61043         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
61044
61045         * lib/memxor.h, lib/memxor.c: New files.
61046
61047         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
61048         we assume all systems have it, suggested by Jim Meyering
61049         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
61050         any systems lack sys/socket.h; mingw32 is known to lack it, but we
61051         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
61052         same reasons.
61053
61054 2005-10-05  Simon Josefsson  <jas@extundo.com>
61055
61056         * config/srclist.txt: Add glibc bug 1423 for md5.h.
61057
61058 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61059
61060         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
61061         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
61062         needed, since the source code now assumes these .h files.
61063
61064 2005-10-05  Derek Price  <derek@ximbiot.com>
61065
61066         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
61067
61068 2005-10-05  Bruno Haible  <bruno@clisp.org>
61069
61070         * modules/stdint (License): Change to LGPL.
61071
61072 2005-10-04  Simon Josefsson  <jas@extundo.com>
61073
61074         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
61075         D. Baushke" <mdb@gnu.org>.
61076
61077 2005-10-04  Bruno Haible  <bruno@clisp.org>
61078
61079         * lib/verify.h (verify_true): Provide alternative definition for C++.
61080
61081 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
61084         (SSIZE_MAX): New macro, if not already defined.
61085         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
61086         than 2 GiB.
61087
61088 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61089
61090         Sync from coreutils.
61091         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
61092         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
61093         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
61094         ULLONG_MAX doesn't work with 2.7.2.1.
61095
61096 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
61099         From Ben Pfaff.
61100
61101         * modules/exclude (Depends-on): Depend on verify.
61102         * modules/strtoimax (Depends-on): Likewise.
61103         * modules/utimecmp (Depends-on): Likewise.
61104
61105 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * lib/exclude.c: Include verify.h.
61108         (verify): Remove.  All callers changed to use verify.h's version.
61109         * lib/strtoimax.c: Likewise.
61110         * lib/utimecmp.c: Likewis.e
61111
61112         Sync from coreutils.
61113         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
61114         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
61115         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
61116         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
61117         bother returning ENOSYS if settimeofday or stime fails; just let
61118         them return whatever errno they want to return.
61119         * lib/utimens.c: Include unistd.h, for dup2.
61120         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
61121         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
61122
61123 2005-10-02  Jim Meyering  <jim@meyering.net>
61124
61125         Sync from coreutils.
61126         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
61127         from glibc-2.2.5 that fails for read-only files.
61128
61129 2005-10-02  Jim Meyering  <jim@meyering.net>
61130
61131         Sync from coreutils.
61132         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
61133         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
61134         `#if HAVE_CONFIG_H'.
61135         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
61136         Remove AT_FDCWD test.
61137         Do not consume the fd unless successful.
61138         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
61139         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
61140         block, so that we don't even try to compile it if settimeofday is
61141         available.  This works around a compilation failure on OSF1 V5.1,
61142         due to stime requiring a `long int*' while tv_sec is `int'.
61143
61144 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
61145
61146         Sync from coreutils.
61147         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
61148         against `yes', rather than just testing for nonempty.
61149
61150 2005-10-01  Simon Josefsson  <jas@extundo.com>
61151
61152         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
61153         and Darwin.
61154
61155         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
61156         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
61157         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
61158         freeaddrinfo and gai_strerror are declared by the POSIX headers.
61159         Check if struct addrinfo is declared.
61160
61161 2005-10-01  Simon Josefsson  <jas@extundo.com>
61162
61163         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
61164         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
61165         AI_* and EAI_* definitions.  Protect function declarations.
61166
61167 2005-10-01  Jim Meyering  <jim@meyering.net>
61168
61169         Sync from coreutils.
61170
61171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
61172         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
61173         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
61174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61175         in the inet and nsl libraries.  Required on Solaris 5.7.
61176
61177 2005-10-01  Jim Meyering  <jim@meyering.net>
61178
61179         Sync from coreutils.
61180         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
61181         in the inet and nsl libraries.  Required on Solaris 5.7.
61182
61183 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
61184
61185         * lib/getdelim.c (getdelim): Remove unused variables.
61186
61187 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
61190         so that the code works even with ancient cpp.  Portability problem
61191         with GCC 2.7.2.1 reported by Thomas M.Ott.
61192
61193 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         * modules/regex (Depends-on): Add strcase.
61196
61197         * modules/gethostname (Licence): Change from GPL to LGPL, since
61198         gethostname.c is a trivial implementation of a standard library
61199         function.
61200         * modules/poll (License): Change from GPL to LGPL, since it's
61201         derived from LGPL code.
61202
61203 2005-09-27  Jim Meyering  <jim@meyering.net>
61204
61205         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
61206         HAVE_CONFIG_H.
61207
61208         * lib/intprops.h (signed_type_or_expr__): Define.
61209         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
61210         for unsigned types.
61211
61212 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         * lib/verify.h (verify_expr): Remove, replacing with:
61215         (verify_true): New macro that returns true instead of void.
61216         (verify_type__): Remove.
61217         (verify): Use verify_true rather than verify_type__.
61218
61219 2005-09-26  Bruno Haible  <bruno@clisp.org>
61220
61221         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
61222         is necessary.
61223         (lib_SOURCES): Remove mbchar.c.
61224         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
61225         (Files): Add m4/mbrtowc.m4.
61226         * modules/mbiter: Likewise.
61227         * modules/mbuiter: Likewise.
61228
61229 2005-09-26  Bruno Haible  <bruno@clisp.org>
61230
61231         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
61232         compile mbchar.c if they are not both present.
61233         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
61234         * m4/mbiter.m4 (gl_MBITER): Likewise.
61235         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
61236         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
61237         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
61238
61239 2005-09-25  Jim Meyering  <jim@meyering.net>
61240
61241         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
61242         also uses socklen_t.
61243
61244 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * lib/utimens.c (ENOSYS): Define if not already defined.
61247         (futimens): Support having a null PATH if the file descriptor
61248         is nonnegative.
61249
61250         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
61251         Remove.
61252         (__attribute): Define to empty unless GCC 3.1 or later.
61253         This works around a core dump on OpenBSD 3.4, which has GCC
61254         2.95.3, which dumps core when given __attribute__(()).  It also
61255         simplifies other tests, since we really don't want to bother with
61256         worrying about which ancient version of GCC supported what.
61257         Original problem reported by Yoann Vandoorselaere, with part of
61258         the fix suggested by Derek Price.
61259
61260 2005-09-24  Jim Meyering  <jim@meyering.net>
61261
61262         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
61263         so we can once again use a positive bitfield width of 1 -- now we
61264         don't have to explain why we were using a bitfield width of 2.
61265
61266 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61267
61268         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
61269         and similarly for the other external symbols.  Problem reported
61270         by James Gallager.
61271
61272         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
61273         bug reported by Jim Meyering.
61274
61275         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
61276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
61277         not needed, since socklen is a prerequisite module.
61278
61279 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
61282         Problem reported by Eric Blake.
61283         (getaddrinfo): Initialize se so that it's not garbage.
61284         Redo internal storage allocation so that it doesn't make unportable
61285         assumptions about alignment.
61286         Fix a memory leak.
61287
61288         * lib/utimens.c (futimens): Use futimesat if available.
61289         Prefer it to futimes since it doesn't have the futimes bug.
61290
61291         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
61292         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
61293         Instead, declare a function that returns a pointer to an array,
61294         and use verify_type__ to declare the size of the array.
61295         Problem and germ of a solution reported by Bruno Haible.
61296         (verify_type__): Use 2, not 1, for bitfield size, to avoid
61297         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
61298
61299 2005-09-23  Jim Meyering  <jim@meyering.net>
61300
61301         Sync from coreutils.
61302         Correct build failure (socklen_t not defined) on at least
61303         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
61304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
61305
61306 2005-09-23  Jim Meyering  <jim@meyering.net>
61307
61308         * modules/getaddrinfo (Depends-on): Add socklen.
61309
61310 2005-09-23  Bruno Haible  <bruno@clisp.org>
61311
61312         * tests/test-verify.c: New file.
61313
61314 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61315
61316         Sync from coreutils.
61317
61318         * modules/argmatch (Depends-on): Add verify.
61319         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
61320         unistd-safer.
61321         * modules/save-cwd (Depends-on): Likewise.
61322
61323         * modules/openat (Files): Add lib/openat-die.c.
61324         (Depends-on): Remove error, exitfail.
61325         Add dirname.
61326
61327         * modules/verify: New file.
61328         * MODULES.html.sh (Diagnostics <assert.h>): New section,
61329         with "verify" module.
61330
61331 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61332
61333         Sync from coreutils.
61334
61335         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
61336         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
61337         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
61338         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
61339         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
61340         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
61341         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
61342         Don't bother checking for string.h, stdlib.h, unistd.h.
61343         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
61344         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
61345         module's job.
61346         * m4/jm-macros.m4 (gl_MACROS): Likewise.
61347         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
61348
61349         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
61350         (gl_GETDATE): Use it.
61351
61352         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
61353
61354 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         Sync from coreutils.
61357
61358         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
61359         stat-time.h.
61360         * lib/argmatch.h: Include verify.h
61361         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
61362         (ARGMATCH_ASSERT): Remove; unused.
61363         * lib/canonicalize.c: Assume STDC_HEADERS.
61364         * lib/exclude.c: Include "strcase.h".
61365         * lib/regex_internal.h [!defined _LIBC]: Likewise.
61366         * lib/getusershell.c: Include stdio--.h rather than stdio.h
61367         and stdio-safer.h.
61368         (getusershell): Call fopen, not fopen_safer.
61369         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
61370         Do not include unistd-safer.h.
61371         (save_cwd): Don't call fd_safer; no longer needed
61372         now that we include fcntl--.h.
61373
61374         * lib/getdate.y (relative_time): New type.
61375         (RELATIVE_TIME_0): New constant.
61376         (parser_control): Use relative_time instead of doing it ourselves.
61377         (%union): Add new relative_time rel member.
61378         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
61379         Now typeless.
61380         (relunit, relunit_snumber): Now of type rel.
61381         (zone, rel, relunit, get_date): Adjust to above changes.
61382
61383         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
61384         Do not include unistd-safer.h.
61385         (getloadavg): Don't call fd_safer; no longer needed
61386         now that we include fcntl--.h.
61387
61388         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
61389         (make_dir_parents): Treat ENOSYS like EEXIST.
61390
61391         Improve quality of diagnostics on restore_cwd failure.
61392         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
61393         (make_dir_parents): Last arg is now int * (for errno), not bool *.
61394         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
61395         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
61396         each time through the loop.  Do not diagnose restore_cwd failure;
61397         that is the caller's job (and perhaps the caller does not care).
61398
61399         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
61400         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
61401         If the file already exists but is not a directory, don't bother
61402         to try to make its parents.
61403         Close potential file descriptor leak if we can't chdir("/") (!).
61404         Don't always return true if chdir($PWD) fails; return true only
61405         if the requested action was done successfully (except for the
61406         chdir($PWD)).
61407         Don't log final directory unless we actually made it.
61408         Refactor to avoid duplicate code to fix up permissions.
61409         Don't attempt to fix up parent permissions if chdir($PWD) fails.
61410
61411         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
61412         to make it a bit faster and (I hope) clearer.
61413         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
61414         Fix bug in formats like %2N.
61415
61416         * lib/verify.h: New file.
61417
61418 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         Sync from coreutils.
61421         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
61422
61423 2005-09-22  Jim Meyering  <jim@meyering.net>
61424
61425         Sync from coreutils.
61426
61427         * m4/lstat.m4 (gl_FUNC_LSTAT):
61428         Use AC_LIBSOURCES to require lstat.c and lstat.h.
61429         Remove obsolete comment.
61430         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
61431         * m4/xstrtod.m4: Likewise.
61432
61433         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
61434
61435 2005-09-22  Jim Meyering  <jim@meyering.net>
61436
61437         Sync from coreutils.
61438
61439         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
61440
61441         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
61442         the .tm_year member, since otherwise gcc-4.0 would now warn about
61443         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
61444
61445         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
61446         order to avoid an unsuppressible warning from gcc on 64-bit systems.
61447
61448         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
61449         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
61450         when run in a time zone for which daylight savings time is in effect
61451         for the starting date.
61452
61453         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
61454         stop us from restricting permissions of just-created absolute-named
61455         directories.
61456         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
61457         to restore initial working directory.
61458         * lib/mkdir-p.c (make_dir_parents): New parameter:
61459         different_working_dir, to tell caller if/when we change the working
61460         directory and are unable to return to the initial one.
61461         * lib/mkdir-p.h (make_dir_parents): Update prototype.
61462         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
61463         `return false'.  This fixes a bug introduced on 2004-07-30.
61464
61465         * lib/openat.c (fdopendir): Be sure to close the supplied
61466         file descriptor before returning.  This makes our replacement
61467         implementation a little closer to Solaris's, where fdopendir
61468         ties the file descriptor to the returned DIR* pointer.
61469         * lib/openat.c (unlinkat): New function.
61470         * lib/openat.h (unlinkat): Add prototype.
61471         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
61472         (openat_restore_fail): Rename from openat_restore_die.
61473         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
61474
61475         Provide an alternative to exiting immediately upon save_cwd or
61476         restore_cwd failure.  Now, an application can arrange e.g.,
61477         to perform a longjump in that case.
61478         * lib/openat.c: Include dirname.h.
61479         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
61480         (rpl_openat, fdopendir, fstatat): Call openat_save_die
61481         and openat_restore_die rather than calling error directly.
61482         Don't include "error.h" or "exitfail.h"; they're no longer needed.
61483
61484         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
61485         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
61486         define.
61487
61488         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
61489         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
61490                             int utc, int nanoseconds);
61491         Background:
61492         date should not have to allocate a megabyte of virtual memory to
61493         handle a format argument like +%1048575T.  When implemented with
61494         strftime, it must allocate such a buffer, use strftime to fill it
61495         in, print it, then free it.
61496         With fprintftime, it simply prints everything and exits.
61497         With no need for memory allocation, that's one fewer way to fail.
61498         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
61499         optional field width, not before, so we accept %9:z, not %:9z.
61500         (my_strftime): Be sure to use L_('x') for literals.
61501
61502         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
61503         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
61504         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
61505         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
61506         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
61507         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
61508         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
61509         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
61510         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
61511         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
61512         * lib/xgethostname.c, lib/xreadlink.c:
61513         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
61514
61515         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
61516         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
61517         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
61518         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61519         and don't include <sys/file.h>).
61520
61521 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
61522
61523         Sync from coreutils.
61524
61525         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
61526         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
61527         [!LDAV_DONE]: Avoid unused variable warning.
61528
61529 2005-09-21  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/unicodeio.h (unicode_to_mb): New declaration.
61532
61533 2005-09-20  Derek Price  <derek@ximbiot.com>
61534
61535         * lib/getaddrinfo.c: Don't include <netdb.h> included from
61536         getaddrinfo.h.
61537
61538 2005-09-20  Bruno Haible  <bruno@clisp.org>
61539
61540         * gnulib-tool: Remove trailing slashes from the values specified for
61541         --source-base, --m4-base, --tests-base, --aux-dir.
61542         Suggested by Simon Josefsson <jas@extundo.com>.
61543
61544 2005-09-20  Bruno Haible  <bruno@clisp.org>
61545
61546         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
61547         func_modules_to_filelist, func_import, func_create_testdir): Make all
61548         sorting results locale-independent, so that gnulib-cache.m4 doesn't
61549         change when gnulib-tool is invoked in a different locale.
61550
61551 2005-09-19  Simon Josefsson  <jas@extundo.com>
61552
61553         * m4/socklen.m4: Fix typo.
61554
61555 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61556
61557         Use a consistent style for including <config.h>.
61558         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
61559         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
61560         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
61561         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
61562         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
61563         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
61564         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
61565         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
61566         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
61567         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
61568         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
61569         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
61570         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
61571         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
61572         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
61573         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
61574         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
61575         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
61576         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
61577         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
61578         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
61579         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
61580         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
61581         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
61582         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
61583         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
61584         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
61585         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
61586         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
61587         lib/xstrtoumax.c, lib/yesno.c:
61588         Standardize inclusion of config.h.
61589         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
61590         lib/inttostr.h:  Removed inclusion of config.h from header files.
61591         * lib/inttostr.c:  Adjusted in-tree users.
61592         * lib/timespec.h: Remove superfluous warning to include config.h.
61593         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
61594         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
61595         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
61596         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
61597         config.h with HAVE_CONFIG_H.
61598
61599 2005-09-19  Jim Meyering  <jim@meyering.net>
61600
61601         * modules/pathmax (License): Change to LGPL.
61602
61603 2005-09-19  Derek Price  <derek@ximbiot.com>
61604
61605         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
61606
61607 2005-09-19  Bruno Haible  <bruno@clisp.org>
61608
61609         * gnulib-tool (import): Provide default for --tests-base.
61610
61611 2005-09-19  Bruno Haible  <bruno@clisp.org>
61612
61613         * doc/quote.texi: New file, extracted from gnulib.texi.
61614         * doc/ctime.texi: New file, extracted from gnulib.texi.
61615         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
61616         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
61617         * doc/gnulib.texi: Include them.
61618
61619 2005-09-18  Bruno Haible  <bruno@clisp.org>
61620
61621         Portability fix.
61622         * gnulib-tool (func_readlink): New function.
61623         (func_ln_if_changed): Use it.
61624
61625 2005-09-18  Bruno Haible  <bruno@clisp.org>
61626
61627         * gnulib-tool: Support --with-tests also with --import.
61628         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
61629         (func_import): Use variables $testsbase and $inctests. Emit a
61630         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
61631         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
61632         SUBDIRS += $testsdir.
61633         (func_create_testdir): Update.
61634
61635 2005-09-18  Bruno Haible  <bruno@clisp.org>
61636
61637         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
61638         instead of $dry_run.
61639         (func_cp_if_changed, func_mv_if_changed): Remove functions.
61640         (func_ln_if_changed): Don't handle dry-run here.
61641         (func_import): In dry-run mode, detect more precisely which actions
61642         would be performed, and don't use "...ing" verbs.
61643
61644 2005-09-18  Bruno Haible  <bruno@clisp.org>
61645
61646         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
61647         (func_import): Use join on two temporary files instead of three nested
61648         loops, in order to determine which files are new or old.
61649
61650 2005-09-18  Bruno Haible  <bruno@clisp.org>
61651
61652         * gnulib-tool (func_import): Comment out code that spits out the
61653         new files with --dry-run.
61654
61655 2005-09-18  Bruno Haible  <bruno@clisp.org>
61656
61657         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
61658
61659 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61660
61661         * lib/stat-time.h: New file.
61662         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
61663         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
61664         in a different way.
61665         (timespec_cmp): New function.
61666         * lib/utimecmp.c: Include stat-time.h.
61667         (SYSCALL_RESOLUTION): Depend on whether various struct stat
61668         members exist, not on the obsolescent ST_MTIM_NSEC.
61669         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
61670
61671 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61672
61673         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
61674
61675 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
61676
61677         * MODULES.html.sh (File system functions): Add stat-time.
61678         * modules/stat-time: New file.
61679         * modules/timespec (Files): Remove m4/st_mtim.m4; this
61680         is now done in a different way, by the stat-time module.
61681         * modules/utimecmp (Depends-on): Add stat-time.
61682
61683 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         * m4/st_mtim.m4: Remove.  Superseded by...
61686         * m4/stat-time.m4: New file.
61687         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
61688         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
61689
61690 2005-09-15  Derek Price  <derek@ximbiot.com>
61691
61692         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
61693
61694 2005-09-15  Derek Price  <derek@ximbiot.com>
61695
61696         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
61697         * lib/regex_internal.c: Ditto, using this...
61698         (__GNUC_PREREQ): ...new macro.
61699         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
61700         using...
61701         (__GNUC_PREREQ): ...this new macro.
61702
61703         * lib/strstr.h: Include string.h. Define strstr as a macro here.
61704
61705 2005-09-15  Derek Price  <derek@ximbiot.com>
61706             Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
61709         changes, consolidating in...
61710         * lib/regex_internal.h: ...this file.
61711
61712 2005-09-13  Jim Meyering  <jim@meyering.net>
61713
61714         * lib/canon-host.c: Filter through gnu indent and reword comments
61715         slightly.
61716         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
61717
61718 2005-09-13  Derek Price  <derek@ximbiot.com>
61719
61720         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
61721         failure.
61722         Reported by Jim Meyering  <jim@meyering.net>.
61723
61724 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61725
61726         * lib/base64.c: Typo.
61727         (base64_encode): Put b64str in initialized data section.
61728
61729 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         Merge glibc and coreutils changes into gnulib, plus a few
61732         extra fixes.
61733         * lib/md5.c: Use #error rather than a string.
61734         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
61735         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
61736         (__attribute__): Define to empty for non recent-GCC.
61737         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
61738         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
61739         Renamed from their non-__ counterparts, with new macros replacing
61740         them if not _LIBC.  Add __THROW attribute.
61741         (rol): Remove.
61742         (struct md5_ctx): Align buffer if using GCC.
61743         * lib/sha1.h (struct sha1_ctx): Likewise.
61744         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
61745         The old name was backwards.
61746         (NOTSWAP): Remove; not used.
61747         (rol): New macro, moved here from md5.h.
61748         (sha1_process_block): Remove a FIXME that doesn't make sense.
61749
61750 2005-09-12  Derek Price  <derek@ximbiot.com>
61751
61752         Return usable errors from canon-host.
61753         * lib/canon-host.h: New file.
61754         * lib/canon-host.c (canon_host): Wrap...
61755         (canon_host_r): ...this new function, which now relies exclusively on
61756         getaddrinfo.
61757         (ch_strerror): New function.
61758         (last_cherror): New global.
61759         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
61760         interface.
61761         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
61762         void *.
61763         (freeaddrinfo): Free ai->ai_canonname when set.
61764
61765 2005-09-12  Derek Price  <derek@ximbiot.com>
61766
61767         Make canon-host require getaddrinfo.
61768         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
61769         AC_LIBSOURCE canon-host.h.  Call...
61770         (gl_PREREQ_CANON_HOST): ...this new function, which requires
61771         gl_GETADDRINFO.
61772         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
61773
61774 2005-09-12  Derek Price  <derek@ximbiot.com>
61775
61776         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
61777         LGPL.
61778         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
61779
61780 2005-09-12  Derek Price  <derek@ximbiot.com>
61781
61782         * lib/gai_strerror.c: Include config.h when available.  Include
61783         getaddrinfo.h before other headers to test interface.
61784         Reported by Larry Jones <lawrence.jones@ugs.com>.
61785
61786 2005-09-12  Derek Price  <derek@ximbiot.com>
61787             Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * modules/glob (Files): Add glob-libc.h.
61790
61791 2005-09-12  Derek Price  <derek@ximbiot.com>
61792             Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
61795         glob_.h, glob-libc.h.
61796         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
61797
61798 2005-09-12  Derek Price  <derek@ximbiot.com>
61799             Paul Eggert  <eggert@cs.ucla.edu>
61800
61801         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
61802         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
61803         protecting things that should be done only in gnulib contexts.
61804         * lib/glob_.h: New file, containing only the glob things needed for
61805         gnulib.
61806         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
61807         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
61808         (glob, globfree, glob_pattern_p): Now defined simply in terms of
61809         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
61810         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
61811         and to respect the namespace rules better.
61812
61813 2005-09-08  Simon Josefsson  <jas@extundo.com>
61814
61815         * modules/socklen: New file.
61816
61817 2005-09-08  Simon Josefsson  <jas@extundo.com>
61818
61819         * m4/socklen.m4: New file.
61820
61821 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61822
61823         * modules/utimens (Files): Add m4/utimbuf.m4, since
61824         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
61825         Reported by Sergey Poznyakoff.
61826
61827 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61828
61829         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
61830         definitions, since that's the preferred style in glibc.
61831         Fix a minor spacing issue, and update copyright notice to match
61832         glibc's.
61833
61834 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61835
61836         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
61837
61838 2005-09-06  Simon Josefsson  <jas@extundo.com>
61839
61840         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
61841         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
61842
61843 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
61846         warning.
61847
61848 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         * config/srclist.txt: Add glibc bug 1302.
61851
61852 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         Change bitset word type from unsigned int to unsigned long int,
61855         as this has better performance on typical 64-bit hosts.
61856         Port bitset code to hosts with unusual word sizes.
61857         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
61858         (build_collating_symbol):
61859         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
61860         argument is a bitset.  This is merely a style issue, but it makes
61861         it clearer that an entire array is expected.
61862         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
61863         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
61864         Port to the case where bitset_word is not the same as unsigned int.
61865         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61866         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
61867         Likewise.
61868         * lib/regexec.c (check_dst_limits_calc_pos_1,
61869         check_subexp_matching_top):
61870         (build_trtable, group_nodes_into_DFAstates):
61871         Likewise.
61872         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
61873         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
61874         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
61875         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
61876         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
61877         * lib/regcomp.c (optimize_subexps, lower_subexp):
61878         Work even if bitset_word has holes in its bitwise representation.
61879         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
61880         * lib/regexec.c (check_dst_limits_calc_pos_1,
61881         check_subexp_matching_top):
61882         Likewise.
61883         * lib/regex_internal.c (re_string_reconstruct):
61884         Don't assume UCHAR_MAX == 255.
61885         * lib/regex_internal.h (bitset_set_all): Likewise.
61886         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
61887         All uses changed.
61888         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
61889         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
61890         All uses changed.
61891         (BITSET_WORD_MAX): New macro.
61892         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
61893         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
61894         (bitset_empty, bitset_copy):
61895         Prefer sizeof (bitset) to multiplying it out ourselves.
61896         (bitset_not_merge): Remove; unused.
61897         (bitset_contain): Return bool, not unsigned int with one bit on.
61898         All callers changed.
61899         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
61900         alignment than re_node_set; do this by defining a new internal
61901         type struct dests_alloc and using it to allocate memory.
61902
61903 2005-09-05  Bruno Haible  <bruno@clisp.org>
61904
61905         * gnulib-tool (func_import): Fix comparison in handling of symbolic
61906         links.
61907
61908 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
61909
61910         * modules/size_max (Makefile.am): Add size_max.h
61911
61912 2005-09-04  Derek Price  <derek@ximbiot.com>
61913
61914         * gnulib-tool (func_import): Fix reversed $symbolic logic.
61915
61916 2005-09-03  Simon Josefsson  <jas@extundo.com>
61917
61918         * gnulib-tool: Fix typo.
61919
61920 2005-09-03  Simon Josefsson  <jas@extundo.com>
61921
61922         * config/srclist.txt: Add glibc bug 1293.
61923
61924 2005-09-03  Derek Price  <derek@ximbiot.com>
61925
61926         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
61927         From Larry Jones <lawrence.jones@ugs.com>.
61928
61929 2005-09-02  Simon Josefsson  <jas@extundo.com>
61930
61931         * modules/socklen: New file.
61932
61933 2005-09-02  Simon Josefsson  <jas@extundo.com>
61934
61935         * modules/havelib: New module.
61936
61937         * modules/gettext, modules/iconv, modules/lock, modules/readline:
61938         Use havelib.
61939
61940 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61941
61942         Check for arithmetic overflow when calculating sizes, to prevent
61943         some buffer-overflow issues.  These patches are conservative, in the
61944         sense that when I couldn't determine whether an overflow was possible,
61945         I inserted a run-time check.
61946         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
61947         macros.
61948         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
61949         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
61950         (re_xnrealloc, re_x2nrealloc): New inline functions.
61951         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
61952         parse_bracket_exp):
61953         (build_equiv_class, build_charclass): Check for arithmetic overflow
61954         in size expression calculations.
61955         * lib/regex_internal.c (re_string_realloc_buffers):
61956         (build_wcs_upper_buffer, re_node_set_add_intersect):
61957         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
61958         (re_dfa_add_node, register_state): Likewise.
61959         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
61960         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
61961         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
61962         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
61963
61964 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61965
61966         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61967         m4/ulonglong.m4.  Problem reported by Martin Lambers.
61968
61969 2005-09-02  Bruno Haible  <bruno@clisp.org>
61970
61971         Support for lib vs. lib64 distinction on biarch platforms.
61972         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
61973         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
61974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
61975
61976 2005-09-02  Bruno Haible  <bruno@clisp.org>
61977
61978         * gnulib-tool (import): In the other first-use case, provide defaults
61979         as well.
61980
61981 2005-09-02  Bruno Haible  <bruno@clisp.org>
61982
61983         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
61984         patches not yet found in the latest gettext release.
61985
61986 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
61989         to avoid a collision with bits/local_lim.h in glibc.
61990         All uses changed.  Problem reported by Dmitry V. Levin in
61991         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
61992
61993         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
61994         bugs in int versus size_t comparisons.
61995         (re_string_context_at): Fix bug where the code assumed that
61996         Idx is signed.
61997
61998         Use bool where appropriate.
61999         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
62000         All callers changed.
62001         (calc_eclosure_iter): Likewise, for ROOT arg.
62002         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
62003         (build_charclass_op): Likewise, for NON_MATCH arg.
62004         * lib/regex_internal.c (re_string_allocate, re_string_construct):
62005         (re_string_construct_common): Likewise, for ICASE arg.
62006         * lib/regexec.c (re_search_2_stub, re_search_stub):
62007         Likewise, for RET_LEN arg.
62008         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
62009         (set_regs): Likewise, for FL_BACKTRACK arg.
62010         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
62011         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
62012         (calc_eclosure_iter, parse_bracket_exp):
62013         Use bool for internal variables that are booleans.
62014         * lib/regexec.c (re_search_internal, check_matching,
62015         proceed_next_node):
62016         (set_regs, build_sifted_states, sift_states_bkref):
62017         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
62018         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62019         (find_collation_sequence_value):
62020         Likewise.
62021         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
62022         (re_node_set_compare):
62023         Return bool, not int. All callers changed.
62024         * lib/regexec.c (check_halt_node_context, check_dst_limits):
62025         (build_trtable, check_node_accept): Likewise.
62026         * lib/regex_internal.h: Include stdbool.h.
62027
62028         Fix bugs uncovered when converting to bool.
62029         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
62030         failure instead of charging ahead blindly.
62031         * lib/regex_internal.c (register_state): Likewise.
62032         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
62033         for freeing internal storage.
62034         (group_nodes_into_DFA_states): Use unsigned int, not int, for
62035         bitset pieces used as boolean, to avoid undefined behavior
62036         on hosts that do int overflow checking.
62037
62038 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62039
62040         * config/srclist.txt: Add glibc bugs 1285-1287.
62041
62042 2005-09-01  Jim Meyering  <jim@meyering.net>
62043
62044         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
62045         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
62046         Require gl_STAT_MACROS, too.
62047
62048 2005-09-01  Bruno Haible  <bruno@clisp.org>
62049
62050         * gnulib-tool (import): In the first-use case, provide defaults.
62051
62052 2005-09-01  Bruno Haible  <bruno@clisp.org>
62053
62054         * gnulib-tool (func_import): Remove the .tmp files.
62055
62056 2005-09-01  Bruno Haible  <bruno@clisp.org>
62057
62058         * gnulib-tool (func_import): Fix handling of symbolic links.
62059
62060 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
62063         old glibc regex code mishandles strings longer than 2**31 bytes.
62064         This patch fixes this when the regex code is used in gnulib
62065         (i.e., outside glibc).
62066
62067         This patch should not affect the use of the regex code inside
62068         glibc.  No doubt this problem also needs to be handled for glibc
62069         as well, but the result will be an incompatible change to the
62070         glibc ABI, and the old ABI will have to be supported too.  That
62071         can be the the subject for another patch.
62072
62073         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
62074         governing whether the rest of this patch is active.  By default,
62075         the macro is disabled and the patch has no effect.
62076         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
62077         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
62078         (struct re_pattern_buffer, re_search, re_search_2, re_match):
62079         (re_match_2, re_set_registers): Use the new types.
62080         * lib/regex_internal.h (Idx, re_hashval_t): New types.
62081         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
62082         New macros.
62083         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
62084         (re_string_context_at, bin_tree_t, re_dfastate_t):
62085         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
62086         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
62087         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
62088         (re_string_char_size_at, re_string_wchar_at):
62089         (re_string_elem_size_at):
62090         Use the new types and macros to port to 64-bit hosts.
62091         Use unsigned types for internal values, so that the code
62092         mostly works even for arrays larger than SSIZE_MAX.
62093         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
62094         (search_duplicated_node, calc_eclosure_iter, fetch_number):
62095         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
62096         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
62097         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
62098         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
62099         (calc_inveclosure, parse_dup_op, build_range_exp):
62100         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
62101         (fetch_number, create_token_tree, mark_opt_subexp):
62102         Likewise.
62103         * lib/regex_internal.c (re_string_construct_common,
62104         create_ci_newstate):
62105         (create_cd_newstate, re_string_allocate, re_string_construct):
62106         (re_string_realloc_buffers, build_wcs_upper_buffer):
62107         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62108         (re_string_reconstruct, re_string_peek_byte_case):
62109         (re_string_fetch_byte_case, re_string_context_at):
62110         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62111         (re_node_set_init_copy, re_node_set_add_intersect):
62112         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62113         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62114         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62115         (re_acquire_state, re_acquire_state_context, register_state):
62116         Likewise.
62117         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
62118         search_cur_bkref_entry):
62119         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
62120         (re_search_internal, re_search_2_stub, re_search_stub)
62121         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
62122         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
62123         (update_cur_sifted_state, check_dst_limits):
62124         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62125         (check_subexp_limits, sift_states_bkref, merge_state_array):
62126         (check_subexp_matching_top, get_subexp, get_subexp_sub):
62127         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
62128         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62129         (expand_bkref_cache, check_node_accept_bytes):
62130         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
62131         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
62132         (acquire_init_state_context, check_halt_node_context):
62133         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
62134         (sift_states_backward, clean_state_log_if_needed):
62135         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
62136         (find_recover_state, transit_state_sb, transit_state_mb):
62137         (transit_state_bkref, build_trtable, match_ctx_clean):
62138         Likewise.
62139         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
62140         to work around an assumption that REG_MISSING is negative.
62141
62142         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
62143         (seek_collating_symbol_entry) [defined _LIBC]:
62144         (lookup_collation_sequence_value) [defined _LIBC]:
62145         (build_range_exp, build_collating_symbol) [defined _LIBC]:
62146         Use prototypes rather than old-style function definitions.
62147         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
62148         (transit_state_sb) [0]:
62149         (find_collation_sequence_value) [defined _LIBC]: Likewise.
62150
62151         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
62152         rm_eo.
62153
62154         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
62155         (optimize_subexps, lower_subexp):
62156         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
62157         since the signed shift might overflow.  Use 1u<<31 instead.
62158         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
62159         Likewise.
62160         * lib/regexec.c (check_dst_limits_calc_pos_1,
62161         check_subexp_matching_top): Likewise.
62162
62163         * lib/regcomp.c (optimize_subexps, lower_subexp):
62164         Use CHAR_BIT rather than 8, for clarity.
62165         * lib/regexec.c (check_dst_limits_calc_pos_1):
62166         (check_subexp_matching_top): Likewise.
62167         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
62168         have to worry about portability issues when shifting it left.
62169         Remove no-longer-needed test for table_size > 0.
62170         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
62171         in a word, as the resulting behavior is undefined.
62172         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
62173         in one case, a <= should have been an <, and in another case the
62174         whole test was missing.
62175         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
62176         the standard name CHAR_BIT.
62177         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
62178         this is not true on one's complement and signed-magnitude hosts.
62179
62180         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
62181         next_last_offset.
62182         (struct re_dfa_t): Remove unused member states_alloc.
62183         * lib/regcomp.c (init_dfa): Don't initialize unused members.
62184
62185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62186
62187         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
62188         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
62189         and large-file glibc and in 32-bit large-file Solaris.
62190
62191 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
62194         lengths fit in regoff_t; this isn't true if regoff_t is the same
62195         width as size_t.
62196         * lib/regex.c (re_search_internal): 5th arg is LAST_START
62197         (= START + RANGE) instead of RANGE.  This avoids overflow
62198         problems when regoff_t is the same width as size_t.
62199         All callers changed.
62200         (re_search_2_stub): Check for overflow when adding the
62201         sizes of the two strings.
62202         (re_search_stub): Check for overflow when adding START
62203         to RANGE; if it occurs, substitute the extreme value.
62204
62205 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62206
62207         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
62208
62209 2005-08-31  Jim Meyering  <jim@meyering.net>
62210
62211         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
62212         a pointer-to-const.
62213         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
62214         (register_state): Likewise.
62215         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
62216         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
62217         (group_nodes_into_DFAstates): Likewise.
62218
62219 2005-08-31  Jim Meyering  <jim@meyering.net>
62220
62221         * check-module: Add a FIXME comment.
62222
62223 2005-08-31  Eric Blake  <ebb9@byu.net>
62224
62225         * modules/unistd-safer (Files): Add unistd--.h.
62226         * modules/stdio-safer (Files): Add stdio--.h.
62227
62228 2005-08-31  Derek Price  <derek@ximbiot.com>
62229
62230         * lib/getdelim.c (getdelim): Return EOF on EOF.
62231         Reported by Larry Jones <lawrence.jones@ugs.com>.
62232
62233 2005-08-31  Bruno Haible  <bruno@clisp.org>
62234
62235         Avoid unnecessary diffs in the generated lib/Makefile.am.
62236         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
62237         the generated files.
62238         (func_import): Don't set cmd.
62239
62240 2005-08-31  Bruno Haible  <bruno@clisp.org>
62241
62242         * lib/strstr.c: Include <stddef.h>, for NULL.
62243         * lib/strcasestr.c: Likewise.
62244         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62245
62246 2005-08-31  Bruno Haible  <bruno@clisp.org>
62247
62248         * gnulib-tool: New option --macro-prefix.
62249         (func_import): Use macro_prefix.
62250         (import): Handle option --macro-prefix.
62251
62252 2005-08-31  Bruno Haible  <bruno@clisp.org>
62253
62254         * gnulib-tool (import): Rename most ac_* variables to cached_*.
62255         Also use new variables cached_lgpl, cached_libtool.
62256
62257 2005-08-31  Bruno Haible  <bruno@clisp.org>
62258
62259         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
62260         always instantiating them.
62261
62262 2005-08-31  Bruno Haible  <bruno@clisp.org>
62263
62264         * gnulib-tool (func_import): Read the previous cached settings
62265         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
62266         earlier added by gnulib but are now dropped. Warn when a gnulib file
62267         overwrites a non-gnulib file.
62268
62269 2005-08-31  Bruno Haible  <bruno@clisp.org>
62270
62271         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
62272         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
62273         projects that don't keep autogenerated files in CVS. Put into
62274         actioncmd only the specified modules, not the transitive closure.
62275
62276 2005-08-31  Bruno Haible  <bruno@clisp.org>
62277
62278         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
62279         Create directories that shall be filled.
62280         (import): Don't look for gl_* macros in configure.ac. Recurse across
62281         all directories containing a gnulib-cache.m4 files, if meaningful.
62282
62283 2005-08-31  Bruno Haible  <bruno@clisp.org>
62284
62285         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
62286         (import): Set seen_libtool when we see gl_LIBTOOL.
62287
62288 2005-08-31  Bruno Haible  <bruno@clisp.org>
62289
62290         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
62291         declaration macro definitions from generated gnulib.m4.
62292
62293 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
62294
62295         * lib/iconvme.h: Add prototype for iconv_alloc.
62296
62297 2005-08-29  Simon Josefsson  <jas@extundo.com>
62298
62299         * lib/iconvme.c: Fix errno.
62300
62301 2005-08-29  Bruno Haible  <bruno@clisp.org>
62302
62303         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
62304         that it works when the directory contains spaces.
62305
62306 2005-08-29  Bruno Haible  <bruno@clisp.org>
62307
62308         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
62309
62310 2005-08-29  Bruno Haible  <bruno@clisp.org>
62311
62312         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
62313         Emit more advice.
62314
62315 2005-08-29  Bruno Haible  <bruno@clisp.org>
62316         and Stepan Kasal  <kasal@ucw.cz>
62317
62318         * check-module: If more parameters are given, check each of them
62319         separately; add more exceptions, as noted by Jim Meyering.
62320         (check_module): New procedure.
62321         (%exempt_header): Now contains all exceptions.
62322
62323 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
62324
62325         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
62326
62327 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62328
62329         * lib/iconvme.c: Split iconv_string into iconv_alloc.
62330
62331 2005-08-28  Bruno Haible  <bruno@clisp.org>
62332
62333         * m4/gnulib-tool.m4: New file.
62334
62335 2005-08-27  Jim Meyering  <jim@meyering.net>
62336
62337         * modules/unistd-safer (Files): Add pipe-safer.c.
62338         * modules/fcntl-safer (Files): Add creat-safer.c.
62339
62340 2005-08-27  Jim Meyering  <jim@meyering.net>
62341
62342         * m4/stdlib-safer.m4: New file.  From coreutils.
62343         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
62344         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
62345         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
62346         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
62347         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
62348
62349 2005-08-27  Jim Meyering  <jim@meyering.net>
62350
62351         * lib/fopen-safer.c: Merge minor changes from coreutils.
62352         * lib/dup-safer.c: Likewise.
62353         * lib/fd-safer.c: Likewise.
62354
62355         Merge from coreutils.
62356         * lib/stdio--.h: New file.
62357         * lib/stdlib--.h: New file.
62358         * lib/mkstemp-safer.c: New file.
62359
62360         GNU tar needs these.
62361         * lib/pipe-safer.c: New file.
62362         * lib/creat-safer.c: New file.
62363         * lib/fcntl--.h (creat): Define to creat_safer.
62364         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
62365         * lib/unistd--.h (pipe): Define to pipe_safer.
62366         * lib/unistd-safer.h: Declare pipe_safer.
62367
62368 2005-08-26  Simon Josefsson  <jas@extundo.com>
62369
62370         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
62371         Haible <bruno@clisp.org>.
62372
62373 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         * lib/regex_internal.h: Remove all references to
62376         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
62377         or better.
62378         (bitset_not, bitset_merge, bitset_not_merge):
62379         (bitset_mask, re_string_allocate, re_string_construct):
62380         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
62381         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
62382         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
62383         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
62384         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62385         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62386         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
62387         (re_acquire_state_context):
62388         Remove unnecessary forward decls.
62389         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
62390         Put __attribute at function definition,
62391         now that the function decl has been removed.
62392         * lib/regex_internal.c (re_string_peek_byte_case):
62393         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
62394         Likewise.
62395
62396 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
62397
62398         * m4/regex.m4: Add AC_PREREQ(2.50).
62399         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
62400
62401 2005-08-25  Simon Josefsson  <jas@extundo.com>
62402
62403         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
62404         __fsetlocking.
62405
62406 2005-08-25  Simon Josefsson  <jas@extundo.com>
62407
62408         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
62409         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
62410         GLIBC specific code.
62411
62412 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         Make regex safe for g++.  This fixes one real bug (an "err"
62415         that should have been "*err").  g++ problem reported by
62416         Sam Steingold.
62417         * lib/regex_internal.h (re_calloc): New macro, consistent with
62418         re_malloc etc.  All callers of calloc changed to use re_calloc.
62419         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
62420         not int.  All callers changed.
62421         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
62422         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
62423         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
62424         (find_recover_state): Change "err" to "*err"; this fixes what
62425         appears to be a real bug.
62426         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
62427         versus int.
62428
62429 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62430
62431         * modules/regex (Depends-on): Add malloc, since the code
62432         assumes that !malloc(0) means failure.
62433
62434 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
62437
62438         alloca modernization/simplification for regex.
62439         * lib/regex.c: Remove portability cruft for alloca.  This no longer
62440         needs to be at the start of the file, and can be moved into
62441         regex_internal.h and simplified.
62442         * lib/regex_internal.h: Include <alloca.h>.
62443         (__libc_use_alloca) [!defined _LIBC]: New macro.
62444         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
62445         now works outside glibc.
62446
62447 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * config/srclist.txt: Add glibc bugs 1241, 1245.
62450
62451 2005-08-25  Jim Meyering  <jim@meyering.net>
62452
62453         * lib/open-safer.c: Include <config.h>.
62454         Otherwise, we'd lose LARGEFILE support in any file using
62455         e.g. "fcntl--.h"
62456
62457 2005-08-25  Bruno Haible  <bruno@clisp.org>
62458
62459         * m4/minmax.m4: Require autoconf 2.52.
62460         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
62461         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
62462         alternatives of translit over the alphabet.
62463         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
62464
62465 2005-08-24  Simon Josefsson  <jas@extundo.com>
62466
62467         * tests/test-getpass.c: New file.
62468
62469 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62470
62471         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
62472         for GNU regex features.
62473
62474 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62475
62476         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
62477         * lib/regex.h (regerror): Likewise.
62478
62479         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
62480         requires this.  (The code never needed it.)
62481
62482         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
62483         All uses of recently-renamed identifiers changed to use the new,
62484         POSIX-compliant names.  The code will build and run just fine
62485         without these changes, but it's better to eat our own dog food
62486         and use the standard-conforming names.
62487
62488         * lib/regex.h: Fix a multitude of POSIX name space violations.
62489         These changes have an effect only for programs that define
62490         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
62491         do not change anything for programs compiled in the normal way.
62492         Also, there is no effect on the ABI.
62493
62494         (_REGEX_SOURCE): New macro.
62495         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
62496         defined and _GNU_SOURCE is not; this fixes a name space violation.
62497
62498         Rename the following macros to obey POSIX requirements.
62499         The old names are still visible as macros if _REGEX_SOURCE is defined.
62500         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
62501         RE_BACKSLASH_ESCAPE_IN_LISTS.
62502         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
62503         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
62504         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
62505         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
62506         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
62507         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
62508         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
62509         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
62510         (REG_INTERVALS): renamed from RE_INTERVALS.
62511         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
62512         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
62513         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
62514         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
62515         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
62516         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
62517         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
62518         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
62519         RE_UNMATCHED_RIGHT_PAREN_ORD.
62520         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
62521         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
62522         (REG_DEBUG): renamed from RE_DEBUG.
62523         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
62524         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
62525         unusual, since we can't clash with the POSIX REG_ICASE.
62526         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
62527         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
62528         (REG_NO_SUB): renamed from RE_NO_SUB.
62529         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
62530         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
62531         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
62532         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
62533         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
62534         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
62535         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
62536         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
62537         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
62538         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
62539         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
62540         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
62541         RE_SYNTAX_POSIX_MINIMAL_BASIC.
62542         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
62543         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
62544         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
62545         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
62546         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
62547         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
62548         (REG_FIXED): Renamed from REGS_FIXED.
62549         (REG_NREGS): Renamed from RE_NREGS.
62550
62551         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
62552         of other REG_* macros, since POSIX says the user is allowed to
62553         #undef these macros selectively.
62554
62555         (reg_errcode_t): Update comment stating what other tables need
62556         to be consistent.
62557
62558         Rename the following enum values to obey POSIX requirements.
62559         The old names are still visible as macros.
62560         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
62561         is not defined, since GNU is supposed to be a superset of POSIX as
62562         much as possible, and since we want reg_errcode_t to be a signed
62563         type for implementation consistency.
62564         (_REG_NOERROR): Renamed from REG_NOERROR.
62565         (_REG_NOMATCH): Renamed from REG_NOMATCH.
62566         (_REG_BADPAT): Renamed from REG_BADPAT.
62567         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
62568         (_REG_ECTYPE): Renamed from REG_ECTYPE.
62569         (_REG_EESCAPE): Renamed from REG_EESCAPE.
62570         (_REG_ESUBREG): Renamed from REG_ESUBREG.
62571         (_REG_EBRACK): Renamed from REG_EBRACK.
62572         (_REG_EPAREN): Renamed from REG_EPAREN.
62573         (_REG_EBRACE): Renamed from REG_EBRACE.
62574         (_REG_BADBR): Renamed from REG_BADBR.
62575         (_REG_ERANGE): Renamed from REG_ERANGE.
62576         (_REG_ESPACE): Renamed from REG_ESPACE.
62577         (_REG_BADRPT): Renamed from REG_BADRPT.
62578         (_REG_EEND): Renamed from REG_EEND.
62579         (_REG_ESIZE): Renamed from REG_ESIZE.
62580         (_REG_ERPAREN): Renamed from REG_ERPAREN.
62581         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
62582         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
62583         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
62584         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
62585
62586         (_REG_RE_NAME, _REG_RM_NAME): New macros.
62587         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
62588         changed.  But support the old name if the new one is not defined
62589         and if _REGEX_SOURCE.
62590
62591         Change the following member names in struct re_pattern_buffer.
62592         The old names are still supported if !_REGEX_SOURCE.
62593         The new names are always supported, regardless of _REGEX_SOURCE.
62594         (re_buffer): Renamed from buffer.
62595         (re_allocated): Renamed from allocated.
62596         (re_used): Renamed from used.
62597         (re_syntax): Renamed from syntax.
62598         (re_fastmap): Renamed from fastmap.
62599         (re_translate): Renamed from translate.
62600         (re_can_be_null): Renamed from can_be_null.
62601         (re_regs_allocated): Renamed from regs_allocated.
62602         (re_fastmap_accurate): Renamed from fastmap_accurate.
62603         (re_no_sub): Renamed from no_sub.
62604         (re_not_bol): Renamed from not_bol.
62605         (re_not_eol): Renamed from not_eol.
62606         (re_newline_anchor): Renamed from newline_anchor.
62607
62608         Change the following member names in struct re_registers.
62609         The old names are still supported if !_REGEX_SOURCE.
62610         The new names are always supported, regardless of _REGEX_SOURCE.
62611         (rm_num_regs): Renamed from num_regs.
62612         (rm_start): Renamed from start.
62613         (rm_end): Renamed from end.
62614
62615         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
62616         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
62617         Prepend __ to parameter names.
62618
62619         Undo yesterday's changes.
62620
62621 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
62624         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
62625         lib/regex.c.
62626
62627 2005-08-24  Jim Meyering  <jim@meyering.net>
62628
62629         Sync from coreutils.
62630         * m4/fcntl-safer.m4: New file.
62631
62632         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
62633         and object files for this module.
62634
62635 2005-08-24  Jim Meyering  <jim@meyering.net>
62636
62637         Sync from coreutils.
62638         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
62639
62640 2005-08-24  Jim Meyering  <jim@meyering.net>
62641
62642         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
62643         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
62644
62645 2005-08-24  Jim Meyering  <jim@meyering.net>
62646
62647         * modules/fcntl-safer: New module.
62648         * modules/fts (Depends-on): Add fcntl-safer.
62649         * MODULES.html.sh (File descriptor based Input/Output):
62650         Add fcntl-safer.
62651
62652 2005-08-24  Bruno Haible  <bruno@clisp.org>
62653
62654         Support for unit test modules.
62655         * modules/README: Mention tests modules.
62656         * modules/TEMPLATE-TESTS: New file.
62657         * gnulib-tool: New options --extract-tests-module, --with-tests and
62658         --tests-base (unused for the moment).
62659         (testsbase, inctests): New variables.
62660         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
62661         (func_verify_module): Exclude TEMPLATE-TESTS.
62662         (func_verify_nontests_module, func_verify_tests_module): New functions.
62663         (func_get_dependencies): Add implicit dependency for tests modules.
62664         (func_get_tests_module): New function.
62665         (func_modules_transitive_closure): When --with-tests was specified,
62666         include the unit tests as well, unless explicitly avoided.
62667         (func_emit_lib_Makefile_am): Ignore the tests modules here.
62668         (func_emit_tests_Makefile_am): New function.
62669         (func_create_testdir): When --with-tests was specified, emit a
62670         tests/ directory.
62671         * MODULES.html.sh (Future developments): Update.
62672
62673 2005-08-24  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/tls-tests: New file.
62676         * tests/test-tls.c: New file, from GNU gettext.
62677
62678 2005-08-24  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/lock-tests: New file.
62681         * tests/test-lock.c: New file, from GNU gettext.
62682
62683 2005-08-24  Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/lock.h: Add multiple inclusion guard.
62686         * lib/tls.h: Add multiple inclusion guard.
62687
62688 2005-08-24  Bruno Haible  <bruno@clisp.org>
62689
62690         * gnulib-tool: Add support for the --aux-dir option to
62691         --create-testdir, --create-megatestdir, --test, --megatest.
62692         (func_create_testdir, func_create_megatestdir): Optionally emit a
62693         AC_CONFIG_AUX_DIR directive.
62694         (create-testdir, create-megatestdir, test, megatest): Provide a
62695         default value for $auxdir.
62696
62697 2005-08-24  Bruno Haible  <bruno@clisp.org>
62698
62699         * gnulib-tool (import): Use compound statement instead of subshell
62700         where possible.
62701
62702 2005-08-24  Bruno Haible  <bruno@clisp.org>
62703
62704         * gnulib-tool (import): Change --aux-dir default to "build-aux".
62705
62706 2005-08-24  Bruno Haible  <bruno@clisp.org>
62707
62708         * gnulib-tool (func_version): Update.
62709
62710 2005-08-24  Bruno Haible  <bruno@clisp.org>
62711
62712         * gnulib-tool (func_import, func_create_testdir,
62713         func_create_megatestdir): Quote all autoconf macro arguments.
62714
62715 2005-08-24  Bruno Haible  <bruno@clisp.org>
62716
62717         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
62718         option --force, because --force causes the aclocal.m4 of each
62719         subdirectory to be newer than the corresponding config.h.in.
62720
62721 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
62724         All contents moved to gl_REGEX.
62725         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
62726         assume that it does.
62727
62728 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62729
62730         * lib/regex.h (REG_NOSYS)
62731         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
62732         Define, since POSIX requires it as of 2001.
62733         (_REG_ENOSYS)
62734         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
62735         New private symbol, used to keep the enum signed in all cases.
62736         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
62737         Youngman in
62738         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
62739
62740         * lib/regex_internal.c (re_string_skip_chars, register_state):
62741         (calc_state_hash):
62742         Remove forward decls; no longer needed now that we use prototypes.
62743         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
62744         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
62745         (clean_state_log_if_needed): Likewise.
62746
62747 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         * config/srclist.txt: Add glibc bugs 1231-1233.
62750
62751 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62752
62753         Fix problems reported by Sam Steingold in
62754         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
62755         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
62756         assumed that reg_errcode_t is a signed type, which is not
62757         necessarily true if _XOPEN_SOURCE is not defined.
62758         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
62759         since some compilers warn about it otherwise.
62760
62761 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
62764         (init_word_char, create_initial_state, duplicate_node_closure):
62765         (fetch_token, peek_token_bracket, build_range_exp):
62766         (build_collating_symbol): Remove forward decls; no longer needed
62767         now that we use prototypes.
62768
62769         * lib/regcomp.c:
62770         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
62771         (re_compile_fastmap_iter, regcomp, regerror, regfree):
62772         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
62773         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
62774         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
62775         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
62776         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
62777         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
62778         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
62779         (build_range_exp, build_collating_symbol, parse_bracket_exp):
62780         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
62781         (build_charclass, build_charclass_op, fetch_number, create_tree):
62782         (create_token_tree, mark_opt_subexp, duplicate_tree):
62783         Use prototypes rather than old-style definitions.
62784
62785         * lib/regex_internal.c:
62786         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
62787         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
62788         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
62789         (re_string_reconstruct, re_string_peek_byte_case):
62790         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
62791         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
62792         (re_node_set_init_copy, re_node_set_add_intersect):
62793         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
62794         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
62795         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
62796         (re_acquire_state, re_acquire_state_context, register_state):
62797         (create_ci_newstate, create_cd_newstate, free_state):
62798         Likewise.
62799         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
62800         re_search_2):
62801         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
62802         (re_search_internal, prune_impossible_nodes):
62803         (acquire_init_state_context, check_matching, static):
62804         (check_halt_node_context, check_halt_state_context, proceed_next_node):
62805         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
62806         (update_regs, sift_states_backward, build_sifted_states):
62807         (clean_state_log_if_needed, merge_state_array):
62808         (update_cur_sifted_state, add_epsilon_src_nodes):
62809         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
62810         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
62811         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
62812         (find_recover_state, check_subexp_matching_top, transit_state_mb):
62813         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
62814         (check_arrival, check_arrival_add_next_nodes):
62815         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
62816         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
62817         (check_node_accept_bytes, check_node_accept, extend_buffers):
62818         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
62819         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
62820         (sift_ctx_init):
62821         Likewise.
62822
62823         * lib/regex_internal.h:
62824         (re_string_allocate, re_string_construct, re_string_reconstruct):
62825         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
62826         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
62827         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
62828         (re_string_context_at, re_string_peek_byte_case):
62829         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
62830         is defined, since we now use prototypes always.
62831
62832         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
62833         C89 or better.  All uses removed.
62834
62835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * config/srclist.txt: Add glibc bugs 1220-1227.
62838
62839 2005-08-20  Jim Meyering  <jim@meyering.net>
62840
62841         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
62842         of unused local, dfa.
62843
62844 2005-08-20  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
62847
62848 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62849
62850         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
62851         (re_node_set_insert_last, re_dfa_add_node):
62852         Rename local variables to avoid GCC shadowing warnings.
62853
62854 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
62857         [defined lint]: Suppress bogus uninitialized-variable warnings.
62858
62859         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
62860         and let the caller return REG_ESPACE if out of space.  This
62861         removes an uninitialied-variable warning with GCC 4.0.1, and also
62862         avoids taking the address of a local variable.  All callers
62863         changed.
62864
62865 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
62868         $LIBCSRC/posix/regexec.c.
62869         Add glibc bug 1217 for regcomp.c.
62870
62871 2005-08-19  Jim Meyering  <jim@meyering.net>
62872
62873         * lib/regexec.c (proceed_next_node): Redo local variables to
62874         avoid GCC shadowing warnings.
62875
62876 2005-08-18  Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/strstr.c (strstr): Fix return value in multibyte case.
62879         * lib/strcasestr.c (strcasestr): Likewise.
62880
62881 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
62884
62885 2005-08-17  Jim Meyering  <jim@meyering.net>
62886
62887         Make the %s format (seconds since the epoch) work for a negative
62888         number and when used with a zero-padded field width, e.g. %015s.
62889
62890         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
62891         label so that it precedes the code to set `digits'.  Otherwise,
62892         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
62893         print `00-22'.  Now, it prints `-0022', as it should.
62894
62895 2005-08-17  Bruno Haible  <bruno@clisp.org>
62896
62897         * modules/strstr (Files): Add m4/mbrtowc.m4.
62898         (Depends-on): Add mbuiter.
62899
62900 2005-08-17  Bruno Haible  <bruno@clisp.org>
62901
62902         * modules/strcasestr: New file.
62903         * MODULES.html.sh (String handling, based on ANSI C 89): Add
62904         strcasestr.
62905
62906 2005-08-17  Bruno Haible  <bruno@clisp.org>
62907
62908         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
62909
62910 2005-08-17  Bruno Haible  <bruno@clisp.org>
62911
62912         * modules/mbuiter: New file.
62913         * MODULES.html.sh (Extended multibyte and wide character utilities):
62914         Add mbuiter.
62915
62916 2005-08-17  Bruno Haible  <bruno@clisp.org>
62917
62918         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
62919         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
62920
62921 2005-08-17  Bruno Haible  <bruno@clisp.org>
62922
62923         * m4/strcasestr.m4: New file.
62924
62925 2005-08-17  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
62928         * lib/strstr.c: Completely rewritten, with multibyte locale support.
62929
62930 2005-08-17  Bruno Haible  <bruno@clisp.org>
62931
62932         * lib/strcasestr.h: New file.
62933         * lib/strcasestr.c: New file.
62934
62935 2005-08-17  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/strcasecmp.c: Use mbuiter.h.
62938
62939 2005-08-17  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/mbuiter.h: New file.
62942
62943 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
62946         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
62947         and gl_GETOPT are both invoked via different paths (as happens
62948         with GNU tar CVS because it uses both argp and getopt), the former
62949         wins.
62950
62951 2005-08-16  Bruno Haible  <bruno@clisp.org>
62952
62953         * modules/tls: New file.
62954         * MODULES.html.sh (Multithreading): Add tls.
62955
62956 2005-08-16  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/strnlen1: New file.
62959         * MODULES.html.sh (String handling): Add strnlen1.
62960
62961 2005-08-16  Bruno Haible  <bruno@clisp.org>
62962
62963         * modules/strcase (Files): Add m4/mbrtowc.m4.
62964         (Depends-on): Add strnlen1, mbchar.
62965
62966 2005-08-16  Bruno Haible  <bruno@clisp.org>
62967
62968         * modules/mbiter: New file.
62969         * MODULES.html.sh (Extended multibyte and wide character utilities):
62970         Add mbiter.
62971
62972 2005-08-16  Bruno Haible  <bruno@clisp.org>
62973
62974         * modules/mbfile: New file.
62975         * MODULES.html.sh (Extended multibyte and wide character utilities):
62976         Add mbfile.
62977
62978 2005-08-16  Bruno Haible  <bruno@clisp.org>
62979
62980         * modules/mbchar: New file.
62981         * MODULES.html.sh (Extended multibyte and wide character utilities):
62982         New section.
62983
62984 2005-08-16  Bruno Haible  <bruno@clisp.org>
62985
62986         * m4/tls.m4: New file, from GNU gettext.
62987
62988 2005-08-16  Bruno Haible  <bruno@clisp.org>
62989
62990         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
62991         always.
62992         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
62993
62994 2005-08-16  Bruno Haible  <bruno@clisp.org>
62995
62996         * m4/mbiter.m4: New file.
62997
62998 2005-08-16  Bruno Haible  <bruno@clisp.org>
62999
63000         * m4/mbfile.m4: New file.
63001
63002 2005-08-16  Bruno Haible  <bruno@clisp.org>
63003
63004         * m4/mbchar.m4: New file.
63005
63006 2005-08-16  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/tls.h: New file, from GNU gettext.
63009         * lib/tls.c: New file, from GNU gettext.
63010
63011 2005-08-16  Bruno Haible  <bruno@clisp.org>
63012
63013         * lib/strnlen1.h: New file.
63014         * lib/strnlen1.c: New file.
63015
63016 2005-08-16  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
63019         (mbi_init): Update.
63020         (mbi_avail, mbi_advance): Let the iteration end before the terminating
63021         NUL byte, not after it.
63022
63023 2005-08-16  Bruno Haible  <bruno@clisp.org>
63024
63025         * lib/strcase.h (strcasecmp): Add note in comments.
63026         * lib/strncasecmp.c: Use code from strcasecmp.c.
63027         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
63028         (strcasecmp): Work correctly in multibyte locales.
63029
63030 2005-08-16  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/mbiter.h: New file.
63033
63034 2005-08-16  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/mbfile.h: New file.
63037
63038 2005-08-16  Bruno Haible  <bruno@clisp.org>
63039
63040         * lib/mbchar.h: New file.
63041         * lib/mbchar.c: New file.
63042
63043 2005-08-16  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
63046         the valid ones. Makes the comparison operations transitive:
63047         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
63048         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
63049
63050 2005-08-15  Simon Josefsson  <jas@extundo.com>
63051
63052         * modules/ssize_t (License): Change to 'unlimited'.
63053
63054         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
63055
63056 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63057
63058         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
63059         Add comments for each pending glibc patch.
63060
63061 2005-08-15  Bruno Haible  <bruno@clisp.org>
63062
63063         * lib/regex.h (__restrict_arr): Don't define to __restrict if
63064         __cplusplus is defined.
63065
63066 2005-08-14  Jim Meyering  <jim@meyering.net>
63067
63068         Sync from coreutils.
63069
63070         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
63071         Use the hash-table-based cycle-detection code not just when
63072         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
63073         Reported by James Youngman in
63074         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
63075         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
63076         FTS_TIGHT_CYCLE_CHECK.
63077         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
63078         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
63079         once again.
63080         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
63081         * lib/fts.c (fd_safer): Remove decl.
63082         Include fcntl--.h rather than unistd-safer.h
63083         (fts_safe_changedir): Don't call fd_safer; no longer needed
63084         now that we include fcntl--.h.
63085
63086 2005-08-12  Simon Josefsson  <jas@extundo.com>
63087
63088         * modules/getndelim2: Use ssize_t module.
63089         * modules/getnline: Likewise.
63090         * modules/safe-read: Likewise.
63091         * modules/xreadlink: Likewise.
63092
63093         * modules/ssize_t: New file.
63094
63095 2005-08-12  Simon Josefsson  <jas@extundo.com>
63096
63097         * m4/readline.m4: Look for termcap, curses or ncurses if required.
63098
63099 2005-08-12  Simon Josefsson  <jas@extundo.com>
63100
63101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63102         ssize_t.
63103
63104 2005-08-12  Simon Josefsson  <jas@extundo.com>
63105
63106         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
63107         readline, getdelim and check_version.
63108         (Support for systems lacking ISO C 99: Sizes of integer types):
63109         Add size_max.
63110
63111 2005-08-12  Bruno Haible  <bruno@clisp.org>
63112
63113         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
63114
63115 2005-08-11  Simon Josefsson  <jas@extundo.com>
63116
63117         * modules/readline: New file.
63118
63119         * modules/strnlen (Files): Add strnlen.h.
63120
63121 2005-08-11  Simon Josefsson  <jas@extundo.com>
63122
63123         * m4/readline.m4: New file.
63124
63125 2005-08-11  Simon Josefsson  <jas@extundo.com>
63126
63127         * lib/readline.h, readline.c: New file.
63128
63129 2005-08-11  Simon Josefsson  <jas@extundo.com>
63130
63131         * doc/gnulib.texi (Initial import, Finishing touches): Mention
63132         gl_AVOID.
63133
63134 2005-08-11  Bruno Haible  <bruno@clisp.org>
63135
63136         * lib/strnlen.h (strnlen): Change parameter name to match comment.
63137
63138 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
63139
63140         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
63141
63142 2005-08-10  Simon Josefsson  <jas@extundo.com>
63143
63144         * tests/test-iconvme.c: New file.
63145
63146 2005-08-10  Simon Josefsson  <jas@extundo.com>
63147
63148         * m4/strnlen.m4: New file.
63149
63150         * m4/strndup.m4: Don't check for strnlen declaration, done in
63151         strnlen.m4.
63152
63153 2005-08-10  Simon Josefsson  <jas@extundo.com>
63154
63155         * lib/strndup.c: Use strnlen.h.
63156
63157         * lib/strnlen.h: New file.
63158
63159 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63160
63161         * README: Typos.
63162
63163 2005-08-02  Simon Josefsson  <jas@extundo.com>
63164
63165         * modules/readline: New file.
63166
63167 2005-08-02  Simon Josefsson  <jas@extundo.com>
63168
63169         * modules/getdelim: New file.
63170
63171         * modules/getline: Rewrite, don't use getndelim2.
63172
63173 2005-08-02  Simon Josefsson  <jas@extundo.com>
63174
63175         * m4/getline.m4: Separate out getdelim stuff into separate module.
63176
63177         * m4/getdelim.m4: New file.
63178
63179 2005-08-02  Simon Josefsson  <jas@extundo.com>
63180
63181         * lib/getline.h, getline.c: Rewrite.
63182
63183         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
63184
63185 2005-07-31  Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/lock.h (gl_lock_initializer): New macro.
63188         (gl_lock_define_initialized): Use it.
63189         (gl_rwlock_initializer): New macro.
63190         (gl_rwlock_define_initialized): Use it.
63191         (gl_recursive_lock_initializer): New macro.
63192         (gl_recursive_lock_define_initialized): Use it.
63193
63194 2005-07-30  Karl Berry  <karl@gnu.org>
63195
63196         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
63197         Report from Ben Pfaff, regarding getopt.
63198
63199 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
63200
63201         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
63202         normal way.
63203         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
63204         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
63205         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
63206         (gl_GETOPT): Use the new macros.  Most of the implementation
63207         is moved to the new macros.  This is for programs like Emacs
63208         that don't want all the functionality of gl_GETOPT.
63209
63210 2005-07-26  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/lock.m4: Update from GNU gettext.
63213
63214 2005-07-26  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/lock.h: Update from GNU gettext.
63217         * lib/lock.c: Update from GNU gettext.
63218
63219 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
63220
63221         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
63222         obsolescent AC_TRY_RUN.  Include the default includes files, for
63223         'exit'.
63224
63225 2005-07-24  Bruno Haible  <bruno@clisp.org>
63226
63227         * modules/visibility: New file.
63228         * MODULES.html.sh (Misc): Add visibility.
63229
63230 2005-07-24  Bruno Haible  <bruno@clisp.org>
63231
63232         * m4/visibility.m4: New file.
63233
63234 2005-07-24  Bruno Haible  <bruno@clisp.org>
63235
63236         * doc/visibility.texi: New file.
63237
63238 2005-07-22  Bruno Haible  <bruno@clisp.org>
63239
63240         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
63241         $(ALLOCA_H), redundant through BUILT_SOURCES.
63242         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
63243         redundant through BUILT_SOURCES.
63244         * modules/byteswap (Makefile.am): Remove explicit dependency on
63245         $(BYTESWAP_H), redundant through BUILT_SOURCES.
63246         * modules/fnmatch (Makefile.am): Remove explicit dependency on
63247         $(FNMATCH_H), redundant through BUILT_SOURCES.
63248         * modules/getopt (Makefile.am): Remove explicit dependency on
63249         $(GETOPT_H), redundant through BUILT_SOURCES.
63250         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
63251         redundant through BUILT_SOURCES.
63252         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
63253         redundant through BUILT_SOURCES.
63254         * modules/stdbool (Makefile.am): Remove explicit dependency on
63255         $(STDBOOL_H), redundant through BUILT_SOURCES.
63256         * modules/stdint (Makefile.am): Remove explicit dependency on
63257         $(STDINT_H), redundant through BUILT_SOURCES.
63258         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
63259         Remove explicit dependency on $(SYSEXITS_H).
63260         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
63261
63262 2005-07-18  Simon Josefsson  <jas@extundo.com>
63263
63264         * lib/check-version.c (check_version): Accept identical versions too.
63265
63266 2005-07-18  Bruno Haible  <bruno@clisp.org>
63267
63268         * modules/lock: New file.
63269         * MODULES.html.sh (Multithreading): New section.
63270
63271 2005-07-18  Bruno Haible  <bruno@clisp.org>
63272
63273         * m4/lock.m4: New file, from GNU gettext.
63274
63275 2005-07-18  Bruno Haible  <bruno@clisp.org>
63276
63277         * lib/lock.h: New file, from GNU gettext.
63278         * lib/lock.c: New file, from GNU gettext.
63279
63280 2005-07-18  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/lock.h (gl_once_t): New type.
63283         (gl_once_define, gl_once): New macros.
63284         * lib/lock.c (fresh_once): New variable.
63285         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
63286         functions.
63287
63288 2005-07-16  Simon Josefsson  <jas@extundo.com>
63289
63290         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
63291         workaround, suggested by Bruno.
63292
63293 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63294
63295         * modules/xalloc (Depends-on): Add xalloc-die.
63296         * modules/xvasprintf (Depends-on): Add xalloc-die.
63297
63298 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
63301         with a minor change.
63302
63303 2005-07-15  Bruno Haible  <bruno@clisp.org>
63304
63305         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
63306         When using lib/poll.c, define poll as rpl_poll.
63307
63308 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         * modules/argp (Depends-on): Remove unlocked-io.
63311
63312 2005-07-14  Derek Price  <derek@ximbiot.com>
63313
63314         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
63315         for glob symlink bug.
63316
63317 2005-07-14  Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
63320         Instead, test for *_unlocked function declarations directly.
63321
63322 2005-07-11  Simon Josefsson  <jas@extundo.com>
63323
63324         * modules/size_max: New file.
63325
63326         * modules/xsize: Depend on size_max module for size_max.m4.
63327
63328 2005-07-11  Simon Josefsson  <jas@extundo.com>
63329
63330         * lib/size_max.h: New file.
63331
63332 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
63335         copyright symbol and the year.
63336         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
63337         (version_etc_va): Use parameterized copyright notice.
63338         Reword to conform to the current GNU coding standards.
63339
63340 2005-07-11  Karl Berry  <karl@gnu.org>
63341
63342         * doc/gnulib.texi (Quoting): new node.
63343         (Initial import): more info, from Patrice.
63344
63345 2005-07-11  Bruno Haible  <bruno@clisp.org>
63346
63347         * gnulib-tool (func_usage): Document option --avoid.
63348         (Command line options): Handle --avoid.
63349         (func_acceptable): New function.
63350         (func_modules_transitive_closure): Use it.
63351
63352 2005-07-11  Bruno Haible  <bruno@clisp.org>
63353
63354         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
63355         Reported by Jim Meyering.
63356
63357 2005-07-10  Bruno Haible  <bruno@clisp.org>
63358
63359         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
63360         Needed when size_t is smaller than 'unsigned int'.
63361         Reported by Paul Eggert.
63362
63363 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63364
63365         * modules/argp (Depends-on): Add unlocked-io
63366
63367 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63368
63369         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
63370         block of defines.
63371
63372 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         * config/srclist.txt: Comment out regcomp.c, since we have a porting
63375         fix now.
63376
63377 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
63378         and Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
63381         in wint_t, not wchar_t.  Remove now-unnecessary cast.
63382
63383 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63384
63385         * modules/regex (Files): Add lib/regex_internal.c,
63386         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
63387         (Depends-on): Add extensions.
63388         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
63389
63390 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
63393         pathconf.
63394         * m4/same.m4 (gl_SAME): Likewise.
63395         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
63396
63397         * m4/regex.m4: Adjust to new libc regex implementation.
63398         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
63399         all the .c and .h parts of (the new) regex.
63400         Quote the m4 stuff better.
63401         Check for RE_ICASE bug of old gnulib.
63402         Check for REG_STARTEND of recent libc.
63403         Rename local variables from jm_* to gl_*.
63404         Quote operand of "test -f".
63405         Say "recent enough" version of libc, not "version 2".
63406         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
63407         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
63408         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
63409         Remove check for btowc, isascii.
63410         Require AM_LANGINFO_CODESET.
63411
63412 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63413
63414         * lib/regex.c, regex.h: Sync from libc.
63415         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
63416         * lib/regexec.c:
63417         New files, synced from libc, except that regex_internal.h
63418         currently has a small porting fix.
63419
63420 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
63421
63422         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
63423         regex_internal.c, regexec.c.
63424         Add regex_internal.h too, but as a comment, since the libc version
63425         is currently broken in gnulib mode.
63426
63427 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63428
63429         Support programs like Emacs that use gnulib but not gettext.
63430         * MODULES.html.sh (Internationalization functions): Add gettext-h.
63431         * modules/gettext-h: New file.
63432         * modules/gettext (Files): Remove lib/gettext.h.
63433         (Depends-on): Add gettext-h.
63434         (Makefile.am): Remove lib_SOURCES.
63435         * modules/argmatch, modules/c-stack, modules/closeout:
63436         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
63437         * modules/execute, modules/file-type, modules/getaddrinfo:
63438         * modules/getopt, modules/human, modules/javacomp:
63439         * modules/javaexec, modules/mkdir-p, modules/obstack:
63440         * modules/openat, modules/pagealign_alloc, modules/pipe:
63441         * modules/quotearg, modules/regex, modules/rpmatch:
63442         * modules/unicodeio, modules/userspec, modules/version-etc:
63443         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
63444         * modules/xsetenv:
63445         Depend on gettext-h, not gettext.
63446
63447 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * gnulib-tool (func_import): Add support for 'public domain' license.
63450         * modules/alloca, modules/atexit, modules/memmove:
63451         Now public domain, not GPL.
63452         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
63453         * modules/realloc, modules/strerror, modules/strtod:
63454         Now LGPL, not GPL.
63455
63456 2005-07-05  Bruno Haible  <bruno@clisp.org>
63457
63458         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
63459         autoconf CVS. Needed for mingw.
63460
63461 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63462
63463         Remove the dependency of the strftime module on the tzset module.
63464         * modules/strftime (Depends-on): Remove dependency on tzset.
63465
63466 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63467
63468         Remove the dependency of the strftime module on the tzset module.
63469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
63470         gl_FUNC_TZSET_CLOBBER.
63471
63472 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         Remove the dependency of the strftime module on the tzset module.
63475         * lib/strftime.c (my_strftime)
63476         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
63477         Copy the input structure, to work around some of the bug with
63478         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
63479         Solaris releases, you should also use the tzset module, but we won't
63480         require it as a dependency any more since we don't want LGPLed code
63481         to depend on GPLed code.
63482
63483 2005-07-02  Jim Meyering  <jim@meyering.net>
63484
63485         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
63486         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
63487         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
63488         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
63489
63490 2005-07-02  Jim Meyering  <jim@meyering.net>
63491
63492         * lib/backupfile.c (backup_args): Change a `0' to NULL.
63493
63494 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
63497         declares only 'struct timespec;' (!).
63498
63499 2005-07-01  Jim Meyering  <jim@meyering.net>
63500
63501         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
63502         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
63503         * lib/save-cwd.c, tempname.c:
63504         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63505         and don't include <sys/file.h>).
63506
63507 2005-06-29  Jim Meyering  <jim@meyering.net>
63508
63509         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
63510         type name.  Use the variable name instead.
63511         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
63512         Likewise.
63513
63514 2005-06-28  Simon Josefsson  <jas@extundo.com>
63515
63516         * modules/check-version (Files): Add check-version.m4.
63517
63518 2005-06-28  Simon Josefsson  <jas@extundo.com>
63519
63520         * m4/check-version.m4: New file, suggested by Jim Meyering
63521         <jim@meyering.net>.
63522
63523 2005-06-28  Simon Josefsson  <jas@extundo.com>
63524
63525         * lib/check-version.h, lib/check-version.c: New files.
63526
63527 2005-06-28  Simon Josefsson  <jas@extundo.com>
63528
63529         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
63530         collision with global variable.  Better indentation.  Don't
63531         increment buffer pointer beyond buffer end.  Based on comments
63532         from Paul Eggert <eggert@cs.ucla.edu>.
63533
63534         * lib/base64.h: Indent.
63535
63536 2005-06-28  Simon Josefsson  <jas@extundo.com>
63537
63538         * doc/gnulib.texi (Library version handling): New section.
63539
63540 2005-06-28  Jim Meyering  <jim@meyering.net>
63541
63542         * check-module (find_included_lib_files): Hard-code another
63543         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
63544         but modules/fts-lgpl (correctly) does not list those files.
63545
63546         * modules/canonicalize (Files): Add lib/pathmax.h.
63547
63548 2005-06-25  Simon Josefsson  <jas@extundo.com>
63549
63550         * modules/check-version: New file.
63551
63552 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
63555         initializer of struct addrinfo, as an indication that we don't
63556         care how many members the structure has.
63557
63558 2005-06-24  Derek Price  <derek@ximbiot.com>
63559         and Bruno Haible  <bruno@clisp.org>
63560
63561         Remove stat module & update lstat.
63562         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
63563         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63564         * m4/stat.m4: Remove this file.
63565
63566 2005-06-24  Derek Price  <derek@ximbiot.com>
63567         and Bruno Haible  <bruno@clisp.org>
63568
63569         Remove stat module & update lstat.
63570         * lib/stat.c: Remove this file...
63571         (slash_aware_lstat): ...moving this content and its support...
63572         * lib/lstat.c (rpl_lstat): ...into here.
63573         * lib/lstat.h: New file.
63574
63575 2005-06-24  Derek Price  <derek@ximbiot.com>
63576         and Bruno Haible  <bruno@clisp.org>
63577
63578         Remove stat module & update lstat.
63579         * config/srclist.txt (libc sources): Remove stat.
63580
63581 2005-06-24  Derek Price  <derek@ximbiot.com>
63582         and Bruno Haible  <bruno@clisp.org>
63583
63584         Remove stat module & update lstat.
63585         * MODULES.html.sh (stat): Remove.
63586         * MODULES.html: Regenerated.
63587         * modules/lstat (Description): Correct function name.
63588         (Files): Add "lstat.h".
63589         (Depends-on): Remove stat, add xalloc, stat-macros.
63590         * modules/stat: Remove this file.
63591         (Include): Add "lstat.h", remove <sys/stat.h>.
63592
63593 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
63596         (ranged_convert): Don't save conversion in a temporary struct.
63597         This causes a warning with GCC 4.0.0, and anyway in the typical
63598         case it's not worth the extra 100 bytes or so of code.
63599         (ranged_convert, __mktime_internal): When calling a function via a
63600         pointer P, use P () rather than (*P) (), as we now assume C89 or
63601         better.
63602
63603 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63604
63605         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
63606         "who -r" failed to give output.  Problem reported by Tim Waugh.
63607
63608         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
63609         (xcalloc): Use it to avoid needless tests.
63610         Problem reported by Jim Meyering.
63611
63612 2005-06-20  Derek Price  <derek@ximbiot.com>
63613
63614         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
63615         unnecessary for Autoconfs > 2.59c.
63616
63617 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63618
63619         * lib/argp.h (__option_is_short): Check upper limit of
63620         __key. Isprint() requires its argument to have the value
63621         of an unsigned char or EOF.
63622
63623 2005-06-16  Jim Meyering  <jim@meyering.net>
63624
63625         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
63626         when either N or S is zero.
63627
63628 2005-06-16  Derek Price  <derek@ximbiot.com>
63629
63630         * m4/bison.m4: Declare YACC & YFLAGS precious.
63631
63632 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
63635         multibyte string or pattern, fall back on unibyte matching.
63636         Problem reported by James Youngman.
63637
63638 2005-06-08  Bruno Haible  <bruno@clisp.org>
63639
63640         * modules/csharpcomp: New file.
63641         * MODULES.html.sh (C#): Add csharpcomp.
63642
63643 2005-06-08  Bruno Haible  <bruno@clisp.org>
63644
63645         * m4/csharpcomp.m4: New file, from GNU gettext.
63646
63647 2005-06-08  Bruno Haible  <bruno@clisp.org>
63648
63649         * lib/csharpcomp.h: New file, from GNU gettext.
63650         * lib/csharpcomp.c: New file, from GNU gettext.
63651         * lib/csharpcomp.sh.in: New file, from GNU gettext.
63652
63653 2005-06-08  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
63656         warning on mingw.
63657
63658 2005-06-07  Derek Price  <derek@ximbiot.com>
63659
63660         Sync from CVS.
63661         * lib/glob_.h: Indent nested #ifdef.
63662
63663 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         Sync from coreutils.
63666         Use "file name" when talking about file names, instead of "filename"
63667         or "path", as per the GNU coding standards.
63668         * lib/mkdir-p.c: Renamed from makepath.c.
63669         (make_dir_parents): Renamed from make_path.  All callers changed.
63670         * lib/mkdir-p.h: Likewise.  All includers changed.
63671         * lib/filenamecat.c: Renamed from path-concat.c.
63672         (file_name_concat): Renamed from path_concat.  All callers changed.
63673         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
63674         * lib/filenamecat.h: Likewise.  All includers changed.
63675         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
63676         in comments or local variable names.
63677         * lib/basename.c: Likewise.
63678         * lib/canonicalize.c, canonicalize.h: Likewise.
63679         * lib/dirname.c, dirname.h: Likewise.
63680         * lib/euidaccess.c: Likewise.
63681         * lib/exclude.c: Likewise
63682         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
63683         * lib/fsusage.c, fsuage.h: Likewise.
63684         * lib/fts.c, fts_.h: Likewise.
63685         * lib/getcwd.c: Likewise.
63686         * lib/getloadavg.c: Likewise.
63687         * lib/mkstemp.c: Likewise.
63688         * lib/mountlist.c, mountlist.h: Likewise.
63689         * lib/openat.c, openat.h: Likewise.
63690         * lib/readlink-stub.c: Likewise.
63691         * lib/readutmp.c, readutmp.h: Likewise.
63692         * lib/rename.c: Likewise.
63693         * lib/rmdir.c: Likewise.
63694         * lib/same.c: Likewise.
63695         * lib/savedir.c: Likewise.
63696         * lib/stripslash.c: Likewise.
63697         * lib/tempname.c: Likewise.
63698         * lib/xreadlink.c: Likewise.
63699         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
63700         All uses changed.
63701         * lib/exclude.h: Likewise.
63702
63703         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
63704         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63705         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
63706         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63707         * lib/pathmax.h: Include <limits.h> unconditionally, since other
63708         files have been getting away with it for years (MORE/BSD 4.3
63709         is extinct now).
63710         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
63711         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
63712
63713         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
63714         Define to 256, not 255, as per modern POSIX.
63715
63716 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         Sync from coreutils.
63719         Use "file name" when talking about file names, instead of "filename"
63720         or "path", as per the GNU coding standards.
63721         * MODULES.html.sh: mkdir-p renamed from makepath.
63722         filenamecat renamed from path-concat.
63723         * modules/filenamecat: Renamed from modules/path-concat.
63724         (Files): filenamecat.h and filenamecat.c renamed from
63725         path-concat.h and path-concat.c.
63726         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
63727         (Include): filenamecat.h, not path-concat.h.
63728         * modules/mkdir-p: Renamed from modules/makepath.
63729         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
63730         makepath.c.
63731         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
63732         (Include): mkdir-p.h, not makepath.h.
63733
63734 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
63735
63736         Sync from coreutils.
63737         * m4/mkdir-p.m4: Renamed from makepath.m4.
63738         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
63739         Rename files from makepath.c to mkdir-p.c, and from
63740         makepath.h to mkdir-p.h.
63741         * m4/filenamecat.m4: Renamed from path-concat.m4.
63742         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
63743         Rename files from path-concat.c to filenamecat.c,
63744         and from path-concat.h to filenamecat.h.
63745         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
63746         "file name" in local variables or comments.
63747         * m4/rename.m4: Likewise.
63748
63749 2005-06-01  Bruno Haible  <bruno@clisp.org>
63750
63751         * modules/csharpexec: New file.
63752         * MODULES.html.sh (C#): New section.
63753
63754 2005-06-01  Bruno Haible  <bruno@clisp.org>
63755
63756         * m4/csharp.m4: New file, from GNU gettext.
63757         * m4/csharpexec.m4: New file, from GNU gettext.
63758
63759 2005-06-01  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/csharpexec.h: New file, from GNU gettext.
63762         * lib/csharpexec.c: New file, from GNU gettext.
63763         * lib/csharpexec.sh.in: New file, from GNU gettext.
63764
63765 2005-05-31  Derek Price  <derek@ximbiot.com>
63766             Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         Sync from cvs.
63769         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63770
63771 2005-05-31  Derek Price  <derek@ximbiot.com>
63772             Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         Sync from cvs.
63775         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
63776
63777 2005-05-29  Derek Price  <derek@ximbiot.com>
63778
63779         * config/srclist.txt (glob_.h, glob.c): Add these files.
63780
63781 2005-05-29  Derek Price  <derek@ximbiot.com>
63782
63783         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
63784         * modules/glob: New file.
63785         * modules/getlogin_r: Add link to POSIX spec in description.
63786
63787 2005-05-29  Derek Price  <derek@ximbiot.com>
63788             Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         * m4/glob.m4: New file.
63791
63792 2005-05-29  Derek Price  <derek@ximbiot.com>
63793             Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         * lib/glob_.h, lib/glob.c: New files.
63796
63797 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * modules/fts (Files): Remove m4/inttypes-pri.m4.
63800         * modules/fts-lgpl (Depends-on): Remove gettext.
63801
63802 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63803
63804         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
63805         and don't require gt_INTTYPES_PRI.
63806
63807 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
63810
63811         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
63812         the configuration hassle isn't worth it.
63813         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
63814         (LONGEST_MODIFIER, PRIuMAX): Remove.
63815
63816 2005-05-27  Bruno Haible  <bruno@clisp.org>
63817
63818         * lib/getlogin_r.h: Remove second include of <stddef.h>.
63819
63820 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
63821
63822         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
63823         _POSIX_PTHREAD_SEMANTICS for Solaris.
63824
63825 2005-05-25  Derek Price  <derek@ximbiot.com>
63826
63827         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
63828
63829 2005-05-25  Derek Price  <derek@ximbiot.com>
63830             Paul Eggert  <eggert@cs.ucla.edu>
63831
63832         * modules/getlogin_r, m4/getlogin_r.m4: New files.
63833         * lib/getlogin_r.c, getlogin_r.h: New files.
63834
63835 2005-05-25  Bruno Haible  <bruno@clisp.org>
63836             Derek Price  <derek@ximbiot.com>
63837
63838         * lib/getlogin_r.h: Simplify API documentation.
63839
63840 2005-05-23  Derek Price  <derek@ximbiot.com>
63841
63842         * modules/minmax (Files): Add m4/minmax.m4.
63843         (configure.ac): Add gl_MINMAX.
63844
63845 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
63848         so that unistd-safer.h (GPL'ed code) need not be included.
63849
63850 2005-05-22  Bruno Haible  <bruno@clisp.org>
63851
63852         * m4/minmax.m4: New file.
63853         Based on a patch by Derek Price <derek@ximbiot.com>.
63854
63855 2005-05-22  Bruno Haible  <bruno@clisp.org>
63856
63857         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
63858         (INT64_MIN): Fix definition.
63859         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
63860
63861         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
63862         NEED_SIGNED_INT_TYPES.
63863
63864         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
63865         HAVE_SYSTEM_INTTYPES.
63866
63867 2005-05-22  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
63870         Also include <sys/param.h> if it defines MIN, MAX.
63871         Based on a patch by Derek Price <derek@ximbiot.com>.
63872
63873 2005-05-21  Jim Meyering  <jim@meyering.net>
63874
63875         * modules/fts (Files): Add m4/inttypes-pri.m4.
63876         (Depends-on): Add lstat and remove gettext.  Alphabetize.
63877
63878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63879
63880         New fts module.
63881         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
63882         (setup_dir, free_dir): New functions.
63883         (enter_dir, leave_dir): Define trivial
63884         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
63885         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
63886         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
63887         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
63888         Move to fts-cycle.c.
63889         (fts_open): Use setup_dir.
63890         (fts_close): Use free_dir.
63891         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
63892         This adds a label and some gotos, but the alternatives were messier.
63893         Check for memory allocation failure when entering a dir.
63894         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
63895         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
63896         (FTS): New member fts_cycle, that is a union that contains the
63897         old active_dir_ht and cycle_state.  All uses changed to mention
63898         fts_cycle.ht and fts_cycle.state.
63899         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
63900         fts.c, with the following changes:
63901         (setup_dir, free_dir): New functions.
63902         (enter_dir): Now returns bool.  Return true if successful, false
63903         if memory exhausted.  All callers changed.
63904         Do not bother partly cleaning up on
63905         memory allocation failure; that is free_dir's job.
63906         However, free ad if hash_insert fails, to avoid memory leak.
63907         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
63908         fts->fts_options to see which union member to use.
63909
63910 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63911
63912         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
63913         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
63914
63915 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63916
63917         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
63918
63919 2005-05-20  Jim Meyering  <jim@meyering.net>
63920
63921         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
63922         Now a macro, to pacify GCC.
63923
63924 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63925
63926         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
63927         of -1.
63928
63929 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63930
63931         * lib/chown.c (rpl_chown): Return -1 on failure.
63932
63933 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
63936         Don't check for stddef.h.
63937         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
63938         don't use its results.
63939         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
63940         since we include them unconditionally.  Don't require
63941         AM_STDBOOL_H, since stdbool is a prerequisite.
63942         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
63943         since we assume C89 or better.
63944         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
63945         as we don't use their results.
63946         Don't check for fchdir, memmove, memset, strrchr, as we use
63947         them unconditionally.
63948         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
63949         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
63950
63951 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63952
63953         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
63954         Include <stddef.h> unconditionally, since we assume C89 now.
63955         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
63956         * lib/fts.c: Include fts_.h first, to check interface.
63957         Do not include intprops.h; no longer needed.
63958         Include cycle-check.h and hash.h, since fts_.h no longer does.
63959         Remove unnecessary casts of closedir to void.
63960         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
63961         decide whether to decrement nlinks.
63962         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
63963         (FTS): Use struct hash_table * instead of Hash_table, so that
63964         we no longer need to include hash.h here.
63965
63966 2005-05-18  Jim Meyering  <jim@meyering.net>
63967
63968         * modules/dirfd (License): Change to LGPL.  Most of the code
63969         is already in the public domain.
63970
63971 2005-05-18  Jim Meyering  <jim@meyering.net>
63972
63973         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
63974         Reported by Yoann Vandoorselaere.
63975
63976 2005-05-17  Jim Meyering  <jim@meyering.net>
63977
63978         * m4/fts.m4: New file, from coreutils.
63979
63980 2005-05-17  Jim Meyering  <jim@meyering.net>
63981
63982         * lib/fts.c, lib/fts_.h: New files, from coreutils.
63983
63984 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63985
63986         Sync from coreutils.
63987         * m4/unlinkdir.m4: New file.
63988
63989 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         Sync from coreutils.
63992         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
63993         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
63994         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
63995         White space changes only.
63996         * lib/makepath.c (make_path): Port to hosts where leading "//" is
63997         special.
63998         * lib/yesno.c: Include getline.h, not ctype.h.
63999         (yesno): Don't remove leading white space; POSIX doesn't allow it.
64000         Use getline to remove arbitrary restriction on response length.
64001
64002 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64003
64004         * config/srclist-update: Spell out "Street" in FSF postal
64005         mail address; this is the style the FSF seems to prefer.
64006
64007         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
64008         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
64009         this updates FSF postal mail address.
64010
64011         Sync from coreutils.
64012         * modules/unlinkdir: New file.
64013         * modules/yesno (Depends-on): Add getline.
64014         * MODULES.html.sh (File system functions): Add unlinkdir.
64015
64016 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
64019         lib/strsep.h:
64020         Change the initial comment to refer to GPL, not LGPL.
64021         gnulib-tool will change it to LGPL as needed.
64022
64023         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
64024         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
64025         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
64026         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
64027         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
64028         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
64029         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
64030         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
64031         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
64032         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
64033         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
64034         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
64035         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
64036         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
64037         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
64038         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
64039         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
64040         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
64041         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
64042         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
64043         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
64044         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
64045         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
64046         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
64047         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
64048         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
64049         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
64050         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
64051         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
64052         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
64053         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
64054         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
64055         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
64056         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
64057         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
64058         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
64059         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
64060         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
64061         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
64062         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
64063         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
64064         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
64065         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
64066         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
64067         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
64068         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
64069         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
64070         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
64071         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
64072         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
64073         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64074         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
64075         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
64076         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
64077         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
64078         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
64079         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
64080         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
64081         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
64082         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
64083         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
64084         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
64085         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
64086         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
64087         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
64088         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
64089         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
64090         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
64091         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
64092         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
64093         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
64094         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
64095         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
64096         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
64097         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
64098         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
64099         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
64100         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
64101         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
64102         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
64103         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
64104         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
64105         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
64106         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
64107         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
64108         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
64109         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
64110         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
64111         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
64112         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
64113         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
64114         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
64115         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
64116         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
64117         lib/yesno.c, lib/yesno.h:
64118         Update FSF postal mail address.
64119
64120 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
64123         tests/test-memmem.c, tests/test-stpncpy.c:
64124         Update FSF postal mail address.
64125
64126 2005-05-13  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
64129         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
64130         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
64131         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
64132         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
64133         Add support for 64-bit integers in the MSVC compiler.
64134
64135 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64136
64137         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
64138
64139 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
64140
64141         * gnulib-tool (func_import): Sort and uniquify recommended includes.
64142
64143 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         * doc/getdate.texi (General date syntax): Don't say that date
64146         date --iso-8601=ns generates acceptable dates; it doesn't yet.
64147         Problem reported by Nic Ferrier.
64148
64149 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64150
64151         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
64152         specified in ai_socktype. Fix invalid ai_protocol
64153         check. ai_protocol is usually set to 0 or depending on
64154         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
64155         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
64156         ai_socktype / ai_protocol in the returned addrinfo structure.
64157
64158 2005-05-10  Simon Josefsson  <jas@extundo.com>
64159
64160         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
64161         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64162
64163 2005-05-10  Karl Berry  <karl@gnu.org>
64164
64165         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
64166         (from http://www.gnu.org/licenses).
64167         * doc/COPYING.LIB: also rename to COPYING.LESSER.
64168         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
64169         fdl.texi suffices.
64170
64171 2005-05-10  Karl Berry  <karl@gnu.org>
64172
64173         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
64174         (COPYING.DOC): remove.
64175
64176         * config/srclist-update: new FSF address.
64177
64178 2005-05-10  Derek Price  <derek@ximbiot.com>
64179
64180         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
64181         possible.
64182
64183 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64184             Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/inet_ntop: New file.
64187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64188         inet_ntop.
64189
64190 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64191             Bruno Haible  <bruno@clisp.org>
64192
64193         * m4/inet_ntop.m4: New file.
64194
64195 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64196             Bruno Haible  <bruno@clisp.org>
64197
64198         * lib/inet_ntop.h: New file.
64199         * lib/inet_ntop.c: New file, from glibc with modifications.
64200
64201 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
64202
64203         * modules/time_r (License): Change to LGPL.
64204         * modules/extensions (License): Change to LGPL.  Actually,
64205         the license is more permissive than that, but currently gnulib-tool
64206         doesn't know how to handle more-permissive licenses.
64207
64208         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
64209         Problem reported by Dave Love.
64210
64211 2005-05-08  Jim Meyering  <jim@meyering.net>
64212
64213         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
64214         blank.
64215
64216 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * modules/argmatch (Depends-on): Add stdbool.
64219         * modules/backupfile (Depends-on): Likewise.
64220         * modules/chdir-long (Depends-on): Likewise.
64221         * modules/closeout (Depends-on): Likewise.
64222         * modules/cycle-check (Depends-on): Likewise.
64223         * modules/dirname (Depends-on): Likewise.
64224         * modules/fnmatch (Depends-on): Likewise.
64225         * modules/fsusage (Depends-on): Likewise.
64226         * modules/fwriteerror (Depends-on): Likewise.
64227         * modules/getcwd (Depends-on): Likewise.
64228         * modules/getloadavg (Depends-on): Likewise.
64229         * modules/hard-locale (Depends-on): Likewise.
64230         * modules/makepath (Depends-on): Likewise.
64231         * modules/mountlist (Depends-on): Likewise.
64232         * modules/nanosleep (Depends-on): Likewise.
64233         * modules/posixtm (Depends-on): Likewise.
64234         * modules/quotearg (Depends-on): Likewise.
64235         * modules/readtokens (Depends-on): Likewise.
64236         * modules/readtokens0 (Depends-on): Likewise.
64237         * modules/readutmp (Depends-on): Likewise.
64238         * modules/save-cwd (Depends-on): Likewise.
64239         * modules/strftime (Depends-on): Likewise.
64240         * modules/userspec (Depends-on): Likewise.
64241         * modules/utimecmp (Depends-on): Likewise.
64242         * modules/xgetcwd (Depends-on): Likewise.
64243         * modules/xnanosleep (Depends-on): Likewise.
64244         * modules/xstrtod (Depends-on): Likewise.
64245         * modules/yesno (Depends-on): Likewise.
64246
64247 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
64250         needless checks.
64251
64252 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         Merge from coreutils.  Among other things,
64255         add bulletproofing for cases where stdin, stdout, or stderr are closed.
64256         * lib/fd-safer.c: New file.
64257         * lib/fcntl-safer.h, open-safer.c: Remove.
64258         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
64259         * lib/dup-safer.c: Include unistd-safer.h first.
64260         Don't include errno.h.
64261         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
64262         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
64263         * lib/file-type.c: Rely on file-type.h change.
64264         * lib/getloadavg.c: Include unistd-safer.h.
64265         (getloadavg): Use safer open.
64266         * lib/getusershell.c: Include "stdio-safer.h".
64267         (getusershell): Use safer fopen.
64268         * lib/long-options.c (long_options): Use NULL rather than 0.
64269         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
64270         'free'.
64271         * lib/modechange.c: Likewise.
64272         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
64273         (MODE_DONE): New constant.
64274         (struct mode_change): Remove 'next' member.
64275         (make_node_op_equals): New function; like the old one of the
64276         same name, except it allocates an array.
64277         (mode_compile, mode_create_from_ref): Use it.
64278         (mode_compile): Allocate result as an array, not a linked list.
64279         Parse octal string ourself, so that we catch mistakes like "+0".
64280         (mode_adjust): Arg is an array, not a linked list.
64281         * lib/modechange.c: Include stat-macros.h, xalloc.h.
64282         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
64283         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
64284         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
64285         Remove.  This is now stat-macros.h's job.
64286         (talloc): Remove.  All callers replaced by xalloc, so that
64287         our invokers don't have to worry about reporting memory failures.
64288         (make_node_op_equals): Remove.
64289         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64290         New constants.
64291         (struct mode_change): Moved here from modechange.h.
64292         (mode_append_entry): Remove.
64293         (mode_compile): Remove MASKED_OPS arg, since it encouraged
64294         apps to have incorrect behavior.  Use simpler algorithm for head
64295         and tail.  Don't futz with umask; that's now the job of mode_adjust.
64296         Detect more invalid usages rather than having somewhat-random behavior.
64297         Don't insert an "a=" action, as that leads to incorrect behavior.
64298         (mode_compile, mode_create_from_ref): Return NULL on error instead
64299         of an enum, since now there's only one way to have an error.  All
64300         callers changed.
64301         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
64302         at the correct time.  Simplify calculation of "+u" and its ilk.
64303         Don't mishandle "+X".
64304         (mode_free): Remove "register" and localize decls.
64305         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
64306         (struct mode_change): Move to modechange.c; callers don't
64307         need to see this stuff.
64308         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
64309         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
64310         (mode_change, mode_adjust): Reflect the new signatures noted above.
64311         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
64312         that might redefine system include files.
64313         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
64314         (my_usleep): Use NULL rather than (void *) 0.
64315         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
64316         Use siginterrupt to specify that system calls should be interrupted.
64317         (rpl_nanosleep): Move initialization of suspended closer to call of
64318         my_usleep.
64319         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
64320         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
64321         (desirable_utmp_entry): New function.
64322         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
64323         using x2nrealloc, to simplify logic.
64324         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
64325         size calculation.  Do not assume utmp file is a regular file.
64326         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
64327         (READ_UTMP_CHECK_PIDS): New constant.
64328         * lib/save-cwd.c: Include unistd-safer.h.
64329         (save_cwd): Use fd_safer.
64330         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
64331         [!_LIBC] Include "stat-macros.h" instead.
64332         * lib/unistd-safer.h (fd_safer): New decl.
64333
64334 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64335
64336         * modules/getloadavg (Depends-on): Add unistd-safer.
64337         * modules/getusershell (Depends-on): Add stdio-safer.
64338         * modules/lstat (Depends-on): Remove xalloc.
64339         * modules/mkstemp (Depends-on): Add stat-macros.
64340         * modules/modechange (Depends-on): Remove xstrtol.
64341         Add stat-macros, xalloc.
64342         * modules/save-cwd (Depends-on): Add unistd-safer.
64343         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
64344         * modules/unistd-safer (Files): Add lib/fd-safer.c
64345         (Makefile.am): Remove lib_SOURCES.
64346
64347         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
64348         Remove fcntl-safer; unistd-safer supersedes it.
64349
64350 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
64353         AC_HEADER_STAT.
64354         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
64355         (gl_PREREQ_CHOWN): Remove.
64356         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
64357         it.  Don't require AC_HEADER_STAT.
64358         (gl_PREREQ_LSTAT): Remove.
64359         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
64360         Don't require AC_HEADER_STAT.
64361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
64362         (gl_PREREQ_RMDIR): Remove.
64363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
64364         mention stat-macros.h or AC_HEADER_STAT, since we'll make
64365         the stat-macros module a prerequisite.
64366         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
64367         * m4/filemode.m4 (gl_FILEMODE): Likewise.
64368         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
64369         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
64370         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
64371         variable names.
64372         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
64373         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
64374         variable prefixes.
64375         * m4/fcntl-safer.m4: Remove.
64376         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
64377         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
64378         Invoke gl_PREREQ_FD_SAFER.
64379         (gl_PREREQ_FD_SAFER): New macro.
64380         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
64381         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
64382         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
64383         Remove duplicate call to AC_LIBOBJ(readutmp).
64384         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
64385
64386         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
64387         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
64388
64389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         * MODULES.html.sh (Misc): Add byteswap.
64392
64393 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64394
64395         * modules/getcwd (Depends-on): Add extensions.
64396         * modules/openat (Depends-on): Likewise.
64397
64398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64399
64400         * modules/byteswap: New file.
64401
64402 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64403
64404         * m4/byteswap.m4: New file.
64405
64406 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
64407
64408         * lib/byteswap_.h: New file.
64409
64410 2005-04-25  Karl Berry  <karl@gnu.org>
64411
64412         * m4/gettext.m4: Update from GNU gettext 0.14.4.
64413
64414 2005-04-25  Albert Chin  <china@thewrittenword.com>
64415
64416         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
64417         Toolkit C bug.
64418
64419 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
64420
64421         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
64422         (func_ln_if_changed) Remove forcibly for no error message
64423         in case file does not exist.
64424
64425 2005-04-19  Simon Josefsson  <jas@extundo.com>
64426
64427         * gnulib-tool (Options): Make --symlink mean --symbolic.
64428
64429 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
64430
64431         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
64432
64433 2005-04-16  Simon Josefsson  <jas@extundo.com>
64434
64435         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
64436
64437 2005-04-15  Simon Josefsson  <jas@extundo.com>
64438
64439         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
64440
64441 2005-04-15  Simon Josefsson  <jas@extundo.com>
64442
64443         * gnulib-tool: Rename --symlink to --symbolic.
64444
64445 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
64446
64447         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
64448         symbolic links to files instead of copying/moving.  Add --aux-dir,
64449         specifying directory relative --dir where auxiliary build tools
64450         are placed.
64451
64452 2005-04-14  Bruno Haible  <bruno@clisp.org>
64453
64454         * modules/allocsa (License): Change to LGPL.
64455         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
64456
64457 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64458
64459         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
64460         that "UTC +1 second" continues to work.  Problem reported
64461         by Dmitry V. Levin.
64462         (relunit_snumber): New rule.
64463         (relunit): Use it.
64464
64465 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64466
64467         * lib/getdate.y (universal_time_zone_table): New constant.
64468         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
64469         universal_time_zone_table.
64470         (lookup_zone): Prefer universal_time_zone_table to
64471         local_time_zone_table, so that "GMT" time stamps are allowed in
64472         London during the summer.  Problem reported by Ian Abbott.
64473
64474 2005-04-12  Jim Meyering  <jim@meyering.net>
64475
64476         * lib/human.c (humblock): Set *options even when returning due to
64477         xstrtoumax conversion failure.  Thanks to a used-uninitialized
64478         warning from gcc-4.
64479
64480 2005-04-09  Jim Meyering  <jim@meyering.net>
64481
64482         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
64483         -Wuninitialized: initialize tm0.tm_year.
64484
64485 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
64488         count, since there's no maximum.  All uses changed.
64489         Add member dsts_seen.
64490         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
64491         not being INT_MAX.
64492         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
64493         Use pc_rels_seen to decide whther a date is absolute.
64494
64495         * lib/getdate.y (number): Don't overwrite year.
64496         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
64497         check.
64498
64499 2005-04-02  Simon Josefsson  <jas@extundo.com>
64500
64501         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
64502         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
64503
64504 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
64505
64506         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
64507         where no absolute path name can be longer than PATH_MAX.
64508
64509 2005-03-27  Jim Meyering  <jim@meyering.net>
64510
64511         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
64512
64513 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
64516         "one's complement" -> "ones' complement" in comment, as per Knuth.
64517         "value of type" -> "type or expression" in comment.
64518         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
64519
64520 2005-03-26  Jim Meyering  <jim@meyering.net>
64521
64522         Comment nits.
64523         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
64524         Correct typos: s/or/of/.
64525
64526 2005-03-26  Jim Meyering  <jim@meyering.net>
64527
64528         * modules/check-include-files: Move to ../ and rename to...
64529         * check-module: ...this.
64530
64531 2005-03-25  Jim Meyering  <jim@meyering.net>
64532
64533         * modules/xvasprintf (Files): Add xalloc.h.
64534
64535 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64536
64537         * modules/gettext (Files): config/config.rpath ->
64538         build-aux/config.rpath
64539         * modules/iconv (Files): Likewise.
64540         Problem reported by Oskar Liljeblad.
64541
64542 2005-03-23  Jim Meyering  <jim@meyering.net>
64543
64544         * modules/check-include-files: New script to check for
64545         missing dependencies, multiple includes, etc.
64546
64547         * modules/c-strtold (Depends-on): Add xalloc.
64548         * modules/c-strtod (Depends-on): Add xalloc.
64549         * modules/hash (Depends-on): Add xalloc.
64550         (Files): Remove lib/xalloc.h.
64551
64552         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
64553         * modules/userspec (Files): Add lib/inttostr.h.
64554
64555 2005-03-23  Jim Meyering  <jim@meyering.net>
64556
64557         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
64558
64559 2005-03-22  Jim Meyering  <jim@meyering.net>
64560
64561         * modules/stat-macros: New module.
64562         * modules/canonicalize, modules/euidaccess, modules/file-type,
64563         * modules/filemode, modules/lchown, modules/makepath,
64564         * modules/rmdir, modules/stat: Depend on new stat-macros module
64565         rather than listing lib/stat-macros.h manually.
64566         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
64567
64568 2005-03-22  Jim Meyering  <jim@meyering.net>
64569
64570         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
64571
64572 2005-03-22  Bruno Haible  <bruno@clisp.org>
64573
64574         * config/srclist.txt: Replace target directory 'config' with
64575         'build-aux'.
64576         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
64577         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
64578         ../build-aux/.
64579
64580 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
64581
64582         * modules/chdir-long (Depends-on): Add mempcpy.
64583
64584         * modules/acl, modules/backupfile, modules/c-strtod,
64585         modules/c-strtold, modules/canon-host, modules/canonicalize,
64586         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
64587         modules/exclude, modules/exitfail, modules/file-type,
64588         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
64589         modules/getdate, modules/getline, modules/getpagesize,
64590         modules/getpass, modules/getugroups, modules/group-member,
64591         modules/hard-locale, modules/hash, modules/human, modules/idcache,
64592         modules/inttostr, modules/long-options, modules/makepath,
64593         modules/md5, modules/memcasecmp, modules/memcoll,
64594         modules/modechange, modules/mountlist, modules/path-concat,
64595         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
64596         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
64597         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
64598         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
64599         modules/strftime, modules/strndup, modules/strverscmp,
64600         modules/timespec, modules/unlocked-io, modules/userspec,
64601         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
64602         modules/yesno:
64603         Remove lib_SOURCES line from Makefile.am section, as this is now
64604         done automatically by the corresponding Autoconf macro.
64605
64606 2005-03-21  Jim Meyering  <jim@meyering.net>
64607
64608         Changes imported from coreutils.
64609
64610         * lib/cycle-check.c: Don't include xalloc.h.
64611
64612         * lib/path-concat.c: Don't include assert.h.
64613         (path_concat): Remove assertion that would have triggered
64614         for ABASE starting with more than one slash.
64615         Reported by Andreas Schwab.
64616
64617         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
64618         properly when ABASE is an absolute file name.
64619         Correct the description of this function.
64620         Include <assert.h>.
64621         Add an assertion and a test driver.
64622         This fixes a bug introduced on 2004-07-02.
64623         Andreas Schwab reported the resulting failure of cp --parents:
64624         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
64625
64626 2005-03-21  Jim Meyering  <jim@meyering.net>
64627
64628         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
64629         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
64630
64631 2005-03-21  Jim Meyering  <jim@meyering.net>
64632         and  Paul Eggert  <eggert@cs.ucla.edu>
64633
64634         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
64635         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
64636         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
64637         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
64638         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
64639         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
64640         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
64641         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
64642         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
64643         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
64644         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
64645         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
64646         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
64647         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
64648         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
64649         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
64650         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
64651         for these modules.
64652
64653 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
64656         (which shouldn't happen), generate nothing instead of returning 0
64657         immediately, so that nstrftime (NULL, ...) doesn't return 0.
64658
64659 2005-03-16  Bruno Haible  <bruno@clisp.org>
64660
64661         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
64662         HAVE_LONGLONG_64BIT.
64663
64664 2005-03-16  Bruno Haible  <bruno@clisp.org>
64665
64666         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
64667         HAVE_LONGLONG_64BIT.
64668
64669 2005-03-16  Bruno Haible  <bruno@clisp.org>
64670
64671         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
64672         HAVE_LONGLONG_64BIT.
64673
64674 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * lib/strftime.c (my_strftime): Prepend space to format so that we can
64677         reliably distinguish strftime failure from empty output on POSIX
64678         hosts.
64679
64680 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
64681
64682         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
64683         (iconv_string): Don't guess a size-zero buffer, as that might cause
64684         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
64685         result would be 'too large', where 'too large' is (heuristically)
64686         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
64687         overflow concerns.  This will prevent some unwanted malloc failures
64688         when the inputs are very large.
64689
64690 2005-03-15  Karl Berry  <karl@gnu.org>
64691
64692         * config/srclist.txt (config.rpath): from gettext.
64693         * config/config.rpath: update.
64694
64695 2005-03-15  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
64698         to 'negate'.
64699
64700         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
64701         variable.
64702
64703         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
64704         results.
64705
64706 2005-03-14  Simon Josefsson  <jas@extundo.com>
64707
64708         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
64709         <fx@gnu.org>.
64710
64711 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
64714         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
64715         intprops.h.
64716         * lib/strtol.c: Likewise.
64717
64718 2005-03-14  Jim Meyering  <jim@meyering.net>
64719
64720         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
64721         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
64722         to be nonzero so that we (and caller) can detect the difference
64723         between a valid zero-length expansion and an error return, even
64724         when the underlying strftime fails before writing anything into
64725         that location.
64726
64727 2005-03-14  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
64730         Update from GNU gettext 0.14.3.
64731
64732 2005-03-10  Jim Meyering  <jim@meyering.net>
64733
64734         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
64735
64736 2005-03-10  Jim Meyering  <jim@meyering.net>
64737
64738         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
64739         so that this module works on systems without fchdir.
64740
64741 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         Factor int-properties macros into a single file, except for
64744         glibc-related files.
64745         * lib/intprops.h: New file.
64746         * lib/getloadavg.c: Include it instead of limits.h.
64747         (INT_STRLEN_BOUND): Remove.
64748         * lib/human.c: Include intprops.h.
64749         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
64750         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
64751         302/1000.
64752         * lib/inttostr.h: Include intprops.h instead of limits.h.
64753         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
64754         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
64755         for consistency with intprops.h.
64756         (time_t_is_integer, twos_complement_arithmetic): Use them.
64757         * lib/sig2str.h: Include <signal.h>, intprops.h.
64758         (INT_STRLEN_BOUND): Remove.
64759         * lib/strftime.c (TYPE_SIGNED): Remove.
64760         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
64761         * lib/strtol.c: Adjust comments to match intprops.h.
64762         * lib/userspec.c: Include intprops.h.
64763         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
64764         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
64765         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
64766         instead of rolling our own expressions.
64767         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
64768
64769         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
64770         instead of int.
64771         (my_strftime): Do not mishandle years close to INT_MAX, by doing
64772         the right thing even if adding 1900 would overflow.  Similarly
64773         for tm_mon + 1 and tm_yday + 1.
64774         Make %Y always equivalent to %C%y, and similarly for %G and %g.
64775         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
64776         (DO_SIGNED_NUMBER): New macro.
64777         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
64778
64779 2005-03-07  Bruno Haible  <bruno@clisp.org>
64780
64781         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
64782
64783 2005-03-07  Bruno Haible  <bruno@clisp.org>
64784
64785         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
64786
64787 2005-03-04  Derek R. Price  <derek@ximbiot.com>
64788
64789         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
64790         (func_import): Only replace files via --import when they have actually
64791         changed.
64792
64793 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64794
64795         * m4/mmap-anon.m4: New file.
64796         * m4/pagealign_alloc.m4: New file.
64797
64798 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64799             Bruno Haible  <bruno@clisp.org>
64800
64801         * modules/pagealign_alloc: New file.
64802         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
64803
64804 2005-03-03  Derek R. Price  <derek@ximbiot.com>
64805             Bruno Haible  <bruno@clisp.org>
64806
64807         * lib/pagealign_alloc.h: New file.
64808         * lib/pagealign_alloc.c: New file.
64809
64810 2005-03-03  Bruno Haible  <bruno@clisp.org>
64811
64812         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
64813         Use an all-permissive copyright notice, recommended by RMS.
64814
64815 2005-03-02  Bruno Haible  <bruno@clisp.org>
64816
64817         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
64818         of AIX, the replacement has to be done only after <string.h> is
64819         included, therefore not in config.h. stpncpy.h does the replacement,
64820         and stpncpy.c uses it.
64821
64822 2005-03-02  Bruno Haible  <bruno@clisp.org>
64823
64824         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
64825         stpncpy.c uses it.
64826
64827 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
64830         The workaround isn't strictly needed for POSIX conformance, and
64831         it's too much of a pain to configure and maintain.  We'll ask
64832         people to fix their kernels instead.
64833         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
64834         (NANOSLEEP_BUG_WORKAROUND): Remove.
64835         (xnanosleep): Remove the workaround.
64836
64837 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64838
64839         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
64840         Reported by Derek Price.
64841         (Include): Add "timespec.h".
64842
64843         * modules/xnanosleep (Depends-on): Remove gethrxtime.
64844
64845 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64846
64847         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
64848         to detect nanosleep bug.
64849
64850 2005-03-01  Bruno Haible  <bruno@clisp.org>
64851
64852         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
64853
64854 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * modules/gethrxtime: New file.
64857         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
64858         (Depends-on): Add gethrxtime.
64859         (configure.ac): Add gl_XNANOSLEEP.
64860         (Makefile.am): Remove lib_SOURCES line.
64861
64862 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
64865         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
64866
64867 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64868
64869         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
64870         * lib/timespec.h (gettime): Return void, since it always
64871         succeeds now.  All uses changed.
64872         * lib/gettime.c (gettime) Likewise.
64873         [HAVE_NANOTIME]: Prefer nanotime.
64874         Assume gettimeofday succeeds, as POSIX requires.
64875         Assime time () succeeds, since other code already does.
64876         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
64877         (timespec_subtract): Remove.
64878         (NANOSLEEP_BUG_WORKAROUND): New constant.
64879         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
64880         things considerably.  Use it only on GNU/Linux hosts, since the
64881         workaround shouldn't be needed elsewhere.
64882
64883 2005-02-24  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/gettext (Files): Add m4/glibc2.m4.
64886
64887 2005-02-24  Bruno Haible  <bruno@clisp.org>
64888
64889         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
64890         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
64891         * m4/progtest.m4:
64892         Update from GNU gettext 0.14.2.
64893         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
64894
64895 2005-02-24  Bruno Haible  <bruno@clisp.org>
64896
64897         * lib/localcharset.c: Update from GNU gettext 0.14.2.
64898         * lib/config.charset: Update from GNU gettext 0.14.2.
64899
64900 2005-02-24  Bruno Haible  <bruno@clisp.org>
64901
64902         * lib/gettext.h: Update from GNU gettext 0.14.2.
64903
64904 2005-02-23  Simon Josefsson  <jas@extundo.com>
64905
64906         * m4/iconvme.m4: New file.
64907
64908 2005-02-23  Jim Meyering  <jim@meyering.net>
64909
64910         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
64911         change.
64912         Thanks to Bruno Haible for catching it.
64913
64914 2005-02-22  Simon Josefsson  <jas@extundo.com>
64915
64916         * modules/iconvme: New file.
64917
64918         * MODULES.html.sh: Add iconvme.
64919
64920 2005-02-22  Simon Josefsson  <jas@extundo.com>
64921
64922         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
64923
64924 2005-02-22  Simon Josefsson  <jas@extundo.com>
64925
64926         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
64927
64928 2005-02-22  Jim Meyering  <jim@meyering.net>
64929
64930         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
64931         s/ifndef/ifdef/.
64932
64933 2005-02-20  Neil Conway  <neilc@samurai.com>
64934
64935         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
64936         returned by OSX/Darwin if the specified buffer is not large
64937         enough for the hostname.
64938
64939 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64940
64941         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
64942         pass it to _help, otherwise the latter coredumps trying to
64943         dereference state.root_argp.
64944
64945 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * modules/chdir-long (Depends-on): Add memrchr.
64948         * modules/memrchr (Files): Add lib/memrchr.h.
64949         (Include): "memrchr.h".
64950
64951 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
64954
64955 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * lib/memrchr.h: New file.
64958         * lib/chdir-long.c: Include it.
64959         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
64960         Don't bother including stddef.h.
64961
64962 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
64965         inclusion.
64966         Include <sys/types.h>, for dev_t.
64967         (ME_DUMMY, ME_REMOTE): Move from here....
64968         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
64969         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
64970         Dmitry V. Levin.
64971         Include mountlist.h first, to test the interface.
64972
64973 2005-01-29  Bruno Haible  <bruno@clisp.org>
64974
64975         * lib/progname.c (program_name): Initialize.
64976         Needed when linking statically on MacOS X.
64977
64978 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         Sync from coreutils.
64981         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
64982         (Depends-on): Add c-strtod.
64983         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
64984
64985 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64986
64987         Sync from coreutils.
64988         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
64989
64990         Remove files that are specific to coreutils.
64991         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
64992
64993 2005-01-28  Bruno Haible  <bruno@clisp.org>
64994
64995         * modules/javacomp: New file.
64996         * MODULES.html.sh (Java): Add javacomp.
64997
64998 2005-01-28  Bruno Haible  <bruno@clisp.org>
64999
65000         * m4/javacomp.m4: New file, from GNU gettext.
65001
65002 2005-01-28  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/javacomp.sh.in: New file, from GNU gettext.
65005         * lib/javacomp.h: New file, from GNU gettext.
65006         * lib/javacomp.c: New file, from GNU gettext.
65007
65008 2005-01-26  Simon Josefsson  <jas@extundo.com>
65009
65010         * lib/gai_strerror.c: Use GPL in header.
65011
65012 2005-01-26  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/javaexec: New file.
65015         * MODULES.html.sh (Java): Add javaexec.
65016
65017 2005-01-26  Bruno Haible  <bruno@clisp.org>
65018
65019         * m4/javaexec.m4: New file, from GNU gettext.
65020
65021 2005-01-26  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/javaexec.sh.in: New file, from GNU gettext.
65024         * lib/javaexec.h: New file, from GNU gettext.
65025         * lib/javaexec.c: New file, from GNU gettext.
65026
65027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65028
65029         * modules/lchown (Depends-on): Remove lchown.h
65030
65031 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65032
65033         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
65034         must be defined if the header file was not found, in order
65035         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
65036
65037 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65038
65039         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
65040         initializers for struct pentry_state.
65041         (__argp_error): Check return value of __asprintf
65042         (__argp_failure): Translate error message
65043
65044         * lib/argp-parse.c: Removed braces around the expansion of N_()
65045
65046 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65047
65048         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
65049         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
65050         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
65051         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
65052         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
65053         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
65054         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
65055         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
65056         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
65057         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
65058         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
65059         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
65060         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
65061         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
65062         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
65063         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
65064         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
65065         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
65066         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
65067         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
65068         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
65069         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
65070         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
65071         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
65072         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
65073         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
65074         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
65075         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
65076         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
65077         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
65078         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
65079         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
65080         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
65081         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
65082         xstrtol.m4, xstrtoumax.m4, yesno.m4:
65083         Use an all-permissive copyright notice, recommended by RMS.
65084
65085 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * modules/chdir-long (Depends-on): Remove mempcpy.
65088
65089 2005-01-21  Jim Meyering  <jim@meyering.net>
65090
65091         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
65092         same value as for Solaris 9.
65093
65094         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
65095         component length.  This included changing the parameter to be
65096         of type `char *' rather than `char const *'.
65097         * lib/chdir-long.h (chdir_long): Update prototype.
65098
65099         * lib/openat.c (fdopendir, fstatat): New functions.
65100         * lib/openat.h: Include headers required for use of DIR and struct
65101         stat.
65102         [AT_SYMLINK_NOFOLLOW]: Define.
65103         (fdopendir, fstatat): Add prototypes.
65104
65105 2005-01-21  Bruno Haible  <bruno@clisp.org>
65106
65107         * modules/classpath: New file.
65108         * MODULES.html.sh (Java): Add classpath.
65109
65110 2005-01-21  Bruno Haible  <bruno@clisp.org>
65111
65112         * lib/classpath.h: New file, from GNU gettext.
65113         * lib/classpath.c: New file, from GNU gettext.
65114
65115 2005-01-20  Simon Josefsson  <jas@extundo.com>
65116
65117         * modules/version-etc-fsf: New file.
65118
65119 2005-01-20  Simon Josefsson  <jas@extundo.com>
65120
65121         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
65122         * lib/version-etc.c: Remove version_etc_copyright.
65123         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
65124         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
65125
65126 2005-01-20  Simon Josefsson  <jas@extundo.com>
65127
65128         * lib/base64.h (isbase64): Add.
65129
65130         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
65131         using a unsigned prototype, don't inline.
65132         (base64_decode): Use it.
65133
65134 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
65137         it.
65138
65139 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65140
65141         * lib/save-cwd.c (save_cwd): Remove code to support the case
65142         where fchdir is missing or flaky.
65143
65144 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65145
65146         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
65147
65148 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65149
65150         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
65151         AC_LIBSOURCES now does this.
65152         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
65153         with new ullong_max module.
65154
65155 2005-01-19  Bruno Haible  <bruno@clisp.org>
65156
65157         * modules/sh-quote: New file.
65158         * MODULES.html.sh (Executing programs): Add sh-quote.
65159
65160 2005-01-19  Bruno Haible  <bruno@clisp.org>
65161
65162         * lib/sh-quote.h: New file, from GNU gettext.
65163         * lib/sh-quote.c: New file, from GNU gettext.
65164
65165 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         Merge from coreutils.
65168         * m4/ullong_max.m4: New file.
65169         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
65170         (gl_MACROS): Assume localeconv exists.
65171
65172 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         Merge changes from coreutils, as described below in several
65175         changelogs dated today.
65176
65177         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
65178         (O_DIRECTORY): Remove; not needed here, since "." must be
65179         a directory.  All uses removed.
65180         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
65181         universal on Suns, and we also need to test for IRIX.
65182         Revamp code to use 'if' rather than '#if'.
65183         Avoid unnecessary comparison of cwd->desc to 0.
65184
65185         * lib/utimens.c (futimens): Robustify the previous patch, by checking
65186         for known valid error numbers rather than observed invalid ones.
65187
65188 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * modules/ullong_max: New file.
65191
65192         * modules/chdir-long, modules/openat: New files.
65193         * modules/save-cwd (Depends-on): Depend on chdir-long.
65194         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
65195
65196 2005-01-18  Jim Meyering  <jim@meyering.net>
65197
65198         Merge from coreutils.
65199         * m4/chdir-long.m4, m4/openat.m4: New files.
65200         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
65201         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
65202         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
65203         is sane and DOES follow symlinks.  Besides, testing 20 different
65204         systems found no broken chown implementations.
65205         Prompted by a change in rsync's copy of this macro.
65206         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
65207
65208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
65209
65210         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
65211         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
65212         NULL-means-set-to-current-time semantics.
65213         Remove temporary file immediately, rather than waiting
65214         for configure's at-exit trap code to do it.
65215
65216 2005-01-18  Jim Meyering  <jim@meyering.net>
65217
65218         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65219
65220         * lib/utimens.c (futimens): Account for the fact that futimes
65221         can also fail with errno == ENOSYS or errno == ENOENT.
65222         Patch from Dmitry V. Levin.
65223
65224         Change the name of the robust chdir function from chdir to chdir_long.
65225         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
65226         (restore_cwd): Use chdir_long, not chdir.
65227         * lib/chdir-long.c: Renamed from chdir.c.
65228         * lib/chdir-long.h: Renamed from chdir.h.
65229         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
65230         Hurd.
65231
65232 2005-01-18  Bruno Haible  <bruno@clisp.org>
65233
65234         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
65235         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
65236         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
65237         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
65238         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
65239         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
65240         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
65241         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
65242         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
65243         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
65244         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
65245         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
65246         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
65247         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
65248         Use an all-permissive copyright notice, recommended by RMS.
65249
65250 2005-01-18  Bob Proulx  <bob@proulx.com>
65251
65252         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
65253         simplify offsetof() macro construct to avoid compile failure with
65254         native HP-UX 11.0 ANSI C compiler.
65255
65256 2005-01-17  Bruno Haible  <bruno@clisp.org>
65257
65258         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
65259         redundant because stpncpy.m4 takes care of it.
65260
65261 2005-01-17  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
65264
65265 2005-01-17  Bruno Haible  <bruno@clisp.org>
65266
65267         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
65268         used.
65269
65270 2005-01-17  Bruno Haible  <bruno@clisp.org>
65271
65272         * lib/fwriteerror.h (fwriteerror): Change specification to include
65273         fclose.
65274         * lib/fwriteerror.c: Include <stdbool.h>.
65275         (fwriteerror): At the end, close the file stream. Record whether
65276         stdout was already closed.
65277
65278 2005-01-17  Bruno Haible  <bruno@clisp.org>
65279
65280         * lib/execute.c (environ): Declare if needed.
65281         * lib/pipe.c (environ): Likewise.
65282         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
65283
65284 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65285
65286         * modules/argp: Depend on vsnprintf
65287
65288 2005-01-10  Jim Meyering  <jim@meyering.net>
65289
65290         * modules/closeout (Depends-on): Add atexit.
65291
65292 2005-01-06  Bruno Haible  <bruno@clisp.org>
65293
65294         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
65295
65296 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
65299         definitions to be after all include files, to avoid collisions.
65300         Problem reported by Bob Proulx.
65301
65302 2005-01-04  Jim Meyering  <jim@meyering.net>
65303
65304         Changes imported from coreutils.
65305         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
65306         as the mkstemp template, use a temporary directory and an
65307         8.3-friendly template to avoid trouble on systems like DJGPP.
65308         Reported by Juan M. Guerrero via Stepan Kasal.
65309         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
65310         close. Remove the temporary directory right away, rather than waiting
65311         for configure's at-exit trap code to do it.
65312         Suggestion from Stepan Kasal.
65313
65314 2005-01-01  Simon Josefsson  <jas@extundo.com>
65315
65316         * gnulib-tool: Print #include directives when --import'ing.
65317
65318 2004-12-28  Simon Josefsson  <jas@extundo.com>
65319
65320         * tests/test-base64.c: Include required header files.  Remove
65321         unused variables.
65322
65323 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * modules/error (Depends-on): Remove gettext.
65326
65327 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65328
65329         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
65330         not needed.  This removes a dependency on the gettext module.
65331         [defined _LIBC]: Do not include <libintl.h>; not needed.
65332
65333 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65334
65335         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
65336         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
65337
65338 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
65339
65340         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
65341         HAVE_DECL_STRTOLD.
65342
65343 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * modules/getdate (Depends-on): Remove alloca-opt.
65346
65347 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65348
65349         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
65350
65351 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * lib/argp-parse.c: Include <stddef.h>.
65354         (alignof, alignto): New macros.
65355         (parser_init): Don't assume that void * is aligned sufficiently
65356         for struct option.
65357
65358         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
65359         need to extend the stack.
65360         (YYINITDEPTH): New macro, so that the initial stack isn't overly
65361         large.
65362
65363 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65364
65365         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
65366
65367 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65368
65369         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
65370         (2004-10-24) change.  Apparently this was a false alarm.
65371
65372         * modules/getdate: Depend on alloca-opt, not alloca.
65373
65374 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
65377         Remove now-obsolete comment about AIX.
65378         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
65379         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
65380         (YYMAXDEPTH): New macro.
65381
65382 2004-12-18  Simon Josefsson  <jas@extundo.com>
65383
65384         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
65385
65386 2004-12-18  Bruno Haible  <bruno@clisp.org>
65387
65388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
65389
65390 2004-12-18  Bruno Haible  <bruno@clisp.org>
65391
65392         * lib/fatal-signal.c (fatal_signals): Make non-const.
65393         (init_fatal_signals): New function.
65394         (uninstall_handlers, install_handlers): Ignore signals that were set to
65395         SIG_IGN.
65396         (at_fatal_signal): Call init_fatal_signals.
65397         (init_fatal_signal_set): Likewise. Ignore signals that were set to
65398         SIG_IGN.
65399         Reported by Paul Eggert.
65400
65401 2004-12-18  Bruno Haible  <bruno@clisp.org>
65402
65403         * doc/alloca.texi: New file.
65404         * doc/alloca-opt.texi: New file.
65405
65406 2004-12-17  Jim Meyering  <jim@meyering.net>
65407
65408         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
65409         Otherwise, install-sh could exit with improper exit status when
65410         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
65411
65412 2004-12-16  Simon Josefsson  <jas@extundo.com>
65413
65414         * tests/test-base64.c: Add license.
65415
65416 2004-12-15  Stepan Kasal  <address@hidden>
65417
65418         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
65419
65420 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
65421
65422         * modules/getcwd (Files): Add m4/d-ino.m4.
65423         Suggested by Mark D. Baushke.
65424
65425 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/getdate.y (textint): New member "negative".
65428         (time_zone_hhmm): New function.
65429         Expect 14 shift-reduce conflicts, not 13.
65430         (o_colon_minutes): New rule.
65431         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
65432         (yylex): Set the "negative" member of signed numbers.
65433
65434 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * doc/getdate.texi (Time of day items, Time zone items):
65437         Describe new formats +00:00, UTC+00:00.
65438
65439 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
65442         spurious "-l"s.  Problem reported by Stepan Kasal.
65443
65444 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
65445
65446         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
65447         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
65448
65449 2004-12-04  Simon Josefsson  <jas@extundo.com>
65450
65451         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
65452         Vandoorselaere <yoann@prelude-ids.org>.
65453
65454 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         Changes imported from coreutils.
65457         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
65458         exist.
65459         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
65460
65461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         Changes imported from coreutils.
65464         * lib/hard-locale.c: Assume <locale.h> exists.
65465         Include "strdup.h".
65466         (GLIBC_VERSION): New macro.
65467         (hard_locale): Assume setlocale exists.
65468         Rewrite to avoid #ifdef.
65469         Use strdup rather than malloc + strcpy.
65470         * lib/human.c: Assume <locale.h> exists.
65471         (human_readable): Assume localeconv exists.
65472
65473 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
65474
65475         * modules/hard-locale (Depends-on): Add strdup.
65476
65477 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65478
65479         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
65480         convert T2, not T.  (Imported from libc.)
65481
65482 2004-11-30  Simon Josefsson  <jas@extundo.com>
65483
65484         * modules/restrict (License): Change to LGPL.
65485
65486 2004-11-30  Simon Josefsson  <jas@extundo.com>
65487
65488         * m4/restrict.m4: Add copyright and copying conditions.
65489
65490 2004-11-30  Simon Josefsson  <jas@extundo.com>
65491
65492         * m4/base64.m4: New file.
65493
65494 2004-11-30  Simon Josefsson  <jas@extundo.com>
65495
65496         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
65497         base64.
65498
65499         * tests/test-base64.c: New file.
65500
65501         * modules/base64: New file.
65502
65503 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
65506         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
65507
65508         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
65509
65510 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
65513         (__getcwd.c): Don't restore errno; glibc doesn't.
65514         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
65515         first, falling back to our code only if its results look suspicious.
65516         Ensure that the resulting buffer is only as large as necessary.
65517
65518         * lib/readutmp.c: Include readutmp.h first.
65519         Include <errno.h>, since readutmp.h no longer does that.
65520         * lib/readutmp.h: Don't include <errno.h>,
65521         <sys/param.h>, <time.h>; not needed to establish interface.
65522         (errno): Remove decl.
65523         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
65524         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
65525         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
65526
65527 2004-11-28  Simon Josefsson  <jas@extundo.com>
65528
65529         * lib/base64.h, base64.c: New file.
65530
65531 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
65534
65535 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
65538         (Depends-on): Remove pathmax, same.  Add mempcpy.
65539         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
65540         (Makefile.am): Append getcwd.h to lib_SOURCES.
65541         (Include): Add getcwd.h.
65542         (Maintainer): Change from Jim Meyering to "all, glibc",
65543         since getdate now uses intended-for-glibc code.
65544         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
65545         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
65546
65547 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
65550         HP's ANSI C compiler.
65551         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
65552         Declaring int functions causes warnings on some modern systems and
65553         shouldn't be needed to compile on ancient ones.
65554         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
65555         defined.
65556
65557         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
65558         with the following changes.
65559         (__set_errno): Parenthesize properly.
65560         Include <stdbool.h>.
65561         (MIN, MAX, MATCHING_INO): New macros.
65562         (__getcwd): Define with prototype, not K&R form.
65563         Use heuristics to allocate default buffer on stack if possible.
65564         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
65565         behavior, and to avoid the PATH_MAX limit when computing
65566         ../../../../...
65567         Use MATCHING_INO to compare inode number to file.
65568         Check for arithmetic overflow in size calculations.
65569         Fix bug in reallocation of dot array that caused getcwd to fail
65570         on directories nested deeper than 75.
65571         Be more careful about saving errno on error.
65572         Do not use realloc; use only free+malloc, as this is a bit
65573         more flexible and avoids a needless copy operation.
65574         Do not inspect st_dev and st_ino for symbolic links; POSIX
65575         doesn't specify the latter.
65576         Check for closedir errors.
65577         Avoid needless casts.
65578         Use "#ifdef weak_alias" around weak_alias, to be like other
65579         glibc code.
65580         The following changes to getcwd.c have effect only when used in
65581         gnulib; they have no effect inside glibc proper.
65582         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
65583         as alloca isn't used.
65584         (alloca, __alloca): Likewise.
65585         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
65586         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65587         unconditionally, as gnulib assumes C89 or better.
65588         Do not include <sys/param.h>.
65589         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
65590         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
65591         better.
65592         (NULL) [!defined NULL]: Remove; we assume C89 or better.
65593         Include <dirent.h> in a way that is compatible with modern Autoconf.
65594         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
65595         New macros, if not already defined.
65596         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
65597         Use "_LIBC", not "defined _LIBC", for consistency.
65598         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
65599         a mempcpy module.
65600         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
65601         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
65602         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
65603         credit only to Jim Meyering and adjust the copyright dates.
65604         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
65605         <stdlib.h>, <unistd.h>, "pathmax.h".
65606         Instead, include "xgetcwd.h" (first) and "getcwd.h".
65607         (INITIAL_BUFFER_SIZE): Remove.
65608         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
65609
65610 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65611
65612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
65613         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
65614         Use the _ONCE methods, for efficiency.
65615         Check for fcntl.h.  In test program, include <errno.h>
65616         and <fcntl.h> if available.  Remove old K&R cruft from
65617         test program.  Check for common errors in GNU/Linux,
65618         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
65619         don't do AC_LIBOBJ, as that's getcwd.m4's job.
65620         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
65621         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
65622         name accordingly.
65623         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
65624         accommodate new getcwd.c.
65625         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
65626         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
65627         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
65628         that's all we need now.
65629
65630 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65631
65632         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
65633         argp-parse.c depends on getopt internals, that means we should
65634         always use our getopt, to be on the safe side.
65635         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
65636         order not to spoil the result of an eventual previous invocation
65637         of gl_GETOPT_SUBSTITUTE.
65638
65639 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65640
65641         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
65642         redefinition warnings. To avoid them, include the defines
65643         in `#if !defined __need_getopt ... #endif'. The only place
65644         where __getopt_argv_const is used is in definitions
65645         of getopt_long and getopt_long_only below, which are as well
65646         protected by `#ifndef __need_getopt'.
65647         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
65648         __need_getopt after including <stdio.h> and <unistd.h> These
65649         headers might have defined it.
65650
65651 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
65654
65655 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
65658         (futimens): New function, which uses futimes if available.
65659         (futimens, utimens): Support timespec==NULL, with same semantics
65660         as utime and utimens.
65661         * lib/utimens.h (futimens): New decl.
65662
65663 2004-11-23  Jim Meyering  <jim@meyering.net>
65664
65665         * lib/getopt_.h: Remove trailing blanks.
65666
65667 2004-11-23  Jim Meyering  <jim@meyering.net>
65668
65669         * lib/__fpending.c: Add comment.
65670
65671 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * modules/canonicalize (Depends-on): Add xreadlink.
65674         Problem reported by James Youngman.
65675
65676 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
65679         New macros.
65680         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
65681         optopt): Use them instead of invoking ## directly; otherwise, the
65682         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
65683
65684 2004-11-19  Bruno Haible  <bruno@clisp.org>
65685
65686         * lib/strtok_r.c: Move comments from here...
65687         * lib/strtok_r.h: ... to here.
65688
65689 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
65692         implementations that mishandle size_t overflow.
65693
65694 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65695
65696         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
65697         might fail.  Problem reported by Yoann Vandoorselaere.
65698         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
65699         implementations that mishandle size_t overflow.
65700
65701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * modules/canon-host (Depends-on): Add strdup.
65704
65705 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
65708
65709 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * lib/canon-host.c: Include "strdup.h".
65712         (canon_host): Use getaddrinfo if available, so that IPv6 works.
65713         Use strdup instead of malloc/strcpy to duplicate strings.
65714
65715         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
65716         (human_space_before_unit): New constant.
65717         * lib/human.c (human_readable): Support it.
65718
65719         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
65720         (xgetcwd): Set errno correctly when failing.
65721         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
65722         the failure is actually due to a PATH_MAX problem.
65723
65724         Further getopt changes to make it more likely that glibc will
65725         buy the changes back.
65726         * lib/getopt.c (POSIXLY_CORRECT): New constant.
65727         (getopt): Use it, so to preserve glibc semantic
65728         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
65729         when compiling for libc.
65730         * lib/getopt_.h (__getopt_argv_const): Bring it back.
65731         (getopt_long, getopt_long_only): Use it.
65732
65733         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65734         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
65735         (getopt): Argv is now char * const *, as per standard.
65736         (_getopt_internal_r, _getopt_internal): Argv is now char **,
65737         not char *__getopt_argv_const *.
65738         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65739         _getopt_long_only_r): Likewise.
65740         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
65741         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65742         _getopt_long_r, _getopt_long_only_r): Likewise.
65743         * lib/getopt_.h (__getopt_argv_const): Remove.
65744         (getopt): Argv is now char * const *, as per standard.
65745
65746         * lib/getdate.y (tORDINAL): New token.
65747         (day, relunit): Allow it for relative times.
65748         (relative_time_table): Use tORDINAL for ordinals.
65749
65750 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
65753         Document that "second" isn't allowed as an ordinal number.
65754
65755 2004-11-16  Jim Meyering  <jim@meyering.net>
65756
65757         * modules/closeout (Depends-on): Add fpending.
65758
65759 2004-11-15  Jim Meyering  <jim@meyering.net>
65760
65761         * lib/closeout.c: Include "__fpending.h" once again.
65762         Include <stdbool.h>.
65763         (close_stdout): Don't fail just because stdout was closed initially,
65764         since some programs don't write to stdout in the normal course of
65765         operation (other than --version and --help), and we don't want this
65766         function to make e.g. `touch file >&-' fail.
65767         But do fail if it was closed and someone has tried to write to it.
65768         E.g., `printf foo >&-' must fail.
65769
65770 2004-11-13  Jim Meyering  <jim@meyering.net>
65771
65772         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
65773
65774 2004-11-12  Simon Josefsson  <jas@extundo.com>
65775
65776         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
65777         small doc fix is still pending.
65778
65779 2004-11-11  Simon Josefsson  <jas@extundo.com>
65780
65781         * modules/strtok_r: New file.
65782
65783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65784         strtok_r.
65785
65786 2004-11-11  Simon Josefsson  <jas@extundo.com>
65787
65788         * m4/strtok_r.m4: New file.
65789
65790         * m4/getopt.m4: Replace opterr.
65791
65792 2004-11-11  Simon Josefsson  <jas@extundo.com>
65793
65794         * lib/strtok_r.h, strtok_r.c: New file.
65795
65796 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
65799         of replacing opterr, getopt, etc.  This should handle the
65800         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
65801
65802 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
65805         we can stop lying to compilers about the constness of argv when we
65806         are compiled outside glibc.
65807         (getopt, getopt_long, getopt_long_only): Use it.
65808         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
65809         _getopt_internal, getopt): Likewise.
65810         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
65811         _getopt_long_only_r): Likewise.
65812         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
65813         _getopt_long_r, _getopt_long_only_r): Likewise.
65814
65815         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
65816         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
65817         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
65818         the other external symbols.
65819         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
65820         declaration, since the above renaming now works around collisions.
65821
65822 2004-11-11  Jim Meyering  <jim@meyering.net>
65823
65824         * lib/linebreak.c: Remove trailing blanks.
65825         * lib/alloca_.h: Likewise.
65826         * lib/acosl.c: Likewise.
65827         * lib/euidaccess.c: Likewise.
65828         * lib/allocsa.h: Likewise.
65829
65830 2004-11-10  Simon Josefsson  <jas@extundo.com>
65831
65832         * m4/getaddrinfo.m4: New file.
65833
65834 2004-11-10  Simon Josefsson  <jas@extundo.com>
65835
65836         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
65837
65838 2004-11-10  Simon Josefsson  <jas@extundo.com>
65839
65840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65841         getaddrinfo.
65842
65843         * modules/getaddrinfo: New file.
65844
65845 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
65848
65849 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         * lib/mktime.c (SHR): New macro, which is a portable
65852         substitute for >> that should work even on Crays.
65853         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
65854         Problem reported by Mark D. Baushke in
65855         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
65856         * lib/getdate.y (SHR): Likewise.
65857         (tm_diff): Use it.
65858         * lib/strftime.c (SHR): Likewise.
65859         (tm_diff): Use it.
65860         * lib/quotearg.c (struct quoting_options): Use unsigned int for
65861         quote_these_too, so that right shifts are well defined.  All uses
65862         changed.
65863
65864 2004-11-10  Jim Meyering  <jim@meyering.net>
65865
65866         Ensure that no close failure goes unreported.
65867         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
65868         return early when it seems there's nothing to flush.
65869         Don't include __fpending.h.
65870
65871 2004-11-10  Jim Meyering  <jim@meyering.net>
65872
65873         * modules/closeout (Depends-on): Remove fpending.
65874
65875 2004-11-10  Jim Meyering  <jim@meyering.net>
65876
65877         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
65878
65879 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
65882         gl_FUNC_STRFTIME.
65883         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
65884         and AC_REQUIRE when possible, to avoid duplicate checks.
65885         Check for <wchar.h>.
65886
65887 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
65890
65891 2004-11-09  Bruno Haible  <bruno@clisp.org>
65892
65893         * m4/sockpfaf.m4: New file.
65894
65895 2004-11-05  Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
65898         Reported by Mark D. Baushke <mdb@cvshome.org>.
65899
65900 2004-11-04  Bruno Haible  <bruno@clisp.org>
65901
65902         2004-09-11  Bruno Haible  <bruno@clisp.org>
65903                 * allocsa.valgrind: New file.
65904         2004-02-06  Bruno Haible  <bruno@clisp.org>
65905                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
65906                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
65907                 Reported by Christopher Seip <chris.seip@hp.com>.
65908
65909 2004-11-04  Bruno Haible  <bruno@clisp.org>
65910
65911         * modules/allocsa (Files): Add lib/allocsa.valgrind.
65912         (Makefile.am): Distribute it.
65913
65914 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
65917         with errno == ERANGE if the buffer is too small.
65918         Problem reported by Mark D. Baushke.
65919
65920 2004-11-03  Albert Chin  <china@thewrittenword.com>
65921             Paul Eggert  <eggert@cs.ucla.edu>
65922
65923         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
65924         equivalent, substitute $ac_type for equivalent type rather than
65925         blindly using uint32_t *always* which won't work if uint32_t is not
65926         available.  Define _UINT32_T to work around typedef of uint32_t if
65927         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
65928         2.5.1.
65929
65930 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * m4/jm-macros.m4: Sync from coreutils.
65933         (gl_MACROS): Check for mbrlen, for pathchk.
65934         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
65935
65936 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * lib/xreadlink.c (MAXSIZE): New macro.
65939         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
65940         size does not exceed MAXSIZE.  Avoid cast.
65941         As suggested by Mark D. Baushke in
65942         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
65943         if readlink fails with buffer size just under MAXSIZE, try again
65944         with MAXSIZE.
65945
65946 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
65949
65950 2004-11-02  Derek R. Price  <derek@ximbiot.com>
65951         and  Paul Eggert  <eggert@cs.ucla.edu>
65952
65953         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
65954         (get_date): Overparenthesize to avoid GCC warning.
65955
65956 2004-11-02  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
65959         returns void.
65960
65961 2004-11-02  Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
65964         function returns void.
65965
65966 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65967
65968         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
65969         fflush_unlocked, flockfile, funlockfile, funlockfile,
65970         fputs_unlocked, putc_unlocked.
65971
65972 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65975         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
65976         already declared.
65977
65978 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65979
65980         * modules/getdate (Files): Add doc/getdate.texi.
65981         (Depends-on): Add setenv, xalloc.
65982
65983 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * lib/getdate.y: Add support for TZ="foo" within a date string.
65986         Fix some bugs near time_t boundaries.  Reject dates with
65987         out-of-range components, e.g., "Sept 31".
65988         Include <stdlib.h>, "setenv.h", "xalloc.h".
65989         (ISDIGIT_LOCALE): Remove; unused.
65990         Note that the TZ and time functions used here are not reentrant.
65991         (mktime_ok, get_tz): New functions.
65992         (TZBUFSIZE): New constant.
65993         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
65994         This requires that we sometimes generate our own TZ="XXX..." setting.
65995
65996 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * doc/getdate.texi: New file, from coreutils with modifications for
65999         the new TZ parsing.
66000
66001 2004-10-27  Derek R. Price  <derek@ximbiot.com>
66002
66003         * lib/mktime.c (not_equal_tm): Remove redundant check.
66004
66005 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66006
66007         * modules/regex (lib_SOURCES): Add regex.c.
66008         Reported by James Youngman in
66009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
66010
66011 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * lib/getdate.y: Use Bison 1.875 features, and some minor
66014         code cleanups.  This change does not affect semantics.
66015         Don't include <stdlib.h>; no longer needed.
66016         Don't include unlocked-io.h; only the "#if TEST" code uses
66017         stdio, and performance isn't crucial there.
66018         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
66019         Bison 1.875 features as described below.
66020         All uses of "PC." replaced by "pc->".
66021         (YYSTYPE): Add a forward declaration.
66022         (yylex, yyerror): Use full prototypes in forward decls.
66023         Use "%pure-parser" rather than obsolescent "%pure_parser".
66024         Use %parse-param and %lex-param instead of obsolescent
66025         YYPARSE_PARAM and YYLEX_PARAM.
66026         (meridian_table, month_and_day_table, time_units_table,
66027         relative_time_table, time_zone_table, military_table,
66028         lookup_zone, lookup_word, get_date):
66029         Use NULL instead of 0 where appropriate.
66030         (to_hour): Avoid abort (), to avoid a dependency on
66031         stdlib.h.
66032         (yyerror, yylex): Now accepts parser_control * arg.
66033         (main) [TEST]: Use '\0' rather than 0 for char.
66034
66035 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
66038
66039 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
66042         It's now the caller's responsibility to handle the case where
66043         !HAVE_GETPAGESIZE && !defined getpagesize.
66044
66045         * lib/mktime.c (leapyear): Arg is long int, not int.
66046
66047 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
66050
66051 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
66054         missing.  Problem reported by James Youngman.
66055
66056 2004-10-16  Simon Josefsson  <jas@extundo.com>
66057
66058         * gnulib-tool: Fix comments.  Fix parse problem.
66059         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
66060
66061 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
66064         implementation of getopt_long.  Problem reported by Alexander Taler in:
66065         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
66066
66067 2004-10-15  Bruno Haible  <bruno@clisp.org>
66068
66069         * gnulib-tool: Untabify. Initialize supplied_libname.
66070         (func_usage): More homogenous output.
66071         (func_modules_transitive_closure, func_modules_to_filelist,
66072         func_emit_lib_Makefile_am): New functions.
66073         (func_import): New function, extracted from big case statement. Use
66074         func_get_license, func_modules_transitive_closure,
66075         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
66076         opt_lgpl. Don't use test -a, as it's not portable.
66077         (func_create_testdir): Use func_modules_transitive_closure,
66078         func_modules_to_filelist, func_emit_lib_Makefile_am.
66079
66080 2004-10-15  Bruno Haible  <bruno@clisp.org>
66081
66082         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
66083
66084 2004-10-15  Bruno Haible  <bruno@clisp.org>
66085
66086         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
66087         the portions belonging to each module.
66088         Suggested by Derek Robert Price <derek@ximbiot.com>.
66089
66090 2004-10-12  Simon Josefsson  <jas@extundo.com>
66091
66092         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
66093         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
66094         to real functions.
66095
66096 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66097
66098         * modules/vsnprintf: New file.
66099
66100 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66101
66102         * m4/vsnprintf.m4: New file.
66103
66104 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66105
66106         * lib/vsnprintf.h: New file.
66107         * lib/vsnprintf.c: New file.
66108
66109 2004-10-11  Bruno Haible  <bruno@clisp.org>
66110
66111         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
66112         vsnprintf.
66113
66114 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
66117
66118 2004-10-07  Bruno Haible  <bruno@clisp.org>
66119
66120         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
66121         fits into the provided buffer.
66122
66123 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66124
66125         * lib/diacrit.c, diacrit.h: Add GPL notice.
66126
66127         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
66128         notice.
66129         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
66130         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
66131         This avoids a potential constant-folding bug.
66132
66133 2004-10-05  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
66136         for the declaration of strsep.
66137
66138 2004-10-05  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
66141
66142 2004-10-04  Simon Josefsson  <jas@extundo.com>
66143
66144         * modules/memmem: New file.
66145         * tests/test-memmem.c: New file.
66146         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
66147
66148 2004-10-04  Simon Josefsson  <jas@extundo.com>
66149
66150         * m4/memmem.m4: New file.
66151
66152 2004-10-04  Simon Josefsson  <jas@extundo.com>
66153
66154         * lib/memmem.h: New file.
66155         * lib/memmem.c: New file, taken from glibc.
66156
66157 2004-10-04  Simon Josefsson  <jas@extundo.com>
66158
66159         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
66160         '#ifdef USE_UNLOCKED_IO'.
66161
66162 2004-10-04  Simon Josefsson  <jas@extundo.com>
66163
66164         * config/srclist.txt: Add memmem from glibc.
66165
66166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66167
66168         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
66169
66170         * modules/argmatch, modules/argp, modules/closeout, modules/error,
66171         modules/exclude, modules/getdate, modules/getline,
66172         modules/getndelim2, modules/getpass, modules/getpass-gnu,
66173         modules/getusershell, modules/linebuffer, modules/md5,
66174         modules/mountlist, modules/posixtm, modules/readtokens,
66175         modules/readutmp, modules/regex, modules/sha1,
66176         modules/version-etc, modules/yesno:
66177         Remove dependency on unlocked-io.
66178
66179 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
66182
66183         * m4/unlocked-io.m4: Add copyright notice.
66184         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
66185
66186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
66189         * lib/xmalloc.c (xmemdup): Likewise.
66190         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
66191         XFREE): Remove these long-obsolescent macros.
66192         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
66193         * lib/xstrdup.c: Remove.
66194
66195         * lib/regex.c (re_comp): Cast gettext return value to char *,
66196         Problem reported by Martin Neitzel via Mark D. Baushke.
66197
66198 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
66201         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
66202         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
66203         regex.c, sha1.c, version-etc.c, yesno.c:
66204         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
66205         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
66206         the includer's responsibility.
66207
66208         Sync from coreutils.
66209
66210         * lib/modechange.c (mode_compile): Don't decrement a pointer that
66211         points to the start of a string, as the C Standard says the
66212         resulting behavior is undefined.
66213
66214         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
66215         simple -> simple_backups, numbered_existing ->
66216         numbered_existing_backups, numbered -> numbered_backups
66217         to avoid shadowing problems.  All uses changed.
66218         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
66219         * lib/backupfile.c (check_extension, numbered_backup):
66220         Rename locals to avoid shadowing 'basename'.
66221         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
66222         once.
66223
66224         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
66225         * lib/.cvsignore: Add getopt.h.
66226
66227 2004-10-04  Bruno Haible  <bruno@clisp.org>
66228
66229         * modules/README: New file.
66230         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
66231         not a module.
66232
66233 2004-10-02  Jim Meyering  <jim@meyering.net>
66234
66235         * lib/dirfd.h, getpagesize.h: Add copyright notice.
66236
66237 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66238
66239         * modules/strsep: New file.
66240
66241 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66242
66243         * m4/strsep.m4: New file.
66244
66245 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66246
66247         * lib/strsep.h: New file.
66248         * lib/strsep.c: New file.
66249
66250 2004-10-01  Simon Josefsson  <jas@extundo.com>
66251
66252         * lib/snprintf.c (snprintf): Handle size==0.
66253
66254 2004-10-01  Simon Josefsson  <jas@extundo.com>
66255             Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
66258         (snprintf): Declare 'args'.
66259
66260 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * lib/snprintf.c: Remove comments as to why each header is needed.
66263
66264 2004-10-01  Bruno Haible  <bruno@clisp.org>
66265
66266         * MODULES.html.sh: Add strsep.
66267
66268 2004-09-30  Simon Josefsson  <jas@extundo.com>
66269
66270         * modules/snprintf: New file.
66271
66272 2004-09-30  Simon Josefsson  <jas@extundo.com>
66273
66274         * m4/snprintf.m4: New file.
66275
66276 2004-09-30  Simon Josefsson  <jas@extundo.com>
66277
66278         * lib/snprintf.h, lib/snprintf.c: New files.
66279
66280 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66281
66282         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
66283         (hol_entry_help): Never translate an empty string.
66284         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
66285         * lib/argp.h (OPTION_NO_TRANS): New option.
66286
66287 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         * modules/argp (Maintainer): Replace Simon Josefsson
66290         by Sergey Poznyakoff.
66291
66292 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66293
66294         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
66295         changes merged back into glibc.
66296
66297 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
66298
66299         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
66300
66301 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66302
66303         * lib/xvasprintf.c: Include xalloc.h.
66304         (xvasprintf): Use xalloc_die, not xmalloc_die.
66305
66306 2004-09-29  Bruno Haible  <bruno@clisp.org>
66307
66308         * modules/alloca-opt: New file, derived from modules/alloca.
66309         * modules/allocsa: Depend on alloca-opt instead of alloca.
66310         * modules/setenv: Likewise.
66311         * modules/vasnprintf: Likewise.
66312         * MODULES.html.sh: Add alloca-opt.
66313
66314 2004-09-28  Simon Josefsson  <jas@extundo.com>
66315
66316         * gnulib-tool: New parameter --lgpl, to asseert that modules are
66317         LGPL, and to replace license template from GPL to LGPL.
66318
66319 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * modules/dummy: Change license to LGPL.
66322
66323 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
66326
66327 2004-09-24  Simon Josefsson  <jas@extundo.com>
66328
66329         * modules/minmax (License): Change from GPL to LGPL.
66330
66331 2004-09-23  Simon Josefsson  <jas@extundo.com>
66332
66333         * gnulib-tool (--import): Typo.
66334
66335 2004-09-23  Simon Josefsson  <jas@extundo.com>
66336
66337         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
66338
66339 2004-09-22  Bruno Haible  <bruno@clisp.org>
66340
66341         * modules/*: Add 'License' field.
66342         * gnulib-tool: Accept --extract-license option.
66343         (func_get_license): New function.
66344
66345 2004-09-21  Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
66348         Reported by Simon Josefsson.
66349
66350 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
66353         gl_AC_TYPE_LONG_LONG.
66354
66355 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
66358
66359 2004-09-18  Simon Josefsson  <jas@extundo.com>
66360         and  Paul Eggert  <eggert@cs.ucla.edu>
66361
66362         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
66363         calls with autoreconf.  Define GL_LIB.
66364
66365 2004-09-14  Karl Berry  <karl@gnu.org>
66366
66367         * config/srclist.txt: unsync setenv.c, sigh.
66368
66369 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66370
66371         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
66372         Problem reported by Bruno Haible in:
66373         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
66374
66375 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66376
66377         * config/srclist.txt: Comment out argp-pvh.c.
66378
66379 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
66380
66381         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
66382         in case some system header has #define'd it.  Problem reported by
66383         Soeren D. Schulze in
66384         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
66385
66386 2004-09-09  Karl Berry  <karl@gnu.org>
66387
66388         * regex.[ch]: delete from the root.  These were supposed to be
66389                 synced with emacs cvs, but this has not happened for about
66390                 a year, and anyway nothing else uses emacs regex.[ch].
66391                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
66392                 lib/regex[.ch] is untouched.
66393
66394 2004-09-09  Bruno Haible  <bruno@clisp.org>
66395
66396         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
66397
66398 2004-09-09  Bruno Haible  <bruno@clisp.org>
66399
66400         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
66401         modifications.
66402         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
66403
66404 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66405
66406         * modules/xvasprintf: New file.
66407         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
66408
66409 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
66410
66411         * lib/xvasprintf.h: New file.
66412         * lib/xvasprintf.c: New file.
66413         * lib/xasprintf.c: New file.
66414
66415 2004-09-08  Bruno Haible  <bruno@clisp.org>
66416
66417         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
66418
66419 2004-09-08  Bruno Haible  <bruno@clisp.org>
66420
66421         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
66422         length is > INT_MAX.
66423         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
66424         more.
66425
66426 2004-09-08  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/stdint_.h: New file, taken from GNU clisp.
66429
66430 2004-09-08  Bruno Haible  <bruno@clisp.org>
66431             Oskar Liljeblad  <oskar@osk.mine.nu>
66432
66433         * modules/stdint: New file.
66434         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
66435
66436 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         Import from coreutils.
66439         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
66440         strings on unbounded length.  alloca's performance benefits aren't
66441         that important here.
66442         (V_STRDUP): Remove.
66443         (parse_with_separator): New function, with most of the internals
66444         of the old parse_user_spec.  Allow user to omit both user and group,
66445         for compatibility with FreeBSD.
66446         Clone only the user name, not the entire spec.
66447         Do not set *uid, *gid unless entirely successful.
66448         Avoid memory leak in some failing cases.
66449         Fix regression for USER.GROUP reported by Dmitry V. Levin in
66450         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
66451         (parse_user_spec): Rewrite to use parse_with_separator.
66452
66453 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * modules/userspec: Don't depend on alloca.
66456
66457 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
66460
66461 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
66464         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
66465         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
66466
66467 2004-08-16  Simon Josefsson  <jas@extundo.com>
66468
66469         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
66470         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
66471         Add --dry-run for --import.
66472         Let user provided command line parameters override configure.ac
66473         settings.
66474
66475 2004-08-12  Simon Josefsson  <jas@extundo.com>
66476
66477         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
66478         as discussed with Paul Eggert in threads rooted at
66479         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
66480         and
66481         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
66482         Before, the test was empty, and relied on ELIDE_CODE in source
66483         code.)
66484         (gl_PREREQ_GETOPT): New macro.
66485         (gl_GETOPT): Use them.
66486
66487 2004-08-12  Simon Josefsson  <jas@extundo.com>
66488
66489         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
66490         * lib/getopt_.h: Renamed from getopt.h.
66491
66492 2004-08-12  Simon Josefsson  <jas@extundo.com>
66493
66494         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
66495         Change default library name from libfoo to libgnu.
66496         Now, if you have a configure.ac that says:
66497                 gl_SOURCE_BASE(gl)
66498                 gl_M4_BASE(gl/m4)
66499                 gl_MODULES(error getopt etcetera)
66500                 gl_INIT
66501         you can import all you need by running:
66502                 ../gnulib/gnulib-tool --import
66503
66504         * modules/getopt (Files): Rename getopt.h to getopt_.h.
66505         (Makefile.am): Rewrite, use logic from argz.
66506         (Include): Use <getopt.h> instead of "getopt.h".
66507
66508 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66509
66510         * modules/argp (Files): Add m4/unlocked-io.m4.
66511         (Depends-on): Add extensions.
66512
66513 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
66516         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
66517         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
66518         Check for program_invocation_name, program_invocation_short_name,
66519         flockfile, funlockfile, features.h, _getopt_long_only_r.
66520
66521 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
66524         its complicated substitute.
66525         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
66526         and program_invocation_name.
66527         (__argp_basename) [!_LIBC]: Remove; the only use was
66528         replaced by its body.
66529         (__argp_short_program_name): Change condition from
66530         !defined __argp_short_program_name to
66531         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
66532         to match argp-namefrob.h.
66533         (__argp_failure): Don't assume strerror_r returns char *.
66534         * lib/argp-parse.c (N_): Define unconditionally.
66535         (argp_default_options): Fill out initializers with 0 to avoid
66536         gcc warnings.
66537
66538 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
66539
66540         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
66541         getopt1.c.
66542
66543 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         Merge from coreutils.
66546
66547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
66548
66549         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
66550         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
66551
66552 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66553
66554         Merge from coreutils.
66555
66556         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
66557         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
66558         for Reliant Unix 5.43.
66559
66560         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
66561         (union fooround): Use uintmax_t, not long int.
66562         The rest is a merge from libc:
66563         [defined _LIBC]: Include <shlib-compat.h>.
66564         (_obstack) [defined _LIBC]: Remove after 2.3.4.
66565
66566         * lib/settime.c (settime): Recode to avoid warning with
66567         Sun Forte C 6U2.
66568
66569         * lib/strverscmp.c: Convert to UTF-8.
66570
66571 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66574         m4/uintmax_t.m4.
66575
66576 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         * modules/xalloc-die: New file.
66579         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
66580
66581         * modules/md5 (Files): Add m4/uint32_t.m4.
66582         * modules/sha1: Renamed from modules/sha.
66583         (Files):
66584         Rename lib/sha.h to lib/sha1.h.
66585         Rename lib/sha.c to lib/sha1.c.
66586         Rename m4/sha.m4 to m4/sha1.m4.
66587         (lib_SOURCES): Likewise.
66588         (configure.ac): Rename gl_SHA to gl_SHA1.
66589         (Include): sha.h -> sha1.h.
66590
66591 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66592
66593         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
66594         * m4/sha1.m4: Renamed from sha.m4.
66595         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
66596
66597 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * lib/obstack.h (obstack_empty_p):
66600         Don't assume that chunk->contents is suitably aligned.
66601         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
66602         Likewise. Problem reported by Benno in
66603         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
66604
66605         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
66606         readable.  This could be improved further but it'd take some work.
66607
66608 2004-08-08  Simon Josefsson  <jas@extundo.com>
66609
66610         * modules/xgethostname (Depends-on): Remove exit and error (not
66611         used).
66612
66613         * modules/getpass-gnu: Add getpass.h.
66614         (Depends-on): Add stdbool.
66615         * modules/getpass: Add getpass.h.
66616
66617 2004-08-08  Simon Josefsson  <jas@extundo.com>
66618
66619         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
66620         Check getpass declaration.
66621
66622 2004-08-08  Simon Josefsson  <jas@extundo.com>
66623
66624         * lib/xgethostname.c: Don't include error.h (not used).
66625
66626         * lib/getpass.h: Add.
66627         * lib/getpass.c: Include getpass.h first.
66628
66629 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * lib/xalloc-die.c: New file.
66632         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
66633         All uses removed.
66634         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
66635         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
66636         xalloc-die.c.
66637         (_, N_, xalloc_die): Move to xalloc-die.c.
66638         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
66639         so that we needn't mess with xalloc_msg_memory_exhausted.
66640
66641         * lib/sha1.h: Renamed from sha.h.
66642         (SHA1_H): Renamed from _SHA_H.
66643         (sha1_ctx): Renamed from sha_ctx.
66644         (sha1_init_ctx): Renamed from sha_init_ctx.
66645         (sha1_process_block): Renamed from sha_process_block.
66646         (sha1_process_bytes): Renamed from sha_process_bytes.
66647         (sha1_finish_ctx): Renamed from sha_finish_ctx.
66648         (sha1_read_ctx): Renamed from sha_read_ctx.
66649         (sha1_stream): Renamed from sha_stream.
66650         (sha1_buffer): Renamed from sha_buffer.
66651         * lib/sha1.c: Likewise; renamed from sha.c.
66652         Do not include <sys/types.h>.
66653         Include <stddef.h> rather than <stdlib.h>.
66654
66655 2004-08-08  Bruno Haible  <bruno@clisp.org>
66656
66657         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
66658         FILESYSTEM_PREFIX_LEN.
66659         * lib/progreloc.c: Likewise.
66660         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
66661
66662 2004-08-06  Simon Josefsson  <jas@extundo.com>
66663
66664         * modules/progname (Depends-on): Don't depend on stdbool.
66665
66666 2004-08-06  Simon Josefsson  <jas@extundo.com>
66667
66668         * modules/getsubopt: New file.
66669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66670         getsubopt.
66671
66672 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         More merge from coreutils.
66675
66676         * m4/utimens.m4, m4/utimecmp.m4: New files.
66677         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
66678         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
66679         prereq.m4, sha.m4: Import changes from coreutils.
66680
66681 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66682
66683         More merge from coreutils.
66684         * modules/raise, modules/readtokens0, modules/utimens:
66685         * modules/utimecmp, module/xnanosleep: New files.
66686         * modules/strftime: Add lib/strftime.h.
66687         Change include from <time.h> to "strftime.h".
66688         * modules/yesno: Add lib/yesno.h.
66689         * modules/backupfile: Remove lib/addext.c.
66690         * modules/euidaccess: Add stat-macros.h.
66691         * modules/canonicalize, modules/euidaccess,
66692         modules/filemode, modules/lchown, modules/makepath,
66693         modules/rmdir, modules/stat: Likewise.
66694
66695 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66696
66697         Merge from tar.
66698         * lib/argp-help.c (make_hol, hol_append): Don't assume that
66699         SIZE_MAX is a valid preprocessor constant.
66700         (__argp_basename): Change from "#ifndef _LIBC"
66701         to "#ifndef __argp_short_program_name", so that
66702         we don't compile these functions for tar.
66703
66704         More merges from coreutils.
66705         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
66706         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
66707         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
66708         * lib/addext.c: Remove; no longer needed.
66709         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
66710         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
66711         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
66712         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
66713         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
66714         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
66715         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
66716         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
66717         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
66718         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66719         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
66720         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
66721         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
66722         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
66723         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
66724         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
66725         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
66726         Import changes from coreutils.
66727
66728 2004-08-05  Simon Josefsson  <jas@extundo.com>
66729
66730         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
66731
66732 2004-08-05  Simon Josefsson  <jas@extundo.com>
66733
66734         * m4/getsubopt.m4: New file.
66735
66736 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66737
66738         Merge from coreutils.
66739
66740         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
66741         * m4/getcwd-path-max.m4: New files.
66742
66743         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
66744         FILESYSTEM_PREFIX_LEN ->
66745         FILE_SYSTEM_PREFIX_LEN.
66746         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
66747         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
66748         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
66749         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
66750
66751         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
66752         prerequisite modules now handle the DOS stuff.
66753         Don't check for unistd.h.
66754
66755 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66756
66757         Merge from coreutils.
66758
66759         * lib/.gdb-history: Remove; this doesn't belong here.
66760
66761         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
66762         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
66763         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
66764         * lib/getcwd.c: New files.
66765
66766         * lib/dirname.h: Include <stdbool.h>.
66767         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
66768         for consistency with POSIX terminology.  All uses changed.
66769         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
66770         (strip_trailing_slashes): Use bool for booleans.
66771         * lib/stripslash.c (strip_trailing_slashes): Likewise.
66772
66773         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
66774         sometimes returns a positive errno value even when it succeeds.
66775         (print_errno_message) [!LIBC]: Fall back on strerror if
66776         __strerror_r fails.
66777
66778         * lib/path-concat.c (mempcpy): Don't define if a system header defines
66779         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
66780         (longest_relative_suffix): New function.
66781         (path_concat): Use it.  Assume first argument is not NULL.
66782         Port to DOS.  Omit redundant separators.
66783         Report an error instead of returning NULL.
66784         Use mempcpy instead of memcpy.
66785         (xpath_concat): Remove: not declared or used.
66786
66787         * lib/same.h: Include <stdbool.h>
66788         (same_name): Return bool, not int.
66789         * lib/same.c (same_name): Likewise.
66790         (errno): Don't declare; we assume C89 or better now.
66791
66792         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
66793         if not already defined.
66794
66795         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
66796         * lib/dup-safer.c (errno): Likewise.
66797
66798 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         Merge from coreutils.
66801         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
66802         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
66803         * modules/path-concat: Don't depend on strdup.
66804
66805 2004-08-03  Simon Josefsson  <jas@extundo.com>
66806
66807         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
66808         * lib/progname.h: Don't include stdbool.h.
66809
66810 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66811
66812         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
66813         * MODULES.html.sh (func_all_modules): Remove fatal.
66814
66815 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
66818
66819 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
66822         working.
66823
66824 2004-08-02  Simon Josefsson  <jas@extundo.com>
66825
66826         * lib/getsubopt.h: New file, with comments from Bruno Haible.
66827         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
66828         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
66829
66830 2004-08-01  Simon Josefsson  <jas@extundo.com>
66831
66832         * lib/xgetdomainname.c: Include stdlib.h, for free().
66833
66834 2004-07-19  Bruno Haible  <bruno@clisp.org>
66835
66836         * MODULES.html.sh (func_all_modules): Add dummy.
66837
66838 2004-07-16  Simon Josefsson  <jas@extundo.com>
66839
66840         * modules/dummy: New file.
66841
66842 2004-07-16  Simon Josefsson  <jas@extundo.com>
66843
66844         * lib/dummy.c: New file.
66845
66846 2004-07-16  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/backupfile.h: Add extern "C" for C++.
66849         * lib/closeout.h: Likewise.
66850         * lib/copy-file.h: Likewise.
66851         * lib/findprog.h: Likewise.
66852         * lib/full-write.h: Likewise.
66853         * lib/pathname.h: Likewise.
66854         * lib/progname.h: Likewise.
66855         * lib/stpcpy.h: Likewise.
66856         * lib/stpncpy.h: Likewise.
66857         * lib/strcase.h: Likewise.
66858         * lib/strstr.h: Likewise.
66859         * lib/xalloc.h: Likewise.
66860
66861         * lib/mbswidth.h: Add extern "C" for C++.
66862         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
66863
66864 2004-07-13  Robert Millan  <robertmh@gnu.org>
66865
66866         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
66867
66868 2004-07-09  Simon Josefsson  <jas@extundo.com>
66869
66870         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
66871         failed without this.)
66872
66873 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * modules/chown (Files): Add lib/fchown-stub.c, since
66876         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
66877
66878 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/fchown-stub.c: New file.
66881
66882 2004-06-24  Jim Meyering  <jim@meyering.net>
66883
66884         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
66885
66886 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66887
66888         * modules/argz: Omit "#include".
66889
66890         * MODULES.html.sh (func_all_modules): Add calloc, to match
66891         2004-06-01 addition of calloc module.
66892
66893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * m4/argz.m4: New file, which is autoupdated from libtool.
66896
66897 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
66900         libtool.
66901
66902 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * config/srclist-update: Don't insist on "USA." before the
66905         close-comment, as libtool omits the period and puts the */ on a
66906         separate line.
66907         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
66908         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
66909
66910 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
66911
66912         * modules/argz: New file.
66913         * MODULES.html.sh (func_all_modules): Add argz.
66914
66915 2004-06-12  Jim Meyering  <jim@meyering.net>
66916         and  Paul Eggert  <eggert@cs.ucla.edu>
66917
66918         * modules/hash (Files): Add lib/xalloc.h.
66919         * modules/pipe (Depends-on): Add wait-process.
66920         * modules/stat (Depends-on): Add xalloc.
66921         * modules/userspec (Files): Add lib/userspec.h.
66922         * modules/xstrto
66923
66924         Upgrade from gettext-0.13.
66925         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
66926         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
66927         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
66928
66929 2004-06-10  Jim Meyering  <jim@meyering.net>
66930
66931         * lib/calloc.c: New file.
66932
66933 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66934
66935         * lib/getdate.y (yylex): Allow space between sign and number.
66936         Problem reported by Dan Jacobson.
66937
66938 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         Merge from coreutils CVS.
66941
66942         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
66943         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
66944         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
66945         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
66946         xstrtol.m4: Fix copyright date and/or serial number.
66947
66948         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
66949         See if we need an fchown replacement.
66950         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
66951         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
66952         and use the replacement function if we detect either defect.
66953
66954         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
66955         gl_UTIMECMP.
66956
66957 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66958         and  Jim Meyering  <jim@meyering.net>
66959
66960         Merge from coreutils CVS.
66961
66962         * lib/stat-macros.h: New file, with contents from file-type.h
66963         and coreutils' system.h.
66964         * lib/file-type.c: Include "stat-macros.h".
66965         * lib/file-type.h (file_type): Move all macro definitions to new file,
66966         stat-macros.h.
66967
66968         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
66969         Wrap old code with this conditional.
66970         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
66971         function that does not dereference symlinks.
66972         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
66973
66974         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
66975         dependency problems.
66976         (xreadlink): Accept new arg SIZE, for efficiency.
66977         All decls and uses changed.
66978         * lib/xreadlink.h: Include <stddef.h>, for size_t.
66979
66980         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
66981         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
66982
66983         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
66984         sysexits.h.
66985
66986 2004-06-01  Jim Meyering  <jim@meyering.net>
66987
66988         * m4/calloc.m4: New file.
66989
66990 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
66993         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
66994         Also, fix a typo in a diagnostic.
66995
66996 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
66999         or AC_FUNC_REALLOC.
67000
67001 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
67004         macros to be defined.
67005         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
67006         the allocator returns NULL because the requested size is zero.
67007
67008 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
67011         var.  Add comment explaining why libc still defines it.  This
67012         merges the following patch from glibc:
67013         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
67014
67015 2004-05-20  Andreas Schwab  <schwab@suse.de>
67016
67017         * m4/free.m4: Replace free if it not known to work, not the other
67018         way round.
67019
67020 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
67023         present in glibc since revision 1.1 of this file.
67024         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
67025         obstack_alignment_mask, obstack_alloc, obstack_base,
67026         obstack_blank, obstack_blank_fast, obstack_chunk_size,
67027         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
67028         obstack_grow0, obstack_init, obstack_int_grow,
67029         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
67030         obstack_next_free, obstack_object_size, obstack_ptr_grow,
67031         obstack_ptr_grow_fast, obstack_room): Remove declarations of
67032         nonexistent functions.
67033
67034 2004-05-18  Karl Berry  <karl@gnu.org>
67035
67036         * config/srclist.txt: break link for vasnprintf.c.
67037
67038 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67039
67040         Port obstack to the AS/400, where pointers are 16 bytes wide and
67041         you cannot cast an integer to a valid pointer.  This patch is
67042         currently waiting to be integrated into glibc; see
67043         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
67044
67045         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
67046         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
67047         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
67048         (struct obstack): temp member is now a union of a pointer and
67049         an integer, instead of an integer.  All integer uses changed.
67050         This does not affect the physical layout of struct obstack,
67051         except on hosts (like the AS/400) where the size or alignment of
67052         void * is greater than that of ptrdiff_t.
67053         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
67054         __STDC__)]: Store temporary in pointer member of union, not
67055         integer member.
67056         * lib/obstack.c: Include <stddef.h>, for offsetof.
67057         (struct fooalign): Remove; it doesn't need a name.
67058         (union fooround): Change double to long double, and add void *.
67059         (DEFAULT_ALIGNMENT): Use offsetof to compute.
67060         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
67061         not a macro.  Hence the values are always int; so remove all
67062         casts-to-int in uses.
67063
67064 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
67067         we can get this patch merged into glibc.
67068
67069 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67070             Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         * m4/argp: Depend on alloca.
67073
67074 2004-05-17  Derek R. Price  <derek@ximbiot.com>
67075             Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
67078         freecoding.
67079
67080 2004-05-17  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
67083         precision that consists of a '.' followed by an empty digit string.
67084         Patch by Tor Lillqvist <tml@iki.fi>.
67085
67086 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
67089         for backward compatibility with older code.  We need our own
67090         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
67091         it under some other name, and our alloca.h will define it.
67092
67093 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67094             Derek Price  <derek@ximbiot.com>
67095
67096         * lib/alloca.c: Include <alloca.h>, to get our interface.
67097         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
67098         include <alloca.h> first.  Use C89 prototype for alloca; this
67099         requires including <stddef.h> for size_t.  Use extern "C" if C++.
67100         Use #elif for simplicity, since we can assume C89 now.
67101         Don't try to source the system alloca.h since it will not be found
67102         and to prevent recursively including its replacement.
67103         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
67104         * lib/regex.c: Likewise.
67105
67106 2004-05-16  Derek Price  <derek@ximbiot.com>
67107             Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         getline cleanup.  This changes the getndelim2 API: both order of
67110         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
67111         no delimiter).
67112
67113         * lib/getline.c: Don't include stddef.h or stdio.h, since our
67114         interface does that.
67115         (getline): Always use getdelim, so that we don't have two
67116         copies of this code.
67117         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
67118         if available.
67119         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
67120         (GETNDELIM2_MAXIMUM): New macro.
67121         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
67122         instead of the old practice of delim2==0.  All callers changed.
67123         Return -1 on overflow, instead of returning junk.
67124         Do not set *linesize unless allocation succeeds.
67125         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
67126         that we include sys/types.h.
67127         * lib/getnline.h: Likewise.
67128         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
67129         (getndelim2): Reorder arguments.
67130         * lib/getnline.c (getnline, getndelim):
67131         Don't discard the NMAX argument.
67132         (getnline): Invoke getndelim, to avoid code duplication.
67133         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
67134         of (size_t) -1 by callers of the getnline family.
67135
67136 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
67139         Check for gettimeofday.
67140         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
67141         Check for settimeofday, stime.
67142
67143 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67144
67145         * lib/nanosleep.c (suspended): Change its type from int to
67146         sig_atomic_t volatile.
67147         (first_call): Make it private to rpl_nanosleep, and have it
67148         be zero initially as that's a bit faster.
67149         (my_usleep): Round up fractional times instead of truncating them,
67150         as this is the usual meaning for 'sleep'.
67151
67152         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
67153         doesn't work.
67154         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
67155         (ENOSYS): Define if not defined.
67156         (settime): Fall back on stime if it exists and settimeofday fails.
67157         But don't bother with fallbacks if a method fails with errno == EPERM.
67158
67159 2004-05-11  Jim Meyering  <jim@meyering.net>
67160
67161         Prior to this change, the save_cwd caller required read access to the
67162         current directory on most systems (ones with the fchdir function).
67163
67164         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
67165         fails, try write-only, and finally, resort to using xgetcwd.
67166
67167 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67168
67169         * lib/obstack.c, obstack.h: Import changes from libc.
67170
67171 2004-04-28  Bruno Haible  <bruno@clisp.org>
67172
67173         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
67174         also implicitly appends .exe to executables.
67175         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
67176         accepts Windows pathnames.
67177         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67178         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67179         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
67180         Treat Cygwin like Windows, since it now accepts Windows pathnames.
67181         Reported by Derek Robert Price <derek@ximbiot.com>.
67182
67183 2004-04-21  Karl Berry  <karl@gnu.org>
67184
67185         * config/srclist.txt (localcharset.c): break sync.
67186
67187 2004-04-20  Paul Eggert  <eggert@twinsun.com>
67188
67189         * m4/host-os.m4: Add a copyright notice.
67190
67191 2004-04-20  Jim Meyering  <jim@meyering.net>
67192
67193         Change UTILS_ to gl_ in AC_DEFINE'd names.
67194         Change utils_- and jm_-prefixed variables, too.
67195         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
67196         UTILS_FUNC_MKDIR_TRAILING_SLASH.
67197         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
67198
67199         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
67200         Don't emit trailing blanks.
67201         Also rename jm_-prefixed variables to have gl_ prefix.
67202
67203         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
67204         Also rename jm_-prefixed variables to have gl_ prefix.
67205
67206         * m4/jm-macros.m4: Reflect the renamings.
67207         * m4/prereq.m4: Likewise.
67208
67209 2004-04-20  Jim Meyering  <jim@meyering.net>
67210
67211         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
67212         memory.
67213
67214 2004-04-20  Jim Meyering  <jim@meyering.net>
67215             Bruno Haible  <bruno@clisp.org>
67216
67217         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
67218         memory when realloc fails.
67219
67220 2004-04-19  Jim Meyering  <jim@meyering.net>
67221
67222         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
67223         now that readutmp.c may call `free (0)'.
67224
67225 2004-04-19  Bruno Haible  <bruno@clisp.org>
67226
67227         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
67228         * m4/inttypes_h.m4: Likewise.
67229         * m4/stdint_h.m4: Likewise.
67230         * m4/intmax_t.m4: Likewise.
67231         * m4/uintmax_t.m4: Likewise.
67232
67233 2004-04-18  Jim Meyering  <jim@meyering.net>
67234
67235         * m4/prereq.m4: Don't forbid jm_ prefix.
67236
67237         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
67238         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
67239         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
67240         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
67241         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
67242         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
67243         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
67244         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
67245         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
67246         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
67247         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
67248         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
67249         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
67250         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
67251         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
67252         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
67253         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
67254         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
67255         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
67256
67257 2004-04-18  Jim Meyering  <jim@meyering.net>
67258
67259         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
67260         failure, don't leak memory and do call END_UTMP_ENT.
67261
67262 2004-04-16  Jim Meyering  <jim@meyering.net>
67263
67264         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
67265         coreutils' stat program.
67266         (gl_PREREQ): Don't require jm_PREREQ_STAT.
67267
67268 2004-04-11  Paul Eggert  <eggert@twinsun.com>
67269
67270         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
67271         C89.
67272         (CHAR_BIT): Remove, since we assume C89.
67273         Include <stdint.h> if available, as per current Autoconf CVS advice.
67274
67275 2004-03-31  Jim Meyering  <jim@meyering.net>
67276
67277         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
67278         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
67279         * m4/xalloc.m4: Likewise.
67280
67281 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67282
67283         Merge from coreutils.
67284
67285         * m4/inttostr.m4: New file.
67286         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
67287         Require AM_STDBOOL_H and gl_TIMESPEC instead.
67288         Require gl_CLOCK_TIME.
67289         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
67290
67291 2004-03-30  Paul Eggert  <eggert@twinsun.com>
67292
67293         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
67294         not bool, to be more consistent with Unix conventions.
67295         Suggested by Bruno Haible.
67296
67297         Merge from coreutils.
67298
67299         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
67300         * lib/umaxtostr.c: New files.
67301
67302         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
67303         the usual <time.h> dance.
67304         (get_date): Change signature to support fractional time stamps.
67305         All callers changed.
67306         * lib/getdate.y: Include "getdate.h" first, as we can now
67307         assume C89 and don't need to worry about 'const'.
67308         Similarly, include "unlocked-io.h" near start, not in middle.
67309         Include <limits.h>.
67310         (textint.value): Use long int rather than int.
67311         (textint.digits): Use size_t rather than int.
67312         (BILLION, LOG10_BILLION): New constants.
67313         (parser_control): New member rel_ns.  Members day_ordinal,
67314         time_zone, month, day, hour, minutes, rel_year, rel_month,
67315         rel_day, rel_hour, rel_minutes, rel_seconds
67316         are now long int, not int.  Member seconds is now struct timespec,
67317         not int.  New member timespec_seen.  Members dates_seen, days_seen,
67318         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
67319         not int.
67320         (%union.intval): Now long int, not int.
67321         New member timespec.
67322         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
67323         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
67324         (spec): Now is a timespec or an item list.
67325         (timespec, items): New nonterminals.
67326         (time, rel, relunit, number, get_date):
67327         Add support for fractional seconds.
67328         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
67329         (gmtime, localtime, mktime): Remove decls; not needed with C89.
67330         (to_hour): First arg is now long int, not int.
67331         (to_year): Returns long int, not int.
67332         Don't treat year -70 like 70.
67333         (tm_diff): Returns long int, not int.
67334         (lookup_word): Use bool instead of int when appropriate.
67335         (yylex): Use size_t for count, not int.
67336         Detect overflow when parsing large integer constants.
67337         Add support for fractions.
67338         (get_date): Make pointers 'const' if possible.
67339         Use more-portable code to detect integer overflow.
67340         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
67341         Don't use ctime; it's not reliable if the year has >4 digits.
67342
67343         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
67344         This is for compatibility with BSD.
67345
67346         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
67347         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
67348         From coreutils' system.h.
67349
67350         * lib/userspec.c: Don't include "posixver.h".
67351         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
67352         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
67353         compatible extension.  Simplify code by removing a boolean int
67354         that was always nonzero if a string was nonnull.
67355
67356 2004-03-30  Jim Meyering  <jim@meyering.net>
67357
67358         Merge from coreutils.
67359
67360         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
67361         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
67362         on some systems one must include <grp.h> before it.
67363         Reported by Christian Krackowizer.
67364
67365 2004-03-30  Jim Meyering  <jim@meyering.net>
67366
67367         Merge from coreutils.
67368
67369         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
67370
67371         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
67372         an empty input stream.
67373
67374         * lib/readtokens.c: Include <stdbool.h>.
67375         (readtoken): Use `size_t' rather than int/long.
67376         All callers adjusted.
67377         Use `bool' rather than `int' where appropriate.
67378         Use memset rather than an explicit loop.
67379         Use x2nrealloc rather than xrealloc.
67380         Allow the use of `\0' as a delimiter.
67381         (readtokens): Likewise.
67382         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
67383
67384 2004-03-30  Jim Meyering  <jim@meyering.net>
67385
67386         * m4/realloc.m4: Remove file, since now it does no more than
67387         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
67388         the `configure.ac' section of module/realloc.
67389         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
67390
67391 2004-03-30  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
67394         nonnull.
67395
67396 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67397
67398         Merge changes to getloadavg.c from coreutils and Emacs.
67399
67400         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
67401         Define to an expression, not to the empty string.
67402         Include cloexec.h and xalloc.h.
67403         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
67404         Use set_cloexec_flag rather than rolling our own.
67405         * lib/cloexec.c, lib/cloexec.h: New files.
67406
67407 2004-03-29  Paul Eggert  <eggert@twinsun.com>
67408
67409         * m4/cloexec.m4: New file.
67410
67411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67412
67413         * lib/getopt.h: Sync with libc CVS.
67414
67415 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67416             Bruno Haible  <bruno@clisp.org>
67417
67418         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
67419         mbswidth.
67420
67421 2004-03-18  Paul Eggert  <eggert@twinsun.com>
67422             Bruno Haible  <bruno@clisp.org>
67423
67424         * lib/mbswidth.h: Include <wchar.h> only if
67425         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
67426         <wchar.h>.
67427         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
67428
67429 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67430
67431         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
67432         Sync with libc CVS.
67433         * lib/getopt_int.h: New file, also synced from libc.
67434
67435 2004-03-09  Paul Eggert  <eggert@twinsun.com>
67436
67437         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
67438         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
67439         Bring back getopt.c, getopt.h, getopt1.c.
67440
67441 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67442
67443         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
67444         All uses changed.  Check for sa_sigaction member; this fixes
67445         a bug first reported by Jason Andrade in
67446         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67447
67448 2004-03-07  Paul Eggert  <eggert@twinsun.com>
67449
67450         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
67451         '#if' expressions.  Unlike the code it replaces, it does not
67452         depend on (defined _SC_PAGESIZE).  However, it does depend on
67453         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
67454         first reported by Jason Andrade in
67455         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
67456
67457 2004-02-25  Simon Josefsson  <jas@extundo.com>
67458
67459         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
67460
67461 2004-02-25  Simon Josefsson  <jas@extundo.com>
67462
67463         * lib/strdup.h: New file.
67464         * lib/strdup.c: Include it.
67465         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
67466         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
67467
67468 2004-02-23  Karl Berry  <karl@gnu.org>
67469
67470         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
67471         (from fencepost.gnu.org:/gd/gnuorg).
67472
67473 2004-02-23  Karl Berry  <karl@gnu.org>
67474
67475         * config/srclistvars.sh (GNUORG) [karl]: redefine.
67476         * config/srclist.txt: add maintain/standards documents.
67477
67478 2004-02-18  Bruno Haible  <bruno@clisp.org>
67479
67480         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
67481         Reported by Derek Robert Price <derek@ximbiot.com>.
67482
67483 2004-02-16  Karl Berry  <karl@gnu.org>
67484
67485         * config/mkinstalldirs, install-sh: update from automake.
67486
67487 2004-02-06  Karl Berry  <karl@gnu.org>
67488
67489         * m4/po.m4: update from gettext 0.14.1.
67490
67491 2004-02-06  Karl Berry  <karl@gnu.org>
67492
67493         * lib/config.charset: update from gettext 0.14.1.
67494
67495 2004-02-05  Paul Eggert  <eggert@twinsun.com>
67496
67497         Add comments and code, prompted by suggestions from Bruno Haible
67498         for sh-quote.
67499         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
67500         describing the enum quoting_style values.
67501         * lib/quotearg.c (quotearg_alloc): New function.
67502         (quotearg_buffer_restyled): Treat lone { and } as special.
67503         Treat = as special.  Work around bug with older shells
67504         that "see" a '\' that is really the 2nd byte of a multibyte char.
67505         Quote empty string with shell_quoting_style.
67506
67507 2004-02-03  Bruno Haible  <bruno@clisp.org>
67508
67509         * m4/pipe.m4: New file, from GNU gettext.
67510
67511 2004-02-03  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/pipe.h: New file, from GNU gettext.
67514         * lib/pipe.c: New file, from GNU gettext.
67515
67516 2004-01-27  Bruno Haible  <bruno@clisp.org>
67517
67518         * m4/execute.m4: New file, from GNU gettext.
67519
67520 2004-01-27  Bruno Haible  <bruno@clisp.org>
67521
67522         * lib/execute.h: New file, from GNU gettext.
67523         * lib/execute.c: New file, from GNU gettext.
67524         * lib/w32spawn.h: New file, from GNU gettext.
67525
67526 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67527
67528         Merge from diffutils.
67529
67530         * lib/file-type.c (file_type): Add typed memory objects.
67531         * lib/file-type.h (S_TYPEISTMO): New macro.
67532
67533         * lib/c-stack.h (c_stack_action): Remove argv argument.
67534         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
67535         (die): Don't calculate message unless segv_action returns.
67536         (get_stack_location, min_address_from_argv, max_address_from_argv,
67537         volatile stack_base, volatile_stack_size): Remove.
67538         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
67539         that every segmentation violation is a stack overflow.  (Ouch!)
67540         See Debian bug 136249 (still outstanding) for more info about why
67541         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
67542
67543 2004-01-24  Paul Eggert  <eggert@twinsun.com>
67544
67545         Exit-status fix from coreutils.
67546
67547         Use exit_failure consistently in place of EXIT_FAILURE,
67548         so that program exit statuses are consistent on failure.
67549
67550         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
67551         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
67552         * lib/argmatch.h: Comment fix to match the above.
67553         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
67554         Now a macro referring to exit_failure, instead of a separate
67555         variable.  Include "exitfail.h" to get it.
67556         * lib/xstrtol.h: Include "exitfail.h".
67557         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
67558
67559         * lib/long-options.c (parse_long_options): Use prototype
67560         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
67561         for clarity.
67562
67563 2004-01-21  Jim Meyering  <jim@meyering.net>
67564
67565         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
67566         so as not to conflict with a different-sized __mktime_internal
67567         function in GNU libc.
67568         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
67569         Problem building statically-linked `ls' reported by Michael Brunnbauer.
67570
67571 2004-01-20  Karl Berry  <karl@gnu.org>
67572
67573         * config/config.guess: update from config.
67574
67575         * config/srclistvars.sh: GNUWWWLICENSES for karl.
67576
67577 2004-01-20  Bruno Haible  <bruno@clisp.org>
67578
67579         Safer stack allocation.
67580         * lib/setenv.c: Include allocsa.h.
67581         (alloca): Remove fallback definition.
67582         (freea): Remove macro.
67583         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
67584         instead of freea.
67585
67586 2004-01-20  Bruno Haible  <bruno@clisp.org>
67587
67588         * m4/eealloc.m4: New file, from GNU gettext.
67589
67590 2004-01-20  Bruno Haible  <bruno@clisp.org>
67591
67592         * m4/allocsa.m4: New file, from GNU gettext.
67593
67594 2004-01-20  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/xallocsa.h: New file, from GNU gettext.
67597         * lib/xallocsa.c: New file, from GNU gettext.
67598
67599 2004-01-20  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
67602
67603 2004-01-20  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
67606         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
67607         specially.
67608
67609 2004-01-20  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
67612         patch.
67613
67614 2004-01-20  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
67617
67618 2004-01-20  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/eealloc.h: New file.
67621
67622 2004-01-20  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/binary-io.h: Avoid warnings on Cygwin.
67625
67626 2004-01-20  Bruno Haible  <bruno@clisp.org>
67627
67628         * lib/allocsa.h: New file, from GNU gettext.
67629         * lib/allocsa.c: New file, from GNU gettext.
67630
67631 2004-01-18  Karl Berry  <karl@gnu.org>
67632
67633         * doc/gpl.texi, doc/lgpl.texi: new files.
67634
67635 2004-01-18  Karl Berry  <karl@gnu.org>
67636
67637         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
67638         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
67639
67640 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67641
67642         Merge from coreutils.
67643
67644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
67645         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
67646         (gl_DEFAULT_POSIX2_VERSION): Move
67647         the documentation from 'configure' into 'config.hin',
67648         so that 'configure --help' isn't burdened by it and
67649         we don't have to worry about its formatting there.
67650         Reword the documentation so that it's more succinct
67651         and can be run together into a single paragraph.
67652         * m4/same.m4 (gl_SAME): Check for pathconf.
67653
67654 2004-01-15  Paul Eggert  <eggert@twinsun.com>
67655
67656         Merge from coreutils.
67657
67658         * lib/posixver.c: Include posixver.h.
67659
67660         * lib/same.c: Include <stdbool.h>, <limits.h>.
67661         (_POSIX_NAME_MAX): Define if not defined.
67662         (MIN): New macro.
67663         (same_name): If file names are silently truncated, report
67664         that the file names are the same if they are the same after
67665         the silent truncation.
67666
67667         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
67668         conversion function.
67669         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
67670         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
67671         longer needed.
67672
67673 2004-01-15  Jim Meyering  <jim@meyering.net>
67674
67675         Merge from coreutils.
67676
67677         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
67678         if no library is required.
67679         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
67680         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
67681         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
67682         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
67683         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
67684         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
67685         value, $ac_cv_search_crypt, if it's "none required".
67686         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
67687         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
67688         not gl_FUNC_GETLOADAVG.
67689         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
67690         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
67691
67692 2004-01-15  Jim Meyering  <jim@meyering.net>
67693
67694         Merge from coreutils.
67695
67696         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
67697         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
67698         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
67699
67700         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
67701         optional configure-time default.
67702
67703         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67704
67705         * lib/xreadlink.c (xreadlink): Correct outdated comment.
67706
67707 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
67708
67709         Merge from coreutils.
67710
67711         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
67712         value, $ac_cv_search_nanosleep, if it's "none required".
67713
67714 2004-01-14  Paul Eggert  <eggert@twinsun.com>
67715
67716         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
67717         with like-named macro in fnmatch.c.
67718         (EXT): Use an internal constant instead.
67719
67720         Merge fnmatch patches from glibc.
67721         * lib/fnmatch.c (mbsinit): Remove define.
67722         Add libc_hidden_ver (__fnmatch, fnmatch).
67723         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
67724         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
67725
67726 2004-01-14  Karl Berry  <karl@gnu.org>
67727
67728         * config/install-sh: update from automake.
67729
67730 2004-01-13  Karl Berry  <karl@gnu.org>
67731
67732         * config/install-sh: update from automake.
67733
67734 2004-01-09  Karl Berry  <karl@gnu.org>
67735
67736         * config/install-sh: update from automake.
67737
67738 2004-01-05  Karl Berry  <karl@gnu.org>
67739
67740         * config/config.{sub,guess}: update from config.
67741
67742 2003-12-31  Karl Berry  <karl@gnu.org>
67743
67744         * config/depcomp: update from automake.
67745
67746 2003-12-14  Karl Berry  <karl@gnu.org>
67747
67748         * lib/config.charset: update from gettext-runtime.
67749
67750 2003-12-03  Paul Eggert  <eggert@twinsun.com>
67751
67752         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
67753         Bug reported by Alfred M. Szmidt.
67754
67755 2003-12-03  Bruno Haible  <bruno@clisp.org>
67756
67757         * m4/gettext.m4: Upgrade from gettext-0.13.
67758         * m4/po.m4: Upgrade from gettext-0.13.
67759         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
67760         * m4/intmax.m4: New file, from gettext-0.13.
67761         * m4/printf-posix.m4: New file, from gettext-0.13.
67762
67763 2003-11-29  Karl Berry  <karl@gnu.org>
67764
67765         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
67766
67767 2003-11-25  Paul Eggert  <eggert@twinsun.com>
67768             Bruno Haible  <bruno@clisp.org>
67769
67770         * lib/printf-parse.h: Don't include sys/types.h.
67771         (ARG_NONE): New macro.
67772         (char_directive): Change type of *arg_index fields to size_t.
67773         * lib/printf-parse.c: Don't include sys/types.h.
67774         (SSIZE_MAX): Remove macro.
67775         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
67776         Remove unnecessary overflow check.
67777         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
67778         fields.
67779
67780 2003-11-25  Bruno Haible  <bruno@clisp.org>
67781
67782         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
67783
67784 2003-11-25  Bruno Haible  <bruno@clisp.org>
67785
67786         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
67787         gt_TYPE_SSIZE_T.
67788
67789 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67790
67791         * modules/alloca: Remove dependency on xalloc.
67792
67793 2003-11-24  Paul Eggert  <eggert@twinsun.com>
67794
67795         * lib/alloca.c: Remove dependency on xalloc module.
67796         (xalloc_die): Remove.
67797         (memory_full) [!defined emacs]: New macro.
67798         [!defined emacs]: Don't include xalloc.h.
67799         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
67800         address arithmetic overflows.  Change datatypes a bit to avoid
67801         unnecessary casts.
67802
67803 2003-11-22  Jim Meyering  <jim@meyering.net>
67804
67805         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
67806         s/size/size_t/.
67807
67808 2003-11-21  Karl Berry  <karl@gnu.org>
67809
67810         * config/config.{sub,guess}: update from config.
67811
67812 2003-11-18  Karl Berry  <karl@gnu.org>
67813
67814         * config/config.{sub,guess}: update from config.
67815
67816         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
67817
67818 2003-11-17  Paul Eggert  <eggert@twinsun.com>
67819
67820         * README: Mention that S+T cannot overflow if S is the size of
67821         an existing object and T is sufficiently small.
67822
67823 2003-11-17  Jim Meyering  <jim@meyering.net>
67824
67825         On systems without utime and without a utimes function capable of
67826         dealing with a NULL struct utimbuf* argument, this utime replacement
67827         could -- in unusual circumstances -- leak a file descriptor.
67828         * lib/utime.c: Include <unistd.h> and <errno.h>.
67829         (utime_null): Be sure to close `fd' and to preserve errno.
67830         Reported by Geoff Collyer via Arnold Robbins.
67831
67832 2003-11-17  Bruno Haible  <bruno@clisp.org>
67833
67834         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
67835         (Depends-on): Add xsize.
67836
67837 2003-11-17  Bruno Haible  <bruno@clisp.org>
67838
67839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
67840
67841 2003-11-17  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/vasnprintf.c (alloca): Remove fallback definition.
67844         (freea): Remove definition.
67845         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
67846         Reported by Paul Eggert.
67847
67848 2003-11-16  Paul Eggert  <eggert@twinsun.com>
67849             Bruno Haible  <bruno@clisp.org>
67850
67851         Protect against address arithmetic overflow.
67852         * lib/printf-args.h: Include stddef.h.
67853         (arguments): Change type of field 'count' to size_t.
67854         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
67855         'unsigned int' where appropriate.
67856         * lib/printf-parse.h: Include sys/types.h.
67857         (char_directive): Change type of *arg_index fields to ssize_t.
67858         (char_directives): Change type of fields 'count', max_*_length to
67859         size_t.
67860         * lib/printf-parse.c: Include sys/types.h and xsize.h.
67861         (SSIZE_MAX): Define fallback value.
67862         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
67863         instead of 'int' where appropriate. Check a_allocated, d_allocated
67864         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
67865         * lib/vasnprintf.c: Include xsize.h.
67866         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
67867         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
67868         overflow. Avoid wraparound when converting a width or precision from
67869         decimal to binary.
67870
67871 2003-11-16  Bruno Haible  <bruno@clisp.org>
67872
67873         Update from GNU gettext.
67874         * lib/printf-parse.c: Generalize to it can be compiled for wide
67875         strings.
67876         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
67877         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
67878         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
67879         SNPRINTF): New macros.
67880         Don't include <alloca.h> if the file is used inside libintl.
67881         (local_wcslen): New function, for Solaris 2.5.1.
67882         (VASNPRINTF): Use it instead of wcslen.
67883
67884 2003-11-16  Bruno Haible  <bruno@clisp.org>
67885
67886         * lib/xsize.h (xmax): New function.
67887         (xsum, xsum3, xsum4): Declare as "pure" functions.
67888
67889 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67890
67891         * modules/xalloc (Files): Undo latest change, since xalloc.h
67892         no longer needs SIZE_MAX or PTRDIFF_MAX.
67893
67894 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67895
67896         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
67897         gl_PTRDIFF_MAX.
67898
67899 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67900
67901         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
67902         "return", to pacify some unknown compiler.  Problem reported
67903         by Joerg Schilling.
67904
67905 2003-11-12  Paul Eggert  <eggert@twinsun.com>
67906
67907         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
67908         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
67909         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
67910         heuristic is just as accurate as far as we know, and it removes a
67911         dependency on size_max.m4 and ptrdiff_max.m4.
67912
67913 2003-11-11  Bruno Haible  <bruno@clisp.org>
67914
67915         * modules/xsize (Files): Add m4/size_max.m4.
67916         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
67917
67918 2003-11-11  Bruno Haible  <bruno@clisp.org>
67919
67920         * m4/size_max.m4: New file.
67921         * m4/ptrdiff_max.m4: New file.
67922         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
67923         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
67924         (gl_XALLOC): Invoke it.
67925
67926 2003-11-11  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
67929         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
67930         defined.
67931
67932 2003-11-10  Paul Eggert  <eggert@twinsun.com>
67933
67934         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
67935         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
67936         rejected some allocations of exactly SIZE_MAX - 2 bytes.
67937         From Bruno Haible.
67938         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
67939         not (size_t) -1, since it's defined here.
67940
67941 2003-11-09  Karl Berry  <karl@gnu.org>
67942
67943         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
67944
67945 2003-11-06  Paul Eggert  <eggert@twinsun.com>
67946
67947         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
67948         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
67949         Reject sizes of exactly SIZE_MAX bytes.
67950         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
67951         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
67952
67953 2003-11-05  Bruno Haible  <bruno@clisp.org>
67954
67955         * lib/xsize.h: Include limits.h, to avoid a possible collision with
67956         SIZE_MAX defined in <limits.h> on Solaris.
67957
67958 2003-11-04  Jim Meyering  <jim@meyering.net>
67959
67960         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
67961         variable names, rather than @VAR@.
67962         * modules/poll: Likewise.
67963
67964 2003-11-04  Bruno Haible  <bruno@clisp.org>
67965
67966         * modules/xsize: New file.
67967         * modules/linebreak: Depend on xsize.
67968         * MODULES.html.sh (func_all_modules): Add xsize.
67969
67970 2003-11-04  Bruno Haible  <bruno@clisp.org>
67971
67972         * m4/xsize.m4: New file.
67973
67974 2003-11-04  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/xsize.h: New file.
67977         * lib/linebreak.c: Include xsize.h.
67978         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
67979         argument for overflow.
67980         Suggested by Paul Eggert.
67981
67982 2003-11-03  Karl Berry  <karl@gnu.org>
67983
67984         * config/config.{guess,sub}: update from config.
67985
67986 2003-11-03  Jim Meyering  <jim@meyering.net>
67987
67988         * modules/userspec (lib_SOURCES): Add userspec.h.
67989         (Include): Add "userspec.h".
67990         Improve description.
67991
67992 2003-11-03  Jim Meyering  <jim@meyering.net>
67993
67994         * lib/userspec.c: Include "userspec.h".
67995         * lib/userspec.h: New file.
67996
67997 2003-11-03  Bruno Haible  <bruno@clisp.org>
67998
67999         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
68000
68001 2003-11-03  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
68004         available, to avoid (extremely rare) race condition.
68005         Suggested by Paul Eggert.
68006
68007 2003-11-02  Karl Berry  <karl@gnu.org>
68008
68009         * config/srclist.txt (vasprintf.c): sync broken, sigh.
68010
68011 2003-10-31  Paul Eggert  <eggert@twinsun.com>
68012
68013         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
68014         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
68015         (read_filesystem_list): Set and use me_type_malloced.
68016         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
68017         whatever the type happens to be), for brevity and consistency.
68018         Check for size calculation overflow on Alphas running OSF/1.
68019
68020 2003-10-31  Jim Meyering  <jim@meyering.net>
68021
68022         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
68023
68024         * lib/linebuffer.c: Include <string.h> for declaration of memset.
68025
68026 2003-10-30  Paul Eggert  <eggert@twinsun.com>
68027             Bruno Haible  <bruno@clisp.org>
68028
68029         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
68030         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
68031
68032 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
68033
68034         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
68035         netbsd*-gnu*.  Suggested by Robert Millan.
68036
68037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68038
68039         * modules/group-member: Depend on stdbool.
68040
68041 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68042
68043         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
68044
68045 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68046
68047         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
68048         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
68049         after the 'gnu' in these cases.  This fixes some bugs in the
68050         previous change, and is based on suggestions by Robert Millan.
68051
68052 2003-10-29  Paul Eggert  <eggert@twinsun.com>
68053
68054         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
68055         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
68056         no longer needed.
68057         * lib/quotearg.c (quotearg_n_options): Use it.
68058         * lib/group-member.c: Include <stdbool.h>.
68059         (free_group_info): Arg is now const *; don't free arg.
68060         (get_group_info): Now returns bool and accepts struct group_info *,
68061         rather than returning a malloc'ed struct group_info *.
68062         All uses changed.  Check for overflow in internal size calculation.
68063
68064         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
68065         rather than xmalloc/xrealloc.
68066         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
68067         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
68068         conformance bug: the old code used a pointer after freeing the
68069         storage that it addressed.
68070         * lib/hash.c (hash_initialize): Simplify the code by using
68071         xalloc_oversized rather than doing it by hand.
68072         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
68073         the buffer preserved.  Use free and xmalloc instead.
68074         * lib/quotearg.c (quotearg_n_options): Likewise.
68075         Use a simpler test for size overflow.  Don't use xalloc_oversized
68076         because unsigned int might be wider than size_t (!); this suggests
68077         that we should switch from unsigned int to size_t for slot numbers.
68078
68079 2003-10-28  Paul Eggert  <eggert@twinsun.com>
68080
68081         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
68082         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
68083         NetBSD kernels.  Requested by Richard Stallman.
68084
68085 2003-10-27  Paul Eggert  <eggert@twinsun.com>
68086
68087         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
68088         to allocate the returned structure.  Do not allocate a subarray,
68089         as x2nrealloc will do that.
68090         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
68091         instead of xnrealloc.
68092         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
68093
68094 2003-10-27  Bruno Haible  <bruno@clisp.org>
68095
68096         * lib/stdbool_.h: Better support for BeOS.
68097
68098 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68099
68100         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
68101         now uses inline.
68102
68103 2003-10-26  Paul Eggert  <eggert@twinsun.com>
68104
68105         * lib/xalloc.h (xalloc_oversized): New static inline function, for
68106         callers that want to do their own size-overflow checking.  Include
68107         <stdbool.h>, since xalloc_oversized returns bool.
68108         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
68109         to use xalloc_oversized.
68110
68111         Add two functions x2realloc, x2nrealloc, for programs that grow
68112         arrays dynamically by doubling their sizes.
68113         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
68114         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
68115         New functions.
68116
68117         Port to C99 semantics for 'inline' of external functions.
68118         Bug reported by Bruno Haible.
68119         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
68120         with the old contents of xnmalloc.
68121         (xnmalloc, xmalloc): Use it.
68122         (xnrealloc_inline): New static inline function,
68123         with the old contents of xnrealloc.
68124         (xnrealloc, xrealloc): Use it.
68125
68126         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
68127         that.
68128
68129 2003-10-26  Karl Berry  <karl@gnu.org>
68130
68131         * config/srclist.txt (COPYING.DOC): no longer available from
68132         /gd/gnuorg; don't know where the ultimate source is.
68133
68134 2003-10-25  Paul Eggert  <eggert@twinsun.com>
68135
68136         Fix several address-calculation bugs in the hash modules,
68137         plus some minor code cleanup.
68138
68139         * lib/hash.h: Include <stdbool.h>, for bool.
68140         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
68141         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
68142         hash_get_n_entries, hash_get_max_bucket_length,
68143         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
68144         hash_rehash): Use size_t rather than unsigned.
68145         * lib/hash.c (struct hash_table, hash_get_n_buckets,
68146         hash_get_n_buckets_used, hash_get_n_entries,
68147         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
68148         hash_get_entries, hash_do_for_each, hash_string, is_prime,
68149         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
68150         Likewise.
68151         (SIZE_MAX): Define if not defined.
68152         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
68153         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
68154         hash_print):
68155         Use const * when possible.
68156         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
68157         (check_tuning): Fix bug: if tuning parameters were very close to
68158         0 or 1, rounding errors could have caused subscript violations.
68159         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
68160         (hash_initialize): Add 'fail:' label
68161         to free table and return NULL, and use it to simplify code.
68162         Use calloc rather than clearing the storage ourself.
68163         (hash_initialize, hash_rehash): Check for arithmetic overflow in
68164         buffer size calculations.
68165         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
68166         Include <stddef.h>, for size_t.
68167         * lib/hash-pjw.c (hash_pjw): Likewise.
68168         Switch to method described by Bruno Haible.
68169         Include <limits.h>, for CHAR_BIT.
68170         (SIZE_BITS): New macro.
68171
68172 2003-10-23  Paul Eggert  <eggert@twinsun.com>
68173
68174         * m4/getline.m4 (AM_FUNC_GETLINE):
68175         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
68176         hosts.  Problem reported by Derek Robert Price in
68177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
68178         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
68179         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
68180
68181 2003-10-21  Paul Eggert  <eggert@twinsun.com>
68182
68183         * lib/getndelim2.c (getndelim2): When size calculation overflows,
68184         ceiling the allocation at NMAX bytes rather than silently
68185         discarding input bytes before NMAX is reached.  This makes
68186         a difference only if NMAX exceeds SIZE_MAX / 2.
68187
68188         * lib/obstack.c: Merge from glibc.
68189         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
68190         Add libc_hidden_def (_obstack_newchunk).
68191         (_obstack_free) [! defined _LIBC]: Remove.
68192         [defined _LIBC]: Make a strong alias from obstack_free, rather than
68193         a clone of the function body.
68194         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
68195         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
68196
68197         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
68198         glibc.
68199         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
68200         arg to memcpy.
68201
68202         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
68203         (obstack_ptr_grow_fast, obstack_int_grow_fast):
68204         Don't use lvalue casts, as GCC plans to remove support for them
68205         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
68206         was also present in the non-GCC version, indicating that this
68207         code had always been buggy and had never been widely used.
68208         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
68209         Use the fast variant of each macro, rather than copying the
68210         definiens of the fast variant; that way, we'll be more likely to
68211         catch future bugs in the fast variants.
68212
68213 2003-10-20  Bruno Haible  <bruno@clisp.org>
68214
68215         * modules/wait-process: New file.
68216         * MODULES.html.sh (func_all_modules): Add wait-process.
68217
68218 2003-10-20  Bruno Haible  <bruno@clisp.org>
68219
68220         * m4/wait-process.m4: New file.
68221
68222 2003-10-20  Bruno Haible  <bruno@clisp.org>
68223
68224         * lib/wait-process.h: New file, from GNU gettext.
68225         * lib/wait-process.c: New file, from GNU gettext.
68226
68227 2003-10-19  Jim Meyering  <jim@meyering.net>
68228
68229         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
68230         HPUX 10.20.
68231
68232 2003-10-18  Karl Berry  <karl@gnu.org>
68233
68234         * config/config.guess: update from config.
68235
68236 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68237
68238         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
68239         (getgroups): First arg is int, not size_t.
68240         Don't let 'free' mangle errno.
68241
68242 2003-10-16  Paul Eggert  <eggert@twinsun.com>
68243
68244         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
68245
68246 2003-10-16  Karl Berry  <karl@gnu.org>
68247
68248         * config/config.{guess,sub}: update from config.
68249
68250 2003-10-16  Jim Meyering  <jim@meyering.net>
68251
68252         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
68253         memcpy.
68254
68255 2003-10-15  Paul Eggert  <eggert@twinsun.com>
68256
68257         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
68258         (SIZE_MAX): Remove.
68259         (new_exclude, add_exclude_file): Initial size no longer needs to
68260         be a power of 2.
68261         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
68262         our own address arithmetic overflow checking.
68263
68264         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
68265         (fnmatch): Do not alloca more than 2000 wide characters;
68266         instead, use malloc for large buffers.
68267         Check for address arithmetic overflow, and return -1
68268         with errno set to ENOMEM in that case.
68269         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
68270         (NEW_PATTERN): Do not alloca more than 8000 bytes;
68271         instead, return -1.  Check for address arithmetic overflow.
68272
68273 2003-10-14  Paul Eggert  <eggert@twinsun.com>
68274
68275         Handle invalid suffixes and overflow independently, so that
68276         callers can treat them independently as needed.  Fix some bugs in
68277         suffix handling, e.g., "100k@" was not diagnosed as an invalid
68278         suffix for a human-readable blocksize.  The major caller-visible
68279         change is the addition of a new
68280         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
68281         that both overflow and suffix chars were found.
68282
68283         * lib/human.c (humblock): Don't check separately for invalid suffix
68284         char; that is xstrtoumax's job (now that its bug is fixed).
68285         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
68286         INTMAX_MAX]: New macros.
68287         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
68288         TYPE_MAXIMUM): New macros.
68289         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
68290         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
68291         if overflow occurs, as it's what __strtol does and it's more useful
68292         in practice.
68293         (__xstrtol): If __strtol reports some error other than ERANGE,
68294         reflect it to the caller as LONGINT_INVALID.  If it reports
68295         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
68296         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
68297         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
68298         value.
68299         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
68300         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
68301         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
68302         [defined UINTMAX_MAX]: New macros.
68303
68304 2003-10-14  Bruno Haible  <bruno@clisp.org>
68305
68306         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
68307
68308 2003-10-14  Bruno Haible  <bruno@clisp.org>
68309
68310         * m4/sig_atomic_t: New file, from GNU gettext.
68311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
68312
68313 2003-10-14  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
68316         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
68317         Also use volatile where needed.
68318
68319 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68320
68321         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
68322         Change maintainer from Bruno Haible to 'all'.
68323
68324 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68325
68326         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
68327
68328 2003-10-12  Paul Eggert  <eggert@twinsun.com>
68329
68330         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
68331         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
68332         and define in terms of the other primitives.
68333         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
68334         (SIZE_MAX): Define if not already defined.
68335         (array_size_overflow): New function.
68336         (xalloc_die): Abort instead of exiting if 'error' returns.
68337         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
68338         (xmalloc, xrealloc): Use them.
68339         (xcalloc): Check for address arithmetic overflow.
68340         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
68341         a bit faster than strcpy.
68342
68343 2003-10-10  Simon Josefsson  <jas@extundo.com>
68344
68345         * modules/argp (Depends-on): Add restrict and strcase.
68346
68347 2003-10-10  Simon Josefsson  <jas@extundo.com>
68348
68349         * m4/argp.m4: Add AC_C_INLINE.
68350
68351 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68352
68353         Merge getpass from libc, plus a few fixes.
68354
68355         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
68356         Include <stdbool.h>.
68357         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
68358         __fsetlocking to empty.
68359         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
68360         do include <bits/libc-lock.h>.
68361         Do not include <fcntl.h>; not needed.
68362         [_LIBC]: Include <wchar.h>.
68363         (NOTCANCEL_MODE): New macro.
68364         (flockfile, funlockfile) [_LIBC]: New macros.
68365         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
68366         [!_LIBC]: New macros.
68367         (call_fclose): New function.
68368         (getpass): Use it.  Save tty stream separately; this simplifies the
68369         code and makes it more reliable if stdin happens to equal stdout.
68370         Invoke __fsetlocking on tty.
68371         Handle thread cancellation if needed.
68372         Namespace cleanup (use __tcgetattr, __getline).
68373         Use bool for Booleans.
68374         [USE_IN_LIBIO]: Handle wide streams.
68375         [!_LIBC]: Unconditionally do the fseek, since we don't know what
68376         stream might go where.
68377
68378         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
68379         doesn't have to include <stdio.h> before us.
68380         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
68381         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
68382         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
68383         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
68384         if not declared, so that we can use getpass.c code from libc without
68385         rewriting it.
68386         (flockfile, ftrylockfile, funlockfile): New macros.
68387
68388 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68389
68390         * modules/getpass: Depend on stdbool.
68391
68392 2003-10-08  Paul Eggert  <eggert@twinsun.com>
68393
68394         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
68395
68396 2003-10-07  Karl Berry  <karl@gnu.org>
68397
68398         * config/config.{guess,sub}: update from config.
68399
68400 2003-10-06  Jim Meyering  <jim@meyering.net>
68401             Bruno Haible  <bruno@clisp.org>
68402
68403         This lets translators provide better translations for the
68404         "Written by ..." part of --version output.
68405         * lib/version-etc.h: Include stdarg.h.
68406         (version_etc_copyright): Declare as readonly.
68407         (version_etc): Make this function variadic with a NULL-terminated list
68408         of author name strings.
68409         (version_etc_va): New declaration.
68410         * lib/version-etc.c: Include stdarg.h, stdlib.h.
68411         (version_etc_copyright): Declare as readonly.
68412         (version_etc_va): New function. Provide a different translatable string
68413         for each possible number of authors < 10. Abbreviate when there are 10
68414         authors or more.
68415         (version_etc): Make this function variadic. Call version_etc_va.
68416         Suggestion from Gary V. Vaughan.
68417
68418         * lib/long-options.h (parse_long_options): Change prototype: the
68419         authors string is moved to the end and becomes variadic.
68420         * lib/long-options.c: Include stdarg.h.
68421         (parse_long_options): Make this function variadic, too.
68422         Call version_etc_va, not version_etc.
68423
68424 2003-10-06  Bruno Haible  <bruno@clisp.org>
68425
68426         * modules/version-etc-2: Remove file.
68427         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
68428
68429 2003-10-06  Bruno Haible  <bruno@clisp.org>
68430
68431         * modules/fatal-signal: New file.
68432         * MODULES.html.sh (func_all_modules): Add fatal-signal.
68433
68434 2003-10-06  Bruno Haible  <bruno@clisp.org>
68435
68436         * m4/fatal-signal.m4: New file.
68437         * m4/signalblocking.m4: New file, from GNU gettext.
68438
68439 2003-10-06  Bruno Haible  <bruno@clisp.org>
68440
68441         * lib/version-etc-2.h: Remove file.
68442         * lib/version-etc-2.c: Remove file.
68443
68444 2003-10-06  Bruno Haible  <bruno@clisp.org>
68445
68446         * lib/fatal-signal.h: New file, from GNU gettext.
68447         * lib/fatal-signal.c: New file, from GNU gettext.
68448
68449 2003-10-05  Paul Eggert  <eggert@twinsun.com>
68450
68451         * README: Rework advice for preventing empty .o files.
68452         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
68453         not <sys/types.h>.
68454
68455 2003-10-04  Karl Berry  <karl@gnu.org>
68456
68457         * lib/argp*: update from libc.
68458
68459 2003-10-04  Karl Berry  <karl@gnu.org>
68460
68461         * config/config.{guess,sub}: update from config.
68462
68463 2003-10-02  Bruno Haible  <bruno@clisp.org>
68464
68465         * modules/lchown (Include): Add lchown.h.
68466         * modules/time_r (Include): Use "..." syntax.
68467         * modules/xgetdomainname (Include): Add xgetdomainname.h.
68468
68469 2003-10-01  Simon Josefsson  <jas@extundo.com>
68470
68471         * MODULES.html.sh (func_all_modules): Move gethostname from section
68472         'based on' to section 'lacking' POSIX:2001.
68473
68474 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
68475
68476         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
68477         to output mode on the same stream.
68478
68479 2003-09-29  Paul Eggert  <eggert@twinsun.com>
68480
68481         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
68482         Fix arg typo in previous patch.
68483
68484 2003-09-28  Jim Meyering  <jim@meyering.net>
68485
68486         * lib/error.c: Correct cpp indentation.
68487
68488 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68489
68490         * modules/free: New file.
68491
68492 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68493
68494         * m4/free.m4: New file.
68495
68496 2003-09-27  Paul Eggert  <eggert@twinsun.com>
68497
68498         * lib/minmax.h (MIN, MAX)
68499         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
68500         Omit the special code that used __typeof__, since we worry that
68501         it could be more trouble than it's worth.  See:
68502         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
68503         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
68504
68505         * lib/free.c: New file.
68506
68507 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
68508
68509         Trivial fixes to Makefile.am parts of module listings.
68510         * modules/strstr: Append strstr.h to lib_SOURCES.
68511         * modules/strcase: Likewise, for strcase.h.
68512
68513 2003-09-27  Karl Berry  <karl@gnu.org>
68514
68515         * config/mkinstalldirs: update from automake.
68516
68517 2003-09-26  Paul Eggert  <eggert@twinsun.com>
68518
68519         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
68520         (error_tail): Do not loop, reallocating temporary buffer, since
68521         the output cannot contain more wide characters than the input
68522         contains bytes, the size must be big enough already.  This avoids
68523         one potential size overflow calculation.  Check for size overflow
68524         when calculating temporary buffer size.  Free temporary buffer
68525         when done, if it was allocated with malloc; this plugs a memory
68526         leak.  Remove casts from void * to pointers, that are no longer
68527         needed now that we're assuming C89 or better.
68528
68529         Merge error changes from glibc.
68530
68531         * lib/error.c, error.h: Update copyright notice header to match glibc.
68532         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
68533         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
68534         Disable cancellation while printing error.
68535         * lib/error.h: Prepend __ to parameter names.
68536
68537 2003-09-26  Jim Meyering  <jim@meyering.net>
68538
68539         * lib/error.c (error_tail): Move some declarations
68540         into inner scope where the local variables are used.
68541
68542 2003-09-26  Bruno Haible  <bruno@clisp.org>
68543
68544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
68545         stpncpy().
68546         Don't define stpncpy through config.h; it's now done through stpncpy.h.
68547
68548 2003-09-26  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/stpncpy.h (gnu_stpncpy): New declaration.
68551         (stpncpy): Define as alias for gnu_stpncpy.
68552         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
68553
68554 2003-09-25  Simon Josefsson  <jas@extundo.com>
68555
68556         * lib/xgetdomainname.h: New file.
68557         * lib/xgetdomainname.c: New file.
68558
68559 2003-09-25  Simon Josefsson  <jas@extundo.com>
68560             Bruno Haible  <bruno@clisp.org>
68561
68562         * modules/getdomainname: New file.
68563         * modules/xgetdomainname: New file.
68564         * MODULES.html.sh (func_all_modules): Add getdomainname,
68565         xgetdomainname.
68566
68567 2003-09-25  Simon Josefsson  <jas@extundo.com>
68568             Bruno Haible  <bruno@clisp.org>
68569
68570         * m4/getdomainname.m4: New file.
68571
68572 2003-09-25  Simon Josefsson  <jas@extundo.com>
68573             Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/getdomainname.h: New file.
68576         * lib/getdomainname.c: New file.
68577
68578 2003-09-25  Karl Berry  <karl@gnu.org>
68579
68580         * lib/argp-fmtstream.c, argp-help.c: update from libc.
68581
68582 2003-09-25  Karl Berry  <karl@gnu.org>
68583
68584         * config/install-sh: update from automake.
68585
68586 2003-09-25  Bruno Haible  <bruno@clisp.org>
68587
68588         * modules/version-etc-2: New file, from modules/version-etc with
68589         modifications.
68590         * MODULES.html.sh (func_all_modules): Add version-etc-2.
68591
68592 2003-09-25  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
68595         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
68596
68597 2003-09-24  Simon Josefsson  <jas@extundo.com>
68598
68599         * modules/xgethostname: Add xgethostname.h.
68600
68601 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68602
68603         * lib/linebuffer.c (freebuffer): Don't free the argument, just
68604         the buffer associated with the argument.  Bug reported by
68605         Simon Josefsson.
68606
68607 2003-09-24  Paul Eggert  <eggert@twinsun.com>
68608
68609         * README: Document assumptions that 'int' is at least 32 bits
68610         wide, that integer arithmetic is 2's complement without overflow,
68611         that there are no holes in integer values, that adding sizes of
68612         two nonoverlapping objects can't overflow, and that all-bits-zero
68613         yields scalar zero.  Fix spelling and capitalization typos.
68614
68615 2003-09-19  Karl Berry  <karl@gnu.org>
68616
68617         * lib/argp.h: update from libc.
68618
68619 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68620
68621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
68622         to avoid spurious warnings like "AC_RUN_IFELSE was called before
68623         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
68624
68625 2003-09-17  Paul Eggert  <eggert@twinsun.com>
68626
68627         * gnulib-tool: Use "test -h", not "test -L", for portability
68628         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
68629         (tags_regexp): Remove, since \| doesn't conform to POSIX.
68630         (sed_extract_prog): Issue s commands one-by-one, rather than
68631         using \| in one s command.
68632
68633 2003-09-16  Paul Eggert  <eggert@twinsun.com>
68634
68635         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
68636         input error, instead of returning NULL the next time we are called
68637         (and therefore losing track of errno).
68638
68639 2003-09-16  Bruno Haible  <bruno@clisp.org>
68640
68641         * gnulib-tool (func_create_testdir): Warn about duplicated
68642         dependencies.
68643
68644 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68645
68646         * modules/argmatch, modules/fatal, modules/obstack,
68647         modules/xalloc, modules/xgethostname: Sort dependencies by
68648         importance, not alphabetically.
68649
68650 2003-09-15  Paul Eggert  <eggert@twinsun.com>
68651
68652         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
68653         fails, so that the caller gets the proper errno.
68654
68655         * lib/readutmp.c (read_utmp): Likewise.
68656         Check for fstat error.  Close stream and free storage
68657         when failing.
68658
68659 2003-09-14  Karl Berry  <karl@gnu.org>
68660
68661         * config/srclist.txt (strdup.c): disable for c89 changes.
68662
68663 2003-09-14  Jim Meyering  <jim@meyering.net>
68664
68665         * lib/getloadavg.c: Correct cpp indentation.
68666         * lib/strdup.c: Likewise.
68667         * lib/vasnprintf.c: Likewise.
68668
68669 2003-09-14  Bruno Haible  <bruno@clisp.org>
68670
68671         * modules/fwriteerror: New file.
68672         * MODULES.html.sh (func_all_modules): Add fwriteerror.
68673
68674 2003-09-14  Bruno Haible  <bruno@clisp.org>
68675
68676         * lib/fwriteerror.h: New file.
68677         * lib/fwriteerror.c: New file.
68678
68679 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68680
68681         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
68682         modules/xgethostname, modules/xalloc: Depend on exit.
68683
68684 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68685
68686         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
68687
68688         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
68689         and AC_MINIX, too, so that their extensions are available.
68690
68691         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
68692         This macro has been superseded by gl_BACKUPFILE.
68693
68694         More patches to assume C89 or better.
68695
68696         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
68697
68698         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
68699         unconditionally.
68700         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
68701         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
68702         Include <string.h>, <stdlib.h> unconditionally.
68703         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
68704         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
68705         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
68706         headers or for string.h.
68707         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
68708         or strtoul.
68709
68710         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
68711         headers.
68712         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
68713         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68714         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
68715         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
68716         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
68718         memcpy, memset.
68719         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
68720         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
68721         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
68722         strtol.
68723         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
68724         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
68725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
68726         strtoul.
68727
68728 2003-09-12  Paul Eggert  <eggert@twinsun.com>
68729
68730         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
68731         * lib/obstack.c [!defined _LIBC]: Likewise.
68732         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
68733         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
68734         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
68735
68736         More changes to assume C89 or better.
68737
68738         * lib/error.c (error_tail): Assume vprintf.
68739
68740         * lib/argmatch.c (getenv): Remove decl.
68741         * lib/progreloc.c (get_full_program_name): Define via prototype.
68742         * lib/setenv.c (clearenv): Likewise.
68743         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
68744         needed.
68745         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
68746         (malloc, memcpy): Remove decls.
68747         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
68748         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
68749         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68750         (memcpy): Remove macro.
68751         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
68752         (__P): Remove.  All uses removed.
68753         (PTR): Remove.  All uses changed to void *.
68754         (CHAR_BIT, NULL): Remove.
68755         (spaces, zeros, memset_space, memset_zero)
68756         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
68757         Remove.
68758         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
68759         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
68760         Define with prototype.
68761         Remove now-unnecessary prototype decl.
68762         (extra_args_spec): Assume ANSI C.  All uses changed.
68763         (extra_args_spec_iso): Remove.
68764         (my_strftime, emacs_strftimeu): Define via prototype.
68765         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
68766         unconditionally.
68767         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
68768         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
68769         (strtoul, strtol): Remove decls.
68770         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
68771         LONG_MAX): Remove.
68772         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
68773         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
68774         (LOCALE_PARAM_PROTO): New macro.
68775         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
68776         (INTERNAL (strtol), strtol): Define with a prototype.
68777         (PARAMS): Remove.  All uses removed.
68778         * lib/tempname.c: Include <string.h> unconditionally.
68779         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
68780         * lib/xgethostname.c (main): Define with a prototype.
68781         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
68782         Include <stdlib.h> unconditionally.
68783         (calloc, malloc, realloc, free): Remove decls.
68784         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
68785         Include <stdlib.h> unconditionally.  Sort include file names.
68786         (strtod): Remove.
68787         (xstrtod): Define with a prototype.
68788         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
68789         (strtol, strtoul): Remove decls.
68790
68791 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68792
68793         More patches to assume C89 or better.
68794         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
68795         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
68796         string.h, memchr, STDC_HEADERS.
68797
68798 2003-09-11  Paul Eggert  <eggert@twinsun.com>
68799
68800         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
68801         Include <stdlib.h>, <string.h> unconditionally.
68802         Remove now-unnecessary cast to char *.
68803         * lib/strnlen.c: Include <string.h> unconditionally.
68804         * lib/yesno.c (yesno): Define with a prototype.
68805
68806 2003-09-11  Bruno Haible  <bruno@clisp.org>
68807
68808         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
68809
68810 2003-09-10  Jim Meyering  <jim@meyering.net>
68811
68812         * lib/error.c: Correct indentation of cpp directives.
68813
68814 2003-09-10  Bruno Haible  <bruno@clisp.org>
68815
68816         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
68817         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
68818         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
68819         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
68820         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
68821         <stdlib.h> and <string.h> checks.
68822         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
68823         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
68824
68825 2003-09-10  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/strcspn.c: Include <string.h> unconditionally.
68828         * lib/strpbrk.c: Include <string.h> unconditionally.
68829         * lib/strstr.c: Include <string.h> unconditionally.
68830         * lib/unicodeio.c: Include <string.h> unconditionally.
68831         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
68832         * lib/unsetenv.c: Likewise.
68833         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
68834         * lib/yesno.c: Include <stdlib.h> unconditionally.
68835         (rpmatch): Add prototype.
68836
68837 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68838
68839         More patches to assume C89 or better.
68840         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
68841         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
68842         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
68843         or for string.h.
68844         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
68845         stdlib.h.
68846         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
68847         C headers.
68848         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
68849         string.h.
68850         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
68851         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
68852         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
68853         or for string.h.
68854         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
68855         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
68856         C headers.
68857         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
68858         memcpy.
68859         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
68860         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
68861         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
68862         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
68863         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
68864         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
68865         string.h, free.
68866         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
68867         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
68868         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
68869         C headers, or for string.h.
68870         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
68871         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
68872         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
68873         headers, memory.h, stdlib.h, string.h, strings.h.
68874         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
68875         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
68876         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
68877         strchr.
68878         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
68879         headers, memory.h, string.h.
68880         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
68881         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
68882         free.
68883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
68884         headers.
68885         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
68886         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
68887         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
68888         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
68889         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
68890
68891 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68892
68893         More K&R removal.
68894
68895         * lib/acosl.c (main): Use a prototype.
68896         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
68897         tanl.c: Likewise.
68898
68899         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
68900
68901         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
68902         (getopt, etopt_long, getopt_long_only, _getopt_internal)
68903         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
68904         with a prototype.
68905         * lib/getopt.c (const): Remove macro.
68906         Include <string.h> unconditionally.
68907         (my_index): Remove; all uses changed to strchr.
68908         (strlen): Remove decl.
68909         (exchange): Remove forward decl; no longer needed.
68910         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
68911         Define with prototype.
68912         * lib/getopt1.c (const): Remove macro.
68913         (getopt_long, getopt_long_only, main): Define with prototype.
68914
68915         * lib/getugroups.c: Include <string.h> unconditionally.
68916
68917         * lib/getusershell.c: Include <stdlib.h> unconditionally.
68918         (getusershell, setusershell, endusershell, readname, main):
68919         Define with prototypes.
68920
68921         * lib/group-member.c: Include group-member.h first.
68922         Include <stdlib.h> unconditionally.
68923
68924         * lib/hard-locale.c: Include hard-locale.h first.
68925         Include <stdlib.h>, <string.h> unconditionally.
68926
68927         * lib/hash.c (free, malloc): Remove decls.
68928         Include <stdlib.h> unconditionally.
68929
68930         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
68931         (getenv): Do not declare.
68932
68933         * lib/idcache.c: Include <string.h> unconditionally.
68934
68935         * lib/long-options.c: Include long-options.h first, to test interface.
68936         Include <stdlib.h> unconditionally.
68937
68938         * lib/makepath.c: Include makepath.h first, to test interface.
68939         Include <stdlib.h> and <string.h> unconditionally.
68940
68941         * lib/linebuffer.c: Include <stdlib.h>.
68942         (free): Remove decl.
68943
68944         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
68945         stddef.h. rpl_malloc returns void *, not char *.
68946         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
68947         prototype.
68948
68949         * lib/md5.h: Include <limits.h> unconditionally.
68950         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
68951         (__P): Remove; all uses removed.
68952         * lib/md5.c: Include "md5.h" first.
68953         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
68954         md5_buffer, md5_process_bytes, md5_process_block):
68955         Define with prototypes.
68956         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
68957         * lib/sha.c: Include "sha.h" first.
68958         Include <stdlib.h>, <string.h> unconditionally.
68959
68960         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
68961         * lib/memcmp.c (__ptr_t): Likewise.
68962         * lib/memrchr.c (__ptr_t): Likewise.
68963         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
68964         Include <string.h> unconditionally.
68965         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
68966         * lib/memchr.c: Include <stdlib.h> unconditionally.
68967         * lib/memchr.c (LONG_MAX): Remove.
68968         * lib/memrchr.c (LONG_MAX): Likewise.
68969         * lib/memchr.c (__memchr): Define via a prototype.
68970         * lib/memrchr.c (__memrchr): Likewise.
68971         * lib/memcmp.c (__P): Remove, and remove all uses.
68972         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
68973         Remove forward decls; no longer needed.
68974         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
68975         Use types required by C89 in prototype.
68976
68977         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
68978         * lib/savedir.c: Likewise.
68979         * lib/mkdir.c (free): Remove decl.
68980         * lib/rmdir.c (rmdir): Define with a prototype.
68981         * lib/savedir.c: Include savedir.h first, to test interface.
68982
68983         * lib/mktime.c (STDC_HEADERS): Remove.
68984         Include <stdlib.h>, <string.h> unconditionally.
68985
68986         * lib/modechange.c: Include <stdlib.h> unconditionally.
68987         (malloc): Remove decl.
68988
68989         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
68990         (free): Remove decl.
68991
68992         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
68993         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
68994         (This type really should be intptr_t, but that's a C99ism.)
68995         (_obstack_memcpy): Remove: all uses changed to memcpy.
68996         Include <string.h> unconditionally.
68997         (struct obstack): Assume __STDC__ for types of members
68998         chunkfun, freefun, extra_arg.
68999         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
69000         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
69001         obstack_begin, obstack_specify_allocation,
69002         obstack_specify_allocation_with_arg, obstack_chunkfun,
69003         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
69004         Remove unprototyped decls and the macros that use them.
69005         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
69006         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
69007         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
69008         (defined __STDC__ && __STDC__)]:
69009         Remove nonprototyped code.
69010         Include <stdlib.h> unconditionally.
69011         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
69012         _obstack_allocated_p, _obstack_free, obstack_free,
69013         _obstack_memory_used, print_and_abort):
69014         Define using prototypes.
69015         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
69016         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
69017         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
69018         obstack_next_free, obstack_object_size, obstack_room) [0]:
69019         Remove unused, unprototyped code.
69020
69021         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
69022
69023         * lib/physmem.c (physmem_total, physmem_available, main): Define
69024         with prototypes.
69025
69026         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
69027         (main): Define with a prototype.
69028
69029         * lib/posixver.c (getenv): Remove decl.
69030
69031         * lib/putenv.c (malloc): Returns void *, not char *.
69032         Include <string.h> unconditionally.
69033         (strchr, memcpy, NULL): Do not define.
69034
69035         * lib/readtokens.c: Include readtokens.h first, to test interface.
69036         Include <stdlib.h>, <string.h> unconditionally.
69037         (init_tokenbuffer): Define with a prototype.
69038
69039         * lib/regex.c (PARAMS): Remove.  All uses removed.
69040         All uses of _RE_ARGS removed, too.
69041         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69042         unconditionally.
69043         (bzero): Assume memset exists.
69044         (memcmp, memcpy, NULL): Remove.
69045         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
69046         char, or assignments to local vars of type signed char.
69047         (init_syntax_once, PREFIX(extract_number_and_incr),
69048         PREFIX(print_partial_compiled_pattern),
69049         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
69050         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
69051         PREFIX(regex_grow_registers), PREFIX(regex_compile),
69052         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
69053         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
69054         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
69055         wcs_compile_range, byte_compile_range, truncate_wchar,
69056         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
69057         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
69058         count_mbs_length, wcs_re_match_2_internal,
69059         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
69060         PREFIX(alt_match_null_string_p),
69061         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
69062         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
69063         regfree, PREFIX(extract_number)): Define with prototype.  Remove
69064         now-unnecessary declaration, if any.
69065         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
69066         regcomp, regexec):
69067         Remove now-unnecessary casts among pointer types.
69068         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
69069
69070         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
69071         (free): Remove decl.
69072
69073         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
69074
69075         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
69076         (free): Remove decl.
69077
69078         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
69079         * lib/xgetcwd.c: Likewise.
69080
69081         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
69082         (free): Remove decl.
69083
69084         * lib/strchrnul.c (strchrnul): Define with a prototype.
69085         Fix bug: c_in was not converted to char before searching.
69086
69087         The following changes are not K&R related:
69088
69089         * lib/group-member.h: Include <sys/types.h>, so that this file is
69090         self-contained.
69091         * lib/makepath.h: Likewise.
69092
69093         * lib/getusershell.c (readname, default_index, line_size, readname):
69094         Use size_t, not int, for sizes.
69095         (readname): If the size overflows, report an error instead of
69096         looping forever.
69097
69098 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69099
69100         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
69101         libc.
69102
69103 2003-09-09  Paul Eggert  <eggert@twinsun.com>
69104
69105         * README: New section: portability guidelines.
69106
69107 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69108
69109         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
69110         C89 spec.
69111
69112 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
69113
69114         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
69115
69116 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69117
69118         Assume C89 or better; remove K&R cruft.
69119         A few of these changes were first proposed by Derek Robert Price
69120         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
69121
69122         * lib/addext.c: Include <string.h> unconditionally.
69123         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
69124         Don't declare getenv or malloc.
69125
69126         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
69127         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
69128         (NULL): Remove.
69129         (find_stack_direction, alloca): Use prototypes.
69130
69131         * lib/atexit.c (atexit): Define using a prototype.
69132
69133         * lib/basename.c, dirname.c, stripslash.c:
69134         Include <string.h> unconditionally.
69135
69136         * lib/bcopy.c: Include <stddef.h>.
69137         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
69138
69139         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
69140
69141         * lib/error.h (error, error_at_line, error_print_progname)
69142         [! (defined (__STDC__) && __STDC__)]: Remove decls.
69143         * lib/error.c: Include error.h first, to check interface.
69144         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69145         (VA_START): Remove; all uses changeed to va_start.
69146         (exit, strerror): Remove decls.
69147         (error_print_progname): Prototype uncondionally.
69148         Don't include <errno.h>; no longer needed.
69149         (private_strerror): Remove.
69150         (error_tail): Always define.
69151         (error, error_at_line): Assume C89 or better; always use prototypes.
69152         * lib/fatal.c: Include "fatal.h" first, to test interface.
69153         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
69154         (VA_START): Remove; all uses changed to va_start.
69155         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
69156         this case.
69157         (exit): Remove decl.
69158         (fatal): Prototype unconditionally.  Assume va_start works.
69159         Abort at end, to pacify gcc.
69160
69161         * lib/euidaccess.c (main): Define with a prototype.
69162
69163         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
69164
69165         * lib/exitfail.c: Include <stdlib.h> unconditionally.
69166
69167         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
69168         prototypes.
69169         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
69170         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
69171         (getenv): Remove decl.
69172         (fnmatch): Define using a prototype.
69173         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
69174         (FCT): Define using a prototype.
69175
69176         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
69177
69178         * lib/gethostname.c: Include <stddef.h>.
69179         (gethostname): Define with prototype.  Length is size_t, not int.
69180
69181 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69182
69183         Assume C89 or better; remove K&R cruft.
69184         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
69185         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
69186         string.h, getenv, malloc.
69187         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
69188         headers.
69189         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
69190         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
69191         do not check for strerror.
69192         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
69193         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
69194         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
69195         do not check for doprnt or vprintf.
69196         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
69197         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
69198
69199 2003-09-08  Paul Eggert  <eggert@twinsun.com>
69200
69201         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
69202         getversion.c should have been removed then, but was accidentally
69203         preserved.
69204
69205         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
69206         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
69207
69208 2003-09-08  Karl Berry  <karl@gnu.org>
69209
69210         * config/config.sub, config.guess, srclistvars.sh: update from savannah
69211                 config, forget about prep.
69212
69213         * config/depcomp, missing: update from automake.
69214
69215 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69216
69217         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
69218         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69219
69220 2003-09-07  Paul Eggert  <eggert@twinsun.com>
69221
69222         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
69223         copy_tm_result.  Bug reported by Simon Josefsson in
69224         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
69225
69226 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69227
69228         * m4/time_r.m4: New file.
69229         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
69230         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
69231         is. Check for timegm declaration.
69232         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
69233         Do not check for gmtime_r.
69234         Replace mktime if __mktime_internal does not exist and if mktime
69235         hasn't been replaced already.
69236
69237 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69238
69239         * lib/time_r.c, lib/time_r.h: New files.
69240
69241         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
69242         __localtime_r.
69243         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
69244         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
69245
69246         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
69247         __gmtime_r.
69248         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
69249         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
69250         Include <time_r.h>.
69251
69252         * lib/timegm.c: Switch to glibc implementation, with the following
69253         changes:
69254         [defined HAVE_CONFIG_H]: Include <config.h>.
69255         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
69256         (__mktime_internal) [!defined _LIBC]: New decl.
69257         (__gmtime_r) [!defined _LIBC]: New macro and function.
69258         (timegm): Use a prototype, since gnulib assumes C89.
69259         Do not bother declaring tmp to be const, as it's not really usefu.
69260         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
69261         (timegm): Declare only if HAVE_DECL_TIMEGM.
69262
69263 2003-09-06  Paul Eggert  <eggert@twinsun.com>
69264
69265         * MODULES.html.sh (func_all_modules): Add time_r.
69266         * modules/time_r: New file.
69267         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
69268         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
69269
69270 2003-09-03  Paul Eggert  <eggert@twinsun.com>
69271
69272         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
69273         Bug reported by Lute Kamstra in
69274         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
69275
69276         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
69277         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
69278         course with correspondingly smaller numbers for tomorrow and
69279         yesterday.  From Tadayoshi Funaba.  Originally installed into
69280         sh-utils on 1999-08-07, but the patch got lost (I guess during the
69281         coreutils merge?).
69282
69283 2003-08-31  Simon Josefsson  <jas@extundo.com>
69284
69285         * modules/timegm: New file.
69286         * MODULES.html.sh (func_all_modules): Add timegm.
69287
69288 2003-08-31  Simon Josefsson  <jas@extundo.com>
69289
69290         * m4/timegm.m4: New file.
69291
69292 2003-08-31  Simon Josefsson  <jas@extundo.com>
69293
69294         * lib/timegm.h: New file.
69295         * lib/timegm.c: New file.  Based on
69296         wget-1.8.2/src/http.c:mktime_from_utc.
69297
69298 2003-08-31  Karl Berry  <karl@gnu.org>
69299
69300         * lib/argp.h: update from libc.
69301
69302 2003-08-28  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
69305         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
69306         followed by '#define fnmatch fnmatch_posix' gives an error.
69307
69308 2003-08-28  Bruno Haible  <bruno@clisp.org>
69309
69310         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
69311         warning on QNX, which defines O_BINARY to 000000.
69312
69313 2003-08-27  Jim Meyering  <jim@meyering.net>
69314
69315         * m4/mkstemp.m4: Require that the system mkstemp be able to create
69316         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
69317         would fail after 32.  Reported by Danny Levinson.  Details here:
69318         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
69319
69320 2003-08-24  Bruno Haible  <bruno@clisp.org>
69321
69322         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
69323         MSVC7 <stdio.h> is included later.
69324
69325 2003-08-22  Simon Josefsson  <jas@extundo.com>
69326
69327         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
69328
69329 2003-08-20  Karl Berry  <karl@gnu.org>
69330
69331         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
69332
69333 2003-08-20  Bruno Haible  <bruno@clisp.org>
69334
69335         * modules/progname: New file.
69336         * MODULES.html.sh (func_all_modules): Add progname.
69337
69338 2003-08-20  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/progname.h: New file, from GNU gettext.
69341         * lib/progname.c: New file, from GNU gettext.
69342         * lib/progreloc.c: New file, from GNU gettext.
69343
69344 2003-08-19  Jim Meyering  <jim@meyering.net>
69345
69346         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
69347         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
69348
69349 2003-08-19  Bruno Haible  <bruno@clisp.org>
69350
69351         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
69352         more.
69353
69354 2003-08-19  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/xstrdup.c: Assume <string.h> exists.
69357
69358 2003-08-18  Paul Eggert  <eggert@twinsun.com>
69359
69360         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
69361         in makefile rules.
69362
69363 2003-08-18  Jim Meyering  <jim@meyering.net>
69364
69365         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
69366         * m4/lib-ld.m4: Likewise.
69367
69368 2003-08-18  Jim Meyering  <jim@meyering.net>
69369
69370         * lib/setenv.h: Indent nested cpp directive.
69371         * lib/vasnprintf.c: Remove trailing blanks.
69372
69373 2003-08-17  Simon Josefsson  <jas@extundo.com>
69374
69375         * modules/xstrndup: New file.
69376         * MODULES.html.sh (func_all_modules): Add xstrndup.
69377
69378 2003-08-17  Simon Josefsson  <jas@extundo.com>
69379
69380         * modules/argp: Fix autoconf macro name. Add more dependencies.
69381
69382 2003-08-17  Simon Josefsson  <jas@extundo.com>
69383
69384         * m4/xstrndup.m4: New file.
69385
69386 2003-08-17  Simon Josefsson  <jas@extundo.com>
69387
69388         * m4/argp.m4: New file.
69389
69390 2003-08-17  Simon Josefsson  <jas@extundo.com>
69391             Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/xstrndup.h: New file.
69394         * lib/xstrndup.c: New file.
69395
69396 2003-08-17  Bruno Haible  <bruno@clisp.org>
69397
69398         * modules/strndup (Files, Include): Add lib/strndup.h.
69399
69400 2003-08-17  Bruno Haible  <bruno@clisp.org>
69401
69402         * modules/euidaccess (Files): Add lib/euidaccess.h.
69403
69404 2003-08-17  Bruno Haible  <bruno@clisp.org>
69405
69406         * lib/strndup.h: New file.
69407
69408 2003-08-17  Bruno Haible  <bruno@clisp.org>
69409
69410         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
69411         like AC_GNU_SOURCE.
69412         * modules/extensions (configure.ac): Comment out the invocation of
69413         gl_USE_SYSTEM_EXTENSIONS.
69414
69415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69416
69417         Merges from coreutils, etc.
69418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
69419         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
69420         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
69421         fixing a typo.
69422         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
69423         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
69424
69425 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69426
69427         Document merge from coreutils.
69428         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
69429         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
69430         * modules/utime: Add m4/utimes-null.m4.
69431
69432 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69433
69434         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
69435         space, undoing this 2003-08-12 change:
69436         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69437
69438 2003-08-16  Paul Eggert  <eggert@twinsun.com>
69439
69440         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
69441         strtoul.c from libc, undoing this 2003-08-12 change:
69442         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
69443
69444 2003-08-16  Jim Meyering  <jim@meyering.net>
69445
69446         Merges from coreutils.
69447         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
69448         prefix.  Adjust cache variables similarly.  Create 500 rather than
69449         just 300 files, to exercise bug on Darwin6.5, too.
69450         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
69451         $missing_dir.
69452         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
69453         AM_SYS_POSIX_TERMIOS.
69454         Reported by mkc@mathdogs.com.
69455         Also change use of $am_cv_sys_posix_termios
69456         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
69457         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
69458         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
69459         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
69460         in /proc/mounts until it finds one with matching device number.  This
69461         is unnecessary when the FILE argument *is* a mount point.  No stat call
69462         is necessary in that case.  So, disable the statvfs-testing code on
69463         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
69464         as RedHat bug# 84846.
69465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69466         to 1MB, so as not to render systems with no stack size limit (e.g.,
69467         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69468         Include <unistd.h>.  On some systems,
69469         it is required for the definition of _SC_PAGESIZE.
69470
69471 2003-08-16  Jim Meyering  <jim@meyering.net>
69472
69473         Merge from coreutils.
69474         * lib/xstrtoimax.c: #else #if -> #elif.
69475         * lib/xstrtoumax.c: Likewise.
69476
69477 2003-08-16  Jim Meyering  <jim@meyering.net>
69478
69479         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
69480         * m4/utimes.m4: Removed.
69481         * m4/utimes-null.m4: Renamed from utimes.m4.
69482
69483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
69484         to 1MB, so as not to render systems with no stack size limit (e.g.,
69485         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
69486         Include <unistd.h>.  On some systems,
69487         it is required for the definition of _SC_PAGESIZE.
69488
69489 2003-08-16  Jim Meyering  <jim@meyering.net>
69490         and Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         Merges from coreutils, etc.
69493
69494         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
69495         using the latest version from cvs.  This avoids problems with #line
69496         directives using a vendor (Sun) compiler.
69497         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
69498         Don't set GETGROUPS_LIB here; now it's
69499         done via getgroups.m4's wrapper function.
69500         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
69501         rather than just in sh-util/configure.in, so that the
69502         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
69503         same.
69504         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
69505         AC_FUNC_GETLOADAVG where to find getloadavg.c.
69506         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
69507         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
69508         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
69509         Remove code that is now done by the newly-required macros.
69510         Append $(EXEEXT) to DF_PROG.
69511         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
69512         Do not invoke or require the following here,
69513         since prereq.m4 or some gnulib .m4 now does this for us:
69514         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
69515         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
69516         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
69517         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
69518         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
69519         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
69520         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
69521         AC_FUNC_OBSTACK.
69522         Do not replace the following functions, as this is now the job
69523         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
69524         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
69525         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
69526         atexit getpass, strdup, getpagesize.
69527         Replace 'raise'.
69528         Do not check for the following functions, as this is now the job
69529         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
69530         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
69531         setregid.
69532         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
69533         Check for sys/sysctl.h.
69534         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
69535         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
69536         of checking for ssize_t ourselves.
69537
69538         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
69539         Require every macro that gnulib/modules/* suggests for us.
69540         (jm_PREREQ_ADDEXT): New macro.
69541         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
69542         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
69543
69544         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
69545         (gl_PHYSMEM): Use it.
69546         Also check for `table' function.
69547         Check for new headers and functions.
69548         Add check for sys/sysmp.h.
69549         With suggestions from Kaveh Ghazi.
69550         Ignore headers that are present but cannot be compiled.  This
69551         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
69552         C 5.4.
69553
69554 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69555
69556         Document merge from coreutils.
69557         * modules/userspec: Depend on posixver.
69558         * modules/strftime: Depend on tzset.
69559
69560 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69561
69562         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
69563         rather than tab, after '#' in shell-script copyright notices.
69564         Suggested by Bruno Haible.
69565
69566 2003-08-15  Paul Eggert  <eggert@twinsun.com>
69567
69568         * config/srclist-update: Use three spaces, rather than tab, after '#'
69569         in shell-script copyright notices.  Suggested by Bruno Haible.
69570         Remove unnecessary parenthesization in regular expression.
69571
69572 2003-08-15  Jim Meyering  <jim@meyering.net>
69573
69574         Merge from coreutils.
69575         * lib/xgethostname.c: Include <stdlib.h>.
69576         (xghostname): Don't exit for anything other than memory-related
69577         failure; just return NULL.
69578         * lib/userspec.c: Include "posixver.h".
69579         (parse_user_spec): Accept `.' as a separator only
69580         in pre-POSIX-200112 mode.
69581         * lib/strtoimax.c: Use #elif rather than #else #if.
69582         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
69583         Remove function, now that we can rely on a working tzset function.
69584         [!_LIBC]: Ensure that the required autoconf test has been run.
69585         [!defined _NL_CURRENT && HAVE_STRFTIME]:
69586         Use underlying_strftime for %r.
69587         * lib/sha.c: Merge in some clean-up and optimization changes from
69588         glibc.
69589         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
69590         Ensure that it is a multiple of 64.
69591         Rearrange loop exit tests so as to avoid performing an
69592         additional fread after encountering an error or EOF.
69593         * lib/realloc.c: Update copyright date.
69594
69595 2003-08-15  Jim Meyering  <jim@meyering.net>
69596         and Paul Eggert  <eggert@twinsun.com>
69597
69598         Merge from coreutils.
69599         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
69600         member but strut utmpx does not.  Needed for AIX 4.3.3.
69601         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
69602
69603 2003-08-15  Jim Meyering  <jim@meyering.net>
69604         and Paul Eggert  <eggert@cs.ucla.edu>
69605
69606         Merges from coreutils, etc.
69607         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
69608         Require gl_FUNC_TZSET_CLOBBER.
69609         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
69610         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
69611         members.
69612
69613 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69614
69615         Help the merge from coreutils.
69616         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
69617         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
69618         * m4/tzset.m4: Use it too.
69619
69620 2003-08-14  Paul Eggert  <eggert@twinsun.com>
69621
69622         * modules/tzset: New file.
69623
69624 2003-08-14  Jim Meyering  <jim@meyering.net>
69625
69626         Merges from coreutils.
69627         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
69628         variable names, rather than @FNMATCH_H@.
69629         * modules/alloca: Likewise for $(ALLOCA_H).
69630
69631         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
69632         the three copies of the literal target, `fnmatch.h'.
69633         * modules/alloca (alloca.h): Likewise.
69634
69635 2003-08-14  Jim Meyering  <jim@meyering.net>
69636
69637         Merge from coreutils.
69638         * m4/tzset.m4: New file.
69639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
69640         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
69641         otherwise, AIX 5.1 systems would end up using the latter.
69642         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
69643         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
69644         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
69645         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
69646
69647 2003-08-14  Jim Meyering  <jim@meyering.net>
69648
69649         Merge from coreutils.
69650         * lib/obstack.h: Whitespace changes.
69651         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
69652         and xcalloc return values.
69653         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
69654         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
69655         hang on OSF/1 5.1 for DIR on both local and remote file systems.
69656         Reported by (and fix confirmed by) Nelson H. F. Beebe.
69657         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69658         error from mntctl.
69659         Use mntctl's return value to drive the entry-processing loop, since
69660         we can't rely on the value of the vmt_length member in the last
69661         entry.  On some systems doing so could result in exhausting
69662         virtual memory.  Based in part on a patch from Mike Jetzer.
69663
69664 2003-08-14  Jim Meyering  <jim@meyering.net>
69665         and Paul Eggert  <eggert@twinsun.com>
69666
69667         Merges from coreutils, plus other fixes.
69668         * lib/physmem.c: Merge in portability changes from gcc/libiberty
69669         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
69670         for credits and details.  Thanks to Kaveh Ghazi for helping
69671         to keep these files in sync.
69672         (ARRAY_SIZE): Define it.
69673         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
69674         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
69675         (memcasecmp): Don't assume size_t fits in unsigned int.
69676         Remove casts and duplicate code.
69677         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
69678         (memcpy): Remove definition.
69679         Merge in some clean-up and optimization changes from glibc.
69680         [BLOCKSIZE]: Move definition to top of file.
69681         Ensure that it is a multiple of 64.
69682         Rearrange loop exit tests so as to avoid performing an
69683         additional fread after encountering an error or EOF.
69684         * lib/md5.h (md5_uintptr): Define.
69685         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
69686         return to the initial working directory.  Preserve errno
69687         for caller.
69688         * lib/idcache.c: Include "xalloc.h".
69689         (xmalloc, xrealloc): Remove decls.
69690         (getuser): Remove casts no longer required in C89.
69691         * lib/human.c: Include stdio.h, for sprintf.
69692         * lib/group-member.c: Include "xalloc.h".
69693         (xmalloc, xrealloc): Remove decls.
69694         (get_group_info): Remove casts no longer required in C89.
69695         * lib/getusershell.c (readname): Remove casts no longer required in
69696         C89.
69697         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
69698         * lib/getline.c: Whitespace fix, from coreutils.
69699
69700 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69701
69702         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
69703         Check for isascii.
69704
69705         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69706         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69707         Undo previous (whitespace-only) change.
69708
69709 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69710
69711         * lib/exclude.c: Include <ctype.h>
69712         (IN_CTYPE_DOMAIN): New macro.
69713         (is_space): New fn.
69714         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
69715         and empty lines.
69716
69717         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69718         Undo previous (whitespace-only) change.
69719
69720 2003-08-13  Paul Eggert  <eggert@twinsun.com>
69721
69722         * config/srclist-update: Change update back to the old behavior,
69723         leaving whitespace alone.  Use one 'sed' command rather than a
69724         pipeline.
69725         (fixlicense): Now a variable, not a function.
69726         (remove_trailing_blanks): Remove.
69727         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
69728         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69729         Undo previous (whitespace-only) change.
69730
69731 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69732
69733         Merge from coreutils.
69734         * modules/euidaccess: Add lib_SOURCES, include for new
69735         file euidaccess.h
69736
69737 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69738
69739         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
69740         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
69741         Normalize leading white space and remove trailing white space.
69742
69743         Merge from coreutils
69744         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
69745
69746         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
69747         0.12.1.  These files are now being upgraded automatically by
69748         ../config/srclist-update.
69749
69750 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69751
69752         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
69753         Normalize leading white space and remove trailing white space.
69754         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
69755         notice, as per ../config/srclist-update.
69756
69757         Merge from coreutils.
69758         * lib/euidaccess.h: New file.
69759         * lib/euidaccess.c: Include it.
69760         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
69761         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
69762         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
69763
69764 2003-08-12  Paul Eggert  <eggert@twinsun.com>
69765
69766         * config/srclist-update: Add copyright notice.
69767         (remove_id_lines, remove_trailing_blanks): New constants.
69768         (fixfile): Use them to normalize spacing a bit in copied files.
69769         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
69770         Normalize leading white space and remove trailing white space.
69771
69772         * config/texinfo.tex: Sync with texinfo.
69773
69774         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
69775         strtoul.c from libc, to merge coreutils whitespace changes.
69776
69777         * config/srclist.txt: Get the following m4 files from gettext:
69778         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
69779         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
69780         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
69781         wint_t.m4.
69782
69783 2003-08-12  Karl Berry  <karl@gnu.org>
69784
69785         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
69786         been made.
69787
69788 2003-08-11  Paul Eggert  <eggert@twinsun.com>
69789
69790         * modules/gnu-source, m4/gnu-source.m4:
69791         Remove; we're assuming Autoconf 2.54 or later now.
69792         Suggested by Bruno Haible.
69793         * MODULES.html.sh (func_all_modules): Remove gnu-source.
69794
69795 2003-08-11  Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
69798
69799 2003-08-11  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
69802         (vasnprintf): Use it instead of wcslen.
69803
69804 2003-08-11  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
69807         value to ensure that _Bool promotes to int. Use #define for _Bool when
69808         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
69809
69810 2003-08-10  Karl Berry  <karl@gnu.org>
69811
69812         * lib/regex.h: update from libc (whitespace fix).
69813
69814 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69815
69816         Merge some files from coreutils.  These changes were
69817         originally made by Jim Meyering.
69818         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
69819         many older Unixes require this.
69820         * lib/alloca.c (alloca): Remove cast to argument of free;
69821         no longer needed in C89.
69822         * lib/alloca_.h, regex.h: Fix white space to match
69823         what GNU indent does.
69824
69825 2003-08-09  Paul Eggert  <eggert@twinsun.com>
69826
69827         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
69828         apparently Emacs's Unicode mode got confused before my 2003-08-05
69829         checkin.
69830
69831 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69832
69833         * m4/extensions.m4: New file.
69834         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
69835         Require gl_USE_SYSTEM_EXTENSIONS.
69836         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
69837         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
69838
69839 2003-08-08  Paul Eggert  <eggert@twinsun.com>
69840
69841         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
69842         * modules/extensions, modules/gnu-source: New files.
69843         * modules/timespec, modules/unlocked-io: Depend on extensions.
69844
69845 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69846
69847         * modules/restrict: New file.
69848         * MODULES.html.sh (func_all_modules): Add restrict.
69849         * modules/regex: Depend on restrict.
69850
69851 2003-08-07  Paul Eggert  <eggert@twinsun.com>
69852
69853         * m4/restrict.m4: New file.
69854         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
69855
69856 2003-08-07  Bruno Haible  <bruno@clisp.org>
69857
69858         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
69859         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
69860
69861 2003-08-07  Bruno Haible  <bruno@clisp.org>
69862
69863         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
69864         makes the module 'getndelim2' compatible with the module 'getline'.
69865
69866 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69867
69868         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
69869         byte with "\201" to avoid glitches when editing that source file
69870         with multi-gnome-terminal.
69871
69872 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69873
69874         * lib/bumpalloc.h: Remove.
69875
69876 2003-08-05  Paul Eggert  <eggert@twinsun.com>
69877
69878         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
69879         * modules/bumpalloc: Remove.
69880
69881 2003-08-04  Paul Eggert  <eggert@twinsun.com>
69882
69883         * lib/getloadavg.c: Change copyright notice and spacing to conform to
69884         GNU coding style.
69885
69886         Merge from coreutils.
69887         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
69888         1. From glibc.
69889         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
69890         from Karl Berry, implemented by Jim Meyering.
69891         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
69892         from Dmitry V. Levin.
69893         Remove anachronistic cast of xrealloc.
69894         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
69895         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
69896         type. Otherwise, it wouldn't compile with at least /bin/cc on
69897         ymp-cray-unicos9.0.2.X.
69898         Combine two mostly-identical uses of alloca into one.
69899         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
69900
69901 2003-08-04  Dave Love  <d.love@dl.ac.uk>
69902
69903         [From Emacs.]
69904
69905         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
69906         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
69907         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
69908         obsolete NLIST_NAME_UNION.
69909         [__GNU__]: Undef BSD and FSCALE.
69910         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
69911
69912 2003-08-03  Paul Eggert  <eggert@twinsun.com>
69913
69914         * lib/stdbool_.h (_Bool): Make it signed char, instead of
69915         an enum type, so that it's guaranteed to promote to int.  See:
69916         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
69917
69918 2003-08-03  Karl Berry  <karl@gnu.org>
69919
69920         * config/depcomp: update from automake.
69921
69922 2003-07-31  Paul Eggert  <eggert@twinsun.com>
69923
69924         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
69925         (strerror): Don't assume that a printable int fits in 14 bytes.
69926
69927 2003-07-31  Bruno Haible  <bruno@clisp.org>
69928
69929         * modules/getpass-gnu: New file.
69930         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
69931
69932 2003-07-31  Bruno Haible  <bruno@clisp.org>
69933
69934         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
69935
69936 2003-07-24  Karl Berry  <karl@gnu.org>
69937
69938         * config/missing: update from automake.
69939
69940 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
69941             Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
69944         * lib/getline.c (getline, getdelim): Likewise.
69945         Remove _GNU_SOURCE define; now it's defined in config.h through
69946         m4/getline.m4.
69947
69948 2003-07-23  Karl Berry  <karl@gnu.org>
69949
69950         * config/config.sub: update from prep.
69951
69952 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69953
69954         * modules/xalloc (Depends-on): Add exitfail.
69955         * modules/xmemcoll: Likewise.
69956
69957 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69958
69959         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
69960         over-parenthesization in macros.
69961
69962         Sync with coreutils.
69963
69964         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
69965         required by C99.
69966
69967         Use `exit_failure' for xalloc and xmemcoll instead of their own
69968         private exit-failure variables.
69969         * lib/xalloc.h (xalloc_exit_failure): Remove.
69970         * lib/xmalloc.c: Likewise.  Include exitfail.h.
69971         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
69972         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
69973         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
69974         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
69975
69976 2003-07-20  Jim Meyering  <jim@meyering.net>
69977
69978         * modules/closeout (Depends-on): Add exitfail.
69979         Suggestion from Bruno Haible.
69980
69981 2003-07-19  Karl Berry  <karl@gnu.org>
69982
69983         * config/config.sub: update from prep.
69984
69985 2003-07-18  Paul Eggert  <eggert@twinsun.com>
69986
69987         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
69988         Remove.
69989         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
69990         to test that it can stand by itself.  Include "exitfail.h".
69991         Clients should set exit_failure instead.
69992         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
69993
69994 2003-07-18  Bruno Haible  <bruno@clisp.org>
69995
69996         * modules/getndelim2: New file.
69997         * modules/getline: Share files with module getndelim2.
69998         * modules/getnline: Depend on getndelim2 instead of sharing files with
69999         it. Add getnline.c to lib_SOURCES.
70000         * MODULES.html.sh (func_all_modules): Add getndelim2.
70001
70002 2003-07-18  Bruno Haible  <bruno@clisp.org>
70003
70004         * m4/getndelim2.m4: New file.
70005         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
70006         invoke gl_PREREQ_GETNDELIM2.
70007         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
70008         gl_PREREQ_GETNDELIM2.
70009         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
70010         gl_GETNDELIM2.
70011
70012 2003-07-18  Bruno Haible  <bruno@clisp.org>
70013
70014         * lib/getndelim2.h: New file.
70015         * lib/getndelim2.c: Make into a module of its own. Include config.h,
70016         getndelim2.h.
70017         (getndelim2): Make non-static. Change return type to ssize_t.
70018         * lib/getline.h: Change argument names.
70019         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
70020         * lib/getnline.c: Include getndelim2.h.
70021
70022 2003-07-18  Andreas Schwab  <schwab@suse.de>
70023
70024         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
70025
70026 2003-07-17  Karl Berry  <karl@gnu.org>
70027
70028         * config/config.sub: update from prep.
70029
70030 2003-07-17  Bruno Haible  <bruno@clisp.org>
70031
70032         * modules/getnline: New file.
70033         * modules/getline: Add lib/getndelim2.c to source file list.
70034         * MODULES.html.sh (func_all_modules): Add getnline.
70035
70036 2003-07-17  Bruno Haible  <bruno@clisp.org>
70037
70038         * m4/getnline.m4: New file.
70039
70040 2003-07-17  Bruno Haible  <bruno@clisp.org>
70041
70042         * m4/Makefile.am.in: Remove file.
70043         * m4/Makefile.am: Remove file.
70044         * m4/Makefile.in: Remove file.
70045
70046 2003-07-17  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/getnline.h: New file.
70049         * lib/getnline.c: New file.
70050         * lib/getndelim2.c: New file, extracted from getline.c.
70051         (getndelim2): Renamed from getdelim2, with added nmax argument.
70052         * lib/getline.c: Include getndelim2.c.
70053         (getdelim2): Moved out to getndelim2.c.
70054         (getline, getdelim): Update.
70055
70056 2003-07-17  Bruno Haible  <bruno@clisp.org>
70057
70058         * lib/Makefile.am: Remove file.
70059         * lib/Makefile.in: Remove file.
70060
70061 2003-07-17  Bruno Haible  <bruno@clisp.org>
70062
70063         * configure.in: Remove file.
70064         * Makefile.in: Remove file.
70065
70066 2003-07-17  Bruno Haible  <bruno@clisp.org>
70067
70068         * MODULES.html.sh: Put the </BODY> right before </HTML>.
70069
70070 2003-07-16  Karl Berry  <karl@gnu.org>
70071
70072         * config/srclist-update: was running fixlicense twice, which caused
70073                 texinfo.tex to be nullified for some reason.  Simplify,
70074                 $gplsrc is no longer needed as far as I can see?
70075
70076 2003-07-16  Jim Meyering  <jim@meyering.net>
70077
70078         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
70079
70080 2003-07-15  Paul Eggert  <eggert@twinsun.com>
70081
70082         * config/srclist.txt: Get the following files from gettext-runtime/intl
70083         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
70084         ref-del.sin.  From Bruno Haible.
70085         * config/srclist-update (fixfile): Change grep pattern again, since the
70086         previous fix didn't work (there was another trailing $).  Use
70087         '[$]' to escape the $s.
70088
70089 2003-07-15  Karl Berry  <karl@gnu.org>
70090
70091         * lib/vasnprintf.c: update from gettext.
70092
70093 2003-07-15  Karl Berry  <karl@gnu.org>
70094
70095         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
70096         gets expanded when surrounded by '$'.
70097
70098 2003-07-15  Jim Meyering  <jim@meyering.net>
70099
70100         * modules/save-cwd: Don't depend on error.  From Derek Price.
70101
70102 2003-07-15  Jim Meyering  <jim@meyering.net>
70103
70104         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
70105
70106 2003-07-14  Simon Josefsson  <jas@extundo.com>
70107
70108         * modules/mempcpy: New file.
70109         * MODULES.html.sh (func_all_modules): Add mempcpy.
70110
70111 2003-07-14  Simon Josefsson  <jas@extundo.com>
70112
70113         * m4/mempcpy.m4: New file.
70114
70115 2003-07-14  Simon Josefsson  <jas@extundo.com>
70116
70117         * lib/mempcpy.h: New file.
70118         * lib/mempcpy.c: New file.
70119
70120 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70121
70122         * modules/getdate, modules/posixtm: Depend on mktime.
70123
70124 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70125
70126         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
70127         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
70128         unicodeio.c, unicodeio.h, unlocked-io.h:
70129         Switch from LGPL to GPL.
70130
70131 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70132
70133         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
70134         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
70135         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
70136         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
70137         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
70138         updated automatically by ../config/srclist-update.  This changes
70139         their license from LPGL to GPL.
70140
70141 2003-07-14  Paul Eggert  <eggert@twinsun.com>
70142
70143         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
70144         assumed to refer to the root of the most recent stable gettext version.
70145         * config/srclistvars.sh: Add defaults for eggert.
70146         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
70147         Match "This program" as well as "The program".  This is needed
70148         for gettext.
70149
70150 2003-07-14  Jim Meyering  <jim@meyering.net>
70151
70152         Don't emit diagnostics.  Let callers do that.
70153         * lib/save-cwd.c: Don't include "error.h".
70154         (save_cwd): Don't call error.  Ensure that errno is valid
70155         when returning nonzero.
70156
70157         * lib/save-cwd.h (restore_cwd): Update prototype.
70158         * lib/save-cwd.c (restore_cwd): Remove two parameters.
70159         Simplify.  Don't call error upon failure.  Let callers do that.
70160         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
70161         when auditing is enabled.  But don't bother updating the #if.
70162
70163 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
70164
70165         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
70166         it breaks C++ compilation.
70167         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
70168
70169 2003-07-10  Simon Josefsson  <jas@extundo.com>
70170
70171         * modules/strchrnul (Makefile.am): Add strchrnul.h.
70172
70173 2003-07-10  Jim Meyering  <jim@meyering.net>
70174
70175         * m4/clock_time.m4: Remove trailing blank.
70176         * m4/intmax_t.m4: Likewise.
70177
70178 2003-07-10  Jim Meyering  <jim@meyering.net>
70179
70180         * lib/vasnprintf.c: Remove trailing blanks.
70181         Make cpp indentation consistent.
70182
70183 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70184
70185         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
70186         posixver.c, strftime.c, strnlen.c, strverscmp.c:
70187         Switch from LGPL to GPL.
70188
70189 2003-07-09  Paul Eggert  <eggert@twinsun.com>
70190
70191         * config/srclist.txt: Sort sublists.  Add
70192         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
70193         that differ from gnulib for one reason or another; we'd like this list
70194         to be smaller but for now let's document what we have.
70195
70196 2003-07-08  Paul Eggert  <eggert@twinsun.com>
70197
70198         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
70199         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
70200         and sweeter "eval x=$x".
70201         * config/srclist.txt: Get lib/argp* from glibc.
70202
70203 2003-07-07  Paul Eggert  <eggert@twinsun.com>
70204
70205         * lib/mktime.c: Fix some boundary cases and remove need for floating
70206         point.
70207
70208         Issue a compile-time diagnostic if time_t is floating point, or if
70209         two's complement arithmetic is not in effect, or if arithmetic
70210         right shift does not propagate the sign.  These assumptions were
70211         all in the original code but they weren't checked.
70212
70213         (TIME_T_MIDPOINT, verify): New macros.
70214         (__isleap): Remove; it has integer overflow problems.
70215         (leapyear): New function, without those problems.
70216         (ydhms_tm_diff): Remove; splitting into two parts.
70217         (ydhms_diff): New function, containing the arithmetic part of
70218         the old ydhms_tm_diff function.  Issue a compile-time
70219         diagnostic if we are not using C99 integer division.
70220         Avoid casts when possible.
70221         (guess_time_tm): New function, containing the checking part of
70222         the old ydhms_tm_diff function.  Return the new value, rather than
70223         the difference between it and the old.  Accept a new argument T
70224         so that *T specifies the old value.  Check for overflow in the result.
70225
70226         (__mktime_internal): Use a time_t offset, not a long int offset.
70227         This undoes the 2003-06-04 change, which is no longer needed now
70228         that we have better overflow checking.
70229         (localtime_offset): Likewise.
70230
70231         (__mktime_internal): Avoid harmful overflow on hosts where time_t
70232         and long are 64-bit but int is only 32-bit.
70233         (ydhms_diff): Use long int to store year1 and yday1.
70234         Issue a compile-time diagnostic if long int is not wide enough.
70235
70236         (__mktime_internal): Use long int to store adjusted year and yday.
70237         Use plain C rather than preprocessor commands, if that doesn't
70238         affect efficiency.
70239         Check for overflow (and try to repair) after each probe
70240         rather than checking only at the very end.  This avoids some bugs
70241         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
70242         does not equal GMT offset at maximum time).
70243         Use integer to check for overflow rather than floating point; this
70244         is more portable to non-IEEE hosts, and is a tad faster.
70245         When we detect that we are oscillating between two values,
70246         don't check whether tm_isdst has the requested value, since
70247         we already know the answer.  When tm_isdst has the wrong value,
70248         use a different heuristic to find the right one, based on the
70249         extreme values actually observed in practice in tz2003a,
70250         rather than the (overly optimistic) "previous 3 calendar quarters".
70251
70252         (not_equal_tm, print_tm, check_result): Use "const T" rather than
70253         "T const" to accommodate glibc style.
70254         (check_result): Use less-confusing report format.  "long" -> "long int.
70255         (main): Likewise.
70256         Don't loop if the iteration overflows time_t.
70257         Allow a negative step in the iteration.
70258
70259 2003-07-06  Karl Berry  <karl@gnu.org>
70260
70261         * config/depcomp: update from automake.
70262         * config/config.sub: update from prep.
70263
70264 2003-07-03  Karl Berry  <karl@gnu.org>
70265
70266         * config/config.guess: update from prep.
70267
70268 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70269
70270         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
70271         xreadlink.c now includes it unconditionally.
70272
70273 2003-07-01  Paul Eggert  <eggert@twinsun.com>
70274
70275         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
70276         having it depend on HAVE_SYS_TYPES_H.
70277
70278 2003-07-01  Bruno Haible  <bruno@clisp.org>
70279
70280         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
70281         <sys/types.h> should be sufficient.
70282         Reported by Paul Eggert.
70283
70284 2003-06-26  Karl Berry  <karl@gnu.org>
70285
70286         * config/depcomp: update from automake.
70287
70288 2003-06-26  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/human: Depend on module stdbool.
70291
70292 2003-06-25  Bruno Haible  <bruno@clisp.org>
70293
70294         * modules/readlink: New file.
70295         * modules/xreadlink: Depend on it.
70296         * MODULES.html.sh (func_all_modules): Add readlink.
70297
70298 2003-06-25  Bruno Haible  <bruno@clisp.org>
70299
70300         * m4/readlink.m4: New file.
70301
70302 2003-06-25  Bruno Haible  <bruno@clisp.org>
70303
70304         * lib/readlink.c: New file.
70305
70306 2003-06-22  Karl Berry  <karl@gnu.org>
70307
70308         * config/srclist.txt: update mkinstalldirs from automake.
70309         * config/mkinstalldirs: update.
70310
70311 2003-06-22  Bruno Haible  <bruno@clisp.org>
70312
70313         Portability to mingw32.
70314         * m4/ssize_t.m4: New file, from GNU gettext.
70315         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
70316         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
70317
70318 2003-06-22  Bruno Haible  <bruno@clisp.org>
70319
70320         * modules/safe-read: Add m4/ssize_t.m4.
70321         * modules/xreadlink: Add m4/ssize_t.m4.
70322
70323 2003-06-20  Bruno Haible  <bruno@clisp.org>
70324
70325         Assume C89, so PARAMS isn't needed.
70326         * lib/unicodeio.h (PARAMS): Remove.
70327         * lib/unicodeio.c: Don't use PARAMS.
70328
70329 2003-06-18  Karl Berry  <karl@gnu.org>
70330
70331         * config/config.{guess,sub}: update from prep.
70332
70333 2003-06-18  Jim Meyering  <jim@meyering.net>
70334
70335         Merge changes from coreutils.
70336         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
70337         Remove explicit declarations of xmalloc and realloc.
70338         Include xalloc.h.
70339         (read_utmp): Remove anachronistic cast of xmalloc.
70340
70341 2003-06-17  Paul Eggert  <eggert@twinsun.com>
70342
70343         Assume C89, so PARAMS isn't needed.
70344         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
70345         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
70346         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
70347         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
70348         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
70349         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
70350         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
70351         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
70352         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
70353         lib/xstrtod.h, lib/xstrtol.h: Likewise.
70354         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
70355         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
70356         no longer needed. Anyway, config.h should always be included before any
70357         other file.
70358
70359 2003-06-11  Simon Josefsson  <jas@extundo.com>
70360
70361         * modules/sysexits: New file.
70362         * MODULES.html.sh (func_all_modules): Add sysexits.
70363
70364 2003-06-11  Simon Josefsson  <jas@extundo.com>
70365
70366         * lib/sysexit_.h: New file.
70367
70368 2003-06-11  Derek Price  <derek@ximbiot.com>
70369
70370         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
70371         necessary.
70372
70373 2003-06-11  Bruno Haible  <bruno@clisp.org>
70374
70375         * m4/sysexits.m4: New file.
70376
70377 2003-06-10  Simon Josefsson  <jas@extundo.com>
70378
70379         * lib/argp.h: New file, from glibc.
70380         * lib/argp-ba.c: New file, from glibc.
70381         * lib/argp-eexst.c: New file, from glibc.
70382         * lib/argp-fmtstream.c: New file, from glibc.
70383         * lib/argp-fmtstream.h: New file, from glibc.
70384         * lib/argp-fs-xinl.c: New file, from glibc.
70385         * lib/argp-help.c: New file, from glibc.
70386         * lib/argp-namefrob.h: New file, from glibc.
70387         * lib/argp-parse.c: New file, from glibc.
70388         * lib/argp-pv.c: New file, from glibc.
70389         * lib/argp-pvh.c: New file, from glibc.
70390         * lib/argp-xinl.c: New file, from glibc.
70391
70392 2003-06-10  Simon Josefsson  <jas@extundo.com>
70393
70394         * modules/strchrnul: New file.
70395
70396 2003-06-10  Simon Josefsson  <jas@extundo.com>
70397
70398         * modules/argp: New file.
70399
70400 2003-06-10  Simon Josefsson  <jas@extundo.com>
70401
70402         * m4/strchrnul.m4: New file.
70403
70404 2003-06-10  Simon Josefsson  <jas@extundo.com>
70405
70406         * lib/strchrnul.h: New file.
70407         * lib/strchrnul.c: New file.
70408
70409 2003-06-10  Bruno Haible  <bruno@clisp.org>
70410
70411         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
70412
70413 2003-06-07  Karl Berry  <karl@gnu.org>
70414
70415         * config/config.{guess,sub}: update from prep.
70416
70417 2003-06-07  Jim Meyering  <jim@meyering.net>
70418
70419         * modules/strtod: Use $(...) notation, not @...@ for
70420         AC_REPLACE'd variables.
70421         * modules/localcharset: Likewise.
70422
70423 2003-06-07  Jim Meyering  <jim@meyering.net>
70424
70425         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
70426         in place of my name in the copyright comment.
70427         Remove definition and uses of __P.
70428
70429         From coreutils.
70430         * lib/stat.c: Don't declare xmalloc explicitly.
70431         Instead, include "xalloc.h".
70432         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
70433         xrealloc, and xcalloc return values.
70434         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
70435         Improve comment.
70436         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
70437
70438 2003-06-07  Bruno Haible  <bruno@clisp.org>
70439
70440         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
70441         avoid AC_CONFIG_LINKS.
70442         * modules/fnmatch (Makefile.am): Use explicit creation rule for
70443         fnmatch.h, to avoid AC_CONFIG_LINKS.
70444         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
70445
70446 2003-06-07  Bruno Haible  <bruno@clisp.org>
70447
70448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
70449         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
70450         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70451         directory.
70452         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
70453         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
70454         directory.
70455
70456 2003-06-06  Jim Meyering  <jim@meyering.net>
70457
70458         Merge from coreutils.
70459         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
70460         Consolidate declarations and initializations of *_base* locals.
70461
70462         Merge from coreutils.
70463         This avoids a core dump on systems without GNU putenv,
70464         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
70465         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
70466         (unsetenv): New static function, from GNU libc.
70467         (rpl_putenv): Use it.
70468
70469         * lib/modechange.c: Remove trailing blanks.
70470
70471         Merge from coreutils.
70472         * lib/fsusage.c: Remove declaration of statfs.
70473         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
70474
70475         * lib/posixtm.c: Include <stdbool.h> unconditionally.
70476
70477 2003-06-06  Jim Meyering  <jim@meyering.net>
70478
70479         * lib/stdbool_.h: Renamed from stdbool.h.in.
70480
70481 2003-06-06  Jim Meyering  <jim@meyering.net>
70482             Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
70485         Adjust Makefile.am snippet not to redirect directly to target.
70486         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
70487
70488 2003-06-05  Paul Eggert  <eggert@twinsun.com>
70489
70490         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
70491         mismatch, look in future quarters as well as past.  This fixes a
70492         bug when processing fall-backwards gaps immediately after a long
70493         period of daylight-saving time.
70494
70495         * lib/mktime.c: Assume freestanding C89 or better.
70496         (HAVE_LIMITS_H): Remove.  Assume it's 1.
70497         (__P): Remove; not used.
70498         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
70499         (mktime, not_equal_tm, print_tm, check_result,
70500         main): Use prototypes.  Use const * where appropriate.
70501         (main): Fix typo in testing code that uncovered by above changes.
70502         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
70503
70504 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70505
70506         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
70507         locale.h, localeconv.  This merges changes from coreutils.
70508
70509         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
70510         It can be removed after the next Autoconf is released.
70511         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
70512         needed.
70513
70514 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70515
70516         * lib/mktime.c: Fix Debian bug 177940
70517         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
70518         (localtime_offset): Now long int, not time_t, because we want it
70519         to be guaranteed to be signed.  All uses changed.
70520         (__mktime_internal): If overflow would occur when adding offset,
70521         don't add it.
70522
70523         Merge 'human' changes from coreutils.  Rewrite to support
70524         locale-specific notations like thousands separators.
70525         * lib/human.c: Simplify authorship notice.
70526         Include human.h immediately after config.h.
70527         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
70528         <limits.h>: Do not include, since human.h does.
70529         (SIZE_MAX, UINTMAX_MAX): New macros.
70530         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
70531         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
70532         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
70533         (power_letter): Renamed from suffixes.
70534         (generate_suffix_backwards): Remove.
70535         (adjust_value): Now takes int style (because of human.h changes)
70536         and long double value (for greater precision on some platforms).
70537         (group_number): New function.
70538         (human_readable): Use it.  Use integer options, not enum.
70539         Put the options before the sizes in the arg list.
70540         Support all the new options.
70541         The old human_readable function has been removed;
70542         use inttostr.h instead.
70543         (human_readable, default_block_size, humblock):
70544         Use uintmax_t, not int, for block sizes.
70545         (human_readable_inexact, block_size_types): Remove.
70546         (block_size_opts): New constant.
70547         (human_options): Renamed from human_block_size, with new signature
70548         that allows block sizes up to UINTMAX_MAX.  All callers changed.
70549         * lib/human.h: Add copyright and authorship notice.
70550         Include <limits.h> and <stdbool.h> unconditionally.
70551         (PARAMS): Remove.  All uses removed.
70552         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
70553         (enum human_inexact_style): Remove tag; now a nameless enum.
70554         (human_floor, human_ceiling, human_round_to_even): Now have
70555         values 2, 0, 1 rather than -1, 1, 0.
70556         (human_group_digits, human_suppress_point_zero, human_autoscale,
70557         human_base_1024, human_SI, human_B): New constants.
70558         (human_readable_inexact, human_block_size): Remove.
70559         (human_readable): Size args are now uintmax_t, not int.
70560         (human_options): New decl.
70561
70562         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
70563         unnecessary now that we assume C89 or better.  This change
70564         imported from coreutils.
70565
70566         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70567         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
70568         in the 2003-05-30 sync from glibc.
70569
70570         .h files should stand alone, but we shouldn't include <sys/types.h>
70571         if we can get away with just <stddef.h>.
70572
70573         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
70574         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
70575         rather than <sys/types.h>, as we merely need size_t.
70576         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
70577         to get size_t.
70578         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
70579         Include <stdio.h>, to get FILE.
70580         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
70581         memcasecmp.h has included <stddef.h> and all we need is size_t.
70582         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
70583         our interface, instead of including <sys/types.h>
70584
70585 2003-06-04  Paul Eggert  <eggert@twinsun.com>
70586
70587         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
70588         now, as glibc mktime is buggy on non-glibc systems.
70589
70590 2003-06-03  Karl Berry  <karl@gnu.org>
70591
70592         * config/config.sub: update from prep.
70593
70594 2003-06-02  Paul Eggert  <eggert@twinsun.com>
70595
70596         [from coreutils]
70597         Fix some minor time-related bugs with POSIX time arguments.
70598         Some valid time stamps were being rejected (notably -1, and
70599         time stamps before 1900 on 64-bit hosts).  And some invalid
70600         time stamps were being accepted, e.g. September 31.
70601
70602         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
70603         that we can return (time_t) -1 successfully.
70604         * lib/posixtm.c: Likewise.
70605         [HAVE_STDBOOL_H]: Include <stdbool.h>.
70606         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
70607         (t): Remove static var.
70608         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
70609         of static var.  All uses changed.
70610         (year): Do not reject years before 1900; they can occur with
70611         64-bit time_t.
70612         (posix_time_parse): Do not check for out-of-range components;
70613         that is now the caller's responsibility, since our checks were
70614         only approximations.
70615         (posixtime): Use mktime to check for out-of-range components,
70616         since it knows them exactly.
70617         If mktime returns (time_t) -1, check whether an error actually occurred
70618         by invoking localtime on -1.
70619         (main) [TEST_POSIXTIME]: Check for input data errors, and report
70620         posixtime failures better.
70621         Improve the test data (in comments only).
70622
70623 2003-06-02  Karl Berry  <karl@gnu.org>
70624
70625         * config/mkinstalldirs (version): new variable.
70626         (--version): new option.
70627         (usage): improve message.
70628
70629 2003-05-30  Karl Berry  <karl@gnu.org>
70630
70631         * lib/mktime.c: update from libc.
70632
70633 2003-05-30  Bruno Haible  <bruno@clisp.org>
70634
70635         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
70636         * config/config.rpath: Upgrade to gettext-0.12.1.
70637
70638 2003-05-30  Bruno Haible  <bruno@clisp.org>
70639
70640         * m4/gettext.m4: Upgrade to gettext-0.12.1.
70641         * m4/nls.m4: New file, from gettext-0.12.1.
70642         * m4/po.m4: New file, from gettext-0.12.1.
70643         * m4/progtest.m4: Upgrade to gettext-0.12.1.
70644
70645 2003-05-30  Bruno Haible  <bruno@clisp.org>
70646
70647         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
70648         * lib/localcharset.h: Likewise.
70649         * lib/localcharset.c: Likewise.
70650
70651 2003-05-29  Karl Berry  <karl@gnu.org>
70652
70653         * config/config.rpath: update from gettext.
70654
70655 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70656
70657         Assume the headers required for C89 freestanding compilers.
70658         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
70659         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
70660         * m4/human.m4 (gl_HUMAN): Likewise.
70661         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
70662         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
70663         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70664         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
70665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70666         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
70667
70668 2003-05-28  Paul Eggert  <eggert@twinsun.com>
70669
70670         Assume the headers required for C89 freestanding compilers.
70671         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
70672         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
70673         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
70674         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
70675         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
70676         define, since <limits.h> is guaranteed to do that.
70677         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
70678         * lib/exclude.c: Include <stdbool.h> unconditionally.
70679         * lib/tempname.c: Include <stddef.h> unconditionally.
70680         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
70681         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
70682         <stddef.h> does that.
70683         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
70684         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
70685         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
70686         needed.
70687         * lib/xstrtol.c: Likewise.
70688         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
70689         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
70690
70691         * lib/addext.c (addext): Use assignment rather than cast, to avoid
70692         warnings on some platforms.
70693
70694         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
70695         arbitrarily.
70696
70697 2003-05-26  Jim Meyering  <jim@meyering.net>
70698
70699         Merge in a change from coreutils:
70700         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
70701         that is guaranteed to be `no'.  Use `no_such_member' to indicate
70702         that condition, rather than `-1' which is slightly misleading.
70703         Change the name of the cache variable to have the gl_ prefix.
70704         Prompted by a patch from Richard Dawe for DJGPP.
70705
70706 2003-05-24  Karl Berry  <karl@gnu.org>
70707
70708         * config/config.guess: update from prep.
70709
70710 2003-05-22  Karl Berry  <karl@gnu.org>
70711
70712         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
70713
70714 2003-05-20  Karl Berry  <karl@gnu.org>
70715
70716         * config/config.guess: update from prep.
70717
70718 2003-05-18  Karl Berry  <karl@gnu.org>
70719
70720         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
70721         might actually be set by the user.
70722
70723         * config/depcomp, install-sh, mdate-sh: update from automake.
70724
70725 2003-05-17  Bruno Haible  <bruno@clisp.org>
70726
70727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
70728         invalid expansion for AC_EGREP_CPP.
70729         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
70730         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
70731         Suggested by Akim Demaille <akim@epita.fr> in
70732         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
70733
70734 2003-05-12  Jim Meyering  <jim@meyering.net>
70735
70736         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
70737         the space-padded-by-default conversion specifiers, %e, %k, %l.
70738
70739 2003-05-12  Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
70742         the string is longer than 4 KB.
70743
70744 2003-05-11  Karl Berry  <karl@gnu.org>
70745
70746         * config/config.{guess,sub}: update from prep.
70747
70748 2003-05-09  Bruno Haible  <bruno@clisp.org>
70749
70750         * modules/error: Add m4/strerror_r.m4 to file list.
70751
70752 2003-05-03  Bruno Haible  <bruno@clisp.org>
70753
70754         Upgrade to Unicode-4.0.
70755         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
70756         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
70757         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
70758         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
70759         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
70760         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
70761         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
70762         Change width of U+E0100..U+E01EF from 1 to 0.
70763
70764 2003-04-25  Jim Meyering  <jim@meyering.net>
70765
70766         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
70767         of type size_t, not int.
70768
70769 2003-04-25  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/copy-file.c: Include <stddef.h>, for size_t.
70772
70773 2003-04-21  Paul Eggert  <eggert@twinsun.com>
70774
70775         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
70776         code which expansion is under static control.  Patch imported from
70777         Akim Demaille's patch to Bison; see
70778         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
70779
70780 2003-04-14  Bruno Haible  <bruno@clisp.org>
70781
70782         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
70783
70784 2003-04-11  Jim Meyering  <jim@meyering.net>
70785
70786         Merge changes from Coreutils.
70787
70788         2003-03-22  Jim Meyering  <jim@meyering.net>
70789
70790         * lib/strftime.c (widen): Cast alloca return value to proper type.
70791
70792         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
70793
70794         From GNU libc.
70795         * lib/strftime.c (my_strftime): Handle very large width
70796         specifications for numeric values correctly.  Improve checks for
70797         overflow.
70798
70799         2003-01-19  Jim Meyering  <jim@meyering.net>
70800
70801         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
70802         definitions.
70803         (nl_get_alt_digit) [! defined my_strftime]: Define.
70804         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
70805         _nl_get_alt_digit and _nl_get_walt_digit.
70806
70807         * lib/strftime.c (my_strftime): Merge in locale-related changes from
70808         libc. These changes have no effect outside of _LIBC.
70809
70810 2003-04-10  Bruno Haible  <bruno@clisp.org>
70811
70812         * modules/findprog: New file.
70813         * MODULES.html.sh (func_all_modules): Add it.
70814
70815 2003-04-10  Bruno Haible  <bruno@clisp.org>
70816
70817         * m4/findprog.m4: New file.
70818         * m4/eaccess.m4: New file.
70819
70820 2003-04-10  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/findprog.h: New file, from GNU gettext.
70823         * lib/findprog.c: New file, from GNU gettext.
70824
70825 2003-04-05  Jim Meyering  <jim@meyering.net>
70826
70827         Merge changes from Coreutils.
70828
70829         * lib/exclude.h (PARAMS): Remove definition and uses.
70830         * lib/exclude.c: Remove uses of `PARAMS'.
70831
70832         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
70833         Add test-cases for DOS filenames. Declare program_name.
70834         (main): Set up program_name.  Patch by Rich Dawe.
70835
70836         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
70837         error from mntctl.
70838         Use mntctl's return value to drive the entry-processing loop, since
70839         we can't rely on the value of the vmt_length member in the last
70840         entry.  On some systems doing so could result in exhausting
70841         virtual memory.  Based in part on a patch from Mike Jetzer.
70842
70843 2003-04-04  Bruno Haible  <bruno@clisp.org>
70844
70845         * modules/linebreak: New file.
70846         * MODULES.html.sh (func_all_modules): Add it.
70847
70848 2003-04-04  Bruno Haible  <bruno@clisp.org>
70849
70850         * m4/linebreak.m4: New file.
70851
70852 2003-04-04  Bruno Haible  <bruno@clisp.org>
70853
70854         * lib/linebreak.h: New file, from GNU gettext.
70855         * lib/linebreak.c: New file, from GNU gettext with slight
70856         modifications.
70857         * lib/lbrkprop.h: New file, from GNU gettext.
70858
70859 2003-04-03  Bruno Haible  <bruno@clisp.org>
70860
70861         * modules/utf8-ucs4: New file.
70862         * modules/utf16-ucs4: New file.
70863         * modules/ucs4-utf8: New file.
70864         * modules/ucs4-utf16: New file.
70865         * MODULES.html.sh (func_all_modules): Add them.
70866
70867 2003-04-03  Bruno Haible  <bruno@clisp.org>
70868
70869         * m4/utf-ucs4.m4: New file.
70870         * m4/ucs4-utf.m4: New file.
70871
70872 2003-04-03  Bruno Haible  <bruno@clisp.org>
70873
70874         * lib/utf8-ucs4.h: New file, from GNU gettext.
70875         * lib/utf16-ucs4.h: New file, from GNU gettext.
70876         * lib/ucs4-utf8.h: New file, from GNU gettext.
70877         * lib/ucs4-utf16.h: New file, from GNU gettext.
70878
70879 2003-04-02  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/binary-io: New file.
70882         * MODULES.html.sh (func_all_modules): Add it.
70883
70884 2003-04-02  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/binary-io.h: New file, from GNU gettext.
70887
70888 2003-04-01  Bruno Haible  <bruno@clisp.org>
70889
70890         * modules/pathname: New file.
70891         * MODULES.html.sh (func_all_modules): Add it.
70892
70893 2003-04-01  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/pathname.h: New file, from GNU gettext.
70896         * lib/concatpath.c: New file, from GNU gettext.
70897
70898 2003-03-30  Bruno Haible  <bruno@clisp.org>
70899
70900         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
70901
70902 2003-03-30  Bruno Haible  <bruno@clisp.org>
70903
70904         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
70905         function chown() doesn't exist.
70906
70907 2003-03-28  Bruno Haible  <bruno@clisp.org>
70908
70909         * modules/copy-file: New file.
70910         * MODULES.html.sh (func_all_modules): Add it.
70911
70912 2003-03-28  Bruno Haible  <bruno@clisp.org>
70913
70914         * m4/copy-file.m4: New file.
70915
70916 2003-03-28  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/copy-file.h: New file, from GNU gettext.
70919         * lib/copy-file.c: New file, from GNU gettext.
70920
70921 2003-03-18  Jim Meyering  <jim@meyering.net>
70922
70923         * lib/quote.c (quote_n): Fix typo in comment.
70924
70925 2003-03-18  Bruno Haible  <bruno@clisp.org>
70926
70927         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
70928         checking.
70929         * m4/onceonly_2_57.m4: Likewise.
70930
70931 2003-03-17  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/onceonly.m4: Require autoconf 2.54 or newer.
70934         (m4_quote): Remove macro.
70935         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
70936
70937 2003-03-14  Jim Meyering  <jim@meyering.net>
70938
70939         Merge changes from Coreutils.
70940         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
70941         to be const, in order to avoid warnings.
70942         (obstack_room): Likewise.
70943         (obstack_empty_p): Likewise.
70944
70945 2003-03-14  Bruno Haible  <bruno@clisp.org>
70946
70947         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
70948         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
70949
70950 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70951
70952         Merge changes from Bison.
70953         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
70954         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
70955         when compiling Bison 1.875's `bitset bset = obstack_alloc
70956         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
70957         * lib/hash.c: Include <stdbool.h> unconditionally.
70958
70959 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70960
70961         * m4/onceonly.m4 (m4_quote): New macro.
70962         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
70963         Quote AC_FOREACH variable-expansions properly.
70964
70965 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70966
70967         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
70968
70969 2003-03-09  Paul Eggert  <eggert@twinsun.com>
70970
70971         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
70972         Reported by Bruce Becker; see:
70973         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
70974
70975 2003-03-03  Paul Eggert  <eggert@twinsun.com>
70976             Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
70979         Reported by John Hughes, see
70980         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
70981
70982 2003-02-20  Bruno Haible  <bruno@clisp.org>
70983
70984         * MODULES.html.sh (func_all_modules): Add poll.
70985
70986 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70987
70988         * modules/poll: New file.
70989
70990 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70991
70992         * lib/poll_.h: New file.
70993         * lib/poll.c: New file.
70994
70995 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70996
70997         * m4/poll.m4: New file.
70998
70999 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71000
71001         * modules/mathl: New file.
71002
71003 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71004
71005         * lib/mathl.h: New file.
71006         * lib/acosl.c: New file.
71007         * lib/asinl.c: New file.
71008         * lib/atanl.c: New file.
71009         * lib/ceill.c: New file.
71010         * lib/cosl.c: New file.
71011         * lib/expl.c: New file.
71012         * lib/floorl.c: New file.
71013         * lib/frexpl.c: New file.
71014         * lib/ldexpl.c: New file.
71015         * lib/logl.c: New file.
71016         * lib/sincosl.c: New file.
71017         * lib/sinl.c: New file.
71018         * lib/sqrtl.c: New file.
71019         * lib/tanl.c: New file.
71020         * lib/trigl.c: New file.
71021         * lib/trigl.h: New file.
71022
71023 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
71024
71025         * m4/mathl.m4: New file.
71026
71027 2003-02-18  Bruno Haible  <bruno@clisp.org>
71028
71029         * MODULES.html.sh (func_all_modules): Add mathl.
71030
71031 2003-02-17  Bruno Haible  <bruno@clisp.org>
71032
71033         * modules/mkdtemp: New module.
71034         * MODULES.html.sh (func_all_modules): Add it.
71035
71036 2003-02-17  Bruno Haible  <bruno@clisp.org>
71037
71038         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
71039
71040 2003-02-17  Bruno Haible  <bruno@clisp.org>
71041
71042         * lib/mkdtemp.h: New file, from GNU gettext.
71043         * lib/mkdtemp.c: New file, from GNU gettext.
71044
71045 2003-02-02  Jim Meyering  <jim@meyering.net>
71046
71047         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
71048         e.g. glibc-2.2.93.
71049
71050 2003-01-31  Bruno Haible  <bruno@clisp.org>
71051
71052         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
71053         'rpl_rename'.
71054         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
71055         'rpl_strnlen'.
71056         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
71057         'rpl_strtod'.
71058         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
71059         'rpl_utime'.
71060
71061 2003-01-31  Bruno Haible  <bruno@clisp.org>
71062
71063         * lib/rename.c: #undef rename before defining rpl_rename.
71064         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
71065
71066 2003-01-30  Bruno Haible  <bruno@clisp.org>
71067
71068         * modules/vasnprintf, modules/vasprintf: New modules.
71069         * MODULES.html.sh (func_all_modules): Add them.
71070
71071 2003-01-30  Bruno Haible  <bruno@clisp.org>
71072
71073         * m4/signed.m4: New file, from GNU gettext.
71074         * m4/longdouble.m4: New file, from GNU gettext.
71075         * m4/wchar_t.m4: New file, from GNU gettext.
71076         * m4/wint_t.m4: New file, from GNU gettext.
71077         * m4/vasnprintf.m4: New file.
71078         * m4/vasprintf.m4: New file.
71079
71080 2003-01-30  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/printf-args.h: New file, from GNU gettext.
71083         * lib/printf-args.c: New file, from GNU gettext.
71084         * lib/printf-parse.h: New file, from GNU gettext.
71085         * lib/printf-parse.c: New file, from GNU gettext.
71086         * lib/vasnprintf.h: New file, from GNU gettext.
71087         * lib/vasnprintf.c: New file, from GNU gettext.
71088         * lib/asnprintf.c: New file, from GNU gettext.
71089         * lib/vasprintf.h: New file, from GNU gettext with modifications.
71090         * lib/vasprintf.c: New file, from GNU gettext.
71091         * lib/asprintf.c: New file, from GNU gettext.
71092
71093 2003-01-29  Bruno Haible  <bruno@clisp.org>
71094
71095         * modules/stpncpy: New module.
71096         * MODULES.html.sh (func_all_modules): Add it.
71097
71098 2003-01-29  Bruno Haible  <bruno@clisp.org>
71099
71100         * m4/stpncpy.m4: New file.
71101
71102 2003-01-29  Bruno Haible  <bruno@clisp.org>
71103
71104         * lib/stpncpy.h: New file, from GNU gettext with modifications.
71105         * lib/stpncpy.c: New file, from GNU gettext with modifications.
71106
71107 2003-01-28  Bruno Haible  <bruno@clisp.org>
71108
71109         * modules/c-ctype: New module.
71110         * MODULES.html.sh (func_all_modules): Add it.
71111
71112 2003-01-28  Bruno Haible  <bruno@clisp.org>
71113
71114         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
71115         Paul Eggert.
71116         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
71117         Paul Eggert.
71118
71119 2003-01-27  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/xsetenv: New module.
71122         * MODULES.html.sh (func_all_modules): Add it.
71123
71124 2003-01-27  Bruno Haible  <bruno@clisp.org>
71125
71126         * lib/xsetenv.h: New file, from GNU gettext.
71127         * lib/xsetenv.c: New file, from GNU gettext.
71128
71129 2003-01-23  Jim Meyering  <jim@meyering.net>
71130
71131         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
71132         from working on systems without dirfd (at least Irix and OSF1/Tru64).
71133
71134 2003-01-23  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/minmax: New module.
71137         * MODULES.html.sh (func_all_modules): Add it.
71138
71139 2003-01-23  Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
71142         Eggert.
71143
71144 2003-01-22  Bruno Haible  <bruno@clisp.org>
71145
71146         * modules/exit: New module.
71147         * MODULES.html.sh (func_all_modules): Add it.
71148
71149 2003-01-22  Bruno Haible  <bruno@clisp.org>
71150
71151         * lib/exit.h: New file, from GNU gettext.
71152
71153 2003-01-19  Bruno Haible  <bruno@clisp.org>
71154
71155         * gnulib-tool: Recognize option --extract-maintainer.
71156         (func_get_maintainer): New function.
71157         * modules/*: Add Maintainer entry.
71158
71159 2003-01-16  Jim Meyering  <jim@meyering.net>
71160
71161         * m4/regex.m4: The `regex' struct is both input and output.
71162         Initialize it before each use.  Patch by Tim Waugh.
71163
71164 2003-01-16  Bruno Haible  <bruno@clisp.org>
71165
71166         * MODULES.html.sh: Add a table of contents. Add the module name as
71167         leftmost column. Add hyperlinks.
71168
71169 2003-01-15  Bruno Haible  <bruno@clisp.org>
71170
71171         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
71172
71173 2003-01-15  Bruno Haible  <bruno@clisp.org>
71174
71175         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
71176         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
71177         suffix.
71178
71179 2003-01-15  Bruno Haible  <bruno@clisp.org>
71180
71181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
71182
71183 2003-01-15  Bruno Haible  <bruno@clisp.org>
71184
71185         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
71186         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
71187
71188 2003-01-14  Jim Meyering  <jim@meyering.net>
71189
71190         * lib/same.c (same_name): Tweak a comment.
71191
71192 2003-01-14  Bruno Haible  <bruno@clisp.org>
71193
71194         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
71195         when a string comparison is sufficient.
71196
71197 2003-01-14  Bruno Haible  <bruno@clisp.org>
71198
71199         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
71200         'unsigned int'.
71201
71202 2003-01-14  Bruno Haible  <bruno@clisp.org>
71203
71204         * lib/hash-pjw.c: Add comment about low quality of this function.
71205
71206 2003-01-13  Bruno Haible  <bruno@clisp.org>
71207
71208         * modules/stpcpy: Distribute lib/stpcpy.h.
71209         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
71210
71211 2003-01-13  Bruno Haible  <bruno@clisp.org>
71212
71213         * modules/*: Add a description.
71214         * modules/strpbrk: Fix Makefile.am snippet.
71215         * modules/strtoimax: Fix dependencies.
71216         * modules/strtoumax: Likewise.
71217
71218 2003-01-13  Bruno Haible  <bruno@clisp.org>
71219
71220         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
71221         * modules/alloca (Makefile.am): All object files depend on alloca.h.
71222         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
71223
71224 2003-01-13  Bruno Haible  <bruno@clisp.org>
71225
71226         * gnulib-tool (func_create_testdir): Store config/* files in the main
71227         directory.
71228         * config.rpath: Move to ...
71229         * config/config.rpath: ... here.
71230         * modules/gettext: Contains config/config.rpath, not config.rpath.
71231         * modules/iconv: Likewise.
71232
71233 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71234
71235         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71236         to avoid collisions with libcurses and libreadline.
71237
71238         * m4/getstr.m4: Remove.
71239         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
71240
71241 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71242
71243         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71244         to avoid collisions with libcurses and libreadline.
71245
71246         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
71247         * lib/getstr.h, getstr.c: Remove.
71248         * lib/getline.c: Include "getline.h", to check interface.
71249         Move body of old getstr.c here: this defines MIN_CHUNK and
71250         declares getdelim2, which is renamed from getstr.
71251         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
71252
71253         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
71254         All uses changed.
71255         * lib/linebuffer.h: Likewise.
71256         (readline): Remove backward-compatibility macro.
71257
71258 2003-01-12  Paul Eggert  <eggert@twinsun.com>
71259
71260         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
71261         to avoid collisions with libcurses and libreadline.
71262         * getstr: Remove.
71263         * MODULES.html.sh: Remove getstr.
71264         * modules/getline: Depend on unlocked-io, not getstr.
71265
71266 2003-01-12  Jim Meyering  <jim@meyering.net>
71267
71268         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
71269
71270 2003-01-10  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/alloca: Change Makefile.am requirements. Simplify Include
71273         requirements. Add lib/alloca_.h to file list.
71274
71275 2003-01-10  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
71278
71279 2003-01-10  Bruno Haible  <bruno@clisp.org>
71280
71281         * lib/alloca_.h: New file.
71282         * lib/getdate.y: Unconditionally include alloca.h.
71283         * lib/makepath.c: Likewise.
71284         * lib/setenv.c: Likewise.
71285         * lib/userspec.c: Likewise.
71286
71287 2003-01-09  Karl Berry  <karl@gnu.org>
71288
71289         * MODULES.html.sh: include `dirname $0` in PATH, to find
71290         gnulib-tool.
71291
71292 2003-01-09  Bruno Haible  <bruno@clisp.org>
71293
71294         * modules/stdbool: Change configure.ac, Makefile.am requirements.
71295         Simplify Include requirements. Add lib/stdbool.h.in to file list.
71296
71297 2003-01-09  Bruno Haible  <bruno@clisp.org>
71298
71299         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
71300
71301 2003-01-09  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/stdbool.h.in: New file.
71304
71305 2003-01-09  Bruno Haible  <bruno@clisp.org>
71306
71307         * gnulib-tool (func_all_modules): Ignore files ending in ~.
71308         * MODULES.html.sh: Likewise.
71309
71310 2003-01-08  Jim Meyering  <jim@meyering.net>
71311
71312         * lib/full-write.c: Undefine and define-away `const' after inclusion
71313         of errno.h, not before.  Suggestion from Bruno Haible.
71314
71315 2003-01-08  Bruno Haible  <bruno@clisp.org>
71316
71317         * modules/full-read: Depend on full-write.
71318
71319 2003-01-08  Bruno Haible  <bruno@clisp.org>
71320
71321         * lib/safe-read.c: Include specification header first, to ensure its
71322         selfcontainedness.
71323         * lib/full-write.c: Likewise.
71324
71325 2003-01-07  Jim Meyering  <jim@meyering.net>
71326
71327         * lib/full-write.c: Rework so that it may serve to define full_read,
71328         too.
71329         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
71330
71331 2003-01-07  Bruno Haible  <bruno@clisp.org>
71332
71333         * lib/strtoimax.c: Include <stdint.h> as an alternative to
71334         <inttypes.h>.
71335         * lib/xstrtol.h: Likewise.
71336         * lib/xstrtoimax.c: Likewise.
71337         * lib/xstrtoumax.c: Likewise.
71338         * lib/human.h: Likewise.
71339
71340         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
71341         on systems that have <inttypes.h> but not <stdint.h>.
71342
71343 2003-01-07  Bruno Haible  <bruno@clisp.org>
71344
71345         * MODULES.html.sh: Add copyright notice.
71346         (missed_files): Omit CVS directory entries.
71347         (func_module): Make it work with sed-3.02.
71348         * MODULES.txt: Remove file.
71349
71350 2003-01-06  Jim Meyering  <jim@meyering.net>
71351
71352         * lib/version-etc.c: Update year in translatable copyright string.
71353
71354 2003-01-03  Karl Berry  <karl@gnu.org>
71355
71356         * config/config.{guess,sub}: update from prep.
71357
71358 2003-01-02  Karl Berry  <karl@gnu.org>
71359
71360         * doc/COPYING.DOC: belatedly updated to 1.2.
71361
71362 2003-01-01  Karl Berry  <karl@gnu.org>
71363
71364         * gnulib-tool (func_verify_module): report module name $module in
71365         error message, not $1.
71366         * gnulib-tool (create-testdir): don't complain if destdir couldn't
71367         be created, only if it doesn't exist.
71368         * gnulib-tool (last_checkin_date): don't expand the $Date here.
71369
71370 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71371
71372         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
71373
71374 2002-12-31  Paul Eggert  <eggert@twinsun.com>
71375
71376         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
71377         memcmp if strcoll doesn't work.
71378
71379 2002-12-31  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/utime.c (utime_null): No need to call ftruncate if the file was
71382         nonempty.
71383
71384 2002-12-31  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/memcoll.c (STRCOLL): New macro.
71387         (memcoll): Use it.
71388
71389 2002-12-31  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/localcharset.h: New file.
71392         * lib/localcharset.c: Include it.
71393         * lib/unicodeio.c: Likewise.
71394
71395 2002-12-31  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
71398         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
71399
71400 2002-12-31  Bruno Haible  <bruno@clisp.org>
71401
71402         * lib/getline.h: Include <stddef.h>, for size_t.
71403
71404         * lib/unicodeio.h: Include <stddef.h>, for size_t.
71405         * lib/unicodeio.c: Don't include <stddef.h>.
71406
71407 2002-12-31  Bruno Haible  <bruno@clisp.org>
71408
71409         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
71410         HAVE_TM_ZONE.
71411
71412 2002-12-24  Karl Berry  <karl@gnu.org>
71413
71414         * config/config.guess: update from prep.
71415
71416 2002-12-24  Bruno Haible  <bruno@clisp.org>
71417
71418         General infrasructure.
71419         * m4/README: Rewritten.
71420         * m4/onceonly.m4: New file.
71421         * m4/onceonly_2_57.m4: New file.
71422
71423         Module atexit.
71424         * m4/atexit.m4: New file.
71425
71426         Module strtod.
71427         * m4/strtod.m4: New file.
71428
71429         Module strtol.
71430         * m4/strtol.m4: New file.
71431
71432         Module strtoul.
71433         * m4/strtoul.m4: New file.
71434
71435         Module memchr.
71436         * m4/memchr.m4: New file.
71437
71438         Module memcmp.
71439         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
71440         (jm_FUNC_MEMCMP): Invoke it.
71441
71442         Module memcpy.
71443         * m4/memcpy.m4: New file.
71444
71445         Module memmove.
71446         * m4/memmove.m4: New file.
71447
71448         Module memset.
71449         * m4/memset.m4: New file.
71450
71451         Module strcspn.
71452         * m4/strcspn.m4: New file.
71453
71454         Module strpbrk.
71455         * m4/strpbrk.m4: New file.
71456
71457         Module strstr.
71458         * m4/strstr.m4: New file.
71459
71460         Module strerror.
71461         * m4/strerror.m4: New file.
71462
71463         Module mktime.
71464         * m4/mktime.m4: Renamed from jm-mktime.m4.
71465         (gl_PREREQ_MKTIME): New macro.
71466         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
71467
71468         Module malloc.
71469         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
71470         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
71471         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
71472
71473         Module realloc.
71474         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
71475         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
71476         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
71477
71478         Module strftime.
71479         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
71480         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
71481         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
71482         gl_TM_GMTOFF.
71483         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
71484
71485         Module xalloc.
71486         * m4/xalloc.m4: New file.
71487
71488         Module alloca.
71489         * m4/alloca.m4: New file.
71490
71491         Module putenv.
71492         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
71493         (jm_FUNC_PUTENV): Invoke it.
71494
71495         Module setenv.
71496         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
71497         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
71498         when invoked twice.
71499         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
71500         gt_FUNC_SETENV.
71501
71502         Module memrchr.
71503         * m4/memrchr.m4: New file.
71504
71505         Module stpcpy.
71506         * m4/stpcpy.m4: New file.
71507
71508         Module strcase.
71509         * m4/strcase.m4: New file.
71510
71511         Module strdup.
71512         * m4/strdup.m4: New file.
71513
71514         Module strnlen.
71515         * m4/strnlen.m4: New file.
71516
71517         Module strndup.
71518         * m4/strndup.m4: New file.
71519
71520         Module xstrtod.
71521         * m4/xstrtod.m4: New file.
71522
71523         Module xstrtol.
71524         * m4/xstrtol.m4: New file.
71525
71526         Module getdate.
71527         * m4/getdate.m4: New file.
71528
71529         Module unlocked-io.
71530         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
71531         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
71532         * m4/jm-glibc-io.m4n: Remove file.
71533
71534         Module long-options.
71535         * m4/long-options.m4: New file.
71536
71537         Module md5.
71538         * m4/md5.m4: New file.
71539
71540         Module sha.
71541         * m4/sha.m4: New file.
71542
71543         Module getstr.
71544         * m4/getstr.m4: New file.
71545
71546         Module getline.
71547         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
71548         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
71549         <sys/types.h>, for size_t. Use the function name gnu_getline, not
71550         simply getline. Infoke gl_PREREQ_GETLINE.
71551
71552         Module obstack.
71553         * m4/obstack.m4: New file.
71554
71555         Module hash.
71556         * m4/hash.m4: New file.
71557
71558         Module readtokens.
71559         * m4/readtokens.m4: New file.
71560
71561         Module strverscmp.
71562         * m4/strverscmp.m4: New file.
71563
71564         Module stdbool.
71565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
71566         OSF/1.
71567
71568         Module strtoll.
71569         * m4/strtoll.m4: New file.
71570
71571         Module strtoull.
71572         * m4/strtoull.m4: New file.
71573
71574         Module strtoimax.
71575         * m4/strtoimax.m4: New file.
71576
71577         Module strtoumax.
71578         * m4/strtoumax.m4: New file.
71579
71580         Module xstrtoimax.
71581         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
71582         jm_AC_PREREQ_XSTRTOIMAX.
71583         Moved the strtol prerequisites to strtol.m4.
71584         Moved the strtoll prerequisites to strtoll.m4.
71585         Moved the strtoimax prerequisites to strtoimax.m4.
71586
71587         Module xstrtoumax.
71588         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
71589         jm_AC_PREREQ_XSTRTOUMAX.
71590         Moved the strtoul prerequisites to strtoul.m4.
71591         Moved the strtoull prerequisites to strtoull.m4.
71592         Moved the strtoumax prerequisites to strtoumax.m4.
71593
71594         Module chown.
71595         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
71596         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
71597
71598         Module dup2.
71599         * m4/dup2.m4: New file.
71600
71601         Module ftruncate.
71602         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
71603         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
71604
71605         Module getgroups.
71606         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
71607         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
71608
71609         Module gettimeofday.
71610         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
71611         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
71612         gl_PREREQ_GETTIMEOFDAY.
71613
71614         Module mkdir.
71615         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
71616         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
71617
71618         Module mkstemp.
71619         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
71620         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
71621         jm_AC_TYPE_UINTMAX_T.
71622         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
71623
71624         Module stat.
71625         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
71626         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
71627
71628         Module lstat.
71629         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
71630         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
71631
71632         Module timespec.
71633         * m4/timespec.m4 (gl_TIMESPEC): New macro.
71634         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
71635         * m4/st_mtim.m4: Indentation.
71636
71637         Module nanosleep.
71638         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
71639         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
71640         gl_PREREQ_NANOSLEEP.
71641
71642         Module regex.
71643         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
71644         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
71645         (gl_REGEX): New macro.
71646
71647         Module rename.
71648         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
71649         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
71650
71651         Module rmdir.
71652         * m4/rmdir.m4: New file.
71653
71654         Module utime.
71655         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
71656         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
71657         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
71658
71659         Module dirname.
71660         * m4/dirname.m4: New file.
71661
71662         Module getopt.
71663         * m4/getopt.m4: New file.
71664
71665         Module unistd-safer.
71666         * m4/unistd-safer.m4: New file.
71667
71668         Module fnmatch.
71669         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
71670         declaration.
71671         (gl_PREREQ_FNMATCH_EXTRA): New macro.
71672         (gl_FUNC_FNMATCH_POSIX): New macro.
71673         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
71674         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
71675         simply fnmatch.
71676
71677         Module exclude.
71678         * m4/exclude.m4: New file.
71679
71680         Module human.
71681         * m4/human.m4: New file.
71682
71683         Module acl.
71684         * m4/acl.m4: Nop.
71685
71686         Module backupfile.
71687         * m4/backupfile.m4: New file.
71688         * m4/d-ino.m4: Indentation.
71689
71690         Module fsusage.
71691         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
71692         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
71693         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
71694
71695         Module dirfd.
71696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
71697         requirements.
71698
71699         Module euidaccess.
71700         * m4/euidaccess.m4: New file.
71701
71702         Module file-type.
71703         * m4/file-type.m4: New file.
71704
71705         Module fileblocks.
71706         * m4/fileblocks.m4: New file.
71707
71708         Module filemode.
71709         * m4/filemode.m4: New file.
71710
71711         Module isdir.
71712         * m4/isdir.m4: New file.
71713
71714         Module lchown.
71715         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
71716         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
71717
71718         Module makepath.
71719         * m4/makepath.m4: New file.
71720
71721         Module modechange.
71722         * m4/modechange.m4: New file.
71723
71724         Module mountlist.
71725         * m4/mountlist.m4: New file.
71726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
71727         Indentation.
71728
71729         Module path-concat.
71730         * m4/path-concat.m4: New file.
71731
71732         Module pathmax.
71733         * m4/pathmax.m4: New file.
71734
71735         Module same.
71736         * m4/same.m4: New file.
71737
71738         Module save-cwd.
71739         * m4/save-cwd.m4: New file.
71740
71741         Module savedir.
71742         * m4/savedir.m4: New file.
71743
71744         Module xgetcwd.
71745         * m4/xgetcwd.m4: New file.
71746         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
71747
71748         Module xreadlink.
71749         * m4/xreadlink.m4: New file.
71750
71751         Module safe-read.
71752         * m4/safe-read.m4: New file.
71753
71754         Module safe-write.
71755         * m4/safe-write.m4: New file.
71756
71757         Module closeout.
71758         * m4/closeout.m4: New file.
71759
71760         Module stdio-safer.
71761         * m4/stdio-safer.m4: New file.
71762
71763         Module getpass.
71764         * m4/getpass.m4: New file.
71765
71766         Module getugroups.
71767         * m4/getugroups.m4: New file.
71768
71769         Module group-member.
71770         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
71771         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
71772
71773         Module idcache.
71774         * m4/idcache.m4: New file.
71775
71776         Module userspec.
71777         * m4/userspec.m4: New file.
71778
71779         Module gettime.
71780         * m4/clock_time.m4: New file.
71781         * m4/gettime.m4: New file.
71782
71783         Module settime.
71784         * m4/settime.m4: New file.
71785
71786         Module posixtm.
71787         * m4/posixtm.m4: New file.
71788
71789         Module gethostname.
71790         * m4/gethostname.m4: New file.
71791
71792         Module canon-host.
71793         * m4/canon-host.m4: New file.
71794
71795         Module gettext.
71796         * m4/codeset.m4: New file, from gettext-0.11.5.
71797         * m4/gettext.m4: New file, from gettext-0.11.5.
71798         * m4/glibc21.m4: New file, from gettext-0.11.5.
71799         * m4/iconv.m4: New file, from gettext-0.11.5.
71800         * m4/intdiv0.m4: New file, from gettext-0.11.5.
71801         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
71802         * m4/inttypes.m4: New file, from gettext-0.11.5.
71803         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
71804         * m4/isc-posix.m4: New file, from gettext-0.11.5.
71805         * m4/lcmessage.m4: New file, from gettext-0.11.5.
71806         * m4/lib-ld.m4: New file, from gettext-0.11.5.
71807         * m4/lib-link.m4: New file, from gettext-0.11.5.
71808         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
71809         * m4/progtest.m4: New file, from gettext-0.11.5.
71810         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
71811         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
71812         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
71813
71814         Module localcharset.
71815         * m4/localcharset.m4: New file.
71816
71817         Module hard-locale.
71818         * m4/hard-locale.m4: New file.
71819
71820         Module mbswidth.
71821         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
71822         onceonly macros.
71823         * m4/mbrtowc.m4: Add comment.
71824
71825         Module memcasecmp.
71826         * m4/memcasecmp.m4: New file.
71827
71828         Module memcoll.
71829         * m4/memcoll.m4: New file.
71830
71831         Module unicodeio.
71832         * m4/unicodeio.m4: New file.
71833
71834         Module rpmatch.
71835         * m4/rpmatch.m4: New file.
71836
71837         Module yesno.
71838         * m4/yesno.m4: New file.
71839
71840         Module exitfail.
71841         * m4/exitfail.m4: New file.
71842
71843         Module c-stack.
71844         * m4/c-stack.m4 (gl_C_STACK): New macro.
71845         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
71846
71847         Module error.
71848         * m4/error.m4 (gl_ERROR): New macro.
71849         (jm_PREREQ_ERROR): Use onceonly macros.
71850
71851         Module fatal.
71852         * m4/fatal.m4: New file.
71853
71854         Module getloadavg.
71855         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
71856         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
71857
71858         Module getpagesize.
71859         * m4/getpagesize.m4: New file.
71860
71861         Module getusershell.
71862         * m4/getusershell.m4: New file.
71863
71864         Module physmem.
71865         * m4/physmem.m4: New file.
71866
71867         Module posixver.
71868         * m4/posixver.m4: New file.
71869
71870         Module quotearg.
71871         * m4/quotearg.m4: New file.
71872
71873         Module quote.
71874         * m4/quote.m4: New file.
71875
71876         Module readutmp.
71877         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
71878
71879         Module sig2str.
71880         * m4/sig2str.m4: New file.
71881
71882         Other.
71883         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
71884         ulonglong.m4.
71885         * m4/intmax_t.m4: New file.
71886         * m4/d-type.m4: Indentation.
71887         * m4/jm-macros.m4: Update.
71888         * m4/prereq.m4 (jm_PREREQ): Update.
71889         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
71890         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
71891         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
71892         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
71893         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
71894         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
71895         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
71896         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
71897         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
71898         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
71899         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
71900         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
71901         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
71902         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
71903         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
71904         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
71905         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
71906         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
71907         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
71908
71909 2002-12-24  Bruno Haible  <bruno@clisp.org>
71910
71911         * MODULES.txt: Update according to m4/ changes.
71912
71913         Module gettext.
71914         * config.rpath: New file, from gettext-0.11.5.
71915
71916         * modules/*: New module descriptions.
71917         * gnulib-tool: New file.
71918         * MODULES.html.sh: New file.
71919
71920 2002-12-21  Karl Berry  <karl@gnu.org>
71921
71922         * doc/fdl.texi: update to version 1.2.
71923
71924 2002-12-19  Karl Berry  <karl@gnu.org>
71925
71926         * config/config.guess: update from prep.
71927
71928 2002-12-18  Bruno Haible  <bruno@clisp.org>
71929
71930         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
71931         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
71932
71933 2002-12-17  Bruno Haible  <bruno@clisp.org>
71934
71935         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
71936         stdlib.h, string.h.
71937
71938 2002-12-17  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/canon-host.c (strdup): Remove unused declaration.
71941
71942         * lib/fsusage.c: Include full_read.h.
71943         (get_fs_usage): Use full_read instead of safe_read.
71944
71945         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
71946
71947 2002-12-12  Karl Berry  <karl@gnu.org>
71948
71949         * config/config.guess: update from prep.
71950
71951 2002-12-11  Bruno Haible  <bruno@clisp.org>
71952
71953         * m4/setenv.m4: New file, from gettext-0.11.5.
71954
71955 2002-12-11  Bruno Haible  <bruno@clisp.org>
71956
71957         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
71958         not unsetenv().
71959         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
71960         modifications:
71961
71962         2002-12-11  Bruno Haible  <bruno@clisp.org>
71963
71964                 * setenv.c (alloca): Fall back to malloc.
71965                 (freea): New macro.
71966                 (setenv): Use freea() to free memory allocated with alloca().
71967
71968         2002-11-13  Bruno Haible  <bruno@clisp.org>
71969
71970                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
71971                 function declarations.
71972                 * unsetenv.c (unsetenv): Likewise.
71973
71974         2002-03-04  Bruno Haible  <bruno@clisp.org>
71975
71976                 Portability to AIX 4.3.3.
71977                 * unsetenv.c: New file, extracted from setenv.c.
71978                 * setenv.c: Move the unsetenv() function to unsetenv.c.
71979
71980         2001-12-20  Bruno Haible  <bruno@clisp.org>
71981
71982                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
71983                 use malloc instead. For SunOS 4.
71984
71985         2001-12-11  Bruno Haible  <bruno@clisp.org>
71986
71987                 * setenv.c: Declare alloca.
71988                 (compar_fn_t): New typedef.
71989                 (KNOWN_VALUE, STORE_VALUE): Use it.
71990
71991         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
71992         setenv.h.
71993
71994 2002-12-10  Paul Eggert  <eggert@twinsun.com>
71995
71996         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
71997         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
71998         Choose values that are less likely to collide with system fnmatch
71999         options.
72000         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
72001         defined (e.g., a pure POSIX system).
72002         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
72003         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
72004
72005 2002-12-06  Paul Eggert  <eggert@twinsun.com>
72006
72007         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
72008         a pain in practice to deal with generated m4 files.  This change
72009         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
72010
72011         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
72012         and jm-glibc-io.m4, as they are no longer a special case.
72013         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
72014         kludge and the auto-generation stuff.  Check only whether the
72015         functions are declared, not whether they exist, since older hosts
72016         that don't declare the functions can't use the optimization anyway.
72017
72018 2002-12-06  Jim Meyering  <jim@meyering.net>
72019
72020         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
72021
72022         Merge in changes from libc's misc/error.c, in preparation
72023         for the merge of gnulib's changes back into libc.
72024
72025         * lib/error.c (_): Define only if not already defined.
72026         Move definition to follow all #include directives.
72027         Include unlocked-io.h only if !_LIBC.
72028         [_LIBC]: Include <libio/libioP.h>.
72029         [USE_IN_LIBIO]: Include <libio/iolibio.h>
72030         (fflush): Tweak definition to use INTUSE.
72031         (putc): Define.
72032
72033 2002-12-05  Paul Eggert  <eggert@twinsun.com>
72034
72035         * lib/alloca.c [defined emacs]: Include "lisp.h".
72036         (xalloc_die) [defined emacs]: New macro.
72037         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
72038         [! defined emacs]: Include <xalloc.h>.
72039         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
72040         (pointer): Typedef to POINTER_TYPE *.
72041         (malloc): Remove decl; we now always use xmalloc.
72042         (alloca): Use old-style definition, since Emacs needs this.
72043         Check for arithmetic overflow when computing combined size.
72044
72045 2002-12-04  Paul Eggert  <eggert@twinsun.com>
72046
72047         Do not generate unlocked-io.h automatically, since it's easier to
72048         maintain it by hand.
72049
72050         * lib/unlocked-io.h: New file, from GNU diffutils,
72051         but with proper copyright notice and attribution.
72052         * lib/gen-uio: Remove.
72053         * lib/Makefile.am: Add copyright notice.
72054         (libfetish_a_SOURCES): Add unlocked-io.h.
72055         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
72056         (DISTCLEANFILES, io_functions): Remove macros.
72057         (EXTRA_DIST): Remove gen_uio.
72058         (unlocked-io.h): Remove rule.
72059
72060 2002-12-04  Jim Meyering  <jim@meyering.net>
72061
72062         Reflect the fact that stat.c and lstat.c are no longer generated.
72063         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
72064         (DISTCLEANFILES): Likewise.
72065         (EXTRA_DIST): Likewise.
72066         (all_local): Don't depend on stat.c or lstat.c.
72067         (stat.c, lstat.c): Remove rules.
72068         (EXTRA_DIST): Remove xstat.in.
72069
72070         * lib/xstat.in: Remove file.  Contents moved into stat.c.
72071         * lib/stat.c: New file.  Contents mostly from xstat.in.
72072         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
72073         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
72074
72075         * lib/safe-read.c: Rework so that it may serve to define safe_write,
72076         too.
72077         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
72078
72079 2002-12-03  Jim Meyering  <jim@meyering.net>
72080
72081         * lib/safe-read.c, safe-write.c: Change variable names and comments,
72082         but not semantics, to minimize the differences between these two files.
72083         (safe_read): Change comment to mention SAFE_READ_ERROR.
72084
72085         * lib/safe-read.c (IS_EINTR): Define.
72086         (safe_read): Use IS_EINTR in place of in-function cpp directives.
72087
72088 2002-12-02  Jim Meyering  <jim@meyering.net>
72089
72090         * lib/safe-read.c (EINTR): Define.
72091         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72092         (INT_MAX): Provide fallback.
72093         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
72094
72095         * lib/safe-read.h (SAFE_READ_ERROR): Define.
72096
72097 2002-12-02  Bruno Haible  <bruno@clisp.org>
72098
72099         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
72100         Define, taken from safe-read.c.
72101         (INT_MAX): Provide fallback.
72102         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
72103         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
72104
72105         * lib/safe-read.c (EINTR): Remove definition.
72106         (safe_read): Don't use EINTR if it is absent.
72107
72108 2002-12-01  Jim Meyering  <jim@meyering.net>
72109
72110         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
72111         zero.
72112         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
72113
72114 2002-11-27  Paul Eggert  <eggert@twinsun.com>
72115
72116         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
72117         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
72118         with `if (! (value < limit)) abort ();', for readability.
72119
72120 2002-11-26  Karl Berry  <karl@gnu.org>
72121
72122         * lib/strdup.c: copy from libc again, with jim's ok.
72123         * lib/.cppi-disable: re-add strdup.c
72124
72125 2002-11-25  Karl Berry  <karl@gnu.org>
72126
72127         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
72128         instead of "strtol.c".
72129
72130 2002-11-25  Karl Berry  <karl@gnu.org>
72131
72132         * config/install-sh: update from automake for variable quoting, $0 in
72133         error msgs, etc.
72134
72135         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
72136         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
72137         entry.
72138
72139 2002-11-25  Jim Meyering  <jim@meyering.net>
72140
72141         * lib/mktime.c: Sync from libc, now that it has the latest fix.
72142
72143 2002-11-24  Karl Berry  <karl@gnu.org>
72144
72145         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
72146         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
72147
72148 2002-11-24  Jim Meyering  <jim@meyering.net>
72149
72150         Update from coreutils:
72151
72152         * lib/mktime.c: Merge in changes from libc.
72153
72154         Avoid a link-time failure on some Linux systems.
72155         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
72156         (otherwise).
72157         (__mon_yday): Declare with the STATIC attribute.
72158         (__mktime_internal): Likewise.
72159         Based on a report from Greg Schafer.
72160
72161 2002-11-23  Jim Meyering  <jim@meyering.net>
72162
72163         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
72164         Use `unsigned', not `int', as type of index.
72165
72166         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
72167
72168         * lib/fsusage.c: Remove unneeded parentheses around operands of
72169         `defined'.
72170
72171 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72172
72173         * lib/quotearg.h: Allow multiple inclusion by surrounding with
72174         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
72175         so that we can be included first.
72176         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
72177         * lib/quotearg.c: Include quotearg.h immediately after config.h.
72178         No need to include stddef.h or sys/types.h any more.
72179         Surround local include files with "", not "<>".
72180         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
72181         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
72182         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
72183         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
72184         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
72185         (ISPRINT): Remove; no longer needed now that we assume C89.
72186
72187         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
72188         Preserve errno.
72189
72190         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
72191         quotearg_char): Use SIZE_MAX rather than
72192         (size_t) -1 when we are talking about "infinity".
72193
72194         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
72195
72196 2002-11-22  Paul Eggert  <eggert@twinsun.com>
72197
72198         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
72199         hint that one should use `if (! x) abort ();' rather than `assert
72200         (x);', and anyway it's one less thing to worry about configuring.
72201         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
72202         hash_rehash, hash_insert): Use abort rather than assert.
72203
72204 2002-11-22  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/safe-read.h: Assume C89. Add comments.
72207         (safe_read): Change return type to size_t.
72208         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
72209         byte counts > SSIZE_MAX correctly.
72210         * lib/safe-write.h: New file.
72211         * lib/safe-write.c: New file.
72212         * lib/full-read.h: New file.
72213         * lib/full-read.c: New file.
72214         * lib/full-write.h: Assume C89. Add comments.
72215         * lib/full-write.c: Include safe-write.h.
72216         (full_write): Rewritten to use safe_write.
72217         Suggested by Jim Meyering and Paul Eggert.
72218
72219 2002-11-21  Jim Meyering  <jim@meyering.net>
72220
72221         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
72222
72223         Merge in changes from the coreutils.
72224
72225         2002-09-25  Paul Eggert  <eggert@twinsun.com>
72226         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
72227         <stdint.h>.
72228         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
72229         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
72230         int.  Work more efficiently if X is the same width as uintmax_t.
72231         Do not compare X to -1, to avoid bogus compiler warning.
72232         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
72233         Don't assume that f_frsize and f_bsize are the same type.
72234
72235         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
72236         warning on FreeBSD.
72237
72238         * lib/makepath.c (make_path): Restore umask *before* creating the final
72239         component.
72240         (make_path): Minor reformatting.
72241
72242         * lib/xmalloc.c: Adjust to work with new autoconf macros,
72243         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
72244         HAVE_MALLOC/HAVE_REALLOC.
72245
72246         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
72247         dummy ones.  At least on GNU/Linux systems, `auto' means something
72248         else.
72249         From Michael Stone.
72250
72251 2002-11-21  Bruno Haible  <bruno@clisp.org>
72252
72253         Remove case insensitive option matching.
72254         * lib/argmatch.h (argcasematch): Remove declaration.
72255         (ARGCASEMATCH): Remove macro.
72256         (__xargmatch_internal): Remove case_sensitive argument.
72257         (XARGMATCH): Update.
72258         (XARGCASEMATCH): Remove macro.
72259         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
72260         case_sensitive argument.
72261         (argcasematch): Remove function.
72262         (__xargmatch_internal): Remove case_sensitive argument.
72263         (main): Use XARGMATCH instead of XARGCASEMATCH.
72264
72265         * lib/xmalloc.c: Change compile-time error message. Add comment about
72266         required autoconf version.
72267
72268 2002-11-20  Paul Eggert  <eggert@twinsun.com>
72269
72270         Merge argmatch cleanups from Bison.  Assume C89.
72271
72272         * lib/argmatch.c: Include config.h here, not in argmatch.h.
72273         Include stdlib.h, for EXIT_FAILURE.
72274         Always include <string.h>, since we assume C89.
72275         (EXIT_FAILURE): Remove pre-C89 bug workaround.
72276         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
72277         Include <stddef.h> instead, since it's all we need for size_t.
72278         (PARAMS): Remove.  All uses removed.
72279         (ARRAY_CARDINALITY): Do not bother to #undef.
72280         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
72281         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72282         Remove unnecessary parentheses.
72283         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
72284         Insert necessary parentheses.
72285         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
72286         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
72287
72288 2002-11-19  Bruno Haible  <bruno@clisp.org>
72289
72290         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
72291         * lib/mbswidth.h: Include <stddef.h>, for size_t.
72292
72293         * lib/mbswidth.h (PARAMS): Remove macro.
72294         (mbswidth, mbsnwidth): Use ANSI C function declarations.
72295         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
72296
72297         * lib/gcd.h (PARAMS): Remove macro.
72298         (gcd): Use ANSI C function declarations.
72299         * lib/gcd.c (gcd): Likewise.
72300
72301 2002-11-15  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/strcspn.c: Include <stddef.h>.
72304         (strcspn): Use ANSI C function declaration. Change return type to
72305         size_t. Use NULL.
72306         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
72307         (strpbrk): Use NULL.
72308         * lib/strpbrk.h (PARAMS): Remove macro.
72309         (strpbrk): Use ANSI C function declaration.
72310         * lib/strstr.c: Don't include <sys/types.h>.
72311         * lib/strstr.h (PARAMS): Remove macro.
72312         (strstr): Use ANSI C function declarations.
72313
72314 2002-11-14  Karl Berry  <karl@gnu.org>
72315
72316         * config/mkinstalldirs: `do' on separate line, instead of
72317         `for var; do'.
72318
72319 2002-11-06  Bruno Haible  <bruno@clisp.org>
72320
72321         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
72322         * lib/gcd.c (gcd): Likewise.
72323
72324 2002-11-05  Bruno Haible  <bruno@clisp.org>
72325
72326         * lib/gcd.h: New file, from gettext-0.11.5.
72327         * lib/gcd.c: New file, from gettext-0.11.5.
72328
72329 2002-11-05  Bruno Haible  <bruno@clisp.org>
72330
72331         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72332         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72333         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72334         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
72335
72336         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
72337         <libintl.h>.
72338         * lib/makepath.c: Include gettext.h instead of <locale.h> and
72339         <libintl.h>.
72340
72341         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
72342         * lib/human.c: Include gettext.h instead of <libintl.h>.
72343         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
72344         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
72345         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
72346         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
72347         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
72348         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
72349         (textdomain): Remove definition.
72350         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
72351
72352         * lib/long-options.c: Remove include of <libintl.h> and definition of
72353         _.
72354         * lib/same.c: Remove include of <libintl.h> and definition of _.
72355
72356 2002-11-04  Owen Taylor  <otaylor@redhat.com>
72357
72358         * lib/config.charset: A few additions for Solaris.
72359
72360 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72361
72362         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
72363         * lib/localcharset.c (locale_charset): Declare as extern "C".
72364
72365 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
72366
72367         * lib/config.charset: msdos in uk_UA uses CP1125.
72368
72369 2002-11-04  Bruno Haible  <bruno@clisp.org>
72370
72371         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
72372         * lib/strcase.h: New file, from GNU gettext-0.11.5.
72373         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
72374         * lib/strstr.h: New file, from GNU gettext-0.11.5.
72375         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
72376
72377 2002-11-04  Bruno Haible  <bruno@clisp.org>
72378
72379         * lib/localcharset.c (locale_charset): Don't return an empty string.
72380
72381 2002-11-04  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
72384         aliases.
72385
72386 2002-11-04  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/config.charset: Update for newest glibc. Add canonical names
72389         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
72390
72391 2002-11-04  Bruno Haible  <bruno@clisp.org>
72392
72393         * lib/config.charset: Add support for NetBSD.
72394
72395 2002-11-04  Bruno Haible  <bruno@clisp.org>
72396
72397         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
72398
72399 2002-11-01  Bruno Haible  <bruno@clisp.org>
72400
72401         * configure.in: Add AC_CONFIG_AUX_DIR call.
72402         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
72403         test/Makefile.
72404         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
72405
72406 2002-09-28  Karl Berry  <karl@gnu.org>
72407
72408         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
72409         installed automake until the next release, since changes have been
72410         made.
72411
72412 2002-09-25  Karl Berry  <karl@gnu.org>
72413
72414         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
72415         * lib/getopt*: copy from libc/posix.
72416         * lib/gettext.h: copy from gettext.
72417         * lib/.cppi-disable: add strdup.c, gettext.h.
72418
72419 2002-09-25  Karl Berry  <karl@gnu.org>
72420
72421         * config/srclist.txt: enable gettext.h check.
72422         * config/config.{guess,sub}: update from prep.
72423         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
72424                 from automake 1.6.3.
72425         See srclist*.
72426
72427 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
72428
72429         * regex.c (PATFETCH): Remove the translating fetch.
72430         (PATFETCH_RAW): Rename to PATFETCH.
72431         (set_image_of_range): New fun.
72432         (SET_RANGE_TABLE_WORK_AREA): Use it.
72433         (regex_compile): Don't translate the pattern chars so eagerly.
72434         Only do it when inserting an `exactn' bytecode or when handling
72435         a char-range.
72436         (mutually_exclusive_p): Avoid empty statement.
72437
72438 2002-07-06  Jim Meyering  <meyering@lucent.com>
72439
72440         * m4/README: Don't mention Makefile.am.in.
72441         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
72442
72443 2002-07-01  Jim Meyering  <meyering@lucent.com>
72444
72445         * lib/c-stack.c: Include sys/time.h.
72446         From Volker Borchert.
72447
72448 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72449
72450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
72451
72452 2002-06-26  Paul Eggert  <eggert@twinsun.com>
72453
72454         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
72455         New macro.  Use it uniformly instead of
72456         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
72457         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
72458         reported by Vin Shelton.
72459
72460 2002-06-22  Paul Eggert  <eggert@twinsun.com>
72461
72462         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
72463         Do not assume SA_SIGINFO behavior.
72464         Bug reported by Jim Meyering on NetBSD 1.5.2.
72465
72466 2002-06-22  Jim Meyering  <meyering@lucent.com>
72467
72468         * m4/c-stack.m4: New file, from diffutils-2.8.2.
72469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
72470
72471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
72472         now that configure.ac uses AC_GNU_SOURCE.
72473         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
72474         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
72475
72476         Update to latest tools.  Suggestions from Paul Eggert.
72477         * m4/stdbool.m4: New file, from diffutils-2.8.2.
72478         * m4/gnu-source.m4: Update from diffutils-2.8.2.
72479         * m4/fnmatch.m4: Likewise.
72480         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
72481         to AC_HEADER_STDBOOL
72482
72483 2002-06-22  Jim Meyering  <meyering@lucent.com>
72484
72485         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
72486         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
72487
72488 2002-06-22  Jim Meyering  <meyering@lucent.com>
72489
72490         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
72491
72492         * lib/exitfail.c, exitfail.h: Likewise.
72493         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
72494
72495         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
72496         of fnmatch.h.
72497         (EXTRA_DIST): Add fnmatch_loop.c.
72498         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
72499
72500         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
72501         * lib/fnmatch.c: Update from diffutils-2.8.2.
72502         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
72503         * lib/fnmatch.h: Remove file.
72504
72505 2002-06-21  Jim Meyering  <meyering@lucent.com>
72506
72507         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
72508         * m4/mbrtowc.m4: Likewise.
72509
72510         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
72511         * m4/mbswidth.m4: Reflect name change:
72512         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
72513         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72514
72515         * m4/lib-link.m4: Update from gettext-0.11.2.
72516         * m4/gettext.m4: Likewise.
72517
72518         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
72519         From Alfred M. Szmidt.
72520
72521 2002-06-18  Paul Eggert  <eggert@twinsun.com>
72522
72523         * lib/file-type.h: Report an error if neither S_ISREG nor
72524         S_IFREG is defined, instead of using a test specific to glibc
72525         2.2.  This should be safe, since POSIX requires S_ISREG and
72526         Unix Version 7 had S_IFREG.  We don't need to check for
72527         <sys/types.h> since we don't use any symbols that it defines.
72528
72529 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
72530
72531         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
72532         $@-t, so that each temporary file name is unique and valid in the first
72533         8 characters, for operation under DOS.
72534
72535 2002-06-15  Paul Eggert  <eggert@twinsun.com>
72536
72537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
72538
72539 2002-06-15  Jim Meyering  <meyering@lucent.com>
72540
72541         Work even with DJGPP 2.03, which lacks support for symlinks.
72542         From Richard Dawe.
72543         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
72544         is defined.
72545         * lib/lchown.c (S_ISLNK): Likewise.
72546
72547 2002-06-15  Jim Meyering  <meyering@lucent.com>
72548
72549         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
72550         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
72551         have been included before this file.
72552
72553 2002-06-14  Jim Meyering  <meyering@lucent.com>
72554
72555         * lib/file-type.h: Use the version from diffutils-2.8.2.
72556         * lib/file-type.c: Likewise.
72557
72558 2002-06-07  Jim Meyering  <meyering@lucent.com>
72559
72560         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
72561         They're needed at least for NetBSD 1.5.2.
72562         ($statxfs_includes): Include those same headers.
72563         ($statxfs_includes): Include sys/vfs.h if available.
72564         ($statxfs_includes): Likewise for sys/statvfs.h.
72565         Check for the following members in both structs statfs and statvfs:
72566         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
72567
72568 2002-06-01  Jim Meyering  <meyering@lucent.com>
72569
72570         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
72571         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
72572
72573 2002-05-28  Jim Meyering  <meyering@lucent.com>
72574
72575         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
72576         Reported by Volker Borchert.
72577
72578 2002-05-27  Jim Meyering  <meyering@lucent.com>
72579
72580         Fix a problem seen only on nonconforming systems whereby ls.c's
72581         use of localtime, and then of gettimeofday would cause trouble:
72582         the localtime call used to initialize rpl_gettimeofday's save
72583         mechanism would clobber ls's current local time information so
72584         that in any long listing the first file would always be listed
72585         with date 1970-01-01.  Analysis by Volker Borchert.
72586
72587         * lib/gettimeofday.c (localtime): Undefine.
72588         (rpl_localtime): New function.
72589
72590 2002-05-27  Jim Meyering  <meyering@lucent.com>
72591
72592         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
72593         localtime.
72594
72595         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
72596         use the replacement function; it wouldn't resolve at link time.
72597         Reported by Volker Borchert.
72598
72599 2002-05-22  Jim Meyering  <meyering@lucent.com>
72600
72601         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
72602         file-type.h.
72603         * lib/file-type.h: New file.
72604         * lib/file-type.c (file_type): New file/function.  Extracted from
72605         diffutils.
72606
72607 2002-04-30  Jim Meyering  <meyering@lucent.com>
72608
72609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
72610
72611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72612
72613         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
72614
72615 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72616
72617         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
72618         Do not check for alloca.h (no longer used) or stdbool.h (was never
72619         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
72620
72621 2002-04-29  Paul Eggert  <eggert@twinsun.com>
72622
72623         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
72624
72625 2002-04-29  Jim Meyering  <meyering@lucent.com>
72626
72627         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
72628         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
72629         Use AC_FUNC_STRNLEN here instead.
72630
72631         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
72632         With autoconf-2.53a, it's part of AC_PROG_CC.
72633
72634 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72635
72636         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
72637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
72638
72639 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72640
72641         * lib/sig2str.h, lib/sig2str.c: New files.
72642         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
72643
72644 2002-04-28  Paul Eggert  <eggert@twinsun.com>
72645
72646         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
72647         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
72648         of 127, since 64 is the largest conceivable number for ancient
72649         nonstandard hosts.
72650         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
72651
72652 2002-04-28  Jim Meyering  <meyering@lucent.com>
72653
72654         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
72655
72656 2002-04-24  Jim Meyering  <meyering@lucent.com>
72657
72658         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
72659         (jm_PREREQ): Use it.
72660
72661         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
72662         mach/mach.h fcntl.h.
72663         Check for this function: setlocale.
72664
72665 2002-04-24  Jim Meyering  <meyering@lucent.com>
72666
72667         * lib/gettext.h: New file, from Gettext.
72668         * lib/Makefile.am (INCLUDES): Remove -I../intl.
72669         (libfetish_a_SOURCES): Add gettext.h.
72670
72671 2002-04-16  Jim Meyering  <meyering@lucent.com>
72672
72673         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
72674         ut_pid, ut_id, ut_exit.
72675
72676 2002-04-16  Jim Meyering  <meyering@lucent.com>
72677
72678         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
72679         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
72680         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
72681
72682 2002-04-12  Jim Meyering  <meyering@lucent.com>
72683
72684         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
72685         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
72686         existence of the getmntinfo function.  Needed for Darwin 5.3.
72687
72688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
72689         This is necessary at least on Darwin 5.3.
72690
72691         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
72692         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
72693         strnlen.o in the library, and that makes some versions of ranlib
72694         object.
72695
72696 2002-04-12  Jim Meyering  <meyering@lucent.com>
72697
72698         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
72699
72700 2002-04-09  Jim Meyering  <meyering@lucent.com>
72701
72702         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
72703         to be more precise.  Rather than saying we're checking whether the
72704         function `works', say what we're testing.
72705         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
72706         Reported by Bruno Haible.
72707
72708 2002-03-10  Jim Meyering  <meyering@lucent.com>
72709
72710         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
72711         Suggestion from Santiago Vila.
72712
72713 2002-03-08  Jim Meyering  <meyering@lucent.com>
72714
72715         * lib/rename.c: Mention that this wrapper is needed also on
72716         mips-dec-ultrix4.4 systems.
72717
72718 2002-03-02  Jim Meyering  <meyering@lucent.com>
72719
72720         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
72721         not HAVE_CLOCK_SETTIME.
72722
72723 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72724
72725         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
72726         Check for clock_settime.
72727
72728 2002-02-27  Paul Eggert  <eggert@twinsun.com>
72729
72730         * lib/nanosleep.h: Rename to....
72731         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
72732
72733         * lib/gettime.c: New file.
72734         * lib/settime.c: New file.
72735         * lib/stime.c: Remove.
72736
72737         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
72738         timespec.h.  Remove nanosleep.h.
72739
72740 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72741
72742         * m4/acl.m4: New file.
72743         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
72744         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
72745
72746 2002-02-25  Paul Eggert  <eggert@twinsun.com>
72747
72748         * lib/acl.c, lib/acl.h: New files.
72749         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
72750
72751 2002-02-24  Jim Meyering  <meyering@lucent.com>
72752
72753         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
72754         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
72755         cause trouble.  Reported by Nelson Beebe.
72756
72757 2002-02-23  Paul Eggert  <eggert@twinsun.com>
72758
72759         * lib/path-concat.c (xpath_concat): Reorder code to pacify
72760         compilers that don't know that xalloc_die never returns.
72761
72762 2002-02-20  Jim Meyering  <meyering@lucent.com>
72763
72764         * lib/getdate.c: Regenerate using bison-1.33.
72765
72766 2002-02-17  Jim Meyering  <meyering@lucent.com>
72767
72768         * config/config.guess (main): Don't use `head -1'; it's no longer
72769         portable. Use `sed 1q' instead.
72770
72771 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
72772
72773         * m4/codeset.m4: Upgrade to gettext-0.11.
72774         * m4/gettext.m4: Upgrade to gettext-0.11.
72775         * m4/glibc21.m4: Upgrade to gettext-0.11.
72776         * m4/iconv.m4: Upgrade to gettext-0.11.
72777         * m4/isc-posix.m4: Upgrade to gettext-0.11.
72778         * m4/lcmessage.m4: Upgrade to gettext-0.11.
72779         * m4/lib-ld.m4: New file, from gettext-0.11.
72780         * m4/lib-link.m4: New file, from gettext-0.11.
72781         * m4/lib-prefix.m4: New file, from gettext-0.11.
72782         * m4/progtest.m4: Upgrade to gettext-0.11.
72783
72784 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72785
72786         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
72787         (jm_PREREQ): Use it.
72788
72789 2002-02-15  Paul Eggert  <eggert@twinsun.com>
72790
72791         * lib/posixver.c, lib/posixver.h: New files.
72792         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72793
72794 2002-02-02  Paul Eggert  <eggert@twinsun.com>
72795             Bruno Haible  <bruno@clisp.org>
72796
72797         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
72798         (fwrite_success_callback): New declaration.
72799         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
72800         print_unicode_char. Call failure callback instead of error.
72801         (fwrite_success_callback): New function.
72802         (exit_failure_callback): New function.
72803         (fallback_failure_callback): New function.
72804         (print_unicode_char): Call unicode_to_mb.
72805
72806 2002-01-26  Jim Meyering  <meyering@lucent.com>
72807
72808         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
72809         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
72810
72811 2002-01-26  Jim Meyering  <meyering@lucent.com>
72812
72813         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
72814
72815 2002-01-22  Paul Eggert  <eggert@twinsun.com>
72816
72817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
72818
72819 2002-01-22  Jim Meyering  <meyering@lucent.com>
72820
72821         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
72822         Otherwise, some versions of automake would omit the rule that makes
72823         Makefile from Makefile.in.
72824
72825 2002-01-21  Paul Eggert  <eggert@twinsun.com>
72826
72827         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
72828         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
72829         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
72830         (memcoll): Set errno to zero if there is no error.
72831
72832         * lib/quotearg.c (quotearg_buffer_restyled):
72833         Fix bug with quoting buffers containing NUL when backslashing escapes.
72834         This bug was exposed by the other changes in this patch.
72835         (quotearg_n_options): New arg ARGSIZE.
72836         All callers changed.
72837         (quoting_options_from_style): New function.
72838         (quotearg_n_style): Use it.
72839         (quotearg_n_style_mem): New function.
72840
72841         * lib/quotearg.h (quotearg_n_style_mem): New function.
72842
72843 2002-01-19  Jim Meyering  <meyering@lucent.com>
72844
72845         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
72846         Remove useless quotes: DF_PROG="df".
72847         * m4/strnlen.m4: New file.
72848
72849 2002-01-16  Paul Eggert  <eggert@twinsun.com>
72850
72851         * lib/backupfile.c (ISDIGIT): Comment fix.
72852         * lib/getdate.y (ISDIGIT): Likewise.
72853         * lib/posixtm.c (ISDIGIT, year): Likewise.
72854         * lib/strverscmp.c (ISDIGIT): Likewise.
72855         * lib/userspec.c (ISDIGIT): Likewise.
72856
72857 2002-01-16  Jim Meyering  <meyering@lucent.com>
72858
72859         * lib/getdate.y: Add three semicolons, each just before a closing
72860         brace. Bison (as of version 1.31) no longer papers over that mistake.
72861
72862 2002-01-05  Jim Meyering  <meyering@lucent.com>
72863
72864         * lib/version-etc.c (version_etc_copyright): Update copyright year.
72865
72866 2001-12-19  Paul Eggert  <eggert@twinsun.com>
72867
72868         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
72869         not silently exit merely because the output buffer happens to
72870         have nothing pending.
72871
72872 2001-12-18  Paul Eggert  <eggert@twinsun.com>
72873
72874         See the big note in ../ChangeLog.
72875         * lib/human.c (suffixes): Prefer K to k for 1024.
72876         (generate_suffix_backwards): New function.
72877         (human_readable_inexact): Use it.
72878         * lib/xstrtol.c (__xstrtol): If there is no number but there
72879         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
72880         Accept 'K' as well as 'k'.
72881
72882 2001-12-15  Jim Meyering  <meyering@lucent.com>
72883
72884         * lib/regex.h (__restrict_arr): Update from libc.
72885
72886         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
72887         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
72888         (STREQ): Define.
72889
72890 2001-12-14  Jim Meyering  <meyering@lucent.com>
72891
72892         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
72893         Suggestion from Bruno Haible.
72894
72895 2001-12-10  Jim Meyering  <meyering@lucent.com>
72896
72897         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
72898         xrealloc, Instead, include "xalloc.h".
72899         (initbuffer): Don't cast xmalloc return value to char*.
72900         (readline): Reword comment.
72901         Don't cast xrealloc return value to char*
72902         Return NULL, not 0.
72903
72904 2001-12-09  Jim Meyering  <meyering@lucent.com>
72905
72906         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
72907         about `signed and unsigned type in conditional expression'.
72908         * lib/posixtm.c (posix_time_parse): Likewise.
72909
72910         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
72911
72912         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
72913         to avoid a pedantic warning.
72914
72915         * lib/getstr.c: Don't include assert.h.
72916         (getstr): Remove warning-evoking assertions.
72917         Return -1 if offset parameter is out of bounds.
72918         Change the type of a local from int to size_t.
72919
72920         * lib/strftime.c (my_strftime_localtime_r): Include this function
72921         definition in the `#if ! HAVE_TM_GMTOFF' block.
72922
72923         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
72924         Include xalloc.h instead.
72925
72926 2001-12-02  Jim Meyering  <meyering@lucent.com>
72927
72928         * lib/tempname.c: Don't declare getenv, thus reverting the change of
72929         2001-11-18.  It's no longer necessary, now that stdlib.h is always
72930         included.
72931
72932         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
72933         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
72934
72935 2001-11-30  Akim Demaille  <akim@epita.fr>
72936
72937         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
72938         before being defined.
72939
72940 2001-11-27  Paul Eggert  <eggert@twinsun.com>
72941
72942         * lib/quotearg.h (quotearg_n, quotearg_n_style):
72943         First arg is int, not unsigned.
72944         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
72945         (SIZE_MAX, UINT_MAX): New macros.
72946         (quotearg_n_options): Abort if N is negative.
72947         Avoid overflow check on hosts where size_t is 64 bits and int
72948         is 32 bits, as overflow is impossible there.
72949         Fix off-by-one typo that caused unnecessary reallocation.
72950
72951 2001-11-27  Jim Meyering  <meyering@lucent.com>
72952
72953         * lib/tempname.c: Merge with version from libc.
72954         * lib/regex.c: Likewise.
72955
72956         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
72957         systems for which STDC_HEADERS is 0, it was not included, resulting in
72958         a warning about an integer-to-pointer conversion problem with getenv.
72959         Reported by Volker Borchert.
72960
72961 2001-11-26  Jim Meyering  <meyering@lucent.com>
72962
72963         * lib/gtod.h: Remove file.
72964         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
72965         * lib/gettimeofday.c: Don't include gtod.h.
72966         (GTOD_init): Remove function.
72967         (rpl_gettimeofday): Do its job here instead, rather than aborting.
72968         Suggestion from Volker Borchert.
72969
72970 2001-11-23  Jim Meyering  <meyering@lucent.com>
72971
72972         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
72973         it.
72974         * lib/hash.c (struct hash_table): Define it here instead.
72975
72976 2001-11-22  Jim Meyering  <meyering@lucent.com>
72977
72978         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
72979
72980 2001-11-20  Jim Meyering  <meyering@lucent.com>
72981
72982         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
72983         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
72984
72985 2001-11-19  Jim Meyering  <meyering@lucent.com>
72986
72987         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
72988         directory.  Use "conftestXXXXXX" as the template.
72989         Suggestion from Paul Eggert.
72990
72991         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
72992         immediately, so the test doesn't mistakenly hit the max-open-files
72993         limit.
72994
72995 2001-11-18  Paul Eggert  <eggert@twinsun.com>
72996
72997         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
72998         (TEMPORARIES): New macro.
72999         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
73000         removes an artificial limitation (e.g. HP-UX 10.20, where
73001         TMP_MAX is 17576).
73002
73003 2001-11-18  Jim Meyering  <meyering@lucent.com>
73004
73005         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
73006
73007 2001-11-18  Jim Meyering  <meyering@lucent.com>
73008
73009         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
73010         on SunOS 4.
73011
73012         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
73013         files will be created before anything else.
73014
73015 2001-11-17  Paul Eggert  <eggert@twinsun.com>
73016
73017         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
73018         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
73019
73020 2001-11-17  Jim Meyering  <meyering@lucent.com>
73021
73022         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
73023         Prompted by a report from Bob Proulx.
73024
73025         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
73026         Instead, require UTILS_FUNC_MKSTEMP.
73027
73028 2001-11-17  Jim Meyering  <meyering@lucent.com>
73029
73030         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
73031         Now, that's done as part of AC_FUNC_STRTOD.
73032
73033 2001-11-17  Jim Meyering  <meyering@lucent.com>
73034
73035         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
73036         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
73037         rather than group writable.  Patch by Juan F. Codagnone.
73038
73039         * lib/readtokens.c: Remove explicit declarations of xmalloc and
73040         xrealloc, Instead, include "xalloc.h".
73041
73042         * lib/mountlist.c: Include unlocked-io.h after all system headers.
73043         Remove explicit declarations of xmalloc, xrealloc,
73044         and xstrdup.  Instead, include "xalloc.h".
73045
73046         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
73047         unlocked-io.h.
73048         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
73049         Likewise.
73050         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
73051
73052         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
73053         Reported by Padraig Brady.
73054
73055         * lib/mkstemp.c: #undef mkstemp.
73056         Include config.h.
73057         (rpl_mkstemp): Rename from mkstemp.
73058         Protoize.
73059
73060 2001-11-16  Jim Meyering  <meyering@lucent.com>
73061
73062         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
73063         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
73064         determine the amount of total physical memory, use pstat_getstatic.
73065         HPUX-11 doesn't define _SC_PHYS_PAGES.
73066         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
73067         If sysconf couldn't be used to determine the amount of available
73068         physical memory, use both pstat_getstatic and pstat_getdynamic.
73069         Based on a patch from Bob Proulx.
73070
73071 2001-11-10  Jim Meyering  <meyering@lucent.com>
73072
73073         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
73074         (jm_PREREQ): Use it.
73075
73076 2001-11-09  Jim Meyering  <meyering@lucent.com>
73077
73078         * m4/jm-macros.m4: Require autoconf-2.52f.
73079         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
73080         Use these AC_-prefixed names, not the AM_-prefixed ones.
73081
73082         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
73083
73084 2001-11-05  Jim Meyering  <meyering@lucent.com>
73085
73086         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
73087
73088 2001-11-04  Jim Meyering  <meyering@lucent.com>
73089
73090         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
73091         $DEFS.
73092
73093 2001-11-03  Jim Meyering  <meyering@lucent.com>
73094
73095         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
73096         of AC_DEFUN.
73097
73098         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
73099         know the name of the variable in the macro definition.
73100
73101 2001-11-03  Jim Meyering  <meyering@lucent.com>
73102
73103         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
73104         in argmatch_to_argument call.
73105
73106         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
73107         argument.
73108
73109         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
73110         e.g., a fault due to an attempt to free a NULL pointer.
73111
73112 2001-11-01  Jim Meyering  <meyering@lucent.com>
73113
73114         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
73115         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
73116
73117 2001-11-01  Jim Meyering  <meyering@lucent.com>
73118
73119         * lib/dirfd.c, lib/dirfd.h: New files.
73120         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
73121
73122         * lib/hash.c (hash_print) [TESTING]: Clean up.
73123
73124 2001-10-22  Paul Eggert  <eggert@twinsun.com>
73125
73126         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
73127         to avoid a warning if -Wall.
73128
73129 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
73130
73131         * README: New file
73132         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
73133         (per RMS's instructions, this is now the canonical source)
73134         * lgpl/, gpl/: New directories.
73135
73136 2001-10-21  Paul Eggert  <eggert@twinsun.com>
73137
73138         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
73139
73140 2001-10-21  Jim Meyering  <meyering@lucent.com>
73141
73142         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
73143         this code would end up calling gettext even in packages built
73144         with --disable-nls.
73145         * lib/getopt.c (_): Likewise.
73146         * lib/regex.c (_): Likewise.
73147
73148 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73149
73150         * m4/error.m4 (jm_PREREQ_ERROR):
73151         Do not invoke AC_CHECK_FUNCS with strerror_r, as
73152         AC_FUNC_STRERROR_R does that.
73153         Check for strerror declaration.
73154
73155         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
73156         are supposed to have them these days.
73157         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
73158         Merge changes from latest Autoconf CVS.
73159         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
73160         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
73161         POSIX decided to standardize on the int flavor of strerror_r.
73162
73163 2001-10-20  Paul Eggert  <eggert@twinsun.com>
73164
73165         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
73166         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
73167         Use strerror_r that is only a macro, even if it is not a function.
73168         (strerror): Check for HAVE_DECL_STRERROR before declaring.
73169         (private_strerror): Use prototypes, not old-style function definition.
73170         (print_errno_message): New function.
73171         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
73172         char*-flavored one.
73173         (error_tail, error, error_at_line): Use it.
73174
73175 2001-10-11  Jim Meyering  <meyering@lucent.com>
73176
73177         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
73178         and quote_n (1, ... to avoid clobbering a buffer.
73179
73180 2001-10-05  Jim Meyering  <meyering@lucent.com>
73181
73182         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
73183         hash-pjw.h.
73184         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
73185         * lib/hash-pjw.h: New file.
73186
73187 2001-09-30  Jim Meyering  <meyering@lucent.com>
73188
73189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
73190         `struct fsstat' has the `f_fstypename' member.
73191         Use that to define FS_TYPE, which is now used to make
73192         the getfsstat link test tighter.
73193
73194 2001-09-30  Jim Meyering  <meyering@lucent.com>
73195
73196         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
73197         Include <sys/ucred.h>, for Apple Darwin.
73198         Include sys/mount.h and sys/fs_types.h only if available.
73199         (FS_TYPE): Define.
73200         (read_filesystem_list): Use FS_TYPE.
73201
73202 2001-09-29  Paul Eggert  <eggert@twinsun.com>
73203
73204         * lib/exclude.c (excluded_filename): 0 -> false, since it's
73205         a boolean context.
73206
73207 2001-09-29  Jim Meyering  <meyering@lucent.com>
73208
73209         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73210         [one-argument getmntent function]): Include stdio.h before mntent.h.
73211         SunOS 4.1.x needs it for the declaration of `FILE'.
73212         Patch by Volker Borchert.
73213
73214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
73215         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
73216         sys/fs_types.h, and make the link-test for getfsstat guard #include
73217         directives with appropriate #if HAVE_*_H tests so that we can
73218         detect getfsstat on Apple Darwin1.3.7 systems.
73219         Reported by Nelson Beebe.
73220         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
73221
73222 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73223
73224         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73225         #defines strtoimax.  Also treat the other strto* functions
73226         like strtoimax.
73227
73228         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73229         Check for strtoul and strtoumax,
73230         as those declarations are made even in the signed case.
73231         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
73232         Likewise, for strtol and strtoimax.
73233
73234 2001-09-28  Paul Eggert  <eggert@twinsun.com>
73235
73236         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
73237         #defines strtoimax.  Also treat the other strto* functions
73238         like strtoimax.
73239
73240         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
73241         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
73242         (strtoimax, strtoumax): Do not declare if already defined as a macro.
73243
73244 2001-09-26  Jim Meyering  <meyering@lucent.com>
73245
73246         Most macros in unlocked-io.h had the wrong number of arguments.
73247         * lib/gen-uio: New script.
73248         (USE_UNLOCKED_IO): Define to 1 if not already defined.
73249         * lib/unlocked-io.hin: Remove file.
73250         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
73251         rather than trying to embed it here.
73252         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
73253         Reported by Padraig Brady.
73254
73255 2001-09-25  Volker Borchert  <bt@teknon.de>
73256
73257         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
73258         `result'.
73259
73260 2001-09-24  Jim Meyering  <meyering@lucent.com>
73261
73262         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
73263
73264 2001-09-23  Jim Meyering  <meyering@lucent.com>
73265
73266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
73267         instead of the mere test for existence of mntent.h.  The latter
73268         would get a false-positive on AIX 3.4 systems.
73269         In the outer getmntent if-block, don't die if neither of the getmntent
73270         tests succeeds.  Instead, just fall through and continue with the
73271         remaining tests.
73272
73273 2001-09-23  Jim Meyering  <meyering@lucent.com>
73274
73275         * lib/mountlist.c: Remove useless parentheses in #if directives.
73276         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
73277         the deprecated MOUNTED symbol is no longer defined in mntent.h.
73278
73279 2001-09-22  Jim Meyering  <meyering@lucent.com>
73280
73281         * m4/gettext.m4: New file.  From gettext.
73282         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
73283         * m4/progtest.m4: Likewise
73284         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
73285         * m4/glibc21.m4: Likewise.
73286
73287         * m4/libintl.m4: Remove.  No longer used.
73288
73289 2001-09-22  Jim Meyering  <meyering@lucent.com>
73290
73291         * lib/localcharset.c: Update from latest gettext.
73292         * lib/config.charset: Likewise.
73293
73294 2001-09-20  Jim Meyering  <meyering@lucent.com>
73295
73296         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
73297         strtoimax.
73298         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
73299         strtoumax.
73300
73301 2001-09-20  Jim Meyering  <meyering@lucent.com>
73302
73303         * lib/xstrtol.c (strtoimax): Guard declaration with
73304         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
73305         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
73306         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
73307         (strtoumax): Likewise, for completeness (it wasn't necessary).
73308
73309 2001-09-17  Paul Eggert  <eggert@twinsun.com>
73310
73311         * lib/strtoimax.c (HAVE_LONG_LONG):
73312         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
73313         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
73314         to work around bug in IBM C compiler.
73315
73316 2001-09-17  Jim Meyering  <meyering@lucent.com>
73317
73318         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
73319         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
73320         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
73321         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
73322         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
73323         whenever the right hand side need not be expanded by the shell.
73324
73325 2001-09-16  Paul Eggert  <eggert@twinsun.com>
73326
73327         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
73328         library.  It's not correct, as some older glibcs are buggy.
73329         fnmatch wasn't fixed until glibc 2.2.
73330
73331         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
73332         special shell magic here.
73333
73334 2001-09-16  Jim Meyering  <meyering@lucent.com>
73335
73336         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
73337         * m4/jm-macros.m4: Require it.
73338
73339 2001-09-16  Jim Meyering  <meyering@lucent.com>
73340
73341         * lib/mkdir.c: New file.
73342
73343 2001-09-15  Jim Meyering  <meyering@lucent.com>
73344
73345         * m4/jm-macros.m4: Check for help2man.
73346
73347 2001-09-11  Jim Meyering  <meyering@lucent.com>
73348
73349         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
73350         The body, by Paul Eggert, was moved here from configure.in.
73351         * m4/jm-macros.m4: Require UTILS_HOST_OS.
73352
73353 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73354
73355         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
73356         (jm_PREREQ): Use it.
73357
73358 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73359
73360         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
73361         Use ssize_t, not int, to store result of readlink.
73362         Check for ssize_t overflow as well as size_t overflow,
73363         as POSIX says the result of readlink is implementation-defined
73364         when ssize_t overflows.
73365         Remove unnecessary cast to char*.
73366         Use free+malloc instead of realloc, as the storage doesn't need
73367         to be preserved and it's clearer and can be more efficient that way.
73368         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
73369         * lib/xreadlink.h (xreadlink): Update prototype.
73370
73371 2001-09-04  Paul Eggert  <eggert@twinsun.com>
73372
73373         * lib/xgetcwd.c: Revert some of the previous change; intead,
73374         fix the HAVE_GETCWD_NULL code to behave more like the
73375         !HAVE_GETCWD_NULL code used to.
73376
73377         Include "xalloc.h".
73378         (xgetcwd): Do not return NULL when memory is exhausted; instead,
73379         invoke xalloc_die.
73380
73381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73382
73383         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
73384         sys/param.h, as pathmax.h includes them.
73385
73386 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73387
73388         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
73389         (jm_PREREQ_XGETCWD): New macro.
73390
73391         * m4/getcwd.m4: New file.
73392
73393 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73394
73395         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
73396         like the HAVE_GETCWD_NULL code.
73397         Include pathmax.h if not HAVE_GETCWD.
73398         Do not include xalloc.h.
73399         (INITIAL_BUFFER_SIZE): New symbol.
73400         Do not use xmalloc / xrealloc, since the caller is responsible for
73401         handling errors.  Preserve errno around `free' during failure.
73402         Do not overrun buffer when using getwd.
73403
73404 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73405
73406         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
73407         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
73408         getcwd (NULL, 0).
73409
73410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
73411
73412         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
73413         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
73414         spotted by Jim Meyering.
73415
73416 2001-09-03  Jim Meyering  <meyering@lucent.com>
73417
73418         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
73419         failure.
73420
73421 2001-09-02  Jim Meyering  <meyering@lucent.com>
73422
73423         * lib/error.c: Update from GNU libc.
73424
73425 2001-09-01  Jim Meyering  <meyering@lucent.com>
73426
73427         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
73428         Used by df.
73429
73430 2001-09-01  Jim Meyering  <meyering@lucent.com>
73431
73432         * lib/xreadlink.c: New file.
73433         * lib/xreadlink.h: New file.
73434         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
73435         xreadlink.h.
73436
73437         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
73438         doesn't conflict with sparc Solaris 7's definition in
73439         /usr/include/sys/int_types.h.
73440
73441         * lib/exclude.c: Use `""', not `<>' to #include non-system header
73442         files.
73443         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
73444         and strncasecmp as r-values.  Unixware didn't have declarations.
73445
73446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73447
73448         * lib/xstrtol.h: Add copyright notice.
73449         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
73450         LONGINT_INVALID_SUFFIX_CHAR.
73451
73452 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73453
73454         * lib/xstrtol.c (strtoimax): New decl.
73455
73456 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73457
73458         * lib/xgetcwd.c: Don't include pathmax.h.
73459         Include stdlib.h and unistd.h if available.
73460         Include xalloc.h.
73461         (xmalloc, xstrdup, free): Remove decls.
73462         (xgetcwd): Don't assume sizes fit in unsigned.
73463         Check for overflow when computing sizes.
73464         Simplify reallocation code.
73465
73466 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73467
73468         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
73469         a directory's st_size can have an arbitrary value, so the old
73470         usage could waste an arbitrary amount of memory.  All uses
73471         changed.
73472         * lib/savedir.h: Update prototype.
73473
73474 2001-08-31  Paul Eggert  <eggert@twinsun.com>
73475
73476         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
73477
73478         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
73479         old strtoimax.c.
73480
73481         Also, make the following further changes to make this file's
73482         configuration more similar to that of strtol.c:
73483         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
73484         (strtoumax, uintmax_t, strtoull, strtol): Remove.
73485         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
73486         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
73487         changed to signed values.
73488
73489         And make the following changes as well:
73490         Fix copyright notice, as 1999 was missing.
73491         (verify): New macro.
73492         (strtoimax): Check sizes at compile-time, not run-time.
73493         Prefer strtol to strtoll if both work.
73494         (main): Remove; it was not that useful and was a pain to maintain.
73495
73496         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
73497
73498 2001-08-31  Jim Meyering  <meyering@lucent.com>
73499
73500         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
73501         Use an initial, malloc'd, buffer of length 128 rather than
73502         a statically allocated one of length 1024.
73503
73504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73505
73506         Simplify code, partly by assuming autoconf 2.52 semantics.
73507
73508         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
73509
73510         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
73511         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
73512         All uses removed.
73513         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
73514         Move AC_REQUIRE to next-to-top level, to avoid confusion.
73515         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
73516         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
73517         jm_AC_HEADER_INTTYPES_H.
73518         * m4/jm-macros.m4 (jm_MACROS): Likewise.
73519
73520         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
73521
73522         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
73523         Quote first arg of AC_DEFUN.
73524         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
73525         since they are needed to parse the include file even if we need
73526         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
73527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
73528         but with opposite signedness.
73529
73530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73531
73532         Merge 'exclude' changes from tar 1.13.22.
73533         This fixes one or two unlikely storage allocation overflow bugs,
73534         but doesn't change user-visible behavior otherwise.
73535
73536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73537
73538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
73539         (jm_PREREQ_EXCLUDE): New macro.
73540
73541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73542
73543         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
73544         tm to be declared.
73545
73546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73547
73548         * lib/hash.c: Remove '2001' from copyright notice.
73549
73550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73551
73552         * lib/full-write.h: New file.
73553         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
73554         * lib/full-write.c: Correct credits, as cccp.c no longer
73555         exists and anyway it was so heavily changed from the old cccp
73556         code as to be unrecognizable.  Include full-write.h.
73557         (full_write) Return size_t, with short writes meaning failure.
73558         All callers changed.  This fixes a bug with large buffers
73559         on 64-bit hosts.
73560         * lib/utime.c: Include full-write.h.
73561
73562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73563
73564         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
73565         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
73566         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
73567         Include if available.
73568         (<xalloc.h>): Include
73569         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
73570         (verify): New macro.  Use it to verify that EXCLUDE macros do not
73571         collide with FNM macros.
73572         (struct patopts): New struct.
73573         (struct exclude): Use it, as exclude patterns now come with options.
73574         (new_exclude): Support above changes.
73575         (new_exclude, add_exclude_file):
73576         Initial size must now be a power of two to simplify overflow checking.
73577         (free_exclude, fnmatch_no_wildcards): New function.
73578         (excluded_filename): No longer requires options arg, as the options
73579         are determined by add_exclude.  Now returns bool, not int.
73580         (excluded_filename, add_exclude):
73581         Add support for the fancy new exclusion options.
73582         (add_exclude, add_exclude_file): Now takes int options arg.
73583         Check for arithmetic overflow when computing sizes.
73584         (add_exclude_file): xrealloc might modify errno, so don't
73585         realloc until after errno might be used.
73586
73587         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
73588         New macros.
73589         (free_exclude): New decl.
73590         (add_exclude, add_exclude_file): Now takes int options arg.
73591         (excluded_filename): No longer requires options arg, as the options
73592         are determined by add_exclude.  Now returns bool, not int.
73593
73594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
73595
73596         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
73597
73598 2001-08-27  Jim Meyering  <meyering@lucent.com>
73599
73600         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
73601
73602         * lib/version-etc.c (N_): Remove definition.
73603         Revert most of last change.
73604         Instead, simply don't mark the `Copyright...' string for translation.
73605         Based on advice from Paul Eggert.
73606
73607         * lib/strtoxmax.c: Tweak comment.
73608
73609 2001-08-26  Jim Meyering  <meyering@lucent.com>
73610
73611         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
73612
73613         * m4/xstrtoimax.m4: New file.
73614         * m4/xstrtoumax.m4: Add comments explaining why we
73615         AC_REPLACE_FUNCS(strtol).
73616
73617 2001-08-26  Jim Meyering  <meyering@lucent.com>
73618
73619         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
73620         of copyright with `%s' so translators don't get an untranslated
73621         message in 2002.
73622         (COPYRIGHT_YEAR): Define.
73623         (version_etc): Use fprintf rather than fputs.
73624         Suggestion from Ulrich Drepper.
73625
73626         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
73627
73628         * lib/strtoll.c: New file, from GNU libc.
73629         * lib/xstrtoimax.c: New file.
73630
73631         * lib/xstrtol.h: Add xstrtoimax.
73632         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
73633         * lib/strtoimax.c: New file.  Likewise, but first define
73634         STRTOUXMAX_SIGNED.
73635
73636         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
73637         ...
73638         * lib/strtoxmax.c: ... then renamed to this.
73639
73640 2001-08-18  Paul Eggert  <eggert@twinsun.com>
73641
73642         * m4/inttypes.m4: Add AC_PREREQ(2.13).
73643         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
73644         (jm_AC_TYPE_INTMAX_T): New macro.
73645         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
73646
73647         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
73648
73649         * m4/longlong.m4: Renamed from ulonglong.m4.
73650         * m4/inttypes.m4: Renamed from inttypes_h.m4.
73651         * m4/uintmax_t.m4: Removed.
73652
73653 2001-08-13  Paul Eggert  <eggert@twinsun.com>
73654
73655         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
73656         Port to Solaris 8, where 'sed' requires a space after the 'r'
73657         command, and where sh dislikes "$/".  Clean up the spacing a bit.
73658         Redirect output to $tmp just once.
73659
73660 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
73661
73662         * lib/addext.c (<errno.h>): Include.
73663         (errno): Declare if not defined.
73664         (addext): Work correctly when pathconf returns -1 and leaves
73665         errno alone because there is no limit.  Also, work even if
73666         pathconf returns a value greater than SIZE_MAX.
73667
73668 2001-08-12  Jim Meyering  <meyering@lucent.com>
73669
73670         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
73671         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
73672         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
73673         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
73674         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
73675         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
73676         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
73677         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
73678         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
73679         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
73680         utime.m4, utimes.m4, xstrtoumax.m4:
73681         Quote the first argument in each use of AC_DEFUN.
73682
73683 2001-08-12  Jim Meyering  <meyering@lucent.com>
73684
73685         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
73686         Simply `return getcwd (NULL, 0);'.
73687         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
73688         Use 1300 as initial value for length, not PATH_MAX.
73689
73690         * lib/pathmax.h: Clean up cpp syntax.
73691
73692 2001-08-12  Jim Meyering  <meyering@lucent.com>
73693
73694         * lib/gettimeofday.c: New file.
73695         * lib/gtod.h: New file.
73696         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
73697
73698 2001-08-05  Jim Meyering  <meyering@lucent.com>
73699
73700         * m4/jm-macros.m4: Require autoconf-2.52.
73701
73702 2001-08-04  Jim Meyering  <meyering@lucent.com>
73703
73704         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
73705         stmt, to get in sync with glibc.
73706
73707 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73708
73709         The following changes are from gettext 0.10.39 as maintained by
73710         Bruno Haible.
73711
73712         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
73713         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
73714         with inverted sense.  All uses changed.
73715
73716         * lib/mbswidth.c: Don't include <limits.h>.
73717         Include <stdlib.h> and <string.h> unconditionally.
73718         (iswcntrl, mbsinit, ISCNTRL): New macros.
73719         (mbsnwidth): Use K&R style function declarations.
73720         Don't bother checking for MB_LEN_MAX == 1, since the compiler
73721         can optimize it when MB_CUR_MAX == 1.
73722         The width of control characters is zero, not 1.
73723
73724 2001-08-03  Paul Eggert  <eggert@twinsun.com>
73725
73726         The following changes are from gettext 0.10.39 as maintained by
73727         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
73728
73729         * m4/codeset.m4: Upgrade to serial AM1.
73730         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
73731         all uses changed.  Quote first arg of AC_DEFUN.
73732         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
73733
73734         * m4/iconv.m4: Upgrade to serial AM2.
73735         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
73736         Add --with-libconv-prefix.
73737         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
73738         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
73739         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
73740         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
73741         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
73742
73743         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
73744         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
73745         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
73746         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
73747         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
73748         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
73749         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
73750         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
73751         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73752
73753         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
73754         string.h any more.
73755
73756         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
73757         not the default value.
73758
73759         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
73760         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
73761         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
73762         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
73763         Also check for iswcntrl, used for wcwidth fallback.
73764         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
73765         to Autoconf 2.13.
73766
73767 2001-08-03  Jim Meyering  <meyering@lucent.com>
73768
73769         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
73770         as it was in the original.  Reported by Paul Eggert.
73771
73772 2001-07-16  Jim Meyering  <meyering@lucent.com>
73773
73774         * m4/gettimeofday.m4: New file.
73775         Prompted by a report from Bernhard Baehr.
73776
73777 2001-07-15  Jim Meyering  <meyering@lucent.com>
73778
73779         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
73780         stuff. Now it's in ../Makefile.cfg.
73781
73782 2001-07-15  Jim Meyering  <meyering@lucent.com>
73783
73784         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
73785         (BUILT_SOURCES): Add unlocked-io.h.
73786         (io_functions): Define.
73787         (unlocked-io.h): New rule.
73788         (DISTCLEANFILES): Add unlocked-io.h.
73789         (all-local): Depend on unlocked-io.h, to ensure it is created.
73790
73791         * lib/unlocked-io.hin: New file
73792
73793         * lib/regex.c: Update from glibc.
73794
73795 2001-07-05  Jim Meyering  <meyering@lucent.com>
73796
73797         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
73798         recommendation.
73799         (libfetish_a_SOURCES): Put all .h files here instead.
73800         Remove a thus-exposed (better checks in automake) duplicate and
73801         two unnecessary .h files.
73802
73803 2001-07-04  Jim Meyering  <meyering@lucent.com>
73804
73805         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
73806         that generates jm-glibc-io.m4 so that it doesn't trigger any make
73807         distcheck failure.
73808
73809 2001-07-02  Jim Meyering  <meyering@lucent.com>
73810
73811         The following changes were prompted by suggestions from Bruno Haible.
73812
73813         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
73814         is now generated.
73815         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
73816         definition of EXTRA_DIST.
73817         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
73818         ensure that the generated file is created/updated whenever the list
73819         of $(unlocked_functions) is changed.
73820         (jm-glibc-io.m4): New rule.
73821         (unlocked-io.h): New rule -- currently unused.
73822
73823 2001-06-24  Jim Meyering  <meyering@lucent.com>
73824
73825         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
73826         unmatched right bracket, rather than kludging it with an extra,
73827         falsely-matching quote in a comment.  Patch by Akim Demaille.
73828
73829 2001-06-11  Jim Meyering  <meyering@lucent.com>
73830
73831         * lib/regex.c: Update from GNU libc.
73832
73833 2001-05-27  Jim Meyering  <meyering@lucent.com>
73834
73835         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
73836         Check for ut_type in struct utmp.
73837
73838 2001-05-27  Jim Meyering  <meyering@lucent.com>
73839
73840         * lib/readutmp.h (UT_TYPE): Define.
73841
73842 2001-05-24  Jim Meyering  <meyering@lucent.com>
73843
73844         * lib/argmatch.c: Include "quote.h".
73845         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
73846         quote function.  Reported by Göran Uddeborg.
73847
73848 2001-05-22  Jim Meyering  <meyering@lucent.com>
73849
73850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
73851         now that we use the package-supplied version unconditionally.
73852         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
73853
73854 2001-05-21  Jim Meyering  <meyering@lucent.com>
73855
73856         * m4/regex.m4: Change a couple backticks to single quotes to avoid
73857         shell syntax errors.
73858
73859 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73860
73861         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
73862
73863 2001-05-20  Paul Eggert  <eggert@twinsun.com>
73864
73865         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
73866         Don't bother to check library strftime, since
73867         we'll be using our own my_strftime function anyway.
73868         Define my_strftime instead of strftime.
73869
73870 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
73871
73872         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
73873         which is not yet declared.
73874
73875 2001-05-15  Jim Meyering  <meyering@lucent.com>
73876
73877         * m4/regex.m4: Use proper quoting so brackets appear in the test
73878         program.
73879         Reported by, and with help from, Bruno Haible.
73880
73881 2001-05-13  Jim Meyering  <meyering@lucent.com>
73882
73883         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
73884         undefined.
73885
73886 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73887
73888         dirname code cleanup.  base_name now behaves more compatibly
73889         with POSIX basename when given file names that have trailing
73890         slashes, and similarly for dir_name.  Add new primitives
73891         base_len and dir_len.  Put the directory-name-related decls
73892         into dirname.h.
73893
73894         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
73895         * lib/backupfile.c (base_name): Likewise.
73896         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
73897         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
73898         * lib/makepath.c (strip_trailing_slashes): Likewise.
73899         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
73900         ISSLASH): Likewise.
73901         * lib/rename.c (strip_trailing_slashes): Likewise.
73902         * lib/same.c (base_name): Likewise.
73903         * lib/stripslash.c (ISSLASH): Likewise.
73904
73905         * lib/addext.c: Include <dirname.h> after size_t is defined.
73906         * lib/backupfile.c: Likewise.
73907
73908         * lib/addext.c (addext): Use base_len to trim redundant
73909         trailing slashes instead of doing it ourselves.
73910         But do not trim the last slash if it is not redundant.
73911
73912         * lib/backupfile.c (find_backup_file_name,
73913         max_backup_version): Use base_len instead of rolling it ourselves.
73914         Handle the case of "" and (on DOS) "C:" correctly.
73915
73916         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
73917         needed. Include <string.h>, <dirname.h>.
73918         (base_name): Allow file names ending in slashes, other than names
73919         that are all slashes.  In this case, return the basename followed
73920         by the slashes.  This is more general, and can be used in places
73921         where the original base_name purposely had an assertion failure.
73922         (base_len): New function.
73923
73924         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
73925         Do not include <assert.h>; no longer needed.
73926         Include xalloc.h.
73927         (memrchr): Remove decl.
73928         (dir_name_r): Remove.
73929         (dir_len): Renamed from dirlen.  All callers changed.
73930         Rewrite in terms of base_name, for simplicity and consistency.
73931         (dir_name): Never return NULL.  All callers changed.
73932         Do not include <stdlib.h> in test program; no longer needed.
73933         return 0; is fine for test program.
73934
73935         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
73936         New macros.
73937         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
73938
73939         * lib/path-concat.c (path_concat): Use base_len to compute
73940         base length, not strlen; this means we cannot rely on memcpy
73941         to null-terminate.
73942
73943         * lib/same.c (STREQ): Remove.
73944         (same_name): Handle the case where the basename ends in trailing '/'.
73945
73946         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
73947         a slash was stripped.  Do not strip the last slash after a
73948         file system prefix.
73949
73950 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73951
73952         * lib/Makefile.am (libfetish_a_SOURCES):
73953         Add strftime.c, since we now compile it on all hosts.
73954
73955         * lib/strftime.c (my_strftime):
73956         Define to nstrftime if emacs, but only if my_strftime is not defined.
73957         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
73958         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
73959         Add one more extra argument: a nanoseconds value.
73960         All uses changed.
73961         (ns): New macro.
73962         (my_strftime function): Add %N format.
73963         (emacs_strftimeu): Renamed from emacs_strftime,
73964         with extra ut argument.
73965
73966 2001-05-09  Paul Eggert  <eggert@twinsun.com>
73967
73968         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
73969
73970 2001-04-21  Jim Meyering  <meyering@lucent.com>
73971
73972         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
73973         doesn't interfere.
73974
73975 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73976
73977         * m4/ftruncate.m4: Check for chsize.
73978         Link with ftruncate.o unconditionally if ftruncate is missing.
73979         This was required when cross-compiling to i586-mingw32msvc.
73980
73981 2001-04-08  Jim Meyering  <meyering@lucent.com>
73982
73983         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
73984         recomputed; that's necessary when the offset spans a DST transition.
73985         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
73986
73987 2001-04-02  Jim Meyering  <meyering@lucent.com>
73988
73989         * lib/regex.h, regex.c: Update from GNU libc.
73990
73991 2001-03-24  Jim Meyering  <meyering@lucent.com>
73992
73993         * m4/jm-macros.m4: Require autoconf-2.49d.
73994
73995 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
73996
73997         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
73998
73999 2001-03-19  Paul Eggert  <eggert@twinsun.com>
74000
74001         * lib/version-etc.c (version_etc_copyright): Update to 2001.
74002
74003 2001-03-17  Jim Meyering  <meyering@lucent.com>
74004
74005         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
74006         now that the version in autoconf is equivalent.
74007         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
74008
74009         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
74010         Suggestion from Akim Demaille.
74011
74012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
74013         (jm_PREREQ_TEMPNAME): New function.
74014
74015 2001-03-16  Paul Eggert  <eggert@twinsun.com>
74016
74017         * lib/tempname.c (uint64_t): Define to uintmax_t if
74018         not defined, and if UINT64_MAX is not defined.
74019         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
74020         Reported by John David Anglin.
74021
74022 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
74023
74024         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
74025         resolve alias if codeset is empty.
74026         * lib/config.charset (BeOS): Use wildcard syntax.
74027
74028 2001-03-13  Jim Meyering  <meyering@lucent.com>
74029
74030         * lib/path-concat.c (path_concat)
74031         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
74032         concatenating e.g., `C:' and `foo'.
74033         From Bruno Haible.
74034
74035 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74036
74037         * lib/localcharset.c (locale_charset): Don't use
74038         setlocale(LC_CTYPE,NULL). Don't return NULL.
74039         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
74040
74041 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
74042
74043         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
74044         support for DOS/DJGPP.
74045
74046 2001-03-01  Paul Eggert  <eggert@twinsun.com>
74047
74048         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
74049         lacks mkstemp.  Compile our own tempname.c if we compile our own
74050         mkstemp.c, as mkstemp relies on tempname.
74051
74052 2001-03-01  Jim Meyering  <meyering@lucent.com>
74053
74054         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
74055         AH_VERBATIM really does output its argument verbatim.
74056
74057 2001-02-28  Paul Eggert  <eggert@twinsun.com>
74058
74059         * lib/Makefile.am (libfetish_a_SOURCES):
74060         Add dup-safer.c, fopen-safer.c.
74061         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
74062
74063         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
74064         * lib/unistd-safer.h: New files.
74065
74066 2001-02-25  Paul Eggert  <eggert@twinsun.com>
74067
74068         The mkstemp replacement is taken from glibc 2.2.2, with some
74069         portability fixes for use outside glibc, as follows:
74070
74071         * lib/tempname.c (struct_stat64): New macro.
74072         (direxists, __gen_tempname): Use it.
74073         This avoids a portability problem with Solaris 8.
74074
74075         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
74076         (<stddef.h>, <stdint.h>, <string.h>):
74077         Include only if STDC_HEADERS || _LIBC.
74078         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
74079         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
74080         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
74081         (__set_errno): Define this macro if <errno.h> doesn't.
74082         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
74083         Define these macros if <stdio.h> doesn't.
74084         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
74085         Define these macros if <sys/stat.h>
74086         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
74087         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
74088         __xstat64): Define if not _LIBC.
74089         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
74090         (__gen_tempname): Invoke gettimeofday only if
74091         HAVE_GETTIMEOFDAY || _LIBC;
74092         otherwise, fall back on plain "time".
74093         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
74094
74095         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
74096
74097         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
74098
74099 2001-02-18  Paul Eggert  <eggert@twinsun.com>
74100
74101         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
74102
74103 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74104
74105         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
74106         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
74107         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
74108         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74109
74110 2001-02-17  Paul Eggert  <eggert@twinsun.com>
74111
74112         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
74113         Remove workaround macros for hosts that have mbrtowc but not
74114         mbstate_t, as we now insist on proper declarations for both
74115         before using mbrtowc.
74116
74117 2001-02-17  Jim Meyering  <meyering@lucent.com>
74118
74119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
74120         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
74121         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
74122         UnixWare 7.1.1.
74123
74124         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
74125         rather than AC_CACHE_VAL.
74126
74127 2001-02-17  Jim Meyering  <meyering@lucent.com>
74128
74129         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
74130         around included file name.
74131
74132         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
74133
74134         * lib/strftime.c: Update from GNU libc (the only changes were to
74135         comments).
74136
74137 2001-02-17  Jim Meyering  <meyering@lucent.com>
74138
74139         * lib/regex.c: Update from libc.
74140
74141 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
74142
74143         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
74144         clash.
74145
74146 2001-02-16  Paul Eggert  <eggert@twinsun.com>
74147
74148         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
74149         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
74150         Reported by Mark Hounschell via Paul Eggert.
74151
74152 2001-02-07  Jim Meyering  <meyering@lucent.com>
74153
74154         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
74155
74156 2001-02-05  Jim Meyering  <meyering@lucent.com>
74157
74158         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
74159         it includes the patch required for `large file' support with at least
74160         HP-UX's 10.20 /bin/cc.
74161
74162 2001-02-03  Jim Meyering  <meyering@lucent.com>
74163
74164         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
74165         AS_IF, now that it works once again (mysteriously).
74166         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74167
74168 2001-01-30  Jim Meyering  <meyering@lucent.com>
74169
74170         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
74171         * m4/chown.m4: Rename conftestchown to conftest.chown.
74172         * m4/rename.m4: s/conftestdir/conftest.d1/ and
74173         s/conftestdir2/conftest.d2/.
74174         * m4/utimes.m4: s/conftestdata/conftest.data/
74175         Inspired by Pavel Roskin's change in autoconf.
74176
74177 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
74178
74179         * lib/config.charset: Update for FreeBSD 4.2.
74180
74181 2001-01-27  Jim Meyering  <meyering@lucent.com>
74182
74183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
74184         a use of AS_IF.
74185         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
74186
74187 2001-01-26  Jim Meyering  <meyering@lucent.com>
74188
74189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
74190         quotearg.c includes it.
74191
74192 2001-01-26  Jim Meyering  <meyering@lucent.com>
74193
74194         * lib/quotearg.c: Include stddef.h.
74195         * lib/quote.c: Include stddef.h.
74196         Reported by Axel Kittenberger.
74197
74198         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
74199         line in double quotes so that it evokes a better diagnostic.
74200         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
74201         Reported by Axel Kittenberger.
74202
74203 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
74204
74205         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
74206         as if it was a `charset'.
74207
74208 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74209
74210         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
74211         has const.
74212
74213 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
74214
74215         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
74216         to avoid a warning.  Add back 'const' to inptr.
74217
74218 2001-01-20  Jim Meyering  <meyering@lucent.com>
74219
74220         Be sure that headers are checked before used in code compiled
74221         for the type checks.
74222         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
74223         In place of that, invoke jm_CHECK_ALL_TYPES.
74224         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
74225         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
74226         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
74227         The check for ssize_t was mistakenly run before the test for unistd.h.
74228
74229         The configure-time check for stdbool.h was missing.
74230         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
74231         (jm_PREREQ_HASH): New function.
74232
74233 2001-01-17  Jim Meyering  <meyering@lucent.com>
74234
74235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
74236         for autoconf-2.49c.
74237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
74238
74239 2001-01-16  Jim Meyering  <meyering@lucent.com>
74240
74241         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
74242         From Bruno Haible.
74243
74244 2001-01-14  Jim Meyering  <meyering@lucent.com>
74245
74246         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
74247         foo and bar.  Create conftestdir/ in the script, not in the C code.
74248         Remove directories in the script, not in the C code.
74249         Remove conftestdir{,2} before trying to create the directory.
74250         Make the entire configure script fail if the mkdir fails.
74251
74252 2001-01-14  Jim Meyering  <meyering@lucent.com>
74253
74254         * lib/rename.c: New file.  From Volker Borchert.
74255         Include stdlib.h, string.h or strings.h, and xalloc.h.
74256         Use strip_trailing_slashes rather than open-coding it.
74257
74258 2001-01-03  Paul Eggert  <eggert@twinsun.com>
74259
74260         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
74261
74262 2001-01-03  Jim Meyering  <meyering@lucent.com>
74263
74264         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
74265         of local `inptr' to avoid warning with some system declarations of
74266         iconv.
74267
74268 2001-01-02  Volker Borchert  <bt@teknon.de>
74269
74270         * m4/rename.m4: New file.
74271         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
74272
74273 2001-01-01  Jim Meyering  <meyering@lucent.com>
74274
74275         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
74276         even on systems with utmpx.h.  It's necessary for the declaration of
74277         utmp's ut_user member.  Reported by Andreas Jaeger.
74278
74279         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
74280         available. They are required for the declarations of getgrgid and
74281         getpwuid resp.
74282         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
74283         Reported by Andreas Jaeger.
74284
74285 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
74286
74287         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
74288         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
74289         so `make install' also works in VPATH builds.
74290
74291 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
74292
74293         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
74294         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
74295         can be used in subdirectories.
74296
74297 2000-12-29  Paul Eggert  <eggert@twinsun.com>
74298
74299         * lib/modechange.c: Do not assume that mode_t uses the
74300         traditional octal encoding.  E.g. "chmod 1 FOO" should set
74301         the other-execute bit of FOO even if S_IXOTH != 1.
74302
74303         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
74304         WOTH, XOTH, ALLM): New macros.
74305         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
74306          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
74307         Use them.
74308         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
74309         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
74310         (mode_compile):
74311         No need to use uintmax_t; unsigned long is long enough.
74312         Don't bother to get suffix since we don't use it.
74313
74314 2000-12-26  Jim Meyering  <meyering@lucent.com>
74315
74316         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
74317         better with autoheader.
74318
74319 2000-12-24  Jim Meyering  <meyering@lucent.com>
74320
74321         * lib/hash.c (is_prime): Return explicit boolean values.
74322         (hash_get_first): Return NULL to appease Irix5.6's 89.
74323         Reported by Nelson Beebe.
74324
74325 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
74326
74327         * lib/localcharset.c (locale_charset): Add support for Win32.
74328
74329 2000-12-18  Paul Eggert  <eggert@twinsun.com>
74330
74331         * lib/physmem.h, lib/physmem.c: New files.
74332
74333         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
74334         (noinst_HEADERS): Add physmem.h.
74335
74336         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
74337         't' for compatibility with Solaris 8 sort.
74338
74339 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
74340
74341         * lib/config.charset: Add support for BeOS.
74342
74343 2000-12-17  Jim Meyering  <meyering@lucent.com>
74344
74345         * m4/dos.m4 (jm_AC_DOS): New file and macro.
74346         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
74347
74348 2000-12-16  Jim Meyering  <meyering@lucent.com>
74349
74350         This bug had a serious impact on chown: `chown N:M FILE' (for integer
74351         N and M) would have treated it like `chown N:N FILE'.
74352
74353         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
74354
74355 2000-12-16  Jim Meyering  <meyering@lucent.com>
74356
74357         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
74358         SHELLS_FILE to a file name that's useful on djgpp systems.
74359         Include stdlib.h.
74360         (ADDITIONAL_DEFAULT_SHELLS): Define.
74361         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
74362         Based mostly on a patch from Prashant TR.
74363
74364 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
74365
74366         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
74367         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
74368         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
74369
74370 2000-12-08  Andreas Schwab  <schwab@suse.de>
74371
74372         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
74373         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
74374
74375 2000-12-07  Jim Meyering  <meyering@lucent.com>
74376
74377         * lib/stripslash.c (ISSLASH): Define.
74378         (strip_trailing_slashes): Use ISSLASH rather than comparing against
74379         `/'.
74380         From Prashant TR.
74381
74382         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
74383         (dir_name_r): Declare this function as static.
74384         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
74385         manifest itself on a name containing a mix of slashes and
74386         backslashes.
74387         Make this function work with names starting with a DOS-style
74388         drive letter and colon prefix.
74389         (dir_name): Append `.' if necessary.
74390         Based mostly on patches from Prashant TR and Eli Zaretskii.
74391
74392         * lib/dirname.h (dir_name_r): Remove prototype.
74393
74394 2000-12-06  Paul Eggert  <eggert@twinsun.com>
74395
74396         * m4/off_t-format.m4: Remove this file.
74397         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
74398
74399 2000-12-06  Jim Meyering  <meyering@lucent.com>
74400
74401         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
74402         replacement strtoull, we may well need the replacement strtoul, too.
74403         Check for declarations of strtoul and strtoull.
74404         Check for strtol.  Mainly as a cue to cause automake to include
74405         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
74406         Check for limits.h -- strtol.c needs it.
74407
74408 2000-12-05  Jim Meyering  <meyering@lucent.com>
74409
74410         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
74411
74412 2000-12-04  Jim Meyering  <meyering@lucent.com>
74413
74414         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
74415         Also include memory.h, stdlib.h, unistd.h if appropriate.
74416         Reported by Andreas Jaeger (conflicting declaration of malloc).
74417
74418 2000-12-02  Jim Meyering  <meyering@lucent.com>
74419
74420         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
74421         * m4/jm-macros.m4 (jm_MACROS): require it.
74422
74423 2000-12-02  Jim Meyering  <meyering@lucent.com>
74424
74425         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
74426
74427 2000-12-01  Paul Eggert  <eggert@twinsun.com>
74428
74429         * lib/memrchr.c: Include <config.h> before any system include file.
74430
74431 2000-11-30  Jim Meyering  <meyering@lucent.com>
74432
74433         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
74434
74435 2000-11-30  Jim Meyering  <meyering@lucent.com>
74436
74437         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
74438
74439 2000-11-29  Paul Eggert  <eggert@twinsun.com>
74440
74441         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
74442
74443 2000-11-26  Jim Meyering  <meyering@lucent.com>
74444
74445         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
74446
74447 2000-11-22  Paul Eggert  <eggert@twinsun.com>
74448
74449         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
74450         size of (size_t) -1; it's not portable.
74451
74452 2000-11-17  Jim Meyering  <meyering@lucent.com>
74453
74454         * lib/strstr.c: Update from GNU libc.
74455
74456 2000-11-17  Akim Demaille  <akim@epita.fr>
74457
74458         * lib/obstack.h: Formatting changes.
74459         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
74460         prevent type checking.
74461         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
74462         cast the value to (void *): assigning a `foo *' to a `void *'
74463         variable is valid.
74464         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
74465
74466 2000-11-16  Jim Meyering  <meyering@lucent.com>
74467
74468         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
74469
74470 2000-11-11  Jim Meyering  <meyering@lucent.com>
74471
74472         * lib/error.c: Add a couple #includes, merging from GNU libc version.
74473
74474 2000-11-10  Jim Meyering  <meyering@lucent.com>
74475
74476         * lib/obstack.h: Update from GNU libc.
74477         * lib/obstack.c: Likewise.
74478
74479 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
74480
74481         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
74482
74483 2000-11-06  Paul Eggert  <eggert@twinsun.com>
74484
74485         * lib/getusershell.c (setusershell): Use rewind rather than
74486         fseek/fseeko, to avoid configuration hassles with fseeko.
74487         Don't bother opening SHELLS_FILE if shellstream is NULL;
74488         it's not necessary.
74489
74490 2000-11-05  Jim Meyering  <meyering@lucent.com>
74491
74492         * lib/makepath.h (make_dir): Declare.
74493         * lib/makepath.c (make_dir): Remove `static' attribute.
74494         Tweak a comment.
74495
74496 2000-11-04  Jim Meyering  <meyering@lucent.com>
74497
74498         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
74499
74500 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
74501
74502         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
74503         last one in a bucket, advance to the next bucket.
74504
74505 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
74506
74507         * lib/fnmatch.c: Do not comment out all the code if we are using
74508         the GNU C library, because in some cases we are replacing buggy
74509         code in the GNU C library itself.
74510
74511 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
74512
74513         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
74514         (regex_compile): Catch bogus \(\1\).
74515
74516 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74517
74518         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
74519         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
74520         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
74521
74522 2000-10-30  Paul Eggert  <eggert@twinsun.com>
74523
74524         * lib/error.h, getline.h, modechange.h:
74525         Remove "2000" from Copyright line, as the file hasn't been
74526         changed this year other than in the copyright notice.
74527
74528         * lib/xalloc.h: Add "2000" to Copyright line, as this file
74529         was changed this year.
74530
74531 2000-10-29  Jim Meyering  <meyering@lucent.com>
74532
74533         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
74534         renaming.
74535         * m4/ls-mntd-fs.m4: Likewise
74536
74537 2000-10-29  Jim Meyering  <meyering@lucent.com>
74538
74539         * lib/xstat.in: Fix grammar in comment.
74540
74541 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
74542
74543         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
74544         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
74545         doesn't define __restrict_arr.
74546
74547 2000-10-28  Jim Meyering  <meyering@lucent.com>
74548
74549         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
74550         (jm_PREREQ_MEMCHR): New function.
74551
74552 2000-10-28  Jim Meyering  <meyering@lucent.com>
74553
74554         * lib/memchr.c: Update from libc.
74555         Adjust for portability:
74556         [HAVE_STDLIB_H]: Include stdlib.h.
74557         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
74558         Undef __memchr, too.
74559         [!weak_alias]: Define __memchr to memchr.
74560
74561         * lib/regex.c: Update from libc.
74562         * lib/regex.h: Likewise.
74563         * lib/getopt1.c: Likewise.
74564         * lib/memcmp.c: Likewise.
74565
74566         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
74567         Avoid using fseek, when possible -- it's broken by design.
74568         Patch by Ulrich Drepper.
74569
74570 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
74571
74572         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
74573         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
74574         Giving in to popular pressure to shut up the compiler with casts.
74575
74576 2000-10-26  Jim Meyering  <meyering@lucent.com>
74577
74578         * lib/strftime.c: Update from libc.
74579
74580 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
74581
74582         * regex.c: More `unsigned char' -> `re_char' changes.
74583         Also change several `int' into `re_wchar_t'.
74584         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
74585         (PUSH_FAILURE_POINTER): Don't cast any more.
74586         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
74587         We want GCC to complain, since this piece of code makes
74588         re_match non-reentrant, which *should* be fixed.
74589         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
74590         (EXTEND_BUFFER): Use RETALLOC.
74591         (SET_LIST_BIT): Don't cast.
74592         (re_wchar_t): New type.
74593         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
74594         that those two functions will always properly return.
74595         (IMMEDIATE_QUIT_CHECK): Cast to void.
74596         (analyse_first): Use recursion rather than an explicit stack.
74597         (re_compile_fastmap): Can't fail anymore.
74598         (re_search_2): Don't check re_compile_fastmap for failure.
74599         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
74600         Now also sets the new value (passed in a new argument).
74601         (re_match_2_internal): Use it.
74602         Also, use a new var `reg' of type size_t when looping through regs
74603         rather than reuse the inappropriate `mcnt'.
74604
74605 2000-10-25  Jim Meyering  <meyering@lucent.com>
74606
74607         * lib/obstack.c: Update from libc.
74608
74609 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
74610
74611         * regex.c (regex_compile): Change the way of handling a range from
74612         a char less than 256 to a char not less than 256.
74613
74614 2000-10-24  Andrew Innes  <andrewi@gnu.org>
74615
74616         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
74617         NT-Emacs only.
74618         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
74619         so that re_search functions only quit when callers expect them to.
74620
74621 2000-10-23  Jim Meyering  <meyering@lucent.com>
74622
74623         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
74624         wrong.  That set_locale call must not have any side effects.
74625         From Paul Eggert.
74626
74627 2000-10-22  Jim Meyering  <meyering@lucent.com>
74628
74629         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
74630         [CYCLIC]: Remove now-unused definition.
74631
74632         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
74633         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
74634         Suggestion from Ulrich Drepper.
74635
74636 2000-10-21  Jim Meyering  <meyering@lucent.com>
74637
74638         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
74639         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
74640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
74641
74642 2000-10-21  Jim Meyering  <meyering@lucent.com>
74643
74644         * lib/dirname.c (memrchr): Declare if necessary.
74645         (dir_name): Remove the restriction that there be no
74646         trailing slashes.  Now, this code skips past them, effectively
74647         ignoring them.
74648         [TEST_DIRNAME] (main): New unit tests.
74649
74650         * lib/memrchr.c: New file from GNU libc.
74651         Undef __memrchr, too.
74652         [!weak_alias]: Define __memrchr to memrchr.
74653         Guard weak_alias use with `#ifdef weak_alias'.
74654
74655 2000-10-21  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
74658         (dir_name): Use dir_name_r.
74659         * lib/dirname.h (dir_name_r): Declare it.
74660
74661 2000-10-17  Jim Meyering  <meyering@lucent.com>
74662
74663         * lib/quote.h (PARAMS): Define and use.
74664         Reported by Akim Demaille.
74665
74666         * lib/getopt.c: Update from libc.
74667
74668 2000-10-16  Jim Meyering  <meyering@lucent.com>
74669
74670         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
74671         setlocale.
74672         From Jan Fedak.
74673
74674 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
74675
74676         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
74677
74678 2000-09-25  Jim Meyering  <meyering@lucent.com>
74679
74680         * lib/md5.h (rol): Define (from GnuPG).
74681
74682         * lib/sha.c: Give credit (GnuPG) where due.
74683         (M): Use rol rather than open-coding it.
74684         Add a FIXME comment.
74685
74686 2000-09-21  Jim Meyering  <meyering@lucent.com>
74687
74688         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
74689         Reported by Michael Stone.
74690
74691 2000-09-20  Jim Meyering  <meyering@lucent.com>
74692
74693         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
74694         (noinst_HEADERS): Add sha.h.
74695         Based on code from Scott G. Miller and from GnuPG.
74696
74697 2000-09-18  Jim Meyering  <meyering@lucent.com>
74698
74699         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
74700         LIBS. Otherwise, everyone ends up linking with -lelf for some
74701         configurations.
74702         Reported by Mike Stone.
74703
74704 2000-09-15  Jim Meyering  <meyering@lucent.com>
74705
74706         * lib/regex.c: Update from libc.
74707
74708 2000-09-10  Jim Meyering  <meyering@lucent.com>
74709
74710         * lib/getopt.c (_getopt_internal): Update from glibc.
74711
74712 2000-09-09  Jim Meyering  <meyering@lucent.com>
74713
74714         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
74715         think it should be used as a general replacement for isascii.
74716         * lib/fnmatch.c: Likewise.
74717         * lib/mbswidth.c: Likewise
74718         * lib/regex.c: Likewise.
74719
74720         Don't use atoi.
74721         * lib/userspec.c: Include sys/param.h and limits.h.
74722         Include xstrtol.h.
74723         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74724         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
74725         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
74726         UID, GID.  Check range.
74727
74728 2000-09-06  Jim Meyering  <meyering@lucent.com>
74729
74730         * lib/getopt.c (_getopt_internal): Update from glibc.
74731
74732 2000-08-30  Jim Meyering  <meyering@lucent.com>
74733
74734         * lib/strftime.c: Merge in changes from GNU libc.
74735
74736 2000-08-26  Jim Meyering  <meyering@lucent.com>
74737
74738         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
74739         * m4/fpending.m4: New file.
74740
74741 2000-08-26  Jim Meyering  <meyering@lucent.com>
74742
74743         * lib/closeout.c: Include "__fpending.h".
74744         (close_stdout_status): Return right away if there's nothing to flush.
74745
74746         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
74747         * lib/__fpending.c: New file.
74748         * lib/__fpending.h: New file.
74749
74750 2000-08-20  Jim Meyering  <meyering@lucent.com>
74751
74752         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
74753         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
74754         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
74755
74756 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
74757
74758         Improve fileutils installation on systems where running
74759         programs (like install) can't be unlinked.
74760         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
74761         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
74762
74763 2000-08-07  Paul Eggert  <eggert@twinsun.com>
74764
74765         Standardize on "memory exhausted" instead of "Memory exhausted"
74766         or "virtual memory exhausted".
74767         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
74768         "virtual memory exhausted".
74769         * lib/same.c (same_name): Invoke xalloc_die instead of printing
74770         our own message.
74771         * lib/userspec.c (parse_user_spec): Likewise.
74772         * lib/bumpalloc.h: comment fix
74773         * lib/same.c, userspec.c: Include xalloc.h.
74774
74775         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
74776         not char *const and pointing to a constant array.
74777         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
74778         (xrealloc): Comment fix.
74779
74780         * lib/userspec.c (parse_user_spec):
74781         Don't translate a message until just before returning,
74782         to avoid unnecessary translation.
74783
74784 2000-08-07  Jim Meyering  <meyering@lucent.com>
74785
74786         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
74787         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
74788         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
74789         getgroups.c, gethostname.c, getopt.h, group-member.c,
74790         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
74791         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
74792         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
74793         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
74794         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
74795         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
74796         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
74797         yesno.c: Back out Copyright date changes for each file with no change
74798         this year.  This eases coordination with other programs using the same
74799         source code modules.  From Paul Eggert.
74800
74801 2000-08-06  Paul Eggert  <eggert@twinsun.com>
74802
74803         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
74804         not char, for compatibility with glibc 2.1.3 strftime.c.
74805
74806 2000-08-03  Greg McGary  <greg@mcgary.org>
74807
74808         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
74809         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
74810         (EXTEND_BUFFER): Use them.
74811
74812 2000-08-01  Jim Meyering  <meyering@lucent.com>
74813
74814         * lib/dirname.c (ISSLASH): Define.
74815         (BACKSLASH_IS_PATH_SEPARATOR): Define.
74816         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
74817         both `\' and `/' may be use as path separators.
74818         Based on a patch from Prashant TR.
74819
74820 2000-07-31  Paul Eggert  <eggert@twinsun.com>
74821
74822         * lib/quotearg.c (quotearg_n_options): Don't make the initial
74823         slot vector a constant, since it might get modified.
74824
74825 2000-07-31  Jim Meyering  <meyering@lucent.com>
74826
74827         * lib/xmalloc.c: Use `virtual memory exhausted', not
74828         `Memory exhausted'.
74829         * lib/obstack.c (print_and_abort): Likewise.
74830
74831 2000-07-30  Paul Eggert  <eggert@twinsun.com>
74832
74833         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
74834         buffer, so that the caller can always quote one small
74835         component of a "memory exhausted" message in slot 0.
74836         From a suggestion by Jim Meyering.
74837
74838 2000-07-30  Jim Meyering  <meyering@lucent.com>
74839
74840         * lib/makepath.c (make_path): Quote the other instance, too.
74841
74842         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
74843         (STATIC_BUF_SIZE): Define.
74844         (quotearg_n_options): Use only statically allocated storage when
74845         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
74846         than STATIC_BUF_SIZE.
74847
74848 2000-07-29  Jim Meyering  <meyering@lucent.com>
74849
74850         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
74851         * lib/dirname.c (dir_name): Likewise.
74852
74853         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
74854         `/'.
74855
74856         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
74857         (dir_name): Assert that there are no trailing slashes.
74858
74859 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
74860
74861         * lib/mbswidth.h (mbswidth): Add a flags argument.
74862         (mbswidth): New declaration.
74863         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
74864         * lib/mbswidth.c (mbswidth): Add a flags argument.
74865         (mbsnwidth): New function.
74866
74867 2000-07-24  Jim Meyering  <meyering@lucent.com>
74868
74869         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
74870
74871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74872
74873         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
74874
74875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74876
74877         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
74878         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
74879         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
74880         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
74881         invoke multibyte primitives.
74882
74883 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74884
74885         * lib/quotearg.c:
74886         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
74887         so that mbstate_t is always defined.
74888
74889         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
74890         be 1 in at least one GCC installation, and this configuration
74891         error is likely to be common.  Ignoring MB_LEN_MAX hurts
74892         performance on hosts that have mbrtowc but have only unibyte
74893         locales, but I assume these hosts are rare.
74894
74895 2000-07-23  Paul Eggert  <eggert@twinsun.com>
74896
74897         * lib/mbswidth.c (_XOPEN_SOURCE):
74898         Don't define; this causes problems on Solaris 7.
74899         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
74900
74901 2000-07-23  Jim Meyering  <meyering@lucent.com>
74902
74903         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
74904         too: getgrgid, getpwuid, getuid.
74905
74906 2000-07-23  Jim Meyering  <meyering@lucent.com>
74907
74908         * lib/basename.c (base_name): Add an assertion.
74909
74910 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
74911
74912         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
74913         shadow its mbsinit function.
74914
74915 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74916
74917         * lib/mbswidth.h: New file.
74918         * lib/mbswidth.c: New file.
74919         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
74920         (noinst_HEADERS): Add mbswidth.h.
74921
74922 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
74923
74924         * lib/config.charset: Add support for FreeBSD. Improve support for
74925         HP-UX and IRIX 6.
74926
74927 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
74928
74929         * m4/mbswidth.m4: New file.
74930         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
74931
74932 2000-07-15  Jim Meyering  <meyering@lucent.com>
74933
74934         * lib/makepath.c: Include quote.h.
74935         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
74936         corresponding argument in a `quote (...)' call.
74937         Give better diagnostics.
74938
74939         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
74940         (noinst_HEADERS): Add quote.h.
74941
74942         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
74943         from tar's src/misc.c.
74944         * lib/quote.h: New file.  Prototypes for same.
74945
74946 2000-07-14  Paul Eggert  <eggert@twinsun.com>
74947
74948         From a suggestion by Bruno Haible.
74949         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
74950         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
74951         to decide whether to define the BeOS workaround macro;
74952         this adjusts to the change to AC_MBSTATE_T.
74953
74954 2000-07-14  Jim Meyering  <meyering@lucent.com>
74955
74956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
74957         jm_AC_TYPE_UINTMAX_T.
74958
74959 2000-07-13  Paul Eggert  <eggert@twinsun.com>
74960
74961         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
74962
74963         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
74964         quotearg_buffer_restyled): Add support for
74965         clocale_quoting_style.  Undo previous change to
74966         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
74967         and "{RIGHT QUOTATION MARK}" msgids.
74968
74969 2000-07-10  Paul Eggert  <eggert@twinsun.com>
74970
74971         From a suggestion by Bruno Haible.
74972         * m4/mbstate_t.m4 (AC_MBSTATE_T):
74973         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
74974         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
74975         and mbstate_t, to a single-part test that simply defines mbstate_t.
74976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
74977         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
74978
74979 2000-07-10  Jim Meyering  <meyering@lucent.com>
74980
74981         * m4/strerror_r.m4: Mirror the correction made in autoconf.
74982
74983         * m4/gnu-source.m4: Output to confdefs.h directly.
74984         Suggestion from Akim Demaille.
74985
74986 2000-07-09  Paul Eggert  <eggert@twinsun.com>
74987
74988         The old behavior of quoting `like this' doesn't look good with
74989         newer, ISO-style fonts.  See:
74990         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
74991
74992         Instead, quote "like this" by default.  Let the translator
74993         tailor the locale-specific quoting behavior by providing
74994         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
74995
74996         * lib/quotearg.c (N_): New macro.
74997         (gettext_default): New function.
74998         (quotearg_buffer_restyled): Use
74999         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
75000         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
75001
75002 2000-07-09  Jim Meyering  <meyering@lucent.com>
75003
75004         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
75005         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
75006
75007         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
75008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
75009
75010 2000-07-09  Jim Meyering  <meyering@lucent.com>
75011
75012         * lib/Most files: Update copyright dates to include 2000.
75013
75014 2000-07-08  Jim Meyering  <meyering@lucent.com>
75015
75016         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
75017         if not defined.
75018         (xgethostname): Remove now-unnecessary #ifdef.
75019         Move declaration of `err' into loop where it's used.
75020
75021 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75022         and Bruno Haible  <haible@clisp.cons.org>
75023
75024         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
75025         only if the test for an object-type mbstate_t fails.  This
75026         prevents us from mistakenly reporting that mbstate_t is a
75027         system object type after we "#define mbstate_t int" to work
75028         around its lack.
75029
75030 2000-07-05  Paul Eggert  <eggert@twinsun.com>
75031         and Bruno Haible  <haible@clisp.cons.org>
75032
75033         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
75034
75035 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75036
75037         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
75038         to strerror_r.
75039         Include <ctype.h> for use of isalpha.
75040
75041 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75042
75043         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
75044         by allocating a larger buffer. Test the gethostname return value for
75045         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
75046         returns an error and ENAMETOOLONG isn't defined.
75047
75048 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
75049
75050         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
75051         dimension.
75052
75053 2000-07-04  Jim Meyering  <meyering@lucent.com>
75054
75055         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
75056         of the deprecated AC_CHECKING.
75057
75058 2000-07-04  Jim Meyering  <meyering@lucent.com>
75059
75060         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
75061         Reported by Bruno Haible.
75062
75063 2000-07-04  Jim Meyering  <meyering@lucent.com>
75064
75065         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
75066         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
75067         lacks mbrtowc.
75068
75069 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75070
75071         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
75072         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
75073
75074 2000-07-03  Paul Eggert  <eggert@twinsun.com>
75075         and Bruno Haible  <haible@clisp.cons.org>
75076
75077         * lib/quotearg.c (mbrtowc):
75078         Assign to *pwc, and return 1 only if result is nonzero.
75079         (iswprint): Use ISPRINT when substituting our own mbrtowc.
75080
75081 2000-07-03  Jim Meyering  <meyering@lucent.com>
75082
75083         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
75084
75085 2000-07-03  Jim Meyering  <meyering@lucent.com>
75086
75087         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
75088         This is necessary to get a definition of e.g., UTMP_FILE on
75089         HP-UX 10.20.
75090         From Bob Proulx.
75091
75092 2000-07-02  Jim Meyering  <meyering@lucent.com>
75093
75094         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
75095
75096         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
75097         AC_LIBOBJ(function_name).
75098         * m4/chown.m4: Likewise.
75099         * m4/fnmatch.m4: Likewise.
75100         * m4/ftruncate.m4: Likewise.
75101         * m4/getgroups.m4: Likewise.
75102         * m4/getline.m4: Likewise.
75103         * m4/group-member.m4: Likewise.
75104         * m4/jm-macros.m4: Likewise.
75105         * m4/lstat.m4: Likewise.
75106         * m4/malloc.m4: Likewise.
75107         * m4/memcmp.m4: Likewise.
75108         * m4/nanosleep.m4: Likewise.
75109         * m4/putenv.m4: Likewise.
75110         * m4/realloc.m4: Likewise.
75111         * m4/regex.m4: Likewise.
75112         * m4/stat.m4: Likewise.
75113         * m4/strftime.m4: Likewise.
75114
75115 2000-07-02  Jim Meyering  <meyering@lucent.com>
75116
75117         * lib/quotearg.c (mbstate_t): Don't define here.
75118
75119 2000-07-02  Jim Meyering  <meyering@lucent.com>
75120
75121         * lib/nanosleep.c (SIGCONT): Define if not already defined.
75122
75123 2000-07-01  Jim Meyering  <meyering@lucent.com>
75124
75125         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
75126
75127 2000-07-01  Jim Meyering  <meyering@lucent.com>
75128
75129         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
75130         problem.
75131
75132 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75133
75134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
75135         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
75136
75137 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
75138
75139         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
75140         per change in ../m4/ls-mntd-fs.m4.
75141         (read_filesystem_list): Ignore symbolic links.
75142
75143 2000-06-29  Jim Meyering  <meyering@lucent.com>
75144
75145         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
75146         for declaration of strcmp.
75147
75148         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
75149
75150         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
75151         Avoid warning by casting result to `char *' to remove `const'.
75152
75153 2000-06-28  Jim Meyering  <meyering@lucent.com>
75154
75155         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
75156         included by quotearg.c, for which we perform this test.  From
75157         Bruno Haible.
75158
75159 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75160
75161         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
75162         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
75163         <utmpx.h> exists, put readutmp.o into LIBOBJS.
75164
75165 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
75166
75167         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
75168
75169 2000-06-26  Paul Eggert  <eggert@twinsun.com>
75170
75171         savedir now sets errno on failure and invokes xmalloc to get memory.
75172         Fix a couple of other minor bugs while we're at it.
75173
75174         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
75175         (NAMLEN): Remove macro.
75176         (malloc, realloc): Remove decls.
75177         (stpcpy): Likewise.
75178         ("xalloc.h"): Include.
75179         (NAME_SIZE_DEFAULT): New macro.
75180         (savedir): Use xmalloc / xrealloc to allocate memory.
75181         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
75182         Skip "" directory entries.
75183         Use strlen to calculate directory entry length, since the old method
75184         is rarely used these days and isn't worth supporting.
75185         Don't use a pointer after freeing it.
75186         Check for integer overflow when calculating allocation size.
75187         Use memcpy to copy entries, instead of stpcpy.
75188         Set errno properly when returning NULL.
75189         Check for readdir error.
75190
75191 2000-06-26  Jim Meyering  <meyering@lucent.com>
75192
75193         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
75194
75195 2000-06-25  Jim Meyering  <meyering@lucent.com>
75196
75197         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
75198         Linux header bug when _XOPEN_SOURCE is defined to 500.
75199
75200 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75201
75202         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
75203         deficiency.
75204
75205 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
75206
75207         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
75208         Include xalloc.h.
75209         Don't include <stdlib.h>.  Don't declare malloc, realloc.
75210
75211 2000-06-24  Jim Meyering  <meyering@lucent.com>
75212
75213         * m4/strerror_r.m4: Revive this file -- to try out an experimental
75214         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
75215         for which strerror does return char*, but which lacks a conveniently
75216         accessible declaration of the function.  If the compile-test says
75217         strerror_r doesn't work, then resort to a `run'-test that works on
75218         BeOS and segfaults on DEC Unix.
75219
75220 2000-06-24  Jim Meyering  <meyering@lucent.com>
75221
75222         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
75223
75224 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75225
75226         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
75227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
75228
75229 2000-06-23  Paul Eggert  <eggert@twinsun.com>
75230
75231         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
75232         (mbrtowc, mbstate_t): Define substitutes if
75233         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
75234         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
75235         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
75236
75237 2000-06-23  Jim Meyering  <meyering@lucent.com>
75238
75239         * m4/afs.m4: Add missing AC_MSG_RESULT.
75240         Reported by Bruno Haible.
75241
75242         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
75243         Suggestion from Bruno Haible.
75244
75245 2000-06-23  Jim Meyering  <meyering@lucent.com>
75246
75247         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
75248
75249 2000-06-21  Jim Meyering  <meyering@lucent.com>
75250
75251         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
75252
75253 2000-06-21  Jim Meyering  <meyering@lucent.com>
75254
75255         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
75256         (noinst_HEADERS): Add getstr.h.
75257
75258         * lib/getline.c (getstr): Move into a separate file.
75259         * lib/getstr.c (getstr): New file, extracted from getline.c, with
75260         the following changes: new parameter, delim2; both delim[12]
75261         parameters have type `int', not `char'.  The latter would lose
75262         with 8-bit delimiters.
75263         * lib/getstr.h: New file.
75264
75265 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75266
75267         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
75268         than 1024, return a memory chunk of least possible size, instead
75269         of size PATH_MAX + 2. In the loop, increment the size proportionally.
75270         Use free/xmalloc instead of xrealloc to avoid copying for very long
75271         paths.
75272
75273 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75274
75275         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
75276         the empty string.
75277
75278 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
75279
75280         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
75281         address, not strdup.  Include <stdlib.h> and don't declare free().
75282
75283 2000-06-19  Jim Meyering  <meyering@lucent.com>
75284
75285         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
75286
75287 2000-06-18  Jim Meyering  <meyering@lucent.com>
75288
75289         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
75290
75291         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
75292         `checking whether...' message to be consistent with that of the
75293         lstat test.
75294
75295 2000-06-18  Jim Meyering  <meyering@lucent.com>
75296
75297         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
75298         Besides, these days every porting target provides a mkdir function.
75299
75300         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
75301         needed. (this snippet comes from src/system.h).
75302
75303 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
75304
75305         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
75306
75307 2000-06-15  Paul Eggert  <eggert@twinsun.com>
75308
75309         * lib/human.c (adjust_value): New function.
75310         (human_readable_inexact): Apply rounding style even when
75311         printing approximate values.
75312
75313 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75314
75315         * lib/human.c (human_readable_inexact): Allow an input block
75316         size that is not a multiple of the output block size, and vice versa.
75317         Reported by Piergiorgio Sartor.
75318
75319 2000-06-14  Paul Eggert  <eggert@twinsun.com>
75320
75321         * lib/getdate.y (get_date): Apply relative times after time
75322         zone indicator, not before.  Reported by Todd A. Jacobs.
75323
75324 2000-06-13  Jim Meyering  <meyering@lucent.com>
75325
75326         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
75327
75328         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
75329
75330 2000-06-12  Paul Eggert  <eggert@twinsun.com>
75331
75332         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
75333
75334 2000-06-12  Jim Meyering  <meyering@lucent.com>
75335
75336         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
75337         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
75338         optional argument.
75339         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
75340         the optional argument, `lib'.
75341
75342 2000-06-08  Jim Meyering  <meyering@lucent.com>
75343
75344         * m4/largefile.m4: Remove file (now that it's part of autoconf).
75345
75346 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75347
75348         Rewrite largefile configuration so that we don't need to run
75349         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
75350         AC_CANONICAL_HOST in configure.in -- jmm]
75351
75352         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
75353         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
75354         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
75355         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
75356         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
75357         All uses changed.
75358         Instead of inspecting the output of getconf, try to compile the
75359         test program without and with the macro definition.
75360         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
75361         for getconf.  Instead, check for the needed flags by compiling
75362         test programs.
75363
75364 2000-06-04  Paul Eggert  <eggert@twinsun.com>
75365
75366         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
75367
75368 2000-06-04  Jim Meyering  <meyering@lucent.com>
75369
75370         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
75371         SunOS 4.1.4 for which gid_t is an unsigned type.
75372
75373 2000-06-03  Jim Meyering  <meyering@lucent.com>
75374
75375         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
75376         now that autoconf requires that.
75377
75378         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
75379         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
75380         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
75381
75382 2000-06-03  Jim Meyering  <meyering@lucent.com>
75383
75384         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
75385
75386 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75387
75388         * m4/glibc21.m4: New file.
75389         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
75390
75391 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
75392
75393         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
75394         newer, don't install charset.alias.
75395         * lib/config.charset: Change the Linux/glibc rules so they become empty
75396         on glibc-2.1 or newer.
75397
75398 2000-06-02  Jim Meyering  <meyering@lucent.com>
75399
75400         * lib/mountlist.c: Back out last change.  Instead, do this...
75401         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
75402         me_dummy member using the same `ignore'-testing code.
75403         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
75404         fs_type strings.
75405         From Mark D. Roth.
75406
75407 2000-05-29  Jim Meyering  <meyering@lucent.com>
75408
75409         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
75410         mounts with the `ignore' attribute.  Based on a patch from
75411         Mark D. Roth.
75412
75413 2000-05-28  Jim Meyering  <meyering@lucent.com>
75414
75415         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
75416         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75417         * m4/stat.m4: Likewise.
75418         * m4/lstat.m4: Likewise.
75419         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
75420
75421         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
75422         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
75423
75424 2000-05-26  Jim Meyering  <meyering@lucent.com>
75425
75426         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
75427
75428 2000-05-24  Jim Meyering  <meyering@lucent.com>
75429
75430         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
75431         autoconf requires that.
75432         * m4/lib-check.m4: Likewise.
75433         * m4/jm-macros.m4: Likewise.
75434         * m4/strftime.m4: Likewise.
75435
75436         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
75437         AC_CHECK_DECLS, now that autoconf requires that.
75438
75439 2000-05-22  Jim Meyering  <meyering@lucent.com>
75440
75441         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75442         * m4/lstat.m4: Likewise.
75443
75444 2000-05-22  Jim Meyering  <meyering@lucent.com>
75445
75446         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
75447
75448 2000-05-20  Jim Meyering  <meyering@lucent.com>
75449
75450         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
75451         (jm_PREREQ): Use it.
75452
75453 2000-05-18  Jim Meyering  <meyering@lucent.com>
75454
75455         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
75456         back, too, since it may have been modified by allocate_entry.
75457         (hash_delete): Rewrite to use neither the assignment operator
75458         nor the comma operator in an if-expression.
75459
75460 2000-05-15  Paul Eggert  <eggert@twinsun.com>
75461
75462         * lib/closeout.c:
75463         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
75464         Remove; no longer needed.
75465         "quotearg.h": Add include.
75466         (file_name): Do not bother to explicitly initialize to NULL; it's less
75467         efficient on some hosts.
75468         (close_stdout_status): Remove test as to whether stdout was already
75469         closed; it breaks for the case "echo x | sort >&-".
75470         Quote file name colons.
75471         Do not assume that _("write error") lacks format strings.
75472
75473 2000-05-15  Jim Meyering  <meyering@lucent.com>
75474
75475         * lib/version-etc.c (version_etc_copyright): Update the copyright
75476         string used in all --version output.
75477
75478 2000-05-14  Jim Meyering  <meyering@lucent.com>
75479
75480         * lib/closeout.c (close_stdout_set_file_name): New function.
75481         (close_stdout_status): Use new file-scoped global.
75482         Return right away if fstat says the stdout file descriptor is invalid.
75483         * lib/closeout.h (close_stdout_set_file_name): Declare.
75484
75485 2000-05-10  Jim Meyering  <meyering@lucent.com>
75486
75487         * lib/closeout.c [default_exit_status]: New file-scoped variable.
75488         (close_stdout_set_status): New function.
75489         * lib/closeout.h (close_stdout_set_status): Declare.
75490
75491 2000-05-09  Jim Meyering  <meyering@lucent.com>
75492
75493         * m4/gettext.m4: Rename this...
75494         * m4/libintl.m4: ...to this.
75495
75496 2000-05-08  Jim Meyering  <meyering@lucent.com>
75497
75498         * lib/long-options.c: Don't include closeout.h.
75499         (parse_long_options): Don't call close_stdout for --version.
75500
75501 2000-05-06  Paul Eggert  <eggert@twinsun.com>
75502
75503         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
75504         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
75505         2.1.3 bug.  This avoids a clash when files like regex.c define
75506         _GNU_SOURCE.
75507
75508 2000-05-06  Jim Meyering  <meyering@lucent.com>
75509
75510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
75511         (AC_REPLACE_FUNCS): Add strnlen.
75512
75513         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
75514         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
75515
75516         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
75517         AC_SEARCH_LIBS call for nanosleep.
75518         (LIB_NANOSLEEP): Set and AC_SUBST.
75519
75520 2000-05-06  Jim Meyering  <meyering@lucent.com>
75521
75522         * lib/strnlen.c: Undefine __strnlen and strnlen.
75523         [!weak_alias]: Define __strnlen to strnlen.
75524
75525         * lib/atexit.c: New file, from libiberty.
75526
75527 2000-05-06  Jim Meyering  <meyering@lucent.com>
75528
75529         * lib/closeout.c (close_stdout_status): Also check for errors on the
75530         stderr stream.
75531
75532 2000-05-05  Jim Meyering  <meyering@lucent.com>
75533
75534         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
75535         AC_SEARCH_LIBS call for clock_gettime.
75536         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
75537
75538         * m4/search-libs.m4: Update from autoconf.
75539
75540         su doesn't work on Solaris 2.6.
75541         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
75542         <shadow.h>.  Reported by Dragos Harabor.
75543
75544 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
75545
75546         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
75547         memcpy instead of xmalloc, xrealloc, path_concat.
75548         (locale_charset): Treat empty environment variables as absent.
75549         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
75550
75551 2000-05-04  Jim Meyering  <meyering@lucent.com>
75552
75553         * lib/getopt.c: Update from glibc.
75554         * lib/obstack.c: Likewise.
75555         * lib/obstack.h: Likewise.
75556         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
75557         file
75558
75559         * lib/regex.h: Likewise.
75560         * lib/strndup.c: Likewise.
75561         * lib/strnlen.c: New file, from glibc.
75562
75563 2000-05-03  Jim Meyering  <meyering@lucent.com>
75564
75565         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
75566
75567 2000-05-02  Paul Eggert  <eggert@twinsun.com>
75568
75569         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
75570         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
75571         compile-time test, rather than inspecting host and OS, to
75572         decide whether to define _LARGEFILE_SOURCE.
75573
75574 2000-05-01  Jim Meyering  <meyering@lucent.com>
75575
75576         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
75577
75578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
75579         Based on a patch from Bruno Haible.
75580
75581 2000-05-01  Jim Meyering  <meyering@lucent.com>
75582
75583         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
75584
75585 2000-04-29  Jim Meyering  <meyering@lucent.com>
75586
75587         * lib/path-concat.c: Declare strdup only if it's not defined.
75588         * lib/canon-host.c: Likewise.
75589
75590 2000-04-28  Jim Meyering  <meyering@lucent.com>
75591
75592         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
75593         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
75594         is included first, then limits.h is included by locale.h by libintl.h.
75595         From John David Anglin.
75596
75597 2000-04-25  Jim Meyering  <meyering@lucent.com>
75598
75599         * lib/makepath.c (S_IRWXUGO): Define.
75600         (make_path): Always perform explicit chmod if MODE specifies any
75601         of the `special' permission bits.  Prompted by a bug report against
75602         install from Mate Wierdl and Joost van Baal.
75603
75604 2000-04-18  Jim Meyering  <meyering@lucent.com>
75605
75606         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
75607         (jm_PREREQ): Use it.
75608
75609 2000-04-18  Jim Meyering  <meyering@lucent.com>
75610
75611         * lib/README: New file.
75612
75613         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
75614         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
75615
75616 2000-04-17  Jim Meyering  <meyering@lucent.com>
75617
75618         Get it right :-)
75619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
75620         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
75621         Suggestion from Akim Demaille.
75622
75623 2000-04-17  Jim Meyering  <meyering@lucent.com>
75624
75625         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
75626         the definition of it to rpl_strftime also defined-away the system's
75627         declaration.
75628
75629 2000-04-15  Jim Meyering  <meyering@lucent.com>
75630
75631         Use `C' to denote so-called `contiguous' files, the same way
75632         that tar does.
75633         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
75634         (ftypelet): Use S_ISCTG.
75635         From Michael Deutschmann.
75636
75637 2000-04-14  Jim Meyering  <meyering@lucent.com>
75638
75639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
75640         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
75641         clobbered.
75642
75643 2000-04-14  Jim Meyering  <meyering@lucent.com>
75644
75645         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
75646
75647 2000-04-13  Jim Meyering  <meyering@lucent.com>
75648
75649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
75650         AH_VERBATIM to insert required #ifndef into config.h.in.
75651         Suggestion from Akim Demaille.
75652
75653 2000-04-12  Jim Meyering  <meyering@lucent.com>
75654
75655         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
75656         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
75657         Christian Krackowizer.
75658
75659         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
75660         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
75661         (AC_SYS_LARGEFILE): Require.
75662         (AM_C_PROTOTYPES): Require.
75663
75664 2000-04-08  Jim Meyering  <meyering@lucent.com>
75665
75666         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
75667         names don't conflict.  Reported by Eli Zaretskii.
75668
75669 2000-04-07  Jim Meyering  <meyering@lucent.com>
75670
75671         * lib/putenv.c: Move inclusion of errno.h so it follows that of
75672         sys/types.h, to work around system header problems on AIX 3.2.5.
75673         From Bruno Haible.
75674
75675 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
75676
75677         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
75678         bug.  Deal with the different error behavior of Irix iconv.
75679
75680 2000-04-05  Paul Eggert  <eggert@twinsun.com>
75681
75682         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
75683         IRIX if the installer said otherwise.
75684
75685 2000-04-05  Jim Meyering  <meyering@lucent.com>
75686
75687         Portability tweaks required for ultrix4.3.
75688         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
75689         (jm_CHECK_DECLS): Add getutent to the list of functions.
75690         (_jm_DECL_HEADERS): Add utmpx.h.
75691         From John David Anglin.
75692
75693         * m4/strftime.m4: Back out the 2000-04-02 change.
75694         Instead of that change, simply undefine putenv in the test program.
75695
75696 2000-04-05  Jim Meyering  <meyering@lucent.com>
75697
75698         Portability tweaks required for ultrix4.3.
75699         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
75700         getutent.
75701         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
75702         * lib/canon-host.c: Declare strdup.
75703         * lib/path-concat.c: Likewise.
75704         From John David Anglin.
75705
75706 2000-04-04  Jim Meyering  <meyering@lucent.com>
75707
75708         Be more DOS 8.3-friendly.
75709         * lib/ref-add.sin: Renamed from ref-add.sed.in.
75710         * lib/ref-del.sin: Renamed from ref-del.sed.in.
75711         * lib/Makefile.am: Reflect renaming.
75712         Reported by Eli Zaretskii.
75713
75714         Use a temporary file name that won't clash with `charset.alias'
75715         in the DOS 8.3 name space.
75716         * lib/Makefile.am (charset_tmp): Define.
75717         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
75718         (uninstall-local): Likewise.
75719         Reported by Eli Zaretskii.
75720
75721 2000-04-03  Jim Meyering  <meyering@lucent.com>
75722
75723         * m4/gettext.m4: Fix typo in comment.
75724
75725         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
75726         textutils/configure.in).  Suggestion from Paul Eggert.
75727         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
75728
75729 2000-04-02  Paul Eggert  <eggert@twinsun.com>
75730
75731         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
75732         variable in the shell rather than using putenv, which isn't
75733         portable.  This avoids the configure-time inter-test dependency
75734         on the potentially-renamed putenv function.
75735
75736 2000-03-30  Paul Eggert  <eggert@twinsun.com>
75737
75738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
75739         before checking struct stat.st_blksize, so that
75740         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
75741
75742 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75743
75744         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
75745         since strftime.c uses HAVE_STRFTIME to decide whether to use
75746         the underlying strftime.
75747
75748 2000-03-29  Paul Eggert  <eggert@twinsun.com>
75749
75750         * lib/time/strftime.c (my_strftime): Make sure we call the system
75751         strftime, not ourselves, when invoking the underlying strftime.
75752
75753 2000-03-24  Jim Meyering  <meyering@lucent.com>
75754
75755         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
75756         (charset_alias): Define.
75757         (install-exec-local): Factor out common code.
75758         (uninstall-local): Split lines longer than 80.
75759         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
75760         (SUFFIXES): Define.
75761         (.sed.in.sed): New rule.  Don't redirect directly to $@.
75762         (CLEANFILES): Add ref-add.sed and ref-del.sed.
75763
75764 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
75765
75766         * lib/config.charset: Output a line containing "Packages using this
75767         file".
75768         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
75769         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
75770         ref-del.sed): New rules.
75771
75772 2000-03-17  Jim Meyering  <meyering@lucent.com>
75773
75774         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
75775         Otherwise, include <strings.h>
75776
75777 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
75778
75779         * lib/unicodeio.c (utf8_wctomb): New function.
75780         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
75781         format instead of in UCS-4 with platform dependent endianness.
75782
75783 2000-03-10  Jim Meyering  <meyering@lucent.com>
75784
75785         * m4/lib-check.m4: Look for getspnam in -lgen, too.
75786         From Marco Franzen.
75787
75788 2000-03-07  Paul Eggert  <eggert@twinsun.com>
75789
75790         * lib/savedir.c (savedir): Work even if directory size is
75791         negative; this can happen with some screwy NFS configurations.
75792
75793 2000-03-06  Jim Meyering  <meyering@lucent.com>
75794
75795         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
75796         if it's NULL (because we ran out of memory).  From Bruno Haible.
75797
75798 2000-03-05  Jim Meyering  <meyering@lucent.com>
75799
75800         * lib/localcharset.c ("path-concat.h"): Include.
75801         (get_charset_aliases): Use path_concat instead of ANSI string
75802         concatenation.
75803
75804         * lib/unicodeio.h (PARAMS): Define.
75805         Use it to guard prototype.
75806
75807 2000-03-04  Jim Meyering  <meyering@lucent.com>
75808
75809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
75810         for lib/localcharset.c.
75811
75812 2000-03-04  Jim Meyering  <meyering@lucent.com>
75813
75814         * lib/Makefile.am (install-exec-local): Create $(libdir) before
75815         installing into it.
75816         (uninstall-local): Uncomment this rule so `make distcheck' works
75817         once again.
75818
75819         * lib/unicodeio.c (<errno.h>): Include it.
75820         (errno): Declare if not defined.
75821
75822         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
75823
75824         * lib/config.charset: New version, incorporating remarks from a linux
75825         i18n mailing list.  From Bruno Haible.
75826
75827 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
75828
75829         * m4/codeset.m4: New file.
75830         * m4/iconv.m4: New file.
75831         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
75832
75833 2000-03-03  Jim Meyering  <meyering@lucent.com>
75834
75835         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
75836
75837 2000-03-02  Jim Meyering  <meyering@lucent.com>
75838
75839         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
75840         the messages come out on separate lines.
75841
75842         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
75843         rather than jm_CHECK_DECLARATIONS.
75844         * m4/decl.m4: Remove now-unused file.
75845
75846         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
75847         geteuid.
75848
75849 2000-03-02  Jim Meyering  <meyering@lucent.com>
75850
75851         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
75852
75853 2000-03-01  Jim Meyering  <meyering@lucent.com>
75854
75855         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
75856         * lib/unicodeio.c: Likewise.
75857
75858 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
75859
75860         * lib/config.charset: New file.
75861         * lib/localcharset.c: New file.
75862         * lib/unicodeio.h, lib/unicodeio.c: New files.
75863         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
75864         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
75865         (noinst_HEADERS): Add unicodeio.h.
75866         (all-local, install-exec-local, charset.alias): New targets.
75867
75868 2000-02-28  Paul Eggert  <eggert@twinsun.com>
75869
75870         * lib/quotearg.c (ALERT_CHAR): New macro.
75871         (quotearg_buffer_restyled): Use it.
75872
75873 2000-02-27  Jim Meyering  <meyering@lucent.com>
75874
75875         * m4/check-decl.m4: Add getenv to the list.
75876
75877 2000-02-27  Jim Meyering  <meyering@lucent.com>
75878
75879         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
75880         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
75881
75882         * lib/backupfile.c: Guard inclusion of stdlib.h with
75883         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
75884         Declare malloc if needed.
75885
75886         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
75887         `#ifndef HAVE_DECL..'
75888         now that autoconf always defines the HAVE_DECL_ symbols.
75889         * lib/human.c: Likewise.
75890         * lib/same.c: Likewise.
75891         * lib/strtoumax.c: Likewise.
75892
75893         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
75894         declaration check was not run.
75895         * lib/hash.c: Likewise.
75896         * lib/human.c: Likewise.
75897         * lib/same.c: Likewise.
75898         * lib/strtoumax.c: Likewise.
75899
75900         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
75901         `.', then first look up the entire `.'-containing string as a login
75902         name.
75903
75904 2000-02-23  Jim Meyering  <meyering@lucent.com>
75905
75906         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
75907         in place of my hack.
75908
75909 2000-02-18  Paul Eggert  <eggert@twinsun.com>
75910
75911         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
75912         (textint): New typedef.
75913         (parser_control): Member year changed from int to textint.
75914         All uses changed.
75915         (YYSTYPE): Removed; replaced by %union with int and textint members.
75916         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
75917         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
75918         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
75919         (tSNUMBER, tUNUMBER): Now of type <textintval>.
75920         (date, number, to_year): Use width of number in digits, not its value,
75921         to determine whether it's a 2-digit year, or a 2-digit time.
75922         (yylex): Store number of digits of numeric tokens.
75923         Reported by John Kendall.
75924
75925         (parser_control): Changed from struct parser_control to typedef (for
75926         consistency).  All uses changed.
75927
75928         (tID): Removed; not used.
75929         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
75930
75931 2000-02-14  Paul Eggert  <eggert@twinsun.com>
75932
75933         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
75934         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
75935
75936 2000-02-12  Jim Meyering  <meyering@lucent.com>
75937
75938         * lib/userspec.c (ISDIGIT): Define it.
75939         (isdigit): Remove definition.
75940         (is_number): Use ISDIGIT, not isdigit.
75941         <libintl.h>: Include.
75942         (_ and N_): Define.
75943         (parse_user_spec): Mark translatable strings.
75944
75945 2000-02-10  Jim Meyering  <meyering@lucent.com>
75946
75947         With these changes, nanosleep.[ch] are finally enough like the other
75948         lib/* replacement files to compile on a few more losing systems.
75949
75950         * lib/nanosleep.h: Don't include config.h.
75951         Remove prototype from declaration of nanosleep.
75952         (PARAMS): Remove now-unneeded definition.
75953         * lib/nanosleep.c: #undef nanosleep.
75954         (rpl_nanosleep): Rename from nanosleep.
75955
75956 2000-02-10  Jim Meyering  <meyering@lucent.com>
75957
75958         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
75959         gnu_nanosleep to rpl_nanosleep.
75960
75961 2000-02-09  Jim Meyering  <meyering@lucent.com>
75962
75963         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
75964         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
75965
75966 2000-02-08  Akim Demaille  <akim@epita.fr>
75967
75968         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
75969         `[' and `]' and remove uses of `changequote'.
75970         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
75971         (AC_SYS_LARGEFILE): Likewise.
75972         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
75973         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
75974         of changequote.
75975         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
75976         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
75977         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
75978         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
75979
75980 2000-02-05  Jim Meyering  <meyering@lucent.com>
75981
75982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
75983         Remove explicit use of AC_HEADER_TIME.  It is required by
75984         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
75985         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
75986         in autoconf whereby the expansion of the latter ended up preceding
75987         the expansion of its prerequisite, AC_HEADER_TIME.
75988         Reported by Volker Borchert.
75989
75990 2000-02-03  Jim Meyering  <meyering@lucent.com>
75991
75992         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
75993
75994 2000-02-03  Jim Meyering  <meyering@lucent.com>
75995
75996         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
75997         rather than with `#if HAVE_UTMPNAME'.
75998
75999 2000-02-02  Jim Meyering  <meyering@lucent.com>
76000
76001         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
76002         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
76003         Reported by Eli Zaretskii.
76004
76005 2000-02-01  Jim Meyering  <meyering@lucent.com>
76006
76007         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
76008
76009 2000-01-31  Jim Meyering  <meyering@lucent.com>
76010
76011         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
76012         functions.  Add the time.h and sys/time.h headers along with the
76013         AC_REQUIRE'ment of AC_HEADER_TIME.
76014
76015 2000-01-31  Jim Meyering  <meyering@lucent.com>
76016
76017         * lib/nanosleep.h (nanosleep): Guard declaration with
76018         `#if ! HAVE_DECL_NANOSLEEP'.
76019         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
76020         the declaration in that vendor's sys/timers.h.
76021         Reported by Christian Krackowizer.
76022
76023         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
76024         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
76025         (ISPRINT): Likewise.
76026         Reported by Tom Tromey.
76027
76028 2000-01-30  Jim Meyering  <meyering@lucent.com>
76029
76030         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
76031
76032         * m4/prereq.m4 (utmp_includes): Define.
76033         Check for ut_user and ut_name members in both struct utmpx
76034         and struct utmp.
76035
76036 2000-01-30  Jim Meyering  <meyering@lucent.com>
76037
76038         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
76039         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
76040         header files where only utmpx.ut_user is declared.
76041
76042         * lib/readutmp.h (UT_USER): Define.
76043
76044 2000-01-29  Jim Meyering  <meyering@lucent.com>
76045
76046         * m4/lib-check.m4: New file containing library-related checks from
76047         fileutils and sh-utils (textutils had none).
76048
76049 2000-01-28  Jim Meyering  <meyering@lucent.com>
76050
76051         * m4/perl.m4: Change format of warning message to look more like that
76052         from the missing script.  Suggestion from François Pinard.
76053
76054 2000-01-25  Jim Meyering  <meyering@lucent.com>
76055
76056         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
76057         well as time.h in the compile check.
76058         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
76059         Fix typo in cross-compiling case: s/yes/no/.
76060
76061 2000-01-23  Jim Meyering  <meyering@lucent.com>
76062
76063         * m4/jm-macros.m4: Move df-related tests here from
76064         fileutils/configure.in
76065
76066         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
76067         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
76068
76069         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
76070         s/space/ac_fsusage_space/.
76071         (jm_FILE_SYSTEM_USAGE): Take two parameters.
76072
76073         * m4/ftruncate.m4: New file (derived from part of
76074         fileutils/configure.in).
76075         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
76076         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
76077
76078         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
76079         AC_SUBST these here, rather than just in sh-util/configure.in, so
76080         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
76081         all the same.
76082         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
76083         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
76084         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
76085         (AC_SUBST(POW_LIBM)): Likewise.
76086         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
76087
76088 2000-01-23  Jim Meyering  <meyering@lucent.com>
76089
76090         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
76091         obstack.c.
76092
76093 2000-01-22  Jim Meyering  <meyering@lucent.com>
76094
76095         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
76096
76097         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
76098
76099         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
76100         configure.in
76101         (AC_CHECK_HEADERS): Likewise for sh-utils.
76102         (AC_CHECK_HEADERS): Likewise for textutils.
76103         Merge the three lists of headers.
76104
76105         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
76106         from fileutils' configure.in.
76107
76108         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
76109         code. Moved tests into their own function (_jm_DECL_HEADERS) in
76110         check-decl.m4.
76111
76112         * m4/check-decl.m4: Use #if rather than #ifdef.
76113         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
76114         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
76115         (_jm_DECL_HEADERS): Define new function.
76116         (jm_CHECK_DECLARATIONS): Require it.
76117
76118 2000-01-22  Jim Meyering  <meyering@lucent.com>
76119
76120         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
76121         [! HAVE_DECL_STRTOULL]: Declare strtoull.
76122         Required for some AIX systems.  Reported by Christian Krackowizer.
76123         [TESTING] (main): New function.
76124
76125         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
76126         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
76127         letters.
76128
76129         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
76130         iswprint.
76131
76132         * lib/strverscmp.c (ISDIGIT): Define.
76133         (strverscmp): Use ISDIGIT, not isdigit.
76134
76135 2000-01-19  Jim Meyering  <meyering@lucent.com>
76136
76137         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
76138         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
76139         defines `struct timespec' in <sys/time.h>
76140
76141         * m4/c-bs-a.m4: Remove uses of changequote altogether.
76142         Thanks to Akim for explaining.
76143
76144 2000-01-17  Paul Eggert  <eggert@twinsun.com>
76145
76146         * lib/nanosleep.c (nanosleep):
76147         Don't use SA_INTERRUPT to decide whether to call sigaction, as
76148         POSIX.1 doesn't require SA_INTERRUPT and some systems
76149         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
76150         it's been part of POSIX.1 since day 1 (in 1988).
76151
76152 2000-01-17  Jim Meyering  <meyering@lucent.com>
76153
76154         * lib/interlock: Remove unused file.  Reported by François Pinard.
76155
76156 2000-01-16  Paul Eggert  <eggert@twinsun.com>
76157
76158         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
76159         alert, backslash, formfeed, and vertical tab unnecessarily in
76160         shell quoting style.
76161
76162 2000-01-16  Jim Meyering  <meyering@lucent.com>
76163
76164         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
76165         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
76166         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
76167         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
76168
76169 2000-01-16  Jim Meyering  <meyering@lucent.com>
76170
76171         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
76172         because the latter didn't work.
76173
76174 2000-01-15  Jim Meyering  <meyering@lucent.com>
76175
76176         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
76177         (AC_REPLACE_FUNCS): Add memcpy and memset.
76178         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
76179         Add strpbrk.
76180         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
76181
76182 2000-01-12  Jim Meyering  <meyering@lucent.com>
76183
76184         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
76185         (jm_PREREQ): Use it.
76186         (jm_PREREQ_READUTMP): New macro.
76187         (jm_PREREQ): Use it.
76188
76189 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76190
76191         Quote multibyte characters correctly.
76192         * m4/c-bs-a.m4: New file.
76193         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
76194         (jm_PREREQ): Use it.
76195
76196 2000-01-11  Paul Eggert  <eggert@twinsun.com>
76197
76198         * m4/uintmax_t.m4: Port to autoconf 2.13.
76199
76200 2000-01-08  Jim Meyering  <meyering@ascend.com>
76201
76202         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
76203         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
76204
76205 2000-01-04  Jim Meyering  <meyering@ascend.com>
76206
76207         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
76208         jm_STRUCT_DIRENT_D_TYPE.
76209         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
76210         jm_STRUCT_DIRENT_D_INO.
76211         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
76212         jm_STRUCT_UTIMBUF.
76213         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
76214         renamings.
76215         * m4/utime.m4: Likewise.
76216
76217         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
76218         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
76219
76220 2000-01-03  Paul Eggert  <eggert@twinsun.com>
76221
76222         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
76223         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
76224
76225 2000-01-02  Jim Meyering  <meyering@ascend.com>
76226
76227         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
76228         remember if this is necessary.
76229
76230 1999-12-26  Jim Meyering  <meyering@ascend.com>
76231
76232         * m4/jm-macros.m4: Use it here.
76233         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
76234
76235 1999-12-23  Jim Meyering  <meyering@ascend.com>
76236
76237         * m4/jm-macros.m4: Check for clock_gettime (moved from
76238         fileutils/configure.in)
76239         Check for gettimeofday.
76240
76241 1999-12-20  Jim Meyering  <meyering@ascend.com>
76242
76243         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
76244         autoconf-2.14a-1999-12-20.
76245
76246 1999-12-19  Jim Meyering  <meyering@ascend.com>
76247
76248         * m4/lstat-slash.m4: New file.
76249         * m4/jm-macros.m4: Use the new macro:
76250         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76251
76252 1999-12-07  Jim Meyering  <meyering@ascend.com>
76253
76254         * m4/perl.m4: Require that File::Compare be available, too.
76255         Too many systems seem to lack it.
76256
76257         * m4/strftime.m4: Add checks for most of the cpp macros tested in
76258         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
76259
76260 1999-11-18  Paul Eggert  <eggert@twinsun.com>
76261
76262         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
76263         problem with the QNX 4.25 shell, which doesn't propagate exit
76264         status of failed commands inside shell assignments.
76265
76266 1999-11-17  Jim Meyering  <meyering@ascend.com>
76267
76268         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
76269
76270 1999-11-07  Jim Meyering  <meyering@ascend.com>
76271
76272         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
76273
76274 1999-11-06  Jim Meyering  <meyering@ascend.com>
76275
76276         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
76277         * m4/jm-macros.m4 (jm_MACROS): Use it here.
76278
76279 1999-11-05  Jim Meyering  <meyering@ascend.com>
76280
76281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
76282         configure.in of textutils, fileutils, and sh-utils into this one
76283         (shared between those packages) file.
76284         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
76285         AC_STRUCT_ST_BLKSIZE.
76286
76287 1999-11-03  Jim Meyering  <meyering@ascend.com>
76288
76289         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
76290         of AC_CHECK_TYPE checks includes unistd.h.
76291         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
76292         Suggestion from Akim Demaille.
76293
76294 1999-10-30  Jim Meyering  <meyering@ascend.com>
76295
76296         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
76297         m4-quoted string.
76298         * m4/ls-mntd-fs.m4: Likewise.
76299         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
76300         * m4/jm-winsz1.m4: Likewise.
76301
76302         * m4/const.m4: Remove file, since the fix made it into the experimental
76303         version of autoconf.
76304         * m4/mktime.m4: Likewise.
76305
76306         * m4/check-type.m4: Remove file, now that the latest version of
76307         AC_CHECK_TYPE takes a third arg to specify additional #includes.
76308
76309         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
76310         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
76311         AC_CHECK_TYPE.
76312
76313 1999-10-04  Jim Meyering  <meyering@ascend.com>
76314
76315         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
76316
76317 1999-09-22  Paul Eggert  <eggert@twinsun.com>
76318
76319         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
76320         2.95.1 bug with HP-UX 10.20.
76321
76322 1999-09-17  Jim Meyering  <meyering@ascend.com>
76323
76324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
76325         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
76326         due to missing strdup (against sh-utils-2.0).
76327
76328 1999-08-29  Jim Meyering  <meyering@ascend.com>
76329
76330         * m4/jm-macros.m4: Require jm_BISON.
76331         * m4/bison.m4: New file.
76332
76333 1999-08-17  Paul Eggert  <eggert@twinsun.com>
76334
76335         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
76336         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
76337
76338 1999-08-05  Jim Meyering  <meyering@ascend.com>
76339
76340         * m4/getline.m4: Rename test file from conftestdata to conftest.data
76341         to avoid conflicts with `conftest' on 8+3 filesystems.
76342         Suggestion from Eli Zaretskii.
76343
76344 1999-08-04  Jim Meyering  <meyering@ascend.com>
76345
76346         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
76347         fileutils and sh-utils (textutils's getline test was inadequate).
76348         (AM_FUNC_GETLINE): Run this test.
76349         (AC_CHECK_FUNCS): Check for getdelim.
76350         Reported by Bob Proulx.
76351
76352 1999-08-02  Jim Meyering  <meyering@ascend.com>
76353
76354         * m4/jm-macros.m4: Add a comment.
76355
76356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76357
76358         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
76359         <inttypes.h> defines strtoumax as a macro (and not as a
76360         function).
76361
76362 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76363
76364         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
76365         that we can shift, multiply and divide unsigned long long
76366         values; Ultrix cc can't do it.
76367
76368 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76369
76370         * m4/mktime.m4: New file, which is a preview of what should appear
76371         in the next public autoconf release.
76372
76373 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76374
76375         * m4/lfs.m4: Remove this file.
76376         * m4/largefile.m4: New file.  It contains the old contents of
76377         lfs.m4, except that all names with prefix AC_LFS have been
76378         changed to use the prefix AC_SYS_LARGEFILE instead, to be
76379         compatible with future autoconf versions.  Also, some minor m4
76380         quoting problems have been fixed.
76381
76382 1999-08-01  Paul Eggert  <eggert@twinsun.com>
76383
76384         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
76385         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
76386         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
76387         and simplify the shell code.
76388
76389 1999-08-01  Jim Meyering  <meyering@ascend.com>
76390
76391         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
76392         m4.
76393
76394 1999-07-20  Jim Meyering  <meyering@ascend.com>
76395
76396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
76397
76398 1999-07-15  Jim Meyering  <meyering@ascend.com>
76399
76400         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
76401
76402 1999-05-22  Jim Meyering  <meyering@ascend.com>
76403
76404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
76405
76406 1999-05-20  Jim Meyering  <meyering@ascend.com>
76407
76408         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
76409         Add a colon after each `then' in case $4 is empty.
76410
76411 1999-05-16  Jim Meyering  <meyering@ascend.com>
76412
76413         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
76414
76415 1999-05-10  Jim Meyering  <meyering@ascend.com>
76416
76417         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
76418
76419         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
76420         AC_FUNC_MKTIME.
76421
76422 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
76423
76424         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
76425
76426 1999-05-04  Paul Eggert  <eggert@twinsun.com>
76427
76428         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
76429         not CPPFLAGS, so that linking works correctly in IRIX.
76430
76431 1999-04-30  Paul Eggert  <eggert@twinsun.com>
76432
76433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
76434
76435 1999-04-20  Paul Eggert  <eggert@twinsun.com>
76436
76437         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
76438         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
76439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
76440         jm_AC_TYPE_UNSIGNED_LONG_LONG.
76441         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
76442
76443         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
76444
76445 1999-04-20  Jim Meyering  <meyering@ascend.com>
76446
76447         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
76448         AC_REPLACE xstroull if necessary.  From Paul Eggert.
76449         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
76450
76451 1999-04-18  Jim Meyering  <meyering@ascend.com>
76452
76453         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
76454         * m4/jm-macros.m4: Use it.
76455
76456 1999-04-06  Jim Meyering  <meyering@ascend.com>
76457
76458         * m4/strftime.m4: Remove test for %f.
76459
76460 1999-03-29  Jim Meyering  <meyering@ascend.com>
76461
76462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
76463         superset of the AC_TYPE_* checks in the textutils, fileutils,
76464         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
76465         AC_TYPE_PID_T.
76466
76467 1999-03-28  Jim Meyering  <meyering@ascend.com>
76468
76469         * m4/jm-macros.m4: Define GNU_PACKAGE here.
76470         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
76471         replaced e.g., in the *.sh files of the sh-utils.
76472
76473 1999-03-20  Jim Meyering  <meyering@ascend.com>
76474
76475         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
76476         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
76477         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
76478
76479 1999-03-19  Jim Meyering  <meyering@ascend.com>
76480
76481         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
76482
76483 1999-03-12  Jim Meyering  <meyering@ascend.com>
76484
76485         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
76486
76487 1999-03-07  Jim Meyering  <meyering@ascend.com>
76488
76489         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
76490         declared.
76491
76492 1999-02-17  Jim Meyering  <meyering@ascend.com>
76493
76494         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
76495         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
76496
76497 1999-02-07  Jim Meyering  <meyering@ascend.com>
76498
76499         * m4/group-member.m4: New file -- extracted from sh-utils'
76500         configure.in.
76501
76502         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
76503         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
76504
76505 1999-02-06  Jim Meyering  <meyering@ascend.com>
76506
76507         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
76508         * m4/fnmatch.m4: Likewise.
76509         * m4/getgroups.m4: Likewise.
76510         * m4/lstat.m4: Likewise.
76511         * m4/malloc.m4: Likewise.
76512         * m4/putenv.m4: Likewise.
76513         * m4/realloc.m4: Likewise.
76514         * m4/regex.m4: Likewise.
76515         * m4/stat.m4: Likewise.
76516         * m4/strftime.m4: Likewise.
76517         Suggestion from Alain Magloire.
76518
76519         * m4/chown.m4: Use `.$ac_objext', not `.o'.
76520         * m4/fnmatch.m4: Likewise.
76521         * m4/getgroups.m4: Likewise.
76522         * m4/getline.m4: Likewise.
76523         * m4/lstat.m4: Likewise.
76524         * m4/malloc.m4: Likewise.
76525         * m4/memcmp.m4: Likewise.
76526         * m4/putenv.m4: Likewise.
76527         * m4/realloc.m4: Likewise.
76528         * m4/regex.m4: Likewise.
76529         * m4/stat.m4: Likewise.
76530         * m4/strftime.m4: Likewise.
76531         Suggestion from Alain Magloire.
76532
76533         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
76534         an argument.
76535
76536         * m4/regex.m4: Add a run-time Test for proper operation of
76537         re_compile_pattern.
76538
76539 1999-01-31  Jim Meyering  <meyering@ascend.com>
76540
76541         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
76542
76543 1999-01-30  Jim Meyering  <meyering@ascend.com>
76544
76545         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
76546
76547         * m4/jm-mktime.m4: Make this a wrapper around the official
76548         AM_FUNC_MKTIME rather than my private copy, now that the official one
76549         is up to date.
76550         * m4/mktime.m4: Remove file.
76551
76552         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
76553         * m4/uptime.m4: Likewise.
76554         * m4/uintmax_t.m4: Likewise.
76555
76556 1999-01-28  Jim Meyering  <meyering@ascend.com>
76557
76558         * m4/jm-macros.m4: Use jm_AFS.
76559         * m4/afs.m4: New file (from fileutils' configure.in).
76560
76561         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
76562         * m4/chown.m4: Likewise.
76563         * m4/d-ino.m4: Likewise.
76564         * m4/d-type.m4: Likewise.
76565         * m4/fnmatch.m4: Likewise.
76566         * m4/getgroups.m4: Likewise.
76567         * m4/gettext.m4: Likewise.
76568         * m4/jm-mktime.m4: Likewise.
76569         * m4/jm-winsz2.m4: Likewise.
76570         * m4/lcmessage.m4: Likewise.
76571         * m4/ls-mntd-fs.m4: Likewise.
76572         * m4/malloc.m4: Likewise.
76573         * m4/memcmp.m4: Likewise.
76574         * m4/putenv.m4: Likewise.
76575         * m4/realloc.m4: Likewise.
76576         * m4/st_mtim.m4: Likewise.
76577         * m4/strftime.m4: Likewise.
76578
76579 1999-01-16  Jim Meyering  <meyering@ascend.com>
76580
76581         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
76582         (ARGMATCH_DIE_DECL): Define.
76583
76584 1999-01-12  Jim Meyering  <meyering@ascend.com>
76585
76586         * m4/Makefile.am.in: Rewrite to avoid using fmt.
76587         Reported by Lars Hecking.
76588
76589 1999-01-10  Jim Meyering  <meyering@ascend.com>
76590
76591         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
76592         gross kludge.
76593         * m4/inttypes_h.m4: Likewise.
76594         * m4/lstat.m4: Likewise.
76595         * m4/malloc.m4: Likewise.
76596         * m4/readdir.m4: Likewise.
76597         * m4/realloc.m4: Likewise.
76598         * m4/st_dm_mode.m4: Likewise.
76599         * m4/stat.m4: Likewise.
76600         * m4/utimbuf.m4: Likewise.
76601         * m4/utimes.m4: Likewise.
76602
76603         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
76604         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
76605         comments in config.h.in are meaningful.
76606
76607         * m4/jm-macros.m4: Require autoconf-2.13 here.
76608
76609         * m4/regex.m4: By default, don't use the included regex.c on systems
76610         with glibc 2.  Suggestion from Uli Drepper.
76611
76612 1999-01-02  Jim Meyering  <meyering@ascend.com>
76613
76614         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
76615
76616 1998-12-18  Jim Meyering  <meyering@ascend.com>
76617
76618         * m4/Makefile.am.in (Makefile.am): Simplify rule.
76619         Based on a suggestion from Lars Hecking.
76620
76621 1998-11-16  Paul Eggert  <eggert@twinsun.com>
76622
76623         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
76624
76625 1998-11-16  Jim Meyering  <meyering@ascend.com>
76626
76627         * m4/lfs.m4: Double-quote the `uname...` expression.
76628
76629 1998-11-14  Jim Meyering  <meyering@ascend.com>
76630
76631         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
76632         * m4/stat.m4: Likewise.
76633
76634 1998-11-03  Jim Meyering  <meyering@ascend.com>
76635
76636         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
76637         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
76638
76639 1998-10-18  Jim Meyering  <meyering@ascend.com>
76640
76641         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
76642
76643 1998-10-17  Jim Meyering  <meyering@ascend.com>
76644
76645         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
76646         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
76647         calls for those previously hard-coded headers.  Instead, take a new
76648         parameter.
76649         (jm_CHECK_DECLARATIONS): Reflect interface change.
76650         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
76651         (jm_CHECK_DECL_LOCALTIME_R): New macro.
76652
76653         * m4/mktime.m4: Test for spring-forward gap before long-running test.
76654
76655 1998-10-14  Jim Meyering  <meyering@ascend.com>
76656
76657         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
76658         instead of "TZ=America/Vancouver".  From Paul Eggert.
76659
76660 1998-10-11  Jim Meyering  <meyering@ascend.com>
76661
76662         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
76663         This adds a test for a recently added compatibility fix for mktime.c.
76664         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
76665
76666 1998-09-27  Jim Meyering  <meyering@ascend.com>
76667
76668         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
76669
76670         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
76671         ../configure.in, including a change from Gordon Matzigkeit to allow
76672         cross-compiling for the Hurd.
76673
76674         * m4/glibc.m4: New file/macro to test for the GNU C Library
76675         versions 1 and 2.  From Gordon Matzigkeit.
76676         Indent.
76677
76678 1998-09-21  Jim Meyering  <meyering@ascend.com>
76679
76680         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
76681
76682 1998-08-18  Paul Eggert  <eggert@twinsun.com>
76683
76684         Port nanosecond-resolution times to UnixWare 2.1.2 and
76685         pedantic Solaris 2.6.
76686
76687         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
76688         AC_STRUCT_ST_MTIM.
76689         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
76690         Generate name of ns member, instead of just 1 or undef.
76691         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
76692
76693 1998-08-15  Jim Meyering  <meyering@ascend.com>
76694
76695         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
76696         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
76697         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
76698         instead of jm_TYPE_SSIZE_T.
76699
76700 1998-08-12  Jim Meyering  <meyering@ascend.com>
76701
76702         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
76703
76704 1998-08-02  Jim Meyering  <meyering@ascend.com>
76705
76706         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
76707         in acconfig.h manually.
76708
76709 1998-07-31  Paul Eggert  <eggert@twinsun.com>
76710
76711         * m4/st_mtim.m4: New file.
76712
76713 1998-07-28  Jim Meyering  <meyering@ascend.com>
76714
76715         * m4/utimes.m4: Undef stat.
76716
76717 1998-07-25  Jim Meyering  <meyering@ascend.com>
76718
76719         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
76720         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
76721
76722 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
76723
76724         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
76725         uid and gid actually remain unchanged.
76726
76727 1998-07-07  Jim Meyering  <meyering@ascend.com>
76728
76729         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
76730
76731 1998-07-04  Jim Meyering  <meyering@ascend.com>
76732
76733         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
76734         to prove that this macro can be used in packages without regex.c.
76735
76736 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
76737
76738         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
76739         is to be used.
76740
76741 1998-07-03  Jim Meyering  <meyering@ascend.com>
76742
76743         * m4/gettext.m4: Add -lintl if it's found to be necessary.
76744
76745         * m4/gettext.m4: New file -- from gettext-0.10.35.
76746         * m4/lcmessage.m4: Likewise.
76747         * m4/progtest.m4: Likewise.
76748
76749         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
76750         * m4/jm-macros.m4: Require the new macro.
76751
76752 1998-06-29  Jim Meyering  <meyering@ascend.com>
76753
76754         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
76755         for the definition of NGROUPS (used in a system header included
76756         by sys/mount.h).
76757
76758 1998-06-28  Jim Meyering  <meyering@ascend.com>
76759
76760         * m4/ls-mntd-fs.m4: New file.
76761         * m4/fstypename.m4: New file.
76762
76763         * m4/jm-macros.m4: Require the new macro.
76764         * m4/jm-glibc-io.m4: New file.
76765
76766 1998-05-19  Jim Meyering  <meyering@ascend.com>
76767
76768         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
76769         * m4/lchown.m4: New file.
76770
76771         * m4/Makefile.am.in: New file.
76772         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
76773
76774 1998-05-14  Jim Meyering  <meyering@ascend.com>
76775
76776         * m4/Makefile.am (EXTRA_DIST): Add them.
76777         * m4/jm-macros.m4: New file.
76778         * m4/utimbuf.m4: New file.
76779
76780 1998-05-12  Jim Meyering  <meyering@ascend.com>
76781
76782         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
76783
76784 1998-05-11  Jim Meyering  <meyering@ascend.com>
76785
76786         * m4/isc-posix.m4: New file.
76787
76788 1998-05-10  Jim Meyering  <meyering@ascend.com>
76789
76790         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
76791
76792 1998-05-09  Jim Meyering  <meyering@ascend.com>
76793
76794         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
76795         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
76796         with automake.
76797
76798         * m4/ssize_t.m4: New file.
76799         * m4/mktime.m4: Remove file -- the new automake has this now.
76800
76801 1998-04-26  Jim Meyering  <meyering@ascend.com>
76802
76803         * m4/assert.m4: New file.
76804         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
76805
76806 1998-04-05  Jim Meyering  <meyering@ascend.com>
76807
76808         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
76809         (jm_PREREQ): Use it here.
76810
76811 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
76812
76813         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
76814         in acconfig.h.
76815
76816 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
76817
76818         * m4/prereq.m4: New file.
76819         * m4/error.m4: New file.
76820         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
76821
76822 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
76823
76824         * m4/getline.m4: Don't set am_cv_func_working_getline before the
76825         cache-check for the same variable -- that defeated the purpose of
76826         the test; the test program was never run.  This was a problem only
76827         on systems with losing getline functions -- HP-UX 10.20 is one.
76828         Reported by Bjorn Helgaas.
76829
76830 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
76831
76832         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
76833
76834 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
76835
76836         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
76837
76838         * m4/const.m4: New file.  Use an initializer in this declaration
76839         typedef int charset[2]; const charset x;
76840         Reported by Bob Glickstein.
76841
76842 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
76843
76844         * m4/chown.m4: Fix reversed types on -1 args to chown.
76845         From Kaveh Ghazi.
76846
76847 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
76848
76849         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
76850         Add lseek and memchr.
76851
76852         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
76853         T.E.Dickey <dickey@clark.net> said that some older preprocessors
76854         have a 20-character limit on names.
76855
76856 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
76857
76858         * m4/inttypes_h.m4: New file.
76859         * m4/uintmax_t.m4: New file.
76860         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
76861
76862
76863         -----
76864
76865         Local Variables:
76866         coding: utf-8
76867         End:
76868
76869         Copyright (C) 1997-2011 Free Software Foundation, Inc.
76870
76871         Copying and distribution of this file, with or without
76872         modification, are permitted provided the copyright notice
76873         and this notice are preserved.